In addition, midlife and late-life DM may have different effects on cognitive function (Mayor, 2014; Harvard Health Letter, 2015; Sadahiro et al., 2019; Wang and Liu, 2021) in addition to the moderation effect of APOE4. The gene discussed is APOE; the disease is diabetes mellitus.