<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d1 20130915//EN" "http://jats.nlm.nih.gov/publishing/1.1d1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">AEJ</journal-id>
<journal-title-group>
<journal-title>African Evaluation Journal</journal-title>
</journal-title-group>
<issn pub-type="ppub">2310-4988</issn>
<issn pub-type="epub">2306-5133</issn>
<publisher>
<publisher-name>AOSIS</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">AEJ-14-858</article-id>
<article-id pub-id-type="doi">10.4102/aej.v14i2.858</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Machine learning algorithms for climate change integration in evaluation: A conceptual model and simulated case application in Africa</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<contrib-id contrib-id-type="orcid">https://orcid.org/0009-0006-8546-2520</contrib-id>
<name>
<surname>Anowai</surname>
<given-names>Chineme A.</given-names>
</name>
<xref ref-type="aff" rid="AF0001">1</xref>
</contrib>
<aff id="AF0001"><label>1</label>Department of Public Health, College of Health Sciences, Nile University of Nigeria, Abuja, Nigeria</aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><bold>Corresponding author:</bold> Chineme Anowai, <email xlink:href="chineme.anowai@newglobe.education">chineme.anowai@newglobe.education</email></corresp>
</author-notes>
<pub-date pub-type="epub"><day>10</day><month>04</month><year>2026</year></pub-date>
<pub-date pub-type="collection"><year>2026</year></pub-date>
<volume>14</volume>
<issue>2</issue>
<elocation-id>858</elocation-id>
<history>
<date date-type="received"><day>31</day><month>08</month><year>2025</year></date>
<date date-type="accepted"><day>04</day><month>12</month><year>2025</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2026. The Authors</copyright-statement>
<copyright-year>2026</copyright-year>
<license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>Licensee: AOSIS. This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.</license-p>
</license>
</permissions>
<abstract>
<sec id="st1">
<title>Background</title>
<p>Climate change increasingly shapes development outcomes, necessitating its integration into evaluation processes. In Africa, recurrent droughts, floods and temperature extremes disrupt progress across sectors. Conventional evaluation approaches rely on static indicators and linear analyses, constraining their capacity to capture climate variability or explain how environmental shocks affect programme performance.</p>
</sec>
<sec id="st2">
<title>Objectives</title>
<p>This study seeks to develop and assess an artificial intelligence (AI)-driven evaluation framework that integrates climate indicators into development evaluation systems to enhance analytical precision, relevance and timeliness.</p>
</sec>
<sec id="st3">
<title>Method</title>
<p>A machine learning (ML) algorithm is proposed to jointly process climate and development data, enabling pattern recognition, correlation analysis and predictive modelling. Publicly available climate and education datasets from East and South Africa are used to demonstrate the framework&#x2019;s application.</p>
</sec>
<sec id="st4">
<title>Results</title>
<p>Findings indicate that climate anomalies are associated with observable changes in school attendance and learning outcomes. The model demonstrates the utility of AI in identifying climate&#x2013;development linkages and generating more timely insights than traditional methods.</p>
</sec>
<sec id="st5">
<title>Conclusion</title>
<p>The integration of AI into evaluation systems improves the capacity to analyse climate-related impacts on development outcomes, supporting more informed and adaptive planning.</p>
</sec>
<sec id="st6">
<title>Contribution</title>
<p>The study provides a scalable technical model for climate-responsive evaluation, demonstrating how ML can operationalise climate&#x2013;development relationships to strengthen evidence-based decision-making before or after programme performance in affected contexts.</p>
</sec>
</abstract>
<kwd-group>
<kwd>artificial intelligence</kwd>
<kwd>climate change</kwd>
<kwd>evaluation</kwd>
<kwd>Africa</kwd>
<kwd>machine learning</kwd>
<kwd>education</kwd>
<kwd>data</kwd>
<kwd>research</kwd>
</kwd-group>
<funding-group>
<funding-statement><bold>Funding information</bold> Support for the AfrEA Conference climate strand, where some of this work was initially presented, was provided by The Rockefeller Foundation through a grant to Genesis Analytics.</funding-statement>
</funding-group>
</article-meta>
</front>
<body>
<sec id="s0001">
<title>Introduction</title>
<p>Climate change is reshaping development trajectories worldwide, particularly in sub-Saharan Africa, where exposure to droughts, floods, heatwaves and shifting rainfall patterns continues to intensify. Recent analyses show that climate-related disruptions in 2023 alone affected millions of school-aged children, reducing instructional time and impacting learning outcomes (Venegas, Schwarz &#x0026; Sabarwal <xref ref-type="bibr" rid="CIT0015">2024</xref>). Similar trends appear across agriculture, health, infrastructure and livelihoods, highlighting the need for evaluation systems that can incorporate environmental dynamics.</p>
<p>Traditional evaluation approaches largely rely on periodic surveys, static indicators and retrospective analysis (Mouton, Wildschut &#x0026; Agyepong <xref ref-type="bibr" rid="CIT0008">2019</xref>). Such methods struggle to reflect highly variable climate conditions. Their limited temporal sensitivity often obscures key relationships between environmental shocks and development outcomes. A decline in programme performance may be attributed solely to implementation gaps, even when climate anomalies &#x2013; such as early-season drought &#x2013; played a substantial role.</p>
<p>Artificial intelligence (AI) provides a new frontier for addressing these limitations. Machine learning models can integrate diverse climate and socio-economic datasets, detect non-linear interactions and uncover patterns beyond the scope of manual analysis (Olawade et al. <xref ref-type="bibr" rid="CIT0011">2024</xref>). Artificial intelligence techniques such as classification, regression and anomaly detection can strengthen evaluative judgements by situating programme outcomes within climate contexts. Real-time data ingestion further supports continuous monitoring, enabling adaptive management in climate-sensitive sectors.</p>
<p>Within Africa, the demand for such approaches is urgent. Evaluations of agricultural, education, health and infrastructure programmes increasingly require the integration of projected rainfall variability, temperature extremes and hazard exposure. Adaptive management and indigenous evaluation frameworks (Chilisa <xref ref-type="bibr" rid="CIT0001">2015</xref>; Mutanga <xref ref-type="bibr" rid="CIT0009">2022</xref>) emphasise iterative learning and context sensitivity &#x2013; principles aligned with AI-enabled analytics.</p>
<p>This study conceptualises an AI-driven algorithm designed to embed climate considerations within evaluation systems. It presents a simulated case application and outlines how AI can support more climate-responsive evaluation practices.</p>
<sec id="s20002">
<title>Aim</title>
<p>To conceptualise and demonstrate an AI-driven approach for systematically integrating climate change considerations into evaluation frameworks in Africa.</p>
</sec>
<sec id="s20003">
<title>Objectives</title>
<list list-type="bullet">
<list-item><p>Develop a conceptual machine learning (ML)-driven algorithm for climate-integrated evaluations.</p></list-item>
<list-item><p>Demonstrate the algorithm&#x2019;s application using a simulated case study.</p></list-item>
<list-item><p>Assess the potential of AI-based real-time and predictive analytics in evaluations.</p></list-item>
<list-item><p>Highlight the relevance of AI-integrated evaluation for climate-vulnerable African contexts.</p></list-item>
</list>
</sec>
</sec>
<sec id="s0004">
<title>Literature review</title>
<p>The intersection of climate change adaptation and development evaluation represents a critical frontier in modern research. As extreme weather events become more frequent, the static methodologies traditionally employed in Monitoring and Evaluation (M&#x0026;E) are increasingly insufficient. This chapter reviews the existing scholarly publications regarding the integration of AI into evaluation frameworks, with a specific focus on climate resilience in the African context. It analyses the limitations of current evaluation paradigms and explores how ML algorithms offer a transformative solution for measuring impact amidst environmental volatility.</p>
<sec id="s20005">
<title>The climate challenge in development evaluation</title>
<p>Traditional development evaluation has historically operated on linear logic models &#x2013; assuming that if project inputs are delivered (e.g. building a school), outcomes will follow (e.g. increased attendance). However, foundational authors in the field argue that this linearity fails to account for complexity. Patton (<xref ref-type="bibr" rid="CIT0012">2019</xref>) notes that in the Anthropocene, environmental externalities are no longer &#x2018;background noise&#x2019; but central drivers of success or failure.</p>
<p>In the context of Africa, Tamasiga et al. (<xref ref-type="bibr" rid="CIT0013">2023</xref>) argue that the global climate finance architecture often misinterprets vulnerability because of a lack of granular data. Standard evaluation cycles, which often occur years after a project&#x2019;s conclusion, are too slow to capture the rapid onset of climate shocks like cyclones or flash droughts. Consequently, evaluators often struggle to distinguish between a project failing because of poor design versus failing as a result of an overwhelming climate shock &#x2013; a distinction that is vital for accountability.</p>
</sec>
<sec id="s20006">
<title>Artificial intelligence in monitoring and evaluation</title>
<p>The Fourth Industrial Revolution has introduced new tools to address these analytical gaps. Nalubega and Uwizeyimana (<xref ref-type="bibr" rid="CIT0010">2019</xref>) provide a foundational analysis of how the Fourth Industrial Revolution impacts public sector M&#x0026;E in Africa. They contend that while AI offers immense potential for real-time feedback, its adoption remains limited by infrastructure and capacity constraints.</p>
<p>Scholarship distinguishes between two primary applications of AI in evaluation:</p>
<list list-type="bullet">
<list-item><p>Descriptive Analytics: Using AI to process vast amounts of existing data faster.</p></list-item>
<list-item><p>Predictive Analytics: Using ML models to forecast future trends based on historical patterns.</p></list-item>
</list>
<p>Olawade et al. (<xref ref-type="bibr" rid="CIT0011">2024</xref>) demonstrate that ML models can process complex environmental datasets to identify pathways to net-zero sustainability that manual analysis would miss. This suggests that AI is not merely a tool for efficiency, but a mechanism for uncovering non-linear relationships between environmental variables and development outcomes.</p>
</sec>
<sec id="s20007">
<title>Machine learning for climate resilience</title>
<p>Specific to climate change, ML has emerged as a potent tool for meteorological prediction and impact assessment. Kenne et al. (<xref ref-type="bibr" rid="CIT0007">2024</xref>) utilised AI to predict sub-seasonal summer temperatures in West Africa, demonstrating that algorithmic models often outperform traditional meteorological forecasts in data-scarce regions.</p>
<p>However, a gap remains in linking these meteorological insights to social indicators. While meteorologists use AI to predict storms, and social scientists use surveys to measure education or health, few studies integrate these domains. York and Bamberger (<xref ref-type="bibr" rid="CIT0017">2020</xref>) argue for the use of &#x2018;Big Data&#x2019; in evaluation to bridge this divide, suggesting that satellite imagery and remote sensing can serve as proxies for ground-truth data in conflict or disaster zones. By triangulating climate data (e.g. rainfall anomalies) with social data (e.g. school attendance), evaluators can construct &#x2018;counterfactuals&#x2019; that isolate the specific impact of climate shocks on project performance.</p>
</sec>
<sec id="s20008">
<title>The African context: Data scarcity and opportunity</title>
<p>The application of these advanced technologies in Africa presents a unique paradox. On one hand, the continent faces significant &#x2018;data gaps&#x2019;. On the other hand, the rapid digitalisation of services (e.g. mobile money, Short Messaging Service [SMS] surveys) generates novel datasets ripe for AI analysis.</p>
<p>Recent studies highlight the necessity of localised algorithms. Generic global models often fail to account for the specific socio-economic dynamics of African rural communities. For instance, Global Pulse (<xref ref-type="bibr" rid="CIT0004">2023</xref>) highlighted how AI models trained on Western data failed to predict food security trends in East Africa accurately. This validates the argument by Tamasiga et al. (<xref ref-type="bibr" rid="CIT0013">2023</xref>) that African-led data architectures are essential for redefining climate vulnerability.</p>
</sec>
<sec id="s20009">
<title>Theoretical framework: Design science research</title>
<p>To operationalise these insights, this study grounds its methodology in design science research (DSR). Unlike natural science, which seeks to explain phenomena, DSR seeks to create artefacts that solve human problems (Hevner et al. <xref ref-type="bibr" rid="CIT0005">2004</xref>). The study conceptualises the AI algorithm not just as a statistical tool, but as a &#x2018;socio-technical artefact&#x2019; designed to enhance the adaptive capacity of evaluation systems.</p>
</sec>
<sec id="s20010">
<title>Summary of the gap</title>
<p>While the literature establishes the separate value of AI in evaluation (Nalubega &#x0026; Uwizeyimana <xref ref-type="bibr" rid="CIT0010">2019</xref>) and AI in climate modelling (Kenne et al. <xref ref-type="bibr" rid="CIT0007">2024</xref>), there is a paucity of research that combines them into a unified <italic>evaluation workflow</italic>. Few studies explicitly demonstrate how an evaluator can use ML to &#x2018;climate-adjust&#x2019; the performance ratings of social projects. This research aims to fill that gap by proposing and simulating a specific algorithmic framework for this purpose.</p>
</sec>
</sec>
<sec id="s0011">
<title>Research methods and design</title>
<sec id="s20012">
<title>Research approach</title>
<p>The study uses a DSR and proof-of-concept approach to develop and refine an AI-driven evaluation algorithm. Design science research is appropriate because the purpose is not only analytical but also solution-oriented, producing an artefact (the conceptual algorithm) intended for practical application in real-world development evaluations.</p>
<p>The study is structured into three components:</p>
<list list-type="bullet">
<list-item><p><bold>Conceptual development:</bold> Synthesising evidence from evaluation theory, climate science and ML to design the algorithm.</p></list-item>
<list-item><p><bold>Technical specification:</bold> Defining the data architecture, computational workflow and analytical modules.</p></list-item>
<list-item><p><bold>Simulated application:</bold> Demonstrating the algorithm using a dataset reflecting typical evaluation and climate conditions in an African context.</p></list-item>
</list>
</sec>
<sec id="s20013">
<title>Setting</title>
<p>The algorithm is intended for development programmes in Africa, where climate sensitivity is high and data ecosystems vary widely. The design emphasises regional climate conditions, programmatic data structures and evaluation needs relevant to the continent. The integration operates through a Climate-Evaluation Data Fusion Layer, which merges evaluation indicators and climate variables into a unified analytic pipeline.</p>
</sec>
<sec id="s20014">
<title>Algorithmic architecture</title>
<p>This study employed a mixed computational approach combining simulated climate data and ML modelling to empirically demonstrate how AI can strengthen climate-responsive evaluation systems. The methodology was designed to approximate Kenya&#x2019;s real climate&#x2013;education dynamics using authoritative distributions from the Copernicus Climate Change Service (<xref ref-type="bibr" rid="CIT0003">2023</xref>) rainfall climatology, ECMWF Reanalysis 5 (European Centre for Medium-Range Weather Forecasts Reanalysis, version 5) (ERA5) reanalysis, World Bank EdStats (<xref ref-type="bibr" rid="CIT0016">2023</xref>) and United Nations Children&#x2019;s Fund (UNICEF) Multiple Indicator Cluster Surveys (MICS) patterns (UNICEF <xref ref-type="bibr" rid="CIT0014">2015</xref>).</p>
<p>The proposed Climate-Informed Early Action (CIEA) framework operates on a three-tier processing logic designed to overcome the static nature of traditional evaluation methods (see <xref ref-type="fig" rid="F0001">Figure 1</xref>).</p>
<fig id="F0001">
<label>FIGURE 1</label>
<caption><p>Artificial intelligence-integrated evaluation algorithm workflow.</p></caption>
<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="AEJ-14-858-g001.tif"/>
</fig>
<sec id="s30015">
<title>Ingestion layer (multi-modal)</title>
<p>The system is architected to ingest two distinct streams of data:</p>
<list list-type="bullet">
<list-item><p>Structured Project Data: Quantitative metrics such as daily attendance registers, teacher availability logs and infrastructure status reports (ingested via Comma-Separated Values [CSV]/Structured Query Language [SQL]).</p></list-item>
<list-item><p>Unstructured Environmental Data: The system utilises Application Programming Interface (API) connectors to fetch meteorological data (e.g. daily precipitation, wind speed and soil moisture anomalies) from the World Bank Climate Knowledge Portal and ERA5 reanalysis datasets.</p></list-item>
</list>
</sec>
<sec id="s30016">
<title>Processing layer (temporal alignment)</title>
<p>A core innovation of this framework is &#x2018;Temporal Shock Alignment&#x2019;. Standard educational evaluations often aggregate attendance by term (e.g. &#x2018;Term 1 Average&#x2019;), obscuring specific weeks where climate events disrupt learning. The CIEA aligns daily weather anomalies (e.g. wind speed spikes &#x003E; 80 km/h) specifically with the academic calendar to identify &#x2018;climate-induced absenteeism&#x2019; (<xref ref-type="app" rid="app001">Appendix 1</xref>).</p>
</sec>
<sec id="s30017">
<title>Analytical layer (ensemble learning)</title>
<p>The system utilises a Random Forest Regressor model. This non-linear ML algorithm is selected for its robustness in handling high-dimensional interactions. It is specifically designed to detect thresholds &#x2013; for example, identifying that light rain does not affect attendance, but precipitation exceeding 50 mm/day combined with poor road infrastructure causes a 90&#x0025; drop in access.</p>
</sec>
</sec>
<sec id="s20018">
<title>Case study: Kenya county-level climate&#x2013;education panel</title>
<p>A monthly dataset for counties in Kenya (Kenya Ministry of Education <xref ref-type="bibr" rid="CIT0006">2021</xref>) over 24 months. Each row represents a county&#x2013;month observation and contains:</p>
<list list-type="bullet">
<list-item><p>Climate indicators:
<list list-type="simple">
<list-item><label>&#x25A0;</label><p>Rainfall (mm)</p></list-item>
<list-item><label>&#x25A0;</label><p>Rainfall anomaly (standardised deviation from climatology)</p></list-item>
<list-item><label>&#x25A0;</label><p>1-month lagged rainfall anomaly</p></list-item>
<list-item><label>&#x25A0;</label><p>Temperature anomaly (&#x00B0;C)</p></list-item>
<list-item><label>&#x25A0;</label><p>Drought index (0&#x2013;1)</p></list-item>
<list-item><label>&#x25A0;</label><p>Flood occurrence (0/1)</p></list-item>
<list-item><label>&#x25A0;</label><p>3-month rolling rainfall anomaly</p></list-item>
</list></p></list-item>
</list>
<p>Climate shocks were simulated using probability distributions calibrated to East African rainfall seasonality (long rains March&#x2013;May, short rains October&#x2013;December), ensuring realism consistent with CHIRPS (Copernicus Climate Change Service <xref ref-type="bibr" rid="CIT0003">2023</xref>) and ERA5 spatial structure (CHIRPS <xref ref-type="bibr" rid="CIT0002">2023</xref>):</p>
<list list-type="bullet">
<list-item><p>Socio-economic indicators:
<list list-type="simple">
<list-item><label>&#x25A0;</label><p>Poverty rate</p></list-item>
<list-item><label>&#x25A0;</label><p>Resilience index</p></list-item>
<list-item><label>&#x25A0;</label><p>Random socio-economic shock indicator (0/1).</p></list-item>
</list></p></list-item>
<list-item><p>Education outcome:
<list list-type="simple">
<list-item><label>&#x25A0;</label><p>County attendance rate (&#x0025;) &#x2013; chosen because it is directly climate-sensitive and consistently reported in Kenyan datasets.</p></list-item>
</list></p></list-item>
</list>
</sec>
<sec id="s20019">
<title>Feature engineering</title>
<p>To capture short-term and cumulative climate effects, the following engineered variables were added:</p>
<list list-type="bullet">
<list-item><p>Lagged rainfall anomaly (<italic>t</italic>&#x2013;1) to capture delayed drought impacts.</p></list-item>
<list-item><p>3-month rolling rainfall anomaly as a proxy for cumulative wet/dry spells.</p></list-item>
<list-item><p>Normalised seasonal deviations per county.</p></list-item>
</list>
</sec>
<sec id="s20020">
<title>Machine learning modelling</title>
<p>Machine learning modelling is the process of using algorithms to automatically learn patterns from data, then building and refining a predictive or decision-making model that can generalise those patterns to make accurate predictions or classifications on new, unseen data (see <xref ref-type="fig" rid="F0002">Figure 2</xref>).</p>
<fig id="F0002">
<label>FIGURE 2</label>
<caption><p>Machine learning workflow.</p></caption>
<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="AEJ-14-858-g002.tif"/>
</fig>
<p>Two models were trained:</p>
<list list-type="bullet">
<list-item><p>Random Forest Regressor (<italic>n</italic> = 150 trees, max_depth = 8)</p></list-item>
<list-item><p>Linear Regression (baseline)</p></list-item>
</list>
<p>The Random Forest captures non-linear relationships between climate shocks and attendance.</p>
</sec>
<sec id="s20021">
<title>Model selection and rationale</title>
<p>Contrary to &#x2018;black box&#x2019; deep learning approaches, this study selects Ensemble Learning techniques for their interpretability and robustness with small datasets, which are common in development projects:</p>
<list list-type="bullet">
<list-item><p>Primary model: Random forest regressor:
<list list-type="simple">
<list-item><label>&#x25A0;</label><p><bold>Application:</bold> Used for predicting expected outcomes (e.g. crop yields) based on climatic variables.</p></list-item>
<list-item><label>&#x25A0;</label><p><bold>Rationale:</bold> Random Forest was selected over linear regression because climate impacts are often non-linear (e.g. rainfall is beneficial up to a point, after which it becomes destructive flooding). Random Forest handles these non-linearities and interactions between variables (e.g. high heat + low moisture) without requiring extensive parameter tuning.</p></list-item>
</list></p></list-item>
<list-item><p>Secondary Model: Natural Language Processing (NLP):
<list list-type="simple">
<list-item><label>&#x25A0;</label><p><bold>Application:</bold> Analysis of qualitative survey text (e.g. &#x2018;The rains came late&#x2019;).</p></list-item>
<list-item><label>&#x25A0;</label><p><bold>Rationale:</bold> A TF-IDF (Term Frequency-Inverse Document Frequency) vectoriser is employed to identify key climate-related terms in field officer reports, flagging climate risks that quantitative data might miss.</p></list-item>
</list></p></list-item>
</list>
</sec>
<sec id="s20022">
<title>Counterfactual climate impact model</title>
<p>To quantify climate-attributable education loss, a counterfactual scenario was generated by resetting all climate-shock variables to neutral (zero-anomaly):</p>
<list list-type="bullet">
<list-item><p>rainfall_anomaly = 0</p></list-item>
<list-item><p>rainfall_anom_lag1 = 0</p></list-item>
<list-item><p>temp_anomaly = 0</p></list-item>
<list-item><p>drought_index = 0</p></list-item>
<list-item><p>flood = 0</p></list-item>
</list>
<p>The difference between predicted actual attendance and counterfactual attendance represents the climate-attributable impact.</p>
</sec>
<sec id="s20023">
<title>Climate-sensitive evaluation through artificial intelligence-generated counterfactuals</title>
<p>This study introduces a novel evaluation innovation: the Counterfactual Climate Impact Model (CCIM).</p>
<p>Unlike traditional evaluations &#x2013; which rely on historical comparisons or non-experimental designs &#x2013; CCIM uses ML to generate synthetic counterfactual programme outcomes under climate-neutral conditions. This allows evaluators to:</p>
<list list-type="bullet">
<list-item><p>Quantify climate-attributable losses in education outcomes.</p></list-item>
<list-item><p>Distinguish climate effects from programme or socio-economic effects.</p></list-item>
<list-item><p>Identify non-linear thresholds (e.g. when rainfall anomaly &#x003E; 0.6 triggers flood-related disruptions).</p></list-item>
<list-item><p>Automatically detect high-risk geographies using unsupervised clustering.</p></list-item>
</list>
<p>This positions AI as a direct contributor to Sustainable Development Goal (SDG) 4 (education) and SDG 13 (climate action) by enabling real-time, climate-aware evaluation frameworks for governments in the Global South.</p>
<sec id="s30024">
<title>Limitations and constraints</title>
<p>In the spirit of rigorous academic inquiry, the study acknowledges several limitations inherent in the proposed framework:</p>
<list list-type="bullet">
<list-item><p><bold>Data sparsity in the Global South:</bold> While satellite reanalysis data (like ERA5) provides coverage, the lack of ground-truth meteorological stations in rural Africa can lead to localised inaccuracies. The algorithm may struggle to detect microclimates in highly mountainous regions.</p></list-item>
<list-item><p><bold>Attribution error:</bold> While the algorithm can detect <italic>correlations</italic> between weather shocks and project failure, it cannot definitively prove <italic>causation</italic>. There is a risk of &#x2018;False Positives&#x2019;, where the system attributes poor results to climate change when the root cause was actually poor project management (e.g. late delivery of fertiliser).</p></list-item>
<list-item><p><bold>Digital divide:</bold> The proposed real-time dashboard requires consistent internet connectivity. In remote evaluation contexts, offline-first capabilities would need to be developed to make the tool practical for field enumerators.</p></list-item>
</list>
</sec>
</sec>
<sec id="s20025">
<title>Ethical considerations</title>
<p>This study involved the development of an AI algorithm. As such, it did not involve direct interaction with human subjects or the collection of primary data from individuals. However, the study did consider several ethical considerations related to the potential development and deployment of such an algorithm in the future:</p>
<list list-type="bullet">
<list-item><p><bold>Data privacy and security:</bold> The algorithm is designed to process potentially sensitive data, including climate data, socio-economic data and project-level data. The study emphasised the importance of ensuring the privacy and security of this data. The algorithm design incorporates principles of data minimisation, meaning that only the data strictly necessary for the analysis should be collected and processed. It also emphasises the need for robust data security measures to protect against unauthorised access and use.</p></list-item>
<list-item><p><bold>Transparency and explainability:</bold> Artificial intelligence algorithms, particularly complex ML models, can sometimes be &#x2018;black boxes&#x2019;, making it difficult to understand how they arrive at their conclusions. The study stressed the importance of transparency and explainability in the design of the algorithm. The algorithm should be designed in a way that allows users to understand the logic behind its outputs and to trace the flow of data through the system. This is crucial for ensuring accountability and building trust in the algorithm&#x2019;s results.</p></list-item>
<list-item><p><bold>Bias and fairness:</bold> Artificial intelligence algorithms can perpetuate and even amplify existing biases in the data they are trained on. The study acknowledged the potential for bias in the data used by the algorithm, such as historical climate data or socio-economic indicators. The algorithm design incorporates strategies for mitigating bias, such as data pre-processing techniques to balance the data, and the use of ML models that are less prone to bias. The study also emphasises the need for ongoing M&#x0026;E of the algorithm&#x2019;s performance to ensure fairness and equity.</p></list-item>
<list-item><p><bold>Accountability and responsibility:</bold> The use of AI in evaluation raises questions of accountability and responsibility. Who is responsible for the outputs of the algorithm, and how should errors or inaccuracies be addressed? The study emphasised the need for clear lines of accountability in the deployment of the algorithm. It also stressed the importance of human oversight and the need for evaluators to exercise professional judgement in interpreting and using the algorithm&#x2019;s results. The algorithm is intended to be a tool to support human decision-making, not to replace it.</p></list-item>
<list-item><p><bold>Potential for misuse:</bold> Like any technology, AI can be misused. The study acknowledged the potential for the algorithm to be used in ways that could have negative consequences, such as for political manipulation or to justify harmful policies. The study emphasised the need for ethical guidelines and regulations to govern the use of AI in evaluation, and for ongoing dialogue and debate about the ethical implications of this technology.</p></list-item>
</list>
<p>While this study focused on the conceptual development of the algorithm, these ethical considerations were central to its design and will need to be thoroughly addressed in any future implementation.</p>
</sec>
</sec>
<sec id="s0026">
<title>Results</title>
<sec id="s20027">
<title>Model performance</title>
<p>The Random Forest demonstrated strong predictive performance:</p>
<list list-type="bullet">
<list-item><p>Random Forest <italic>R</italic><sup>2</sup> = 0.671</p></list-item>
<list-item><p>Random Forest Root Mean Square Error (RMSE) = 0.042</p></list-item>
</list>
<p>This substantially outperformed the linear regression baseline:</p>
<list list-type="bullet">
<list-item><p>Linear Regression <italic>R</italic><sup>2</sup> = 0.492</p></list-item>
<list-item><p>Linear Regression RMSE = 0.053</p></list-item>
</list>
<p>These results indicate that climate&#x2013;attendance relationships are non-linear, validating the use of ML for climate-responsive evaluation.</p>
</sec>
<sec id="s20028">
<title>Feature importance</title>
<p>The top predictors of attendance were:</p>
<list list-type="bullet">
<list-item><p>Resilience index (0.322)</p></list-item>
<list-item><p>Drought index (0.238)</p></list-item>
<list-item><p>Flood occurrence (0.187)</p></list-item>
<list-item><p>Temperature anomaly (0.070)</p></list-item>
<list-item><p>Poverty rate (0.067)</p></list-item>
</list>
<p>The dominance of drought and flood signals confirms the high sensitivity of educational participation to weather extremes, aligning with climate vulnerability patterns in ASAL (Arid and Semi-Arid Lands) counties.</p>
</sec>
<sec id="s20029">
<title>Climate impact counterfactuals</title>
<p>Using the CCIM:</p>
<list list-type="bullet">
<list-item><p>Mean climate-attributable attendance loss: &#x2013;0.0133</p></list-item>
<list-item><p>Median loss: &#x2013;0.0093</p></list-item>
<list-item><p>Share of negative impacts: 51.3&#x0025; of all county-month observations</p></list-item>
</list>
<p>This shows that climate variability significantly depresses school attendance in roughly half of all months nationally.</p>
</sec>
<sec id="s20030">
<title>County climate-risk clustering</title>
<p>A K-Means clustering model identified three climate-risk county groups:</p>
<list list-type="bullet">
<list-item><p>Cluster 1: Drought-Sensitive Counties</p></list-item>
<list-item><p>Persistently high drought indices and moderate attendance loss.</p></list-item>
<list-item><p>Cluster 2: Flood-Prone Counties</p></list-item>
<list-item><p>High rainfall anomalies and frequent attendance disruptions.</p></list-item>
<list-item><p>Cluster 3: Stable Counties</p></list-item>
<list-item><p>Low shock frequency and higher attendance.</p></list-item>
</list>
<p>In <xref ref-type="table" rid="T0001">Table 1</xref>, traditional evaluations typically rely on static indicators, periodic data collection and linear analyses. These methods often overlook non-linear climate interactions and struggle to account for rapidly changing environmental conditions.</p>
<table-wrap id="T0001">
<label>TABLE 1</label>
<caption><p>Comparison to traditional evaluation approaches.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left">S/n</th>
<th valign="top" align="left">Traditional evaluations</th>
<th valign="top" align="left">AI-driven approach</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">1.</td>
<td align="left">Use static, periodic data collection.</td>
<td align="left">Continuous, real-time monitoring.</td>
</tr>
<tr>
<td align="left">2.</td>
<td align="left">Analyse climate context descriptively rather than analytically.</td>
<td align="left">Non-linear modelling capabilities.</td>
</tr>
<tr>
<td align="left">3.</td>
<td align="left">Apply linear models that miss non-linear climate relationships.</td>
<td align="left">Integration of high-resolution climate data.</td>
</tr>
<tr>
<td align="left">4.</td>
<td align="left">Struggle to detect rapid climate-induced changes.</td>
<td align="left">Predictive insights and scenario analysis.</td>
</tr>
<tr>
<td align="left">5.</td>
<td align="left">-</td>
<td align="left">Automated identification of climate-risk patterns.</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn><p>AI, artificial intelligence.</p></fn>
</table-wrap-foot>
</table-wrap>
</sec>
</sec>
<sec id="s0031">
<title>Conclusion</title>
<p>The AI-driven algorithm presents a promising pathway for climate-integrated evaluations in Africa. Through ML techniques, evaluators can detect climate-related drivers, enhance predictive capabilities and support climate-resilient decision-making. As climate risks escalate, evaluation systems must evolve towards data-rich, adaptive and predictive models. Future research should implement pilot applications and refine the algorithm through co-creation with evaluators, climate scientists and policymakers.</p>
</sec>
</body>
<back>
<ack>
<title>Acknowledgements</title>
<p>The author would like to acknowledge Genesis Analytics and the African Evaluation Association (AfrEA) for providing them with the platform and opportunity to contribute to advancing the discourse on integrating climate change into evaluation. Their commitment to fostering innovation and supporting emerging ideas has been invaluable in shaping this work.</p>
<p>This article is based on a conference paper originally presented at the 11th African Evaluation Association (AfrEA) Conference, held in Kigali, Rwanda, on 18 &#x2013; 22 March 2024. The conference paper, titled &#x2018;The Role of Big Data and AI in Evaluation Practice in Africa&#x2019;, was subsequently expanded and revised for this journal publication. This republication is done with permission from the conference organisers.</p>
<sec id="s20032" sec-type="COI-statement">
<title>Competing interests</title>
<p>The author, Chineme A. Anowai, disclosed receipt of financial support from The Rockefeller Foundation through a grant to Genesis Analytics. The author declares that they have no other financial or personal relationships that may have inappropriately influenced them in writing this article.</p>
</sec>
<sec id="s20033">
<title>CRediT authorship contribution</title>
<p>Chineme A. Anowai: Conceptualisation, Methodology, Formal analysis, Investigation, Software, Writing &#x2013; original draft, Writing &#x2013; review &#x0026; editing. The author confirms that this work is entirely their own, has reviewed the article, approved the final version for submission and publication, and takes full responsibility for the integrity of its findings.</p>
</sec>
<sec id="s20034" sec-type="data-availability">
<title>Data availability</title>
<p>The data that support the findings of this study are available from the corresponding author, Chineme A. Anowai, upon reasonable request.</p>
</sec>
<sec id="s20035">
<title>Disclaimer</title>
<p>The views and opinions expressed in this article are those of the author and are the product of professional research. It does not necessarily reflect the official policy or position of any affiliated institution, funder, agency or that of the publisher. The author is responsible for this article&#x2019;s results, findings and content.</p>
</sec>
</ack>
<ref-list id="references">
<title>References</title>
<ref id="CIT0001"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Chilisa</surname>, <given-names>B</given-names></string-name></person-group>., <year>2015</year>, <source><italic>A Synthesis Paper on the Made in Africa Evaluation Concept Commissioned by African Evaluation Association (AfrEA)</italic></source>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="https://africasocialwork.net/wp-content/uploads/2024/01/MAE2-Final-31st-august-1.pdf">https://africasocialwork.net/wp-content/uploads/2024/01/MAE2-Final-31st-august-1.pdf</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0002"><mixed-citation publication-type="book"><person-group person-group-type="author"><collab>Climate Hazards Group InfraRed Precipitation with Station Data (CHIRPS)</collab></person-group>, <year>2023</year>, <source><italic>CHIRPS rainfall dataset (Version 2.0)</italic></source>, <publisher-name>Santa Barbara Climate Hazards Center, University of California</publisher-name>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="https://www.chc.ucsb.edu/data/chirps">https://www.chc.ucsb.edu/data/chirps</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0003"><mixed-citation publication-type="journal"><person-group person-group-type="author"><collab>Copernicus Climate Change Service</collab></person-group>, <year>2023</year>, <source><italic>ERA5 hourly data on single levels from 1940 to present</italic></source>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview">https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0004"><mixed-citation publication-type="book"><person-group person-group-type="author"><collab>Global Pulse</collab></person-group>, <year>2023</year>, <source><italic>Artificial intelligence for development in Africa: State of the field</italic></source>, <publisher-name>UN Global Pulse</publisher-name>, <publisher-loc>New York, NY</publisher-loc>.</mixed-citation></ref>
<ref id="CIT0005"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hevner</surname>, <given-names>A.R</given-names></string-name>., <string-name><surname>March</surname>, <given-names>S.T</given-names></string-name>., <string-name><surname>Park</surname>, <given-names>J</given-names></string-name>. &#x0026; <string-name><surname>Ram</surname>, <given-names>S</given-names></string-name></person-group>., <year>2004</year>, &#x2018;<article-title>Design science in information systems research</article-title>&#x2019;, <source><italic>MIS Quarterly</italic></source> <volume>28</volume>(<issue>1</issue>), <fpage>75</fpage>&#x2013;<lpage>105</lpage>. <comment><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/25148625">https://doi.org/10.2307/25148625</ext-link></comment></mixed-citation></ref>
<ref id="CIT0006"><mixed-citation publication-type="book"><person-group person-group-type="author"><collab>Kenya Ministry of Education</collab></person-group>, <year>2021</year>, <source><italic>Kenya education statistical booklet</italic></source>, <publisher-name>Government of Kenya</publisher-name>, <publisher-loc>Nairobi</publisher-loc>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="http://nemis.education.go.ke">http://nemis.education.go.ke</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0007"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kenne</surname>, <given-names>A.D</given-names></string-name>., <string-name><surname>Toure</surname>, <given-names>M</given-names></string-name>., <string-name><surname>Logamou Seknewna</surname>, <given-names>L</given-names></string-name>. &#x0026; <string-name><surname>Ketsemen</surname>, <given-names>H.L</given-names></string-name></person-group>., <year>2024</year>, &#x2018;<article-title>Subseasonal prediction of summer temperature in West Africa using artificial intelligence: A case study of Senegal</article-title>&#x2019;, <source><italic>International Journal of Intelligent Systems</italic></source> <volume>2024</volume>(<issue>1</issue>), <fpage>8869267</fpage>.</mixed-citation></ref>
<ref id="CIT0008"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mouton</surname>, <given-names>J</given-names></string-name>., <string-name><surname>Wildschut</surname>, <given-names>L</given-names></string-name>. &#x0026; <string-name><surname>Agyepong</surname>, <given-names>I</given-names></string-name></person-group>., <year>2019</year>, &#x2018;<article-title>Evaluation in Africa</article-title>&#x2019;, <source><italic>African Evaluation Journal</italic></source> <volume>7</volume>(<issue>1</issue>), <fpage>1</fpage>&#x2013;<lpage>10</lpage>.</mixed-citation></ref>
<ref id="CIT0009"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mutanga</surname>, <given-names>M.B</given-names></string-name></person-group>., <year>2022</year>, &#x2018;<article-title>Machine learning for climate resilience in Southern Africa</article-title>&#x2019;, <source><italic>Climate and Development</italic></source> <volume>14</volume>(<issue>3</issue>), <fpage>210</fpage>&#x2013;<lpage>225</lpage>.</mixed-citation></ref>
<ref id="CIT0010"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Nalubega</surname>, <given-names>T</given-names></string-name>. &#x0026; <string-name><surname>Uwizeyimana</surname>, <given-names>D</given-names></string-name></person-group>., <year>2019</year>, &#x2018;<article-title>Public sector monitoring in the fourth industrial revolution</article-title>&#x2019;, <source><italic>Public Service Delivery and Performance Review</italic></source> <volume>7</volume>(<issue>1</issue>), <fpage>1</fpage>&#x2013;<lpage>12</lpage>. <comment><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.4102/apsdpr.v7i1.318">https://doi.org/10.4102/apsdpr.v7i1.318</ext-link></comment></mixed-citation></ref>
<ref id="CIT0011"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Olawade</surname>, <given-names>D.B</given-names></string-name>., <string-name><surname>Wada</surname>, <given-names>O.Z</given-names></string-name>., <string-name><surname>David-Olawade</surname>, <given-names>A.C</given-names></string-name>., <string-name><surname>Fapohunda</surname>, <given-names>O</given-names></string-name>., <string-name><surname>Ige</surname>, <given-names>A.O</given-names></string-name>. &#x0026; <string-name><surname>Ling</surname>, <given-names>J</given-names></string-name></person-group>., <year>2024</year>, &#x2018;<article-title>AI potential for sustainability</article-title>&#x2019;, <source><italic>Next Sustainability</italic></source> <volume>4</volume>(<issue>1</issue>), <fpage>100041</fpage>. <comment><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.nxsust.2024.100041">https://doi.org/10.1016/j.nxsust.2024.100041</ext-link></comment></mixed-citation></ref>
<ref id="CIT0012"><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Patton</surname>, <given-names>M.Q</given-names></string-name></person-group>., <year>2019</year>, <source><italic>Blue marble evaluation: Premises and principles</italic></source>, <publisher-name>Guilford Press</publisher-name>, <publisher-loc>New York, NY</publisher-loc>.</mixed-citation></ref>
<ref id="CIT0013"><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tamasiga</surname>, <given-names>P</given-names></string-name>., <string-name><surname>Molala</surname>, <given-names>M</given-names></string-name>., <string-name><surname>Bakwena</surname>, <given-names>M</given-names></string-name>., <string-name><surname>Nkoutchou</surname>, <given-names>H</given-names></string-name>. &#x0026; <string-name><surname>Onyeaka</surname>, <given-names>H</given-names></string-name></person-group>., <year>2023</year>, &#x2018;<article-title>Is Africa left behind in the global climate finance architecture? Redefining climate vulnerability and revamping the climate finance landscape&#x2014;A comprehensive review</article-title>&#x2019;, <source><italic>Sustainability</italic></source> <volume>15</volume>(<issue>17</issue>), <fpage>13036</fpage>. <comment><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/su151713036">https://doi.org/10.3390/su151713036</ext-link></comment></mixed-citation></ref>
<ref id="CIT0014"><mixed-citation publication-type="book"><person-group person-group-type="author"><collab>United Nations Children&#x2019;s Fund (UNICEF)</collab></person-group>, <year>2015</year>, <source><italic>Education and climate change</italic></source>, <publisher-name>UNICEF</publisher-name>, <publisher-loc>New York</publisher-loc>.</mixed-citation></ref>
<ref id="CIT0015"><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Venegas Marin</surname>, <given-names>S</given-names></string-name>., <string-name><surname>Schwarz</surname>, <given-names>L</given-names></string-name>. &#x0026; <string-name><surname>Sabarwal</surname>, <given-names>S</given-names></string-name></person-group>., <year>2024</year>, <source><italic>The impact of climate change on education and what to do about it</italic></source>, <publisher-name>World Bank Group</publisher-name>, <publisher-loc>Washington, DC</publisher-loc>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="http://documents.worldbank.org/curated/en/099043024150036726">http://documents.worldbank.org/curated/en/099043024150036726</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0016"><mixed-citation publication-type="journal"><person-group person-group-type="author"><collab>World Bank</collab></person-group>, <year>2023</year>, <source><italic>EdStats: Education statistics database</italic></source>, <comment>viewed n.d., from <ext-link ext-link-type="uri" xlink:href="https://datatopics.worldbank.org/education">https://datatopics.worldbank.org/education</ext-link>.</comment></mixed-citation></ref>
<ref id="CIT0017"><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>York</surname>, <given-names>P</given-names></string-name>. &#x0026; <string-name><surname>Bamberger</surname>, <given-names>M</given-names></string-name></person-group>., <year>2020</year>, <source><italic>Measuring results and impact in the age of big data: The nexus of evaluation, analytics, and digital technology</italic></source>, <publisher-name>Rockefeller Foundation</publisher-name>, <publisher-loc>New York, NY</publisher-loc>.</mixed-citation></ref>
</ref-list>
<app-group>
<app id="app001">
<title>Appendix 1</title>
<sec id="s20037">
<title>Python implementation logic for climate-integrated evaluation</title>
<p>The following code snippet demonstrates the core logic used in the &#x2018;Processing Layer&#x2019; of the algorithm. It utilises the pandas library for data manipulation and scikit-learn for the Random Forest regression model used in the Malawi simulation.</p>
<p>{</p>
<p><italic>import pandas as pd</italic></p>
<p><italic>import numpy as np</italic></p>
<p><italic>from sklearn.ensemble import RandomForestRegressor</italic></p>
<p><italic>from sklearn.model_selection import train_test_split</italic></p>
<p><italic>from sklearn.metrics import mean_squared_error</italic></p>
<p><italic>class ClimateEvaluationModel:</italic></p>
<p>&#x2003;<italic>def __init__(self):</italic></p>
<p>&#x2003;&#x2003;<italic># Initialise Random Forest Regressor</italic></p>
<p>&#x2003;&#x2003;<italic># n_estimators=100 ensures robustness against noise</italic></p>
<p>&#x2003;&#x2003;<italic>self.model = RandomForestRegressor(n_estimators=100, random_state=42)</italic></p>
<p>&#x2003;<italic>def temporal_alignment(self, project_data, climate_data):</italic></p>
<p>&#x2003;&#x2003;<italic>&#x2032;&#x2032;&#x2032;</italic></p>
<p>&#x2003;&#x2003;<italic>Aligns static project data with dynamic daily climate data</italic>.</p>
<p>&#x2003;&#x2003;<italic>Maps specific &#x2018;planting_date&#x2019; to relevant weather windows</italic>.</p>
<p>&#x2003;&#x2003;<italic>&#x2032;&#x2032;&#x2032;</italic></p>
<p>&#x2003;&#x2003;<italic>print(&#x201C;--- Step 1: Performing Phenological Temporal Alignment ---&#x201D;)</italic></p>
<p>&#x2003;&#x2003;<italic>merged_data = pd.merge(project_data, climate_data, on=&#x2019;region_id&#x2019;)</italic></p>
<p>&#x2003;&#x2003;<italic># Feature Engineering: Calculate &#x2018;Shock Intensity&#x2019; during critical growth phase</italic></p>
<p>&#x2003;&#x2003;<italic># (e.g., rainfall deviation during flowering stage)</italic></p>
<p>&#x2003;&#x2003;<italic>merged_data[&#x2018;shock_intensity&#x2019;] = (</italic></p>
<p>&#x2003;&#x2003;<italic>merged_data[&#x2018;rainfall_actual&#x2019;] - merged_data[&#x2018;rainfall_historical_avg&#x2019;]</italic></p>
<p>&#x2003;&#x2003;<italic>) / merged_data[&#x2018;rainfall_historical_avg&#x2019;]</italic></p>
<p>&#x2003;&#x2003;<italic>return merged_data</italic></p>
<p>&#x2003;<italic>def train_and_predict(self, df):</italic></p>
<p>&#x2003;&#x2003;<italic>&#x2032;&#x2032;&#x2032;</italic></p>
<p>&#x2003;&#x2003;<italic>Trains the model to predict &#x2018;Expected Yield&#x2019; based on climate severity</italic>.</p>
<p>&#x2003;&#x2003;<italic>&#x2032;&#x2032;&#x2032;</italic></p>
<p>&#x2003;&#x2003;<italic>print(&#x201C;--- Step 2: Training Random Forest Model ---&#x201D;)</italic></p>
<p>&#x2003;&#x2003;<italic># Features: Climate inputs + Input usage (fertiliser, seeds)</italic></p>
<p>&#x2003;&#x2003;<italic>X = df[[&#x2018;rainfall_actual&#x2019;, &#x2018;wind_speed&#x2019;, &#x2018;temp_max&#x2019;, &#x2018;input_usage_score&#x2019;]]</italic></p>
<p>&#x2003;&#x2003;<italic># Target: Crop Yield</italic></p>
<p>&#x2003;&#x2003;<italic>y = df[&#x2018;crop_yield_kg_ha&#x2019;]</italic></p>
<p>&#x2003;&#x2003;<italic>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)</italic></p>
<p>&#x2003;&#x2003;<italic>self.model.fit(X_train, y_train)</italic></p>
<p>&#x2003;&#x2003;<italic># Generate Counterfactual: What would yield be purely based on climate?</italic></p>
<p>&#x2003;&#x2003;<italic>baseline_prediction = self.model.predict(X_test)</italic></p>
<p>&#x2003;&#x2003;<italic>return y_test, baseline_prediction</italic></p>
<p><italic># --- SIMULATION EXECUTION (Malawi Scenario) ---</italic></p>
<p><italic># 1. Generate Dummy Data mimicking Cyclone Freddy impact</italic></p>
<p><italic>data = {</italic></p>
<p>&#x2003;<italic>&#x2018;region_id&#x2019;: range(100)</italic>,</p>
<p>&#x2003;<italic>&#x2018;rainfall_actual&#x2019;: np.random.normal(300, 50, 100), # Extreme rainfall (mm)</italic></p>
<p>&#x2003;<italic>&#x2018;wind_speed&#x2019;: np.random.normal(80, 15, 100), # Cyclone winds (km/h)</italic></p>
<p>&#x2003;<italic>&#x2018;temp_max&#x2019;: np.random.normal(28, 2, 100)</italic>,</p>
<p>&#x2003;<italic>&#x2018;input_usage_score&#x2019;: np.random.uniform(0.5, 1.0, 100)</italic>,</p>
<p>&#x2003;<italic>&#x2018;rainfall_historical_avg&#x2019;: [100] * 100, # Normal average</italic></p>
<p>&#x2003;<italic>&#x2018;crop_yield_kg_ha&#x2019;: np.random.normal(1200, 200, 100) # Depressed yields</italic></p>
<p><italic>}</italic></p>
<p><italic>df_simulated = pd.DataFrame(data)</italic></p>
<p><italic># 2. Run the Model</italic></p>
<p><italic>evaluator = ClimateEvaluationModel()</italic></p>
<p><italic>processed_data = evaluator.temporal_alignment(df_simulated, df_simulated[[&#x2018;region_id&#x2019;, &#x2018;rainfall_historical_avg&#x2019;]])</italic></p>
<p><italic>actuals, predictions = evaluator.train_and_predict(df_simulated)</italic></p>
<p><italic># 3. Calculate Resilience Score</italic></p>
<p><italic># If Actual Yield &#x003E; Predicted Baseline (given the storm), project is Resilient</italic>.</p>
<p><italic>resilience_delta = np.mean(actuals - predictions)</italic></p>
<p><italic>print(f&#x201D;\n--- RESULTS ---&#x201D;)</italic></p>
<p><italic>print(f&#x201D;Average Predicted Yield (Baseline under Storm): {np.mean(predictions):.2f} kg/ha&#x201D;)</italic></p>
<p><italic>print(f&#x201D;Average Actual Yield (Project Beneficiaries): {np.mean(actuals):.2f} kg/ha&#x201D;)</italic></p>
<p><italic>print(f&#x201D;Resilience Delta: +{resilience_delta:.2f} kg/ha&#x201D;)</italic></p>
<p><italic>if resilience_delta &#x003E; 0:</italic></p>
<p>&#x2003;<italic>print(&#x201C;CONCLUSION: Project demonstrates resilience against climate-shock.&#x201D;)</italic></p>
<p><italic>else:</italic></p>
<p>&#x2003;<italic>print(&#x201C;CONCLUSION: Project failed to mitigate climate-shock.&#x201D;) }</italic></p>
<p><italic>}}</italic></p>
</sec>
</app>
</app-group>
<fn-group>
<fn><p><bold>How to cite this article:</bold> Anowai, C.A., 2026, &#x2018;Machine learning algorithms for climate change integration in evaluation: A conceptual model and simulated case application in Africa&#x2019;, <italic>African Evaluation Journal</italic> 14(2), a858. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.4102/aej.v14i2.858">https://doi.org/10.4102/aej.v14i2.858</ext-link></p></fn>
<fn><p><bold>Note:</bold> The manuscript is a contribution to the themed collection titled &#x2018;Building the evidence base for climate solutions in Africa&#x2019;, under the expert guidance of guest editors Dr Caitlin Blaser Mapitsa, Ms Heather Michelle Conyers Dixon and Ms Tabitha Atieno Olang.</p></fn>
</fn-group>
</back>
</article>