Alzheimer’s disease (AD) is an important research topic. While amyloid plaques and neurofibrillary tangles are hallmark pathological features of AD, cognitive resilience (CR) is a phenomenon where cognitive function remains preserved despite the presence of these pathological features. This study aimed to construct and compare predictive machine learning models for CR scores using RNA-seq data from the Religious Orders Study and Memory and Aging Project (ROSMAP) and Mount Sinai Brain Bank (MSBB) cohorts. We evaluated support vector regression (SVR), random forest, XGBoost, linear, and transformer-based models. The SVR model exhibited the best performance, with contributing genes identified using Shapley additive explanations (SHAP) scores, providing insights into biological pathways associated with CR. Finally, we developed a tool called the resilience gene analyzer (REGA), which visualizes SHAP scores to interpret the contributions of individual genes to CR. REGA is available athttps://igcore.cloud/GerOmics/REsilienceGeneAnalyzer/.