1. Introduction
Climate change is one of the most pressing challenges of the 21st century, profoundly affecting natural environments, human societies, and economic systems. Over the past decades, human activities have significantly altered the atmospheric composition, primarily through greenhouse gas emissions from fossil fuel combustion, deforestation, and land-use changes [
1]. These processes trap heat, causing global warming and intensifying climate variability [
2]. Consequently, the frequency and intensity of daily temperature extremes have increased, while precipitation patterns have become more unpredictable and often more severe [
3].
The impacts of these changes extend beyond environmental degradation, affecting agriculture, water resources, biodiversity, and human health, particularly in regions reliant on stable climatic conditions. Understanding local impacts is critical, as global and regional assessments often fail to capture microclimatic variability that shapes adaptation strategies at the community level [
4]. Rural populations, for instance, perceive and experience climate change differently from urban populations, as their livelihoods are closely linked to agricultural productivity, water availability, and local ecosystem stability. Research indicates that rural communities often detect climate change through shifts in temperature and precipitation, including rising temperatures and declining or irregular rainfall [
5]. These localised changes have direct consequences for crop yields, soil health, and water supply, yet are frequently underrepresented in large-scale climate analyses.
South Africa is particularly susceptible to climate variability due to its geographic and climatic diversity, combined with socio-economic inequalities that exacerbate vulnerability. National and provincial studies provide insights into general climate trends, but they often overlook the localised fluctuations that affect small towns and rural areas [
6]. Thohoyandou, located in the Limpopo province, exemplifies such a region. Over the past decades, it has experienced significant variations in temperature and rainfall, which have implications for agriculture, water availability, biodiversity, and urban development [
5]. Despite its role as a regional economic and agricultural hub, there remains a lack of detailed localised climate research, particularly with respect to temperature and precipitation dynamics. These gaps hinder the capacity of local authorities and communities to plan for and mitigate the adverse effects of climate change.
Forecasting local weather patterns presents significant challenges. Traditional statistical and time series models, including Autoregressive Integrated Moving Average (ARIMA), Seasonal ARIMA (SARIMA), and Generalised Autoregressive Conditional Heteroskedasticity (GARCH), are widely applied due to computational efficiency and interpretability [
7]. However, these models rely on assumptions of linearity and stationarity, which often do not hold for climate variables characterised by complex, non-linear, and non-stationary behaviour. Similarly, Global Climate Models (GCMs) and statistical downscaling techniques provide useful projections but frequently fail to capture microclimatic variability at the scale of small towns, limiting their applicability for local adaptation and resource management [
8]. These methodological limitations have driven the adoption of machine learning (ML) approaches, which can model non-linear relationships and detect intricate patterns in large datasets.
Machine learning and artificial intelligence techniques have demonstrated superior predictive performance compared to traditional statistical methods in diverse applications, including load forecasting and climate modelling [
9,
10]. In Africa, ML has been successfully applied to rainfall and temperature forecasting. Studies in East Africa using Random Forest, Support Vector Regression, Gradient Boosting, and XGBoost have demonstrated high predictive accuracy for short-term rainfall forecasts [
11]. Research in West Africa employing recurrent neural networks (RNNs) and variants of the Kolmogorov-Arnold Network (KAN) has produced highly precise daily temperature and precipitation forecasts [
12]. These studies highlight the ability of ML models to uncover hidden patterns, capture temporal dependencies, and improve forecast skill, particularly in contexts where traditional models struggle with data sparsity or complex environmental interactions.
Despite these advances, key research gaps remain. In South Africa, most studies focus on long-term climatic trends, drought monitoring, or agricultural impacts, with limited application of ML to jointly forecast temperature and rainfall at a local level. Where ML has been applied, analyses often target broad regions or single variables, overlooking the importance of joint forecasting in smaller towns. Furthermore, ML applications in Africa are concentrated in East and West Africa, leaving Southern Africa comparatively underexplored. While global studies indicate that deep learning methods such as Artificial Neural Networks (ANN) and Long Short-Term Memory (LSTM) networks can achieve high accuracy in climate forecasting, their use in localised African contexts remains rare. This underscores the need for studies that integrate advanced ML techniques with extensive local weather data to support local decision-making and resilience planning.
The impacts of climate change in Thohoyandou are further compounded by socio-economic vulnerabilities. Infrastructure, water supply, and food security are increasingly threatened, disproportionately affecting communities where poverty and inequality are prevalent [
13]. Global climate models capture broad patterns but often fail to reflect localised trends critical for effective adaptation [
2,
14]. Applying ML algorithms to historical weather data allows detection of anomalies and subtle trends that may otherwise go unnoticed. The use of BEAST decomposition enables separation of systematic seasonal cycles from irregular events, providing a clear understanding of temperature and precipitation dynamics and supporting the identification of emergent patterns.
This study focuses on temperature and precipitation, two climate variables with direct implications for daily life, agriculture, and water resource management. Climate change has disrupted agricultural systems, affecting crop yields, pest and disease dynamics, and land productivity [
10]. Rising temperatures contribute to more frequent and severe heatwaves, reducing soil moisture and increasing irrigation demand, while global warming is expected to produce more intense and irregular precipitation events [
15,
16]. By integrating anomaly detection, BEAST decomposition, and ML models (ANN and LSTM), this research seeks to improve forecasting accuracy and reveal local manifestations of climate change.
The findings of this study are expected to contribute significantly to both local and global discussions on climate resilience. By analysing temperature and precipitation anomalies, highlighting deviations from expected seasonal behaviour, and identifying emerging trends, the research provides actionable insights for agricultural planning, water management, and community-level adaptation. Moreover, it demonstrates the value of combining anomaly analysis, decomposition methods, and advanced machine learning for localised climate studies, addressing existing gaps in Southern African climate research and supporting evidence-based strategies for sustainable development and resilience planning.