ArticlePDF Available

Root mean square error (RMSE) or mean absolute error (MAE)?

Authors:

Abstract

Both the root mean square error (RMSE) and the mean absolute error (MAE) are regularly employed in model evaluation studies. Willmott and Matsuura (2005) have suggested that the RMSE is not a good indicator of average model performance and might be a misleading indicator of average error and thus the MAE would be a better metric for that purpose. Their paper has been widely cited and may have influenced many researchers in choosing MAE when presenting their model evaluation statistics. However, we contend that the proposed avoidance of RMSE and the use of MAE is not the solution to the problem. In this technical note, we demonstrate that the RMSE is not ambiguous in its meaning, contrary to what was claimed by Willmott et al. (2009). The RMSE is more appropriate to represent model performance than the MAE when the error distribution is expected to be Gaussian. In addition, we show that the RMSE satisfies the triangle inequality requirement for a distance metric.
Geosci. Model Dev., 7, 1247–1250, 2014
www.geosci-model-dev.net/7/1247/2014/
doi:10.5194/gmd-7-1247-2014
© Author(s) 2014. CC Attribution 3.0 License.
Root mean square error (RMSE) or mean absolute error (MAE)? –
Arguments against avoiding RMSE in the literature
T. Chai1,2 and R. R. Draxler1
1NOAA Air Resources Laboratory (ARL), NOAA Center for Weather and Climate Prediction,
5830 University Research Court, College Park, MD 20740, USA
2Cooperative Institute for Climate and Satellites, University of Maryland, College Park, MD 20740, USA
Correspondence to: T. Chai (tianfeng.chai@noaa.gov)
Received: 10 February 2014 – Published in Geosci. Model Dev. Discuss.: 28 February 2014
Revised: 27 May 2014 – Accepted: 2 June 2014 – Published: 30 June 2014
Abstract. Both the root mean square error (RMSE) and the
mean absolute error (MAE) are regularly employed in model
evaluation studies. Willmott and Matsuura (2005) have sug-
gested that the RMSE is not a good indicator of average
model performance and might be a misleading indicator of
average error,and thus the MAE would be a better metric for
that purpose. While some concerns over using RMSE raised
by Willmott and Matsuura (2005) and Willmott et al. (2009)
are valid, the proposed avoidance of RMSE in favor of MAE
is not the solution. Citing the aforementioned papers, many
researchers chose MAE over RMSE to present their model
evaluation statistics when presenting or adding the RMSE
measures could be more beneficial. In this technical note, we
demonstrate that the RMSE is not ambiguous in its mean-
ing, contrary to what was claimed by Willmott et al. (2009).
The RMSE is more appropriate to represent model perfor-
mance than the MAE when the error distribution is expected
to be Gaussian. In addition, we show that the RMSE satis-
fies the triangle inequality requirement for a distance metric,
whereas Willmott et al. (2009) indicated that the sums-of-
squares-based statistics do not satisfy this rule. In the end, we
discussed some circumstances where using the RMSE will be
more beneficial. However, we do not contend that the RMSE
is superior over the MAE. Instead, a combination of metrics,
including but certainly not limited to RMSEs and MAEs, are
often required to assess model performance.
1 Introduction
The root mean square error (RMSE) has been used as a stan-
dard statistical metric to measure model performance in me-
teorology, air quality, and climate research studies. The mean
absolute error (MAE) is another useful measure widely used
in model evaluations. While they have both been used to
assess model performance for many years, there is no con-
sensus on the most appropriate metric for model errors. In
the field of geosciences, many present the RMSE as a stan-
dard metric for model errors (e.g., McKeen et al., 2005;
Savage et al., 2013; Chai et al., 2013), while a few others
choose to avoid the RMSE and present only the MAE, cit-
ing the ambiguity of the RMSE claimed by Willmott and
Matsuura (2005) and Willmott et al. (2009) (e.g., Taylor
et al., 2013; Chatterjee et al., 2013; Jerez et al., 2013). While
the MAE gives the same weight to all errors, the RMSE pe-
nalizes variance as it gives errors with larger absolute values
more weight than errors with smaller absolute values. When
both metrics are calculated, the RMSE is by definition never
smaller than the MAE. For instance, Chai et al. (2009) pre-
sented both the mean errors (MAEs) and the rms errors (RM-
SEs) of model NO2column predictions compared to SCIA-
MACHY satellite observations. The ratio of RMSE to MAE
ranged from 1.63 to 2.29 (see Table 1 of Chai et al., 2009).
Using hypothetical sets of four errors, Willmott and
Matsuura (2005) demonstrated that while keeping the MAE
as a constant of 2.0, the RMSE varies from 2.0 to 4.0.
They concluded that the RMSE varies with the variability
of the the error magnitudes and the total-error or average-
error magnitude (MAE), and the sample size n. They further
Published by Copernicus Publications on behalf of the European Geosciences Union.
1248 T. Chai and R. R. Draxler: RMSE or MAE
demonstrated an inconsistency between MAEs and RMSEs
using 10 combinations of 5 pairs of global precipitation data.
They summarized that the RMSE tends to become increas-
ingly larger than the MAE (but not necessarily in a mono-
tonic fashion) as the distribution of error magnitudes be-
comes more variable. The RMSE tends to grow larger than
the MAE with n1
2since its lower limit is fixed at the MAE
and its upper limit (n1
2·MAE) increases with n1
2. Further,
Willmott et al. (2009) concluded that the sums-of-squares-
based error statistics such as the RMSE and the standard er-
ror have inherent ambiguities and recommended the use of
alternates such as the MAE.
As every statistical measure condenses a large number of
data into a single value, it only provides one projection of the
model errors emphasizing a certain aspect of the error char-
acteristics of the model performance. Willmott and Matsuura
(2005) have simply proved that the RMSE is not equivalent
to the MAE, and one cannot easily derive the MAE value
from the RMSE (and vice versa). Similarly, one can readily
show that, for several sets of errors with the same RMSE, the
MAE would vary from set to set.
Since statistics are just a collection of tools, researchers
must select the most appropriate tool for the question being
addressed. Because the RMSE and the MAE are defined dif-
ferently, we should expect the results to be different. Some-
times multiple metrics are required to provide a complete
picture of error distribution. When the error distribution is
expected to be Gaussian and there are enough samples, the
RMSE has an advantage over the MAE to illustrate the error
distribution.
The objective of this note is to clarify the interpretation of
the RMSE and the MAE. In addition, we demonstrate that
the RMSE satisfies the triangle inequality requirement for a
distance metric, whereas Willmott and Matsuura (2005) and
Willmott et al. (2009) have claimed otherwise.
2 Interpretation of RMSE and MAE
To simplify, we assume that we already have nsamples of
model errors calculated as (ei,i=1,2,...,n). The un-
certainties brought in by observation errors or the method
used to compare model and observations are not considered
here. We also assume the error sample set is unbiased. The
RMSE and the MAE are calculated for the data set as
MAE =1
n
n
X
i=1|ei|(1)
RMSE =v
u
u
t
1
n
n
X
i=1
e2
i.(2)
The underlying assumption when presenting the RMSE is
that the errors are unbiased and follow a normal distribution.
Table 1. RMSEs and MAEs of randomly generated pseudo-errors
with a zero mean and unit variance Gaussian distribution. Five sets
of errors of size nare generated with different random seeds.
nRMSEs MAEs
4 0.92, 0.65, 1.48, 1.02, 0.79 0.70, 0.57, 1.33, 1.16, 0.76
10 0.81, 1.10, 0.83, 0.95, 1.01 0.65, 0.89, 0.72, 0.84, 0.78
100 1.05, 1.03, 1.03, 1.00, 1.04 0.82, 0.81, 0.79, 0.78, 0.78
1000 1.04, 0.98, 1.01, 1.00, 1.00 0.82, 0.78, 0.80, 0.80, 0.81
10 000 1.00, 0.98, 1.01, 1.00, 1.00 0.79, 0.79, 0.79, 0.81, 0.80
100 000 1.00, 1.00, 1.00, 1.00, 1.00 0.80, 0.80, 0.80, 0.80, 0.80
1000 000 1.00, 1.00, 1.00, 1.00, 1.00 0.80, 0.80, 0.80, 0.80, 0.80
Thus, using the RMSE or the standard error (SE)1helps to
provide a complete picture of the error distribution.
Table 1 shows RMSEs and MAEs for randomly generated
pseudo-errors with zero mean and unit variance Gaussian
distribution. When the sample size reaches 100 or above, us-
ing the calculated RMSEs one can re-construct the error dis-
tribution close to its “truth” or “exact solution”, with its stan-
dard deviation within 5 % to its truth (i.e., SE =1). When
there are more samples, reconstructing the error distribution
using RMSEs will be even more reliable. The MAE here is
the mean of the half-normal distribution (i.e., the average of
the positive subset of a population of normally distributed
errors with zero mean). Table 1 shows that the MAEs con-
verge to 0.8, an approximation to the expectation of q2
π. It
should be noted that all statistics are less useful when there
are only a limited number of error samples. For instance, Ta-
ble 1 shows that neither the RMSEs nor the MAEs are robust
when only 4 or 10 samples are used to calculate those values.
In those cases, presenting the values of the errors themselves
(e.g., in tables) is probably more appropriate than calculat-
ing any of the statistics. Fortunately, there are often hundreds
of observations available to calculate model statistics, unlike
the examples with n=4 (Willmott and Matsuura, 2005) and
n=10 (Willmott et al., 2009).
Condensing a set of error values into a single number, ei-
ther the RMSE or the MAE, removes a lot of information.
The best statistics metrics should provide not only a perfor-
mance measure but also a representation of the error distribu-
tion. The MAE is suitable to describe uniformly distributed
errors. Because model errors are likely to have a normal dis-
tribution rather than a uniform distribution, the RMSE is a
better metric to present than the MAE for such a type of data.
1For unbiased error distributions, the standard error (SE) is
equivalent to the RMSE as the sample mean is assumed to be
zero. For an unknown error distribution, the SE of mean is the
square root of the “bias-corrected sample variance”. That is, SE =
s1
n1
n
P
i=1(ei)2, where =1
n
n
P
i=1ei.
Geosci. Model Dev., 7, 1247–1250, 2014 www.geosci-model-dev.net/7/1247/2014/
T. Chai and R. R. Draxler: RMSE or MAE 1249
3 Triangle inequality of a metric
Both Willmott and Matsuura (2005) and Willmott et al.
(2009) emphasized that sums-of-squares-based statistics do
not satisfy the triangle inequality. An example is given in
a footnote of Willmott et al. (2009). In the example, it is
given that d(a,c) =4, d (a, b) =2, and d(b, c) =3, where
d(x , y) is a distance function. The authors stated that d(x , y)
as a “metric” should satisfy the “triangle inequality” (i.e.,
d(a , c) d(a, b) +d (b, c)). However, they did not specify
what a,b, and crepresent here before arguing that the sum
of squared errors does not satisfy the “triangle inequality”
because 4 2+3, whereas 4222+32. In fact, this exam-
ple represents the mean square error (MSE), which cannot be
used as a distance metric, rather than the RMSE.
Following a certain order, the errors ei,i=1,...,n can
be written into a n-dimensional vector . The L1-norm and
L2-norm are closely related to the MAE and the RMSE, re-
spectively, as shown in Eqs. (3) and (4):
||1= n
X
i=1|ei|!=n·MAE (3)
||2=v
u
u
t n
X
i=1
e2
i!=n·RMSE.(4)
All vector norms satisfy |X+Y|≤|X|+|Y|and |X| =
|X|(see, e.g., Horn and Johnson, 1990). It is trivial to
prove that the distance between two vectors measured by
Lp-norm would satisfy |XY|p≤ |X|p+|Y|p. With three
n-dimensional vectors, X,Y, and Z, we have
|XY|p= |(XZ)(YZ)|p≤ |XZ|p+|YZ|p.(5)
For n-dimensional vectors and the L2-norm, Eq. (5) can
be written as
v
u
u
t
n
X
i=1
(xiyi)2v
u
u
t
n
X
i=1
(xizi)2+v
u
u
t
n
X
i=1
(yizi)2,(6)
which is equivalent to
v
u
u
t
1
n
n
X
i=1
(xiyi)2v
u
u
t
1
n
n
X
i=1
(xizi)2
+v
u
u
t
1
n
n
X
i=1
(yizi)2.(7)
This proves that RMSE satisfies the triangle inequality re-
quired for a distance function metric.
4 Summary and discussion
We present that the RMSE is not ambiguous in its meaning,
and it is more appropriate to use than the MAE when model
errors follow a normal distribution. In addition, we demon-
strate that the RMSE satisfies the triangle inequality required
for a distance function metric.
The sensitivity of the RMSE to outliers is the most com-
mon concern with the use of this metric. In fact, the exis-
tence of outliers and their probability of occurrence is well
described by the normal distribution underlying the use of the
RMSE. Table 1 shows that with enough samples (n100),
including those outliers, one can closely re-construct the er-
ror distribution. In practice, it might be justifiable to throw
out the outliers that are several orders larger than the other
samples when calculating the RMSE, especially if the num-
ber of samples is limited. If the model biases are severe, one
may also need to remove the systematic errors before calcu-
lating the RMSEs.
One distinct advantage of RMSEs over MAEs is that RM-
SEs avoid the use of absolute value, which is highly unde-
sirable in many mathematical calculations. For instance, it
might be difficult to calculate the gradient or sensitivity of
the MAEs with respect to certain model parameters. Further-
more, in the data assimilation field, the sum of squared er-
rors is often defined as the cost function to be minimized by
adjusting model parameters. In such applications, penalizing
large errors through the defined least-square terms proves to
be very effective in improving model performance. Under the
circumstances of calculating model error sensitivities or data
assimilation applications, MAEs are definitely not preferred
over RMSEs.
An important aspect of the error metrics used for model
evaluations is their capability to discriminate among model
results. The more discriminating measure that produces
higher variations in its model performance metric among dif-
ferent sets of model results is often the more desirable. In this
regard, the MAE might be affected by a large amount of aver-
age error values without adequately reflecting some large er-
rors. Giving higher weighting to the unfavorable conditions,
the RMSE usually is better at revealing model performance
differences.
In many of the model sensitivity studies that use only
RMSE, a detailed interpretation is not critical because varia-
tions of the same model will have similar error distributions.
When evaluating different models using a single metric, dif-
ferences in the error distributions become more important.
As we stated in the note, the underlying assumption when
presenting the RMSE is that the errors are unbiased and fol-
low a normal distribution. For other kinds of distributions,
more statistical moments of model errors, such as mean, vari-
ance, skewness, and flatness, are needed to provide a com-
plete picture of the model error variation. Some approaches
that emphasize resistance to outliers or insensitivity to non-
normal distributions have been explored by other researchers
(Tukey, 1977; Huber and Ronchetti, 2009).
As stated earlier, any single metric provides only one pro-
jection of the model errors and, therefore, only emphasizes
a certain aspect of the error characteristics. A combination
www.geosci-model-dev.net/7/1247/2014/ Geosci. Model Dev., 7, 1247–1250, 2014
1250 T. Chai and R. R. Draxler: RMSE or MAE
of metrics, including but certainly not limited to RMSEs and
MAEs, are often required to assess model performance.
Acknowledgements. This study was supported by NOAA grant
NA09NES4400006 (Cooperative Institute for Climate and
Satellites – CICS) at the NOAA Air Resources Laboratory in
collaboration with the University of Maryland.
Edited by: R. Sander
References
Chai, T., Carmichael, G. R., Tang, Y., Sandu, A., Heckel, A.,
Richter, A., and Burrows, J. P.: Regional NOxemission inversion
through a four-dimensional variational approach using SCIA-
MACHY tropospheric NO2column observations, Atmos. Env-
iron., 43, 5046–5055, 2009.
Chai, T., Kim, H.-C., Lee, P., Tong, D., Pan, L., Tang, Y., Huang,
J., McQueen, J., Tsidulko, M., and Stajner, I.: Evaluation of the
United States National Air Quality Forecast Capability experi-
mental real-time predictions in 2010 using Air Quality System
ozone and NO2measurements, Geosci. Model Dev., 6, 1831–
1850, doi:10.5194/gmd-6-1831-2013, 2013.
Chatterjee, A., Engelen, R. J., Kawa, S. R., Sweeney, C., and Micha-
lak, A. M.: Background error covariance estimation for atmo-
spheric CO2data assimilation, J. Geophys. Res., 118, 10140–
10154, 2013.
Horn, R. A. and Johnson, C. R.: Matrix Analysis, Cambridge Uni-
versity Press, 1990.
Huber, P. and Ronchetti, E.: Robust statistics, Wiley New York,
2009.
Jerez, S., Pedro Montavez, J., Jimenez-Guerrero, P., Jose Gomez-
Navarro, J., Lorente-Plazas, R., and Zorita, E.: A multi-physics
ensemble of present-day climate regional simulations over the
Iberian Peninsula, Clim. Dynam., 40, 3023–3046, 2013.
McKeen, S. A., Wilczak, J., Grell, G., Djalalova, I., Peck-
ham, S., Hsie, E., Gong, W., Bouchet, V., Menard, S., Mof-
fet, R., McHenry, J., McQueen, J., Tang, Y., Carmichael, G. R.,
Pagowski, M., Chan, A., Dye, T., Frost, G., Lee, P., and
Mathur, R.: Assessment of an ensemble of seven real-
time ozone forecasts over eastern North America during
the summer of 2004, J. Geophys. Res., 110, D21307,
doi:10.1029/2005JD005858, 2005.
Savage, N. H., Agnew, P., Davis, L. S., Ordóñez, C., Thorpe, R.,
Johnson, C. E., O’Connor, F. M., and Dalvi, M.: Air quality mod-
elling using the Met Office Unified Model (AQUM OS24-26):
model description and initial evaluation, Geosci. Model Dev., 6,
353–372, doi:10.5194/gmd-6-353-2013, 2013.
Taylor, M. H., Losch, M., Wenzel, M., and Schroeter, J.: On the
sensitivity of field reconstruction and prediction using empirical
orthogonal functions derived from gappy data, J. Climate, 26,
9194–9205, 2013.
Tukey, J. W.: Exploratory Data Analysis, Addison-Wesley, 1977.
Willmott, C. and Matsuura, K.: Advantages of the Mean Abso-
lute Error (MAE) over the Root Mean Square Error (RMSE)
in assessing average model performance, Clim. Res., 30, 79–82,
2005.
Willmott, C. J., Matsuura, K., and Robeson, S. M.: Ambiguities
inherent in sums-of-squares-based error statistics, Atmos. Env-
iron., 43, 749–752, 2009.
Geosci. Model Dev., 7, 1247–1250, 2014 www.geosci-model-dev.net/7/1247/2014/
... Mean Absolute Error (MAE) is used to assess the model's performance and is expressed by Eq. (14) [34]. ...
... In other words, the MAE is the mean of the absolute difference between the predicted and actual prices throughout the test set. The actual price and the predicted price differ significantly when the MAE is high [34]. ...
... In other words, it tells you how concentrated the data is around the line of best fit. It is commonly used in climatology, forecasting, and regression analysis to verify experimental results [48]. The equation that describes RMSE is as in Equation 3. ...
Article
Full-text available
The correlation coefficient is one of the essential statistical techniques used to discover relationships among variables. Various techniques can quantify correlation, such as Pearson's, Spearman's, and Kendall's correlation coefficients, depending on the data type. As with any use of data, missing data will impact the availability of data, reducing it and potentially affecting the results. Furthermore, the removal of missing-value data from the study when using complete case analysis or available case analysis may result in selection biases. In this paper, we investigate the impact of missing data on the correlation coefficient value by calculating the difference between the correlation coefficient of the original complete dataset and that of a dataset with missing data. Two deletion strategies (Listwise and Pairwise) and three imputation strategies (Mean, k-Nearest Neighbors (k-NN), and Expectation-Maximization) were used to prepare the data before calculating the correlation coefficient. Unique correlation coefficient values were created by converting unique values to a one-dimensional array, and RMSE metrics were used to evaluate the experiments. Eight UCI and Kaggle datasets with different sizes and numbers of attributes were used in this study. The experiment results demonstrate that the Pairwise strategy and k-NN give good results on the correlation coefficient, respectively, when the missing rate is moderate or less. Pairwise uses all the available values and discards only the missing values of the related attribute, while k-NN fills the missing values with new values that produce correlation coefficient values close to the actual values.
... °C at 15:00, registering 42.02 °C as the maximum value during the whole day. The 'heat stress zone' was consistently observed to occur in the most densely urbanized areas and those exposed to intense direct sunlight, notably at point 4. To further ensure the accuracy of the ENVI-met simulation model, we conducted a calibration by calculating key metrics such as the Mean Absolute Deviation (MAD), Root Mean Squared Error (RMSE), and Mean Absolute Percentage Error (MAPE) [28]. These metrics are widely used to quantify the agreement between simulated and observed values. ...
Article
Full-text available
The emergence of sustainable development gives greenery an important role in urban planning, namely, by recognizing its environmental potential. However, the rapid urbanization that most cities have experienced in the absence of a sustainable urban policy has led to the establishment of urban realms dominated by manmade constructions. This research aims to evaluate the greening’s effect on the urban climate within the semi-arid city of Djelfa (Algeria) during summertime by assigning the most appropriate greenery strategy to ensure optimal thermal conditions. Using a numerical model built with the ENVI-met tool and validated through measurements in situ, four different scenarios are simulated, starting with the existing area and then changing the greenery strategies. The outputs include meteorological parameters and thermal comfort indices (PET and UTCI). The results show that the green area generates a cool island within the urban fabric, with the peak daytime air temperature being reduced by about 4.75 °C. Vegetation densification in the urban space has a higher cooling performance than greening buildings during the daytime. In the evening, the canopy effect of trees is lower and the wind velocity is reduced, which is the main driver in cooling the city at nighttime.
... This study included measures of forecast accuracy that are often used, such as Mean Absolute Error (MAE) and Root Mean Square Error (RMSE), and it was determined that the best model was the one with the lowest MAE or RMSE [19][20][21]. (9) Where the difference between the actual observation (the average domestic retail price of teff per kilogram (in birr)) Y and the forecasted value y t is the forecast error ε t =Y t -y t , and n is the sample size (the length of the time series). ...
Article
Full-text available
One of the most popular main food crops grown by the majority of Ethiopians is teff (Eragrostis teff). More than 90% of the teff consumed worldwide is grown in Ethiopia. Despite having the highest output volume, this Ethiopian cereal crop has the highest price. The major goal of this study was to estimate and predict the domestic retail price of teff in Ethiopia. The Central Statistical Agency (CSA) of Ethiopia provided the data. The average monthly domestic retail price of teff per kilogram (in birr) in Ethiopia from January 1996 to June 2023 served as the study's source of data. The data are analyzed using both descriptive and inferential statistical methods. The Statistical Packages for Social Science (SPSS Version 20.0) and R statistical tools were used to conduct the analysis. Seasonal Autoregressive Integrated Moving Average (SARIMA) model was used for modeling the average monthly domestic retail price data of teff for 27 years and forecasting for the next five years. The final model chosen, using the AIC and BIC selection criteria, was SARIMA (2, 1, 4) × (0, 0, 2) 12 , which had the minimum Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). The domestic retail price of teff in Ethiopia is therefore predicted to increase relatively rapidly over the next five years, with seasonal variation.
... In order to evaluate the performance of the proposed prediction method through the sampled test set, the prediction error is measured using two metrics, such as Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) [32]. When using other indicators that deal with the error probability according to the actual value, the percentage could increase in the section where the actual value is less than 1. ...
Article
Full-text available
This paper proposes a novel short-term photovoltaic voltage (PV) prediction scheme using IoT sensor data with the two-stage neural network model. It is efficient to use environmental data provided by the meteorological agency to predict future PV generation. However, such environmental data represent the average value of the wide area, and there is a limitation in detecting environmental changes in the specific area where the solar panel is installed. In order to solve such issues, it is essential to establish IoT sensor data to detect environmental changes in the specific area. However, most conventional research focuses only on the efficiency of IoT sensor data without taking into account the timing of data acquisition from the sensors. In real-world scenarios, IoT sensor data is not available precisely when needed for predictions. Therefore, it is necessary to predict the IoT data first and then use it to forecast PV generation. In this paper, we propose a two-stage model to achieve high-accuracy prediction results. In the first stage, we use predicted environmental data to access IoT sensor data in the desired future time point. In the second stage, the predicted IoT sensors and environmental data are used to predict PV generation. Here, we determine the appropriate prediction scheme at each stage by analyzing the model characteristics to increase prediction accuracy. In addition, we show that the proposed prediction scheme could increase prediction accuracy by more than 12% compared to the baseline scheme that only uses a meteorological agency to predict PV generation.
Preprint
Full-text available
Utilizing a digital platform for self-monitoring offers advantages for remote activity tracking and generating recommendations. An automatic coaching system, known as eCoach, can be a valuable tool. It consistently gathers individual health and wellness data for the purpose of creating lifestyle recommendations, either tailored to an individual or based on community input. While personal recommendations in eCoaching are well-received, there is a lack of research on community-based recommendations. This study introduces an effective community-based eCoach recommendation system for assessing daily activity levels and offering physical activity suggestions. The approach involves collecting data from remote participants using wearable activity sensors and categorizing the data into sedentary (0) and active (1) classes for binary classification. The dataset used for physical activity levels exhibits an imbalance in class distribution and unequal misclassification costs, making imbalanced classification challenging. To address this issue and improve the performance of traditional machine-learning models, the study employs various oversampling techniques, including the Synthetic Minority Oversampling Technique (SMOTE), to create balanced datasets by generating synthetic samples from the minority class. Third, we explain the model classifications with Shapley Additive Explanations (SHAP). Fourth, we use hyperparameter tuning methods to obtain the best classification performance. Fifth, we consider a preference, activity patterns, and demographic attributes, such as age, gender, height, and weight, for advice and community-based recommendations to meet activity goals. For experimentation, we collected activity data from 16 participants (Male: 12; Female: 4) using a wearable MOX2-5 activity sensor (CE-certified) and combined the dataset with the public Fibit-based PMData activity dataset of 15 participants (Male: 12; Female: 3) to avoid bias, and for verification and advice-based recommendation planning, we considered last week’s participant data. The system’s performance has been evaluated using metrics such as accuracy, precision, recall, F1-score, brier-score, and Mathew’s coefficient (MCC) and achieves 99.8% accuracy (F1 = 99.8%, Precision = 99.8%, Recall = 99.8%, and MCC = 99.8%) with DecisionTree Classifier on the imbalanced dataset and 99.8% accuracy (F1 = 99.8%, Precision = 99.8%, Recall = 99.8%, and MCC = 99.8%) with DecisionTree Classifier on the balanced dataset. Ethical AI involves more than just coding; it entails ethical considerations and decision-making throughout development. In this study, we evaluated our models for bias and fairness, concentrating on the recommendation generation within an eCoach system. Future research will focus on efficacy evaluation in controlled trials, extending beyond this theoretical investigation.
Article
Unauthorized immigration has been a long‐standing and contentious challenge for developed and developing countries. Numerous continually evolving push and pull factors across international borders, such as economy, employment, population density, unrest, corruption, and climate have driven this migration. Large‐scale pandemics such as COVID‐19, causing further instability in countries' financial well‐being, can initiate or alter emigration flow from different countries. In light of such a complex confluence of factors, climate change, and demographic shifts in migrant communities, it is high time to shift toward machine learning–reinforced generalized approaches from the traditional parametric approaches based on migrant community–specific localized surveys. To our best knowledge, no literature has explored the nonparametric approach and developed a comprehensive database independent of localized surveys to analyze unauthorized migration. This article fills this gap by deploying nine nonparametric machine learning algorithms for predicting unauthorized immigration flow considering the dynamic border security nexus. This framework considers the Seasonal Autoregressive Integrated Moving Average model as the null model. The proposed novel framework removes the dependency on localized survey‐based studies and provides a more cost‐effective, faster, and big data–friendly approach. This study finds the Bayesian Additive Regression Tree model as the best predictive model.
Article
In the target-controlled infusion (TCI) of propofol and remifentanil intravenous anesthesia, accurate prediction of the depth of anesthesia (DOA) is very challenging. Patients with different physiological characteristics have inconsistent pharmacodynamic responses during different stages of anesthesia. For example, in TCI, older adults transition smoothly from the induction period to the maintenance period, while younger adults are more prone to anesthetic awareness, resulting in different DOA data distributions among patients. To address these problems, a deep learning framework that incorporates domain adaptation and knowledge distillation and uses propofol and remifentanil doses at historical moments to continuously predict the bispectral index (BIS) is proposed in this paper. Specifically, a modified adaptive recurrent neural network (AdaRNN) is adopted to address data distribution differences among patients. Moreover, a knowledge distillation pipeline is developed to train the prediction network by enabling it to learn intermediate feature representations of the teacher network. The experimental results show that our method exhibits better performance than existing approaches during all anesthetic phases in the TCI of propofol and remifentanil intravenous anesthesia. In particular, our method outperforms some state-of-the-art methods in terms of root mean square error and mean absolute error by 1 and 0.8, respectively, in the internal dataset as well as in the publicly available dataset.
Article
Full-text available
The on-line air quality model AQUM (Air Quality in the Unified Model) is a limited-area forecast configuration of the Met Office Unified Model which uses the UKCA (UK Chemistry and Aerosols) sub-model. AQUM has been developed with two aims: as an operational system to deliver regional air quality forecasts and as a modelling system to conduct air quality studies to inform policy decisions on emissions controls. This paper presents a description of the model and the methods used to evaluate the performance of the forecast system against the automated UK surface network of air quality monitors. Results are presented of evaluation studies conducted for a year-long period of operational forecast trials and several past cases of poor air quality episodes. The results demonstrate that AQUM tends to over-predict ozone (~8 μg m−3 mean bias for the year-long forecast), but has a good level of responsiveness to elevated ozone episode conditions – a characteristic which is essential for forecasting poor air quality episodes. AQUM is shown to have a negative bias for PM10, while for PM2.5 the negative bias is much smaller in magnitude. An analysis of speciated PM2.5 data during an episode of elevated particulate matter (PM) suggests that the PM bias occurs mainly in the coarse component. The sensitivity of model predictions to lateral boundary conditions (LBCs) has been assessed by using LBCs from two different global reanalyses and by comparing the standard, single-nested configuration with a configuration having an intermediate European nest. We conclude that, even with a much larger regional domain, the LBCs remain an important source of model error for relatively long-lived pollutants such as ozone. To place the model performance in context we compare AQUM ozone forecasts with those of another forecasting system, the MACC (Monitoring Atmospheric Composition and Climate) ensemble, for a 5-month period. An analysis of the variation of model skill with forecast lead time is presented and the insights this provides to the relative sources of error in air quality modelling are discussed.
Article
Full-text available
This work assesses the influence of the model physics in present-day regional climate simulations. It is based on a multi-phyiscs ensemble of 30-year long MM5 hindcasted simulations performed over a complex and climatically heterogeneous domain as the Iberian Peninsula. The ensemble consists of eight members that results from combining different parametrization schemes for modeling the Planetary Boundary Layer, the cumulus and the microphysics processes. The analysis is made at the seasonal time scale and focuses on mean values and interannual variability of temperature and precipitation. The objectives are (1) to evaluate and characterize differences among the simulations attributable to changes in the physical options of the regional model, and (2) to identify the most suitable parametrization schemes and understand the underlying mechanisms causing that some schemes perform better than others. The results confirm the paramount importance of the model physics, showing that the spread among the various simulations is of comparable magnitude to the spread obtained in similar multi-model ensembles. This suggests that most of the spread obtained in multi-model ensembles could be attributable to the different physical configurations employed in the various models. Second, we obtain that no single ensemble member outperforms the others in every situation. Nevertheless, some particular schemes display a better performance. On the one hand, the non-local MRF PBL scheme reduces the cold bias of the simulations throughout the year compared to the local Eta model. The reason is that the former simulates deeper mixing layers. On the other hand, the Grell parametrization scheme for cumulus produces smaller amount of precipitation in the summer season compared to the more complex Kain-Fritsch scheme by reducing the overestimation in the simulated frequency of the convective precipitation events. Consequently, the interannual variability of precipitation (temperature) diminishes (increases), which implies a better agreement with the observations in both cases. Although these features improve in general the accuracy of the simulations, controversial nuances are also highlighted.
Article
Full-text available
The National Air Quality Forecast Capability (NAQFC) project provides the US with operational and experimental real-time ozone predictions using two different versions of the three-dimensional Community Multi-scale Air Quality (CMAQ) modeling system. Routine evaluation using near-real-time AIRNow ozone measurements through 2011 showed better performance of the operational ozone predictions. In this work, quality-controlled and-assured Air Quality System (AQS) ozone and nitrogen dioxide (NO2) observations are used to evaluate the experimental predictions in 2010. It is found that both ozone and NO2 are overestimated over the contiguous US (CONUS), with annual biases of +5.6 and +5.1 ppbv, respectively. The annual root mean square errors (RMSEs) are 15.4 ppbv for ozone and 13.4 ppbv for NO2. For both species the overpredictions are most pronounced in the summer. The locations of the AQS monitoring sites are also utilized to stratify comparisons by the degree of urbanization. Comparisons for six predefined US regions show the highest annual biases for ozone predictions in Southeast (+10.5 ppbv) and for NO2 in the Lower Middle (+8.1 ppbv) and Pacific Coast (+7.1 ppbv) regions. The spatial distributions of the NO2 biases in August show distinctively high values in the Los Angeles, Houston, and New Orleans areas. In addition to the standard statistics metrics, daily maximum eight-hour ozone categorical statistics are calculated using the current US ambient air quality standard (75 ppbv) and another lower threshold (70 ppbv). Using the 75 ppbv standard, the hit rate and proportion of correct over CONUS for the entire year are 0.64 and 0.96, respectively. Summertime biases show distinctive weekly patterns for ozone and NO2. Diurnal comparisons show that ozone overestimation is most severe in the morning, from 07:00 to 10:00 local time. For NO2, the morning predictions agree with the AQS observations reasonably well, but nighttime concentrations are overpredicted by around 100%.
Article
Full-text available
In any data assimilation framework, the background error covariance statistics play the critical role of filtering the observed information and determining the quality of the analysis. For atmospheric CO2 data assimilation, however, the background errors cannot be prescribed via traditional forecast or ensemble-based techniques as these fail to account for the uncertainties in the carbon emissions and uptake, or for the errors associated with the CO2 transport model. We propose an approach where the differences between two modeled CO2 concentration fields, based on different but plausible CO2 flux distributions and atmospheric transport models, are used as a proxy for the statistics of the background errors. The resulting error statistics: (1) vary regionally and seasonally to better capture the uncertainty in the background CO2 field, and (2) have a positive impact on the analysis estimates by allowing observations to adjust predictions over large areas. A state-of-the-art four-dimensional variational (4D-VAR) system developed at the European Centre for Medium-Range Weather Forecasts (ECMWF) is used to illustrate the impact of the proposed approach for characterizing background error statistics on atmospheric CO2 concentration estimates. Observations from the Greenhouse gases Observing SATellite “IBUKI” (GOSAT) are assimilated into the ECMWF 4D-VAR system along with meteorological variables, using both the new error statistics and those based on a traditional forecast-based technique. Evaluation of the four-dimensional CO2 fields against independent CO2 observations confirms that the performance of the data assimilation system improves substantially in the summer, when significant variability and uncertainty in the fluxes are present.
Article
Full-text available
The on-line air quality model AQUM (Air Quality in the Unified Model) is a limited-area forecast configuration of the Met Office Unified Model which uses the UKCA (UK Chemistry and Aerosols) sub-model. AQUM has been developed with two aims: as an operational system to deliver regional air quality forecasts and as a modelling system to enable air quality studies to be conducted to inform policy decisions relating to emissions controls. This paper presents a description of the model and the methods used to evaluate the performance of the forecast system. Results are presented of evaluation studies conducted for a year-long period of operational forecast trials and several past cases of poor air quality episodes. To place the model performance in context we compare AQUM ozone forecasts with those of another forecasting system, the MACC ensemble, for a 5-month period. The results demonstrate that AQUM has a large dynamic range of modelled ozone levels and has a good level of responsiveness to elevated ozone episode conditions - a characteristic which is essential for forecasting poor air quality episodes. An analysis of the variation of model skill with forecast lead-time is presented and the insights this provides to the relative sources of error in air quality modelling are discussed.
Article
Full-text available
Empirical Orthogonal Function (EOF) Analysis is commonly used in the climate sciences and elsewhere to describe, reconstruct, and predict highly dimensional data fields. When data contain a high percentage of missing values (i.e. “gappy”), alternate approaches must be used in order to correctly derive EOFs. The aims of this paper are to assess the accuracy of several EOF approaches in the reconstruction and prediction of gappy data fields, using the Galapagos Archipelago as a case study example. EOF approaches included least-squares estimation via a covariance matrix decomposition (LSEOF), “Data Interpolating Empirical Orthogonal Functions” (DINEOF), and a novel approach called “Recursively-Subtracted Empirical Orthogonal Functions” (RSEOF). Model-derived data of historical surface Chlorophyll a concentrations and sea surface temperature, combined with a mask of gaps from historical remote sensing estimates, allowed for the creation of “true” and “observed” fields by which to gauge the performance of EOF approaches. Only DINEOF and RSEOF were found to be appropriate for gappy data reconstruction and prediction. DINEOF proved to be the superior approach in terms of accuracy, especially for noisy data with a high estimation error, although RSEOF may be preferred for larger data fields due to its relatively faster computation time.
Article
Full-text available
The real-time forecasts of ozone (O3) from seven air quality forecast models (AQFMs) are statistically evaluated against observations collected during July and August of 2004 (53 days) through the Aerometric Information Retrieval Now (AIRNow) network at roughly 340 monitoring stations throughout the eastern United States and southern Canada. One of the first ever real-time ensemble O3 forecasts, created by combining the seven separate forecasts with equal weighting, is also evaluated in terms of standard statistical measures, threshold statistics, and variance analysis. The ensemble based on the mean of the seven models and the ensemble based on the median are found to have significantly more temporal correlation to the observed daily maximum 1-hour average and maximum 8-hour average O3 concentrations than any individual model. However, root-mean-square errors (RMSE) and skill scores show that the usefulness of the uncorrected ensembles is limited by positive O3 biases in all of the AQFMs. The ensembles and AQFM statistical measures are reevaluated using two simple bias correction algorithms for forecasts at each monitor location: subtraction of the mean bias and a multiplicative ratio adjustment, where corrections are based on the full 53 days of available comparisons. The impact the two bias correction techniques have on RMSE, threshold statistics, and temporal variance is presented. For the threshold statistics a preferred bias correction technique is found to be model dependent and related to whether the model overpredicts or underpredicts observed temporal O3 variance. All statistical measures of the ensemble mean forecast, and particularly the bias-corrected ensemble forecast, are found to be insensitive to the results of any particular model. The higher correlation coefficients, low RMSE, and better threshold statistics for the ensembles compared to any individual model point to their preference as a real-time O3 forecast.
Article
Full-text available
Commonly used sums-of-squares-based error or deviation statistics—like the standard deviation, the standard error, the coefficient of variation, and the root-mean-square error—often are misleading indicators of average error or variability. Sums-of-squares-based statistics are functions of at least two dissimilar patterns that occur within data. Both the mean of a set of error or deviation magnitudes (the average of their absolute values) and their variability influence the value of a sum-of-squares-based error measure, which confounds clear assessment of its meaning. Interpretation problems arise, according to Paul Mielke, because sums-of-squares-based statistics do not satisfy the triangle inequality. We illustrate the difficulties in interpreting and comparing these statistics using hypothetical data, and recommend the use of alternate statistics that are based on sums of error or deviation magnitudes.
Article
[1] In any data assimilation framework, the background error covariance statistics play the critical role of filtering the observed information and determining the quality of the analysis. For atmospheric CO2 data assimilation, however, the background errors cannot be prescribed via traditional forecast or ensemble-based techniques as these fail to account for the uncertainties in the carbon emissions and uptake, or for the errors associated with the CO2 transport model. We propose an approach where the differences between two modeled CO2 concentration fields, based on different but plausible CO2 flux distributions and atmospheric transport models, are used as a proxy for the statistics of the background errors. The resulting error statistics: (1) vary regionally and seasonally to better capture the uncertainty in the background CO2 field, and (2) have a positive impact on the analysis estimates by allowing observations to adjust predictions over large areas. A state-of-the-art four-dimensional variational (4D-VAR) system developed at the European Centre for Medium-Range Weather Forecasts (ECMWF) is used to illustrate the impact of the proposed approach for characterizing background error statistics on atmospheric CO2 concentration estimates. Observations from the Greenhouse gases Observing SATellite “IBUKI” (GOSAT) are assimilated into the ECMWF 4D-VAR system along with meteorological variables, using both the new error statistics and those based on a traditional forecast-based technique. Evaluation of the four-dimensional CO2 fields against independent CO2 observations confirms that the performance of the data assimilation system improves substantially in the summer, when significant variability and uncertainty in the fluxes are present.
Article
The relative abilities of 2, dimensioned statistics-the root-mean-square error (RMSE) and the mean absolute error (MAE) -to describe average model-performance error are examined. The RMSE is of special interest because it is widely reported in the climatic and environmental literature; nevertheless, it is an inappropriate and misinterpreted measure of average error. RMSE is inappropriate because it is a function of 3 characteristics of a set of errors, rather than of one (the average error). RMSE varies with the variability within the distribution of error magnitudes and with the square root of the number of errors (n(1/2)), as well as with the average-error magnitude (MAE). Our findings indicate that MAE is a more natural measure of average error, and (unlike RMSE) is unambiguous. Dimensioned evaluations and inter-comparisons of average model-performance error, therefore, should be based on MAE.