Comparative Study of Imputation Methods for Weather Forecasting Systems in the Adamawa Region, Cameroon

Abstract

Machine learning-based weather forecasting models are of paramount importance for almost all sectors of human activity. However, incorrect weather forecasts can have serious consequences on a global scale. The Adamawa region of Cameroon has suffered the consequences of erroneous forecasts, resulting in enormous losses and material damage. Missing or abnormal values are one of the problems that can contribute to the inaccuracy of weather forecasting models. Our objective is to provide a systematic view of how anomalies can affect the results of weather forecasting models and to compare imputation methods such as LinearRegressor, BayesianRidge, ExtraTreeRegressor (ETR), KNeighborsRegressor (KNR), DecisionTreeRegressor, KNNImputer, and MICE. The performance criteria used to evaluate these methods are RMSE and execution time. For the dataset, we generated four datasets with a specific anomaly rate. The abnormal values were transformed into missing values. Next, all the missing values were imputed using these different imputation methods, and then compared. Finally, the cleaned data was used by Machine learning-based forecasting models to generate forecast data. The results show that the imputation of anomalies in weather data is done in a reduced time, allowing for good quality weather data while improving the accuracy of weather forecasting models.

Share and Cite:

Tene, S. and Kamla, V. (2026) Comparative Study of Imputation Methods for Weather Forecasting Systems in the Adamawa Region, Cameroon. International Journal of Intelligence Science, 16, 107-131. doi: 10.4236/ijis.2026.161006.

1. Introduction

Erroneous weather forecasts can have severe global consequences, affecting agriculture, food security, water resource management, and increasing the risk of natural disasters [1]. Regarding natural disasters, according to WMO [2], between 1970 and 2019, there were 22,326 disasters that met the registration criteria, these events causing 4,607,671 deaths and $4.92 trillion in economic losses. In Africa, from 1970 to 2019, 1695 disasters claimed the lives of 731,747 people and caused economic losses of $38.5 billion [2].

However, the accuracy of weather forecasting models remains a major challenge [3]-[5]. Missing or abnormal values are one of the problems that can contribute to the deterioration of weather forecasting model performance, leading to erroneous or inaccurate weather forecasts.

According to the World Bank [6], most weather services in sub-Saharan African countries no longer meet the current needs for weather and climatic information. The data collected by these services are riddled with anomalies, which can be missing or abnormal values. Therefore, these data constitute a huge problem for weather forecasts. The origins of these anomalies are as follows: instrument failure (instrument malfunctions, insufficient maintenance, incorrect calibration) [7]-[10], environmental conditions (extreme conditions, physical obstacles, contamination) [8], human errors (reading errors, input errors, lack of training) [8] [9], and transmission problems (interference, insufficient bandwidth, and network outages) [8] [11]. Cameroon is one of the sub-Saharan countries.

The production of weather data is becoming an essential element of the development process in Cameroon [12]. According to estimates from the Department National of Meteorology (DNM) in 2014, more than 80% of the weather observation network in Cameroon is no longer used and needs to be renewed [12].

In the Adamawa region of Cameroon, there are four climate stations recognized by the DNM and the Ministry of Transport [12], among which we have the ASCENA weather station in Ngaoundere. In terms of observation means, these climate stations in the Adamaoua region face a number of problems that hinder the proper collection of weather data [12]. This includes the presence of anomalies in the weather data streams. This contributes to reducing the performance of the weather forecasting models in the weather forecasting systems.

Weather forecasting systems involve data collection, processing, storage, and analysis [13]. Data collection and processing are carried out using a weather station. The databases contained in the weather forecasting systems include observed and forecasted weather data. Forecast models use observed weather data to generate forecast data.

Several weather forecasting models have been proposed, including some based on machine learning. However, the presence of missing or abnormal values in weather data streams poses a major challenge to the accuracy of these models. Indeed, the presence of these values in the weather data stream can make weather forecasts inaccurate [5] [7]. According to (Alejandro et al., 2022) [1], machine learning-based weather forecasting models that are deployed in a real environment can become inaccurate due to the presence of anomalies in weather data streams. This argument was supported by (Ajina et al., 2023) [14], (Ravi et al., 2022) [15], and (Zhang et al., 2020) [16] when they stated that the presence of missing and abnormal values in weather data streams can make forecast weather data inaccurate. Thus, (Heinrigs, 2020) [17] believes that improving the accuracy of forecasts requires the availability of high-quality observational data. In the context of our work, missing and abnormal values are considered anomalies.

Our objective is to provide a systematic view of how anomalies can affect the results of weather forecasting models and to compare imputation methods such as LinearRegressor (LR) [18] [19], BayesianRidge (BR) [18], ExtraTreeRegressor (ETR) [18] [19], KNeighborsRegressor (KNR), DecisionTreeRegressor (DTR) [18] [19], KNNImputer (KNNI) [20] [21], and MICE [1] [20]. The performance criteria used to evaluate these methods are the RMSE and execution time. For the dataset, we generated four datasets with a specific anomaly rate. The abnormal values were transformed into missing values. And subsequently, all the missing values were imputed by these different imputation methods and then compared. So, the data cleaned using the best imputation method in terms of accuracy was used by our various machine learning-based weather forecasting models to produce forecast data in order to select the weather forecasting model best suited to the cleaned data. Subsequently, we will propose an architecture for a weather forecasting system equipped with a Real-Time Anomaly Detection and Correction Module. And finally, we will also propose a Real-Time Anomaly Detection and Correction Algorithm.

The structure of our research work is organized as follows. Section 2 presents related works. In this section, we will discuss the role of weather stations and then address the management of anomalies in the weather forecasting systems proposed by the authors. Section 3 presents the study area and the weather data used in this research work. The methodological framework used in our work, the anomalies in the weather data, the imputation methods used, the ML-based weather forecasting models for performing real-time weather forecast simulations from data cleaned by the ETR imputation method, the evaluation metrics and the tools used are presented in Section 4. Section 5 presents the results of this research work. Section 6 presents the discussion of this research work. Conclusion and future work of our research are presented in Section 7.

2. Related Work

Meteorology is the interdisciplinary science of atmospheric physics, which studies the state of the weather, the atmospheric environment, the phenomena produced, and the laws that govern them [22]. The process of measuring the weather is directly linked to the establishment of weather stations.

2.1. Weather Station

The weather station is an example of how science and technology are applied to understand and forecast local weather conditions [10] [23]. For the purpose of understanding and forecasting the weather in a region, the weather station is used to collect quantitative data on the local weather [23]. Figure 1 shows a weather station with its various components.

Figure 1. Weather station [24].

Observation data sets are essential in the weather forecasting process, as they provide a stream of information describing the current state of the atmosphere [25]. The collected data may be in raw form that cannot be directly entered into the forecasting models [26], as they may contain missing or abnormal values that are considered anomalies [26].

2.2. Anomalies in Weather Observation Data

With the rapid development of automatic data collection via the weather station, the problem of anomalies has become a considerable problem. The weather data observed from the weather sensors are not entirely credible [7]. Min-Ki et al. [7] mention that there are many anomalies in the weather data due to multiple defects in the weather forecasting systems. The origins of these anomalies are as follows: instrument failure [7]-[10], environmental conditions [8], human errors [8] [9], and transmission problems [8] [11].

In most weather stations, the data logger is usually configured to encode the missing sensor reading as an “impossible value”, usually a large negative value such as −999 [27]. Most often, different “impossible values” are used to encode different problems; that is, a value of −998 may indicate an offline sensor, while a value of −999 may encode a currently uninstalled sensor [27]. Anomalies can be either abnormal values (−999, −998) or missing values (NaN) present in weather observation data. However, these values disrupt weather forecasting models and degrade their performance.

The presence of anomalies can lead to biased estimates and misinterpretation of results [8]. The presence of anomalies makes the weather forecast data imprecise [5] [7] and negatively affects the performance of the forecast models [5] [7] [16]. Similarly, Ravi et al. [15] state that these values are bad for machine learning models which can reduce the accuracy of weather models, leading to less reliable forecasts.

Weather forecast errors or inaccurate predictive data can lead to poor decision-making, crop failures, air crashes due to inappropriate weather phenomena, families, illness, industrial bankruptcies, unemployment, and so on.

The management of these anomalies is crucial to ensure the continuity of observations and their use in weather forecasting. So, to ensure good accuracy of machine learning-based weather forecasting models, the observation data streams must be cleaned [17]. Accurate forecasts are an important element [28]. Therefore, it is necessary to refine the flow of real-time weather observation data to obtain more accurate weather forecasts [5].

The following section will address the different approaches to minimizing anomalies in the weather data streams proposed by the authors.

2.3. Weather Forecasting Systems Based on Machine Learning

In the field of real-time weather forecasting, we have two categories of authors who have proposed weather forecasting systems whose weather forecasting models are based on Machine Learning (ML). The first category of authors proposes weather forecasting systems that do not take anomaly management into account. The second category proposes weather forecasting systems that take into account anomaly management. Their management is based on the detection and removal of anomalies in real time.

Regarding the first category, several authors have proposed weather forecasting systems that do not take into account anomaly management. (Goncalo et al., 2015) [29] proposed an intelligent weather station that collected data on temperature, humidity, and solar radiation. The data collected was stored and then routed to the ANN-based weather forecasting model to predict the temperature in real time. According to their results, the accuracy of their model gave an RMSE of 0.30. (Kothapalli and Totad, 2017) [30] proposed a forecasting system that allows real-time weather forecasting. Their system collected temperature and humidity data. The data collected was stored and then routed to the ANN-based weather forecasting model to predict these two weather parameters. However, the accuracy of their weather forecasting model was not mentioned. (Parashar, 2018) [31] proposed a real-time weather forecasting system. Their system allowed for the collection of temperature, humidity, and atmospheric pressure data. The data collected was stored and then sent to the MLR-based weather forecasting model to predict the temperature. According to their results, the accuracy of their model gave an RMSE of 1.35. (Pradeep et al., 2020) [32] proposed a weather forecasting system that allows the collection of weather data. These data are transferred to the cloud via GSM. The data transferred are then routed to the forecasting model based on the TCN (Temporal Convolutional Neural) to perform real-time weather forecasting. According to their results, the accuracy of their forecasting model gave an MSE of 2.048. However, the systems proposed by the first category of authors do not take anomaly management into account. But the second category of authors takes into account the management of anomalies present in the observation data.

Several authors have proposed approaches for handling anomalies in weather data streams. This management is based solely on the detection and removal of anomalies in real time. (Masoud and Tao, 2020) [33] proposed an approach to detect anomalies (missing and incorrect values) in temperature. The detected anomalies are removed. Subsequently, the processed temperature data are used by the linear regression (LR) weather forecasting model. The accuracy of their forecasting model gave an MAE of 2.74. (Shruti et al., 2021) [13] proposed an approach to detect abnormal events present in real-time weather data and eliminate them. (Kaya et al., 2023) [28] proposed an approach to detect anomalies in real-time weather data streams. The objective of their study is to identify inaccurate data in a stream of weather data and then remove them. (Adela et al., 2024) [34] used isolation forests and autoencoders to identify anomalies in the data recorded during the period 2009-2023. However, anomaly detection was performed on historical data and not in real time. However, all anomaly management approaches proposed by the authors of the second category are based solely on the detection and removal of anomalies without imputing them. Nonetheless, Little and Rubin [35] have shown the limitations of deletion by proving that the removal or deletion of these anomalies leads to a loss of information, contributing to the inaccuracy of the forecasting models.

Figure 2. Categories of real-time weather forecasting systems.

Figure 2 summarizes the two categories of authors who have proposed real-time weather forecasting systems. This figure illustrates the limitations or shortcomings of their systems that could bias weather forecast data.

It is therefore important to impute the anomalies present in the weather data streams in order to obtain high-quality forecast data generated by our weather forecasting models [36]. According to Bruyant et al. (2023) [37], data imputation helps prevent data loss and improves the quality of forecast data generated by forecasting models.

3. Study Area and Weather Data

3.1. Study Area

The study area in the Adamawa region of Cameroon is located on the Adamawa plateau, characterized by its altitude and its high-altitude Sudano-Sahelian climate [38]. The Adamawa Plateau is located between 1000 m and 2000 m in altitude [38]. This region is a mountainous area that marks the transition between the forested Cameroon to the south and the savannas to the North. It borders Nigeria to the West and the Central African Republic (CAR) to the East [38]-[40]. With an area of 63,701 km2 [38]. It is covered by the humid tropical highland climate, also known as the highland Sudanese climate, which generally extends between 6˚ and 8˚ N in Cameroon [38] [40]. There are two well-contrasted seasons of almost equal duration (6 months) but varying depending on the stations [38]. The rainy season generally extends from March to September-October, while the dry season runs from October-November to February. Due to its high altitude, Adamawa enjoys a “temperate” climate [38]. The temperatures are generally quite low, with an annual average of around 22˚C [38] [40]. The minimum temperature is 15˚C [38]. It is recorded around December-January which then experiences cold nights [38]. On the other hand, the maximum temperature (31˚C) is recorded in March, which corresponds to the end of the dry season [38] [40].

3.2. Weather Data

The simulation is based on the weather data for the city of Ngaoundéré. In fact, Ngaoundéré is the capital of the Adamawa Region of Cameroon. In step 1 of our methodological framework presented in section 4.1, we used five weather parameters (temperature, air humidity, dew point, precipitation, and atmospheric pressure), while in steps 2 and 3, we only used the temperature parameter. The meteorological parameters were selected based on the decision of the GRIA research team in order to perform meteorological data imputation simulations. The data was collected from NASA POWER at the URL: https://power.larc.nasa.gov/data-access-viewer/. Moreover, the decision to use the temperature parameter in steps 2 and 3 was based on the fact that most of the authors of the articles consulted also used this parameter as a target in real-time weather forecasting. Although we do not have the same meteorological dataset, the objective was to show how imputation techniques can perform real-time imputation processing while improving the quality of meteorological observation data that will subsequently be used by weather forecasting models for real-time weather forecasting.

Table 1 below presents the different weather parameters.

Table 1. Weather parameters.

Weather parameters

Symbols

Units

Temperature

T2M

Celsius

Relative humidity

R2HM

Percentage

Precipitation

PRECTOTCORR

millimeter

Dew point

T2MDEW

Farenheit

Air pressure

PS

Hectopascals

4. Methods and Tools

4.1. Methodological Framework

In this section, we present the methodological framework of our work. Our methodological framework consists of five steps of our work (see Figure 3):

  • Step 1: Comparison of the forecast data predicted by the LSTM model, using the uncleaned data stream as input on one hand and the cleaned data stream on the other hand. This step shows how the forecasting model becomes inaccurate when the data stream contains anomalies. Figure 4 describes this step;

  • Step 2: Comparison of different imputation methods. Performance evaluation metrics are based on accuracy and execution time. Figure 5 illustrates the process of comparing different imputation methods;

  • Step 3: Forecast using our various models on data cleaned using the ETR imputation method, which previously had a specific anomaly rate (see Figure 6);

  • Step 4: Proposal for an Architecture of a Forecasting System;

  • Step 5: Proposal of a Real-Time Anomaly Detection and Correction Algorithm in a Weather Forecasting System.

Figure 3. Proposal design.

Figure 4. Prediction via LSTM model taking data streams as input (uncleaned and cleaned).

Figure 5. Selection of the best imputation model.

Figure 6. Prediction via our different forecasting models on cleaned data via imputation method.

4.2. Anomalies in Weather Data

In this study, we randomly included artificial anomalies using a computer program we designed, namely missing values (NaN) and abnormal values (−999, −998). These anomalies are used to evaluate existing imputation models.

Figure 7 shows the unprocessed data flow, and Figure 8 shows the processed data flow.

Figure 7. Unprocessed data flows.

Figure 8. Processed data flows.

4.3. Imputation Methods

Imputation methods allow for the modification of data structure by replacing missing values with estimated values [37] [41] [42], which makes the data complete and usable for weather forecasting models. These methods are essential because missing data can bias the results of the forecast data generated by weather forecasting models [8].

We focus on seven existing imputation methods to select the best. The imputation methods we have used are as follows: LinearRegressor (LR) [18] [19], BayesianRidge (BR) [18], DecisionTreeRegressor (DTR) [18] [19], ExtraTreeRegressor (ETR) [18] [19], KNeighborsRegressor (KNR), KNNImputer (KNNI) [20] [21] and MICE [20] [21].

To facilitate the comparative study between the different imputation methods, we normalized the meteorological data using the MinMaxScaler object from scikit-learn.

4.3.1. LinearRegressor

One technique for dealing with missing data in a dataset is called linear regression imputation, which involves predicting the missing values using a linear regression model [18] [19]. In order to estimate the missing values for the variable of interest, a regression model based on the observed data must be constructed [18] [19]. When normality assumptions are satisfied, this method is frequently applied to continuous variables.

4.3.2. BayesianRidge

By adding uncertainty about the missing values to the model, Bayesian regression is employed as an imputation technique to deal with missing data [18]. This method, which is frequently referred to as Bayesian imputation, entails creating several imputed datasets and then integrating the outcomes to produce conclusions that take into consideration the uncertainty posed by the missing data [18].

4.3.3. DecisionTreeRegressor

It is possible to utilize the DecisionTreeRegressor as an imputation technique, especially with an iterative imputation framework [18] [19]. This method makes use of decision trees’ predictive capabilities to estimate missing values by examining their correlations with other dataset aspects [18] [19].

4.3.4. ExtraTreeRegressor

It is possible to use Extra Tree Regressor as an imputation technique, especially in an iterative imputation framework [18] [19]. The main concept is to approach the imputation of missing values in a single feature as a regression issue, in which the observed values of other features in the dataset are used to predict the missing values of that feature [18] [19].

4.3.5. KNeighborsRegressor

KNR also identifies the k-nearest neighbors to a data point with a missing value. However, instead of directly using the neighbors’ values, it builds a regression model (usually a linear regression model) using the neighbors’ data to predict the missing value.

4.3.6. KNNImputer

One technique for estimating and filling in missing values in a dataset is K-Nearest Neighbors (KNN) imputation [20] [21]. To estimate the missing data, it first determines the “k” most comparable data points (neighbors) to the observation with the missing value. Then, it uses the values from these neighbors [20] [21]. Using a selected distance metric (such as the Euclidean distance for numerical data or the Hamming distance for categorical data), KNN imputation determines the k-nearest neighbors of a data point with a missing value.

4.3.7. MICE

One effective statistical technique for dealing with missing data in datasets is Multivariate Imputation by Chained Equations, or MICE [20] [21]. Regression models based on other variables in the dataset are used iteratively to impute missing values. Until the imputed values converge, this process is repeated, producing several complete datasets. After that, these datasets can be examined independently, and the findings pooled to produce statistical conclusions [20] [21].

4.4. Weather Forecasting Model Based on ML

We used four weather forecasting models based respectively on MLR, ANN, LSTM, and TCN to simulate weather forecasts from data cleaned by the imputation method. The choice of these models is due to the weather forecasting models that were mentioned in one of the subsections of the related works, namely subsection 2.3. The MLR, ANN, LSTM, and TCN are Batch Machine Learning models, also referred to as Offline Machine Learning [43] [44]. These models were designed using historical data before being deployed for real-time weather forecasting simulations. The objective is to show through evaluation metrics that imputation methods improve the quality of forecast weather data generated by these weather forecasting models.

4.5. Evaluation Metrics

Model evaluation metrics will be used to evaluate imputation methods and weather forecasting models. For the imputation methods, we will use the following metrics: time execution and Root Mean Squared Error (RMSE). For weather forecasting models, we will use Root Mean Squared Error (RMSE). RMSE is used to determine the difference between the weather forecast (or the estimated weather) and the expected weather observation values. This metric is used to analyze the accuracy of the models. Their mathematical expressions are given below:

RMSE= 1 n i=1 n ( y i y ^ i ) 2

where n is the number of weather observations in the dataset, y i is the actual value of the weather observation, and y ^ i is the weather predicted (or estimated) value of the ith observation.

All our data has been normalized to facilitate the evaluation of imputation methods as well as weather forecasting models.

4.6. Tools

To carry out our experiments, we used a laptop with the following specifications: Windows 10 Professional 64-bit, 4GB RAM, AMD 1.80 GHz processor. The programming language used is Python. The IDE used is Jupyter Notebook.

5. Results

5.1. Forecasting via LSTM Model Taking Data Streams as Input (Uncleaned and Cleaned)

5.1.1. Forecast of Weather Data Containing Anomalies

Figure 9 shows an extract of the weather data stream containing the anomalies. This weather data stream contains two types of anomalies: missing values (NaN) and abnormal values (−999). This data stream will be used as input by the LSTM weather forecasting model. The results of these forecasts are shown in Figure 10.

Figure 9. Extract of weather data stream containing anomalies.

Figure 10. Data predicted by our LSTM model.

We have observed that the presence of anomalies in the flow of weather data leads to poor forecasts and a decrease in the performance of the forecasting model.

5.1.2. Forecast of Processed Weather Data

Using the same data streams containing the anomalies, the abnormal values are transformed into missing values. Then, all these missing values are imputed using an MICE imputation method. The cleaned data streams are finally used by the LSTM model to produce the forecast data. Figure 11 shows the result of a cleaned extract of weather data using the imputation method, and Figure 12 illustrates the result of the weather forecast simulation based on this data.

Figure 11. An extract of the processed data flow.

Figure 12. Weather forecast based on processed data.

5.2. Selection of the Best Imputation Model

The temperature dataset contains 8759 weather observations for the year 2020 and the sampling time is 1 hour. We chose a single year (2020) in order to perform simulations of anomaly detection and imputation in weather data flows to demonstrate the importance of imputation techniques in the data integration process for obtaining high-quality meteorological data, which can contribute to the accuracy of weather forecast data in a real-time weather forecasting system.

This dataset was used to perform imputation simulations. We conducted imputation simulations on our dataset using the seven imputation methods. Each simulation was repeated 30 times in order to obtain the average RMSE and the average execution time for each imputation method. As shown in Figure 6, the dataset contains a specific anomaly rate and is then cleaned. All abnormal values have been transformed into missing values. Subsequently, the imputation models will take care of imputing all the missing values present in the dataset. The evaluation results of our different imputation methods are presented in Table 2 and Table 3.

Table 2. RMSE.

Imputation models

1% rate

5% rate

8% rate

10% rate

LR

0.0044

0.010

0.015

0.014

MICE

0.0044

0.0104

0.015

0.015

KNNI

0.0111

0.0244

0.0269

0.0346

BR

0.0044

0.0104

0.015

0.0144

DTR

0.0040

0.0095

0.0166

0.0134

ETR

0.0040

0.0095

0.0166

0.0134

KNR

0.0039

0.0102

0.0175

0.0145

Interval

[0.0039; 0.0111]

[0.0095; 0.0244]

[0.015; 0.0216]

[0.0134; 0.0346]

Table 3. Execution time (second).

Imputation models

1% rate

5% rate

8% rate

10% rate

LR

0.33

0.31

1.59

0.12

MICE

0.17

0.19

1.29

0.13

KNNI

0.56

0.86

1.85

1.97

BR

0.12

0.24

0.5

0.15

DTR

0.37

0.46

1.2

0.29

ETR

1.53

1.44

1.45

1.91

KNR

0.24

0.37

0.74

0.55

Interval

[0.12; 1.53]

[0.19; 1.44]

[0.19; 1.44]

[0.12; 1.97]

First of all, with anomaly rates ranging between 1% and 10% that were corrected by imputation methods. The RMSE results on the quality of the data processed by these imputation methods range between 0.0039 and 0.0346 (see Table 2). From these results, we observe a very good quality of the processed weather data because the RMSEs are very low. Moreover, all imputation methods run in less than 2 seconds (see Table 3). Furthermore, the results of the evaluation of the imputation method in terms of accuracy, illustrated in Table 2 and Figure 13, show that the KNR model (RMSE = 0.0039) is the best method to handle anomalies with a missing value rate of 1%. For handling anomalies with missing values of 5% and 10%, the ETR method is the best imputation method, with an RMSE of 0.0095 and 0.0134, respectively. Finally, for handling anomalies with a missing value rate of 8%, the MICE method (RMSE = 0.015) is the best imputation method.

Figure 13. Result for RMSE of Imputation Methods.

The data cleaned by the ETR method will be used as input by the weather forecasting models based on MLR, ANN, LSTM, and TCN, respectively, to produce the forecast data. The following section presents the results of the forecast data produced by these forecasting models and their accuracy.

5.3. Prediction via Our Different Forecasting Models on Cleaned Data via ETR Imputation Method

As mentioned in section 3.5, the objective is to show through evaluation metrics that imputation methods improve the quality of forecast weather data generated by these weather forecasting models.

The accuracy results of the different weather forecasting models based on MLR, ANN, LSTM, and TCN, respectively, according to the anomaly rates imputed by the ETR method, are illustrated in Table 4 and Figure 14.

Table 4. RMSE of forecasting models.

Imputation models

0% rate

1% rate

5% rate

8% rate

10% rate

MLR

0.0261

0.0277

0.0344

0.0494

0.0411

ANN

0.0173

0.0196

0.0286

0.0461

0.0364

LSTM

0.0109

0.0193

0.0407

0.0758

0.0565

TCN

0.0111

0.0179

0.0379

0.0703

0.0506

Interval

[0.0109; 0.0261]

[0.0179; 0.0277]

[0.0286; 0.0407]

[0.0461; 0.0758]

[0.0364; 0.0565]

Figure 14. Result for RMSE of forecasting models.

Anomaly rates between 0% and 10% were corrected in order to obtain cleaned data. This data was used by weather forecasting models based on MLR, ANN, LSTM, and TCN, respectively, to perform real-time weather forecasting simulations. According to Table 4 and Figure 14, their RMSEs range from 0.0109 to 0.0758, which is very low. Their low RMSEs indicate smaller average forecast errors and, consequently, more accurate forecasts.

Figures 15-19 present the results of the weather forecast simulation for our different models based on the data cleaned by ETR imputation method.

Figure 15. Weather forecast based on weather observation data containing no anomalies.

Figure 16. Weather forecast from cleaned data with a prior anomaly rate of 1%.

Figure 17. Weather forecast from cleaned data with a prior anomaly rate of 5%.

Figure 18. Weather forecast from cleaned data with a prior anomaly rate of 8%.

Figure 19. Weather forecast from cleaned data with a prior anomaly rate of 10%.

5.4. Proposal for an Architecture of a Weather Forecasting System

Figure 20 illustrates our proposed weather forecasting system, which is divided into two parts: data integration and data analysis. As part of data integration, we have four modules: the weather data collection module, the data transformation module (physical data to digital data), the storage module, and the real-time anomaly detection and correction module. This last module is responsible for cleaning the real-time data streams. The data analysis part contains the ML-based forecasting model. The forecasting model can receive cleaned data as input in order to obtain more accurate forecasts. Therefore, the cleaning of weather observation data is crucial to ensure the quality of forecast data generated by weather forecasting models.

Figure 20. Weather forecast from cleaned data with a prior anomaly.

Our proposed algorithm for real-time data cleaning is housed in the real-time anomaly detection and correction module of our weather forecasting system. This algorithm is presented in the next session.

5.5. Proposal of a Real-Time Data Cleaning Algorithm

Our proposed algorithm is as follows:

The detection of abnormal values is carried out thru an abnormal value detection model based on Machine Learning. Similarly, the detection of missing values is carried out through a missing value detection model based on Machine Learning. Furthermore, data imputation is carried out using a specific imputation method.

This algorithm processes weather data in real time to obtain cleaned weather observation data. These data will be used by the weather forecasting model.

6. Discussion

The results of the simulations from step 1 of our methodological framework allowed us to see that the presence of anomalies in weather observation data makes weather forecasting models inaccurate. These results support the assertion of (Alejandro et al., 2022) [1], (Ravi et al., 2022) [15], and (Zhang et al., 2020) [16], hence the necessity to impute these anomalies in order to have better quality weather observation data that will subsequently be used by weather forecasting models, thereby improving the accuracy of these models.

The simulation results from step 2 of our methodological framework allowed us to see that the imputation methods used help avoid information loss while obtaining high-quality weather data.

Regarding the results of step 3 of our methodological framework, they allowed us to have cleaned weather data using the ETR imputation method, thereby making the forecasting models more precise. These results support the assertion of (Heinrig, 2020) [17] and (Bruyant et al., 2023) [37] which state that improving the accuracy of forecasts requires the availability of higher quality data.

Given that the real-time weather forecasting systems proposed by the authors can either take into account the monitoring of collected weather data, namely the real-time detection and removal of anomalies, or do so without monitoring this data, which can negatively affect the performance of weather forecasting models. Thus, we proposed in step 4 of our methodological framework an architecture for a weather forecasting system with a real-time anomaly detection and correction module. The particularity of this module is that it allows for the detection of anomalies in real-time and imputes them without losing information. And in step 5, we proposed an Anomaly Detection and Correction Algorithm.

However, although imputation methods contribute to the performance of weather forecasting models based on Batch Machine Learning as presented in section 3 and section 4, in the context of real-time weather forecasting, these models will not be able to adapt in real-time over time to new data structures related to the chaotic nature of the atmosphere (variations or climate changes) because the parameters of these models are static. To further improve the accuracy of forecast data, we propose in our future work an adaptive and evolving weather forecasting model based on Online Machine Learning that can adapt in real-time to new structures of weather observation data.

7. Conclusion

In summary, in the field of real-time weather forecasting, we have two categories of authors who have proposed weather forecasting systems whose weather forecasting models are based on ML. The first category of authors proposes weather forecasting systems that do not take into account anomaly management, thus the possibility of having anomalies present in the weather observation data. The second category offers weather forecasting systems that take into account anomaly management. This management is based on the detection and deletion of anomalies in real time. This data deletion leads to information loss and data reduction. These two categories can result in the inaccuracy of weather forecasting models. According to our various results, we first showed that the presence of anomalies in weather observation data streams can contribute to the degradation of weather forecasting models. We also conducted performance evaluation studies on imputation methods, namely LR, MICE, KNNI, ETR, DTR, and BR. The performance of these methods was very conclusive, allowing for high-quality meteorological data. Subsequently, the cleaned data were used to perform real-time weather forecasting simulations using forecasting models based on MLR, ANN, LSTM, and TCN, respectively. We also proposed the architecture of a weather forecasting system as well as a real-time anomaly detection and correction algorithm. However, although imputation methods contribute to the performance of batch machine learning-based weather forecasting models, in the context of real-time weather forecasting, these models will not be able to adapt in real-time to new data structures related to the chaotic nature of the atmosphere (variations or climate changes) because the parameters of these models are static. To further improve the accuracy of weather forecast data, we propose in our future work an adaptive and evolving weather forecast model based on online machine learning that can adapt in real-time to new structures of weather observation data due to variations or climate changes.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Morales-Hernández, A., Nápoles, G., Jastrzebska, A., Salgueiro, Y. and Vanhoof, K. (2022) Online Learning of Windmill Time Series Using Long Short-Term Cognitive Networks. Expert Systems with Applications, 205, Article ID: 117721.[CrossRef]
[2] OMM (2021) Atlas de la mortalité et des pertes économiques dues à des phénomènes météorologiques, climatiques et hydrologiques extrêmes (1970-2019).
https://www.uncclearn.org/wp-content/uploads/library/1267_Atlas_of_Mortality_FR.pdf
[3] AbdulRaheem, M., Awotunde, J.B., Adeniyi, A.E., Oladipo, I.D. and Adekola, S.O. (2022) Weather Prediction Performance Evaluation on Selected Machine Learning Algorithms. IAES International Journal of Artificial Intelligence (IJ-AI), 11, 1535-1544.[CrossRef]
[4] Fente, D.N. and Kumar Singh, D. (2018) Weather Forecasting Using Artificial Neural Network. 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT), Coimbatore, 20-21 April 2018, 1757-1761.[CrossRef]
[5] Jain, G. and Mallick, B. (2016) A Review on Weather Forecasting Techniques. IJARCCE, 5, 177-180.[CrossRef]
[6] World Bank (2015) Creating an Atmosphere of Cooperation in Sub-Saharan Africa by Strengthening Weather, Climate and Hydrological Services.
https://www.worldbank.org/en/news/speech/2015/06/02/transforming-weather-climate-and-hydrological-services-in-africa
[7] Lee, M., Moon, S., Kim, Y. and Moon, B. (2014) Correcting Abnormalities in Meteorological Data by Machine Learning. 2014 IEEE International Conference on Systems, Man, and Cybernetics (SMC), San Diego, 5-8 October 2014, 888-893.[CrossRef]
[8] Planchon, V. (2005) Traitement des valeurs aberrantes: Concepts actuels et tend-ances générales. Biotechnology, Agronomy, Society and Environment, 9, 19-34.
[9] Salvador, G., Luengo, J. and Herrera, F. (2015) Data Preprocessing in Data Mining. Springer.[CrossRef]
[10] Vaumi, J.P.T. (2019) Système d’analyse de données pour la prévision des inondations dans les pays en voie de développement. PhD. Thesis, University of Ngaoundéré.
[11] Strigaro, D., Cannata, M. and Antonovic, M. (2019) Boosting a Weather Monitoring System in Low Income Economies Using Open and Non-Conventional Systems: Data Quality Analysis. Sensors, 19, Article 1185.[CrossRef] [PubMed]
[12] ONACC (2019) Etat des lieux du réseau d’observation météorologique dans la Région de l’Adamaoua.
https://files.aho.afro.who.int/afahobckpcontainer/production/files/Profil_ONACC_ADAMAOUA_.pdf
[13] Dadhich, S., Pathak, V., Mittal, R. and Doshi, R. (2021) Chapter 10 Machine Learning for Weather Forecasting. In: Hiran, K.K., Khazanchi, D., Vyas, A.K. and Padmanaban, S., Eds., Machine Learning for Sustainable Development, De Gruyter, 161-174.[CrossRef]
[14] Ajina, A., K G, J.C., Bhat, D.N. and Saxena, K. (2023) Prediction of Weather Forecasting Using Artificial Neural Networks. Journal of Applied Research and Technology, 21, 205-211.[CrossRef]
[15] Ravi, V.V., Reddy, M.M., Teja, K.S., Niteesh, C.S. and Babu, D.B.S. (2022) Weather Prediction. International Journal for Research in Applied Science and Engineering Technology, 10, 459-462.[CrossRef]
[16] Zhang, M., Guo, J., Li, X. and Jin, R. (2020) Data-Driven Anomaly Detection Approach for Time-Series Streaming Data. Sensors, 20, Article 5646.[CrossRef] [PubMed]
[17] Heinrigs, P. (2020) Incidences sécuritaires du changement climatique au Sahel: Perspectives politiques.
https://www.wathi.org/incidences-securitaires-du-changement-climatique-au-sahel-perspectives-politiques/
[18] Bridge-Nduwimana, C.B., Ouaazizi, A.E. and Benyakhlef, M. (2025) A New Data Imputation Technique for Efficient Used Car Price Forecasting. International Journal of Electrical and Computer Engineering (IJECE), 15, 2364-2371.[CrossRef]
[19] Amit, K. (2023) Machine Learning Based Solution for Asymmetric Information in Prediction of Used Car Prices. International Conference on Intelligent Vision and Computing, 409-420.
https://www.researchgate.net/publication/370423022_Machine_Learning_Based_Solution_for_Asymmetric_Information_in_Prediction_of_Used_Car_Prices
[20] Arefin, M.N. and Masum, A.K.M. (2024) A Probabilistic Approach for Missing Data Imputation. Complexity, 2024, Article ID: 4737963.[CrossRef]
[21] Li, J., Guo, S., Ma, R., He, J., Zhang, X., Rui, D., et al. (2024) Comparison of the Effects of Imputation Methods for Missing Data in Predictive Modelling of Cohort Study Datasets. BMC Medical Research Methodology, 24, Article No. 41.[CrossRef] [PubMed]
[22] Ponce-Jara, M.A., Velásquez-Figueroa, C., Tonato-Peralta, D. and Paredes-Morillo, G. (2020) Diseño de una estación meteorológica automática para registrar las variables solar y eólica. Revista Arbitrada Interdisciplinaria Koinonía, 5, 937-957.[CrossRef]
[23] Kulkarni, A. and Mukhopadhyay, D. (2018) Internet of Things Based Weather Forecast Monitoring System. Indonesian Journal of Electrical Engineering and Computer Science, 9, 555-557.[CrossRef]
[24] NiuBoL (2025) Meteorological Station Equipment.
https://www.niubol.com/All-products/meteorological-station-equipment.html
[25] Larraondo, P.R. (2018) Application of Machine Learning Techniques to Weather Forecasting. Ph.D. Thesis, University of the Basque Country UPV/EHU.
https://addi.ehu.es/bitstream/handle/10810/32532/TESIS_ROZAS_LARRAONDO_PABLO.pdf
[26] Aditya, T. (2023) The Role of Data Processing in Machine Learning.
https://niveussolutions.com/role-of-data-processing-in-machine-learning/
[27] Zemicheal, T. and Dietterich, T.G. (2019) Anomaly Detection in the Presence of Missing Values for Weather Data Quality Control. Proceedings of the 2nd ACM SIGCAS Conference on Computing and Sustainable Societies, Accra, 3-5 July 2019, 65-73.[CrossRef]
[28] Kaya, Ş.M., İşler, B., Abu-Mahfouz, A.M., Rasheed, J. and AlShammari, A. (2023) An Intelligent Anomaly Detection Approach for Accurate and Reliable Weather Forecasting at IoT Edges: A Case Study. Sensors, 23, Article 2426.[CrossRef] [PubMed]
[29] Mestre, G., Ruano, A., Duarte, H., Silva, S., Khosravani, H., Pesteh, S., et al. (2015) An Intelligent Weather Station. Sensors, 15, 31005-31022.[CrossRef] [PubMed]
[30] Kothapalli, S. and Totad, S.G. (2017) A Real-Time Weather Forecasting and Analysis. 2017 IEEE International Conference on Power, Control, Signals and Instrumentation Engineering (ICPCSI), Chennai, 21-22 September 2017, 1567-1570.[CrossRef]
[31] Parashar, A. (2019) IoT Based Automated Weather Report Generation and Prediction Using Machine Learning. 2019 2nd International Conference on Intelligent Communication and Computational Techniques (ICCT), Jaipur, 28-29 September 2019, 339-344.[CrossRef]
[32] Hewage, P., Behera, A., Trovati, M., Pereira, E., Ghahremani, M., Palmieri, F., et al. (2020) Temporal Convolutional Neural (TCN) Network for an Effective Weather Forecasting Using Time-Series Data from the Local Weather Station. Soft Computing, 24, 16453-16482.[CrossRef]
[33] Sobhani, M., Hong, T. and Martin, C. (2020) Temperature Anomaly Detection for Electric Load Forecasting. International Journal of Forecasting, 36, 324-333.[CrossRef]
[34] Bâra, A., Văduva, A.G. and Oprea, S. (2024) Anomaly Detection in Weather Phenomena: News and Numerical Data-Driven Insights into the Climate Change in Romania’s Historical Regions. International Journal of Computational Intelligence Systems, 17, Article No. 134.[CrossRef]
[35] Little, R.J. and Rubin, D.B. (2019) Analyse statistique avec données manquantes. 3rd Edition, Wiley.
[36] Emmanuel, T., Maupong, T., Mpoeleng, D., Semong, T., Mphago, B. and Tabona, O. (2021) A Survey on Missing Data in Machine Learning. Journal of Big Data, 8, Article No. 140.[CrossRef] [PubMed]
[37] Bruyant, A., Guemann, M. and Malgoyre, A. (2023) Étude épidémiologique des amputations majeures des membres supérieur et inférieur en France. Kinésithérapie, la Revue, 23, 3-12.[CrossRef]
[38] MINEPAT (2018) Elaboration du schema regional d’amenagement et de developpement durable du territoire de l’adamaoua: Atlas cartographique de l’adamaoua. Le groupement AGORA Consulting, CID, MINEPAT: Cameroon, 1-45.
https://minepat.gov.cm/wp-content/uploads/2024/09/1.1.-SRADDT-AD-Diagnostic-territorial-Atlas-cartographique.pdf
[39] Sadio, F.H. (2012) Le tourisme dans le departement de la vina (Adamaoua-Cameroun): Mythe ou Réalité? Ph.D. Thesis, Université de Ngaoundéré, Ngaoundéré.
https://www.memoireonline.com/05/20/11825/m_Le-tourisme-dans-le-departement-de-la-vina-adamaoua-cameroun--mythe-ou-realite-9.html
[40] Michel, T. (2003) Paysage géomorphologique, patrimoine socio-culturel et développement sur les hautes terres de l’Adamaoua au Cameroun. Espaces tropicaux, 18, 67-75.
https://www.persee.fr/doc/etrop\_1147-3991\_2003\_act\_18\_9\_1108
[41] Cottrell, G., Cot, M. and Mary, J. (2009) L’imputation multiple des données manquantes aléatoirement: Concepts généraux et présentation d’une méthode Monte-Carlo. Revue dÉpidémiologie et de Santé Publique, 57, 361-372.[CrossRef] [PubMed]
[42] Li, P., Stuart, E.A. and Allison, D.B. (2015) Multiple Imputation. JAMA, 314, 1966-1967.[CrossRef] [PubMed]
[43] Thomas, B.B. (2024) From Batch to Online Machine Learning. Springer.[CrossRef]
[44] Farchi, A., Bocquet, M., Laloyaux, P., Bonavita, M. and Malartic, Q. (2021) A Comparison of Combined Data Assimilation and Machine Learning Methods for Offline and Online Model Error Correction. Journal of Computational Science, 55, Article ID: 101468.[CrossRef]

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.