تقييم خوارزميات التعلم الآلي لتوقع استهلاك الطاقة في المركبات الكهربائية: دراسة مقارنة
Evaluating machine learning algorithms for energy consumption prediction in electric vehicles: A comparative study

شارك:
المجلة: Scientific Reports، المجلد: 15، العدد: 1
DOI: https://doi.org/10.1038/s41598-025-94946-7
PMID: https://pubmed.ncbi.nlm.nih.gov/40341692
تاريخ النشر: 2025-05-08
المؤلف: Izhar Hussain وآخرون
الموضوع الرئيسي: المركبات الكهربائية والبنية التحتية

نظرة عامة

تبحث هذه الدراسة في فعالية أحد عشر نموذجًا من نماذج التعلم الآلي في التنبؤ باستهلاك الطاقة، لا سيما في سياق زيادة استخدام المركبات الكهربائية، باستخدام بيانات تاريخية من كولورادو. تشمل النماذج التي تم تقييمها الانحدار Ridge، والانحدار Lasso، وجيران K الأقرب (KNN)، وتعزيز التدرج، والانحدار بواسطة دعم المتجهات، والشبكة العصبية متعددة الطبقات (MLP)، وXGBoost، وCatBoost، وLightGBM، وعمليات Gaussian للانحدار (GPR)، والانحدار بواسطة الأشجار الإضافية. تم استخدام مقاييس الأداء مثل متوسط الخطأ المطلق (MAE)، ومتوسط الخطأ التربيعي (MSE)، وR²، وجذر متوسط الخطأ التربيعي (RMSE)، ومتوسط الخطأ التربيعي المعياري (NRMSE)، حيث برز نموذج الأشجار الإضافية كأكثر النماذج دقة، محققًا MAE قدره 0.5888 وقيمة R² قدرها 0.9592. بينما حقق كل من تعزيز التدرج وKNN أيضًا أداءً جيدًا، إلا أنهما كانا أقل موثوقية من نموذج الأشجار الإضافية.

تسلط الدراسة الضوء على أهمية اختيار الخوارزميات المناسبة لتوقع الطلب على الطاقة، خاصة مع ارتفاع اعتماد المركبات الكهربائية. وتؤكد على قوة النماذج التجميعية وغير الخطية في التقاط الأنماط الزمنية المعقدة، على الرغم من أنها تشير إلى قيود مثل التركيز الحصري على بيانات كولورادو، مما قد يحد من إمكانية تعميم النتائج على مناطق أخرى. بالإضافة إلى ذلك، بينما أظهر نموذج الأشجار الإضافية دقة عالية، فإن متطلبات الحوسبة الخاصة به قد تشكل تحديات للتطبيقات في الوقت الحقيقي. تشمل اتجاهات البحث المستقبلية استكشاف التعلم العميق والنماذج الهجينة، وتوسيع مجموعات البيانات لتشمل تنوعًا ديموغرافيًا وظروف جوية مختلفة، وتعزيز دقة التنبؤ من خلال تحسين المعلمات الفائقة وتقنيات التعلم الآلي المتقدمة.

الطرق

في هذه الدراسة، تم توضيح المنهجية لتوقع الطاقة باستخدام نماذج التعلم الآلي المختلفة. بدأت العملية بجمع البيانات، تلتها معالجة البيانات المسبقة وتحليل البيانات الاستكشافية لضمان جودة البيانات وملاءمتها. بعد ذلك، تم إجراء استخراج واختيار الميزات لتحديد المتغيرات الأكثر صلة التي تؤثر على توقعات الطاقة. بناءً على الميزات المختارة، تم تدريب عدة خوارزميات لتقييم أدائها في التنبؤ بنتائج الطاقة، كما هو موضح في الرسم المعماري العام المقدم في الشكل 3.

النتائج

قيمت الدراسة سبعة خوارزميات من التعلم الآلي لتوقع استخدام الطاقة استنادًا إلى بيانات تاريخية من كولورادو، باستخدام مقاييس مثل متوسط الخطأ المطلق (MAE)، ومتوسط الخطأ التربيعي (MSE)، وR²، وجذر متوسط الخطأ التربيعي (RMSE)، ومتوسط RMSE المعياري (NRMSE) لتقييم أداء النموذج. برز نموذج الأشجار الإضافية (ETR) كأكثر النماذج فعالية، محققًا MAE قدره 0.5888 وR² قدره 0.9592، مما يدل على قدرته على التقاط 95.92% من التباين في بيانات استهلاك الطاقة. ساهمت قدرة النموذج على التعامل مع مجموعات بيانات كبيرة وعلاقات معقدة في أدائه المتفوق، كما يتضح من الرسوم البيانية الزمنية والرسوم البيانية المبعثرة التي أظهرت توافقًا وثيقًا بين القيم المتوقعة والفعلية.

أداءت نماذج أخرى، بما في ذلك جيران K الأقرب (KNN) وتعزيز التدرج، أيضًا بشكل جيد، ولكن مع قدرات تنبؤية أقل قليلاً. سجل KNN MAE قدره 1.8517 وR² قدره 0.8792، بينما كان لدى تعزيز التدرج MAE قدره 2.0306 وR² قدره 0.8838. بالمقابل، أظهرت نماذج مثل الشبكة العصبية متعددة الطبقات (MLP) والانحدار Ridge وLasso أداءً أقل، حيث واجهت صعوبة في التقاط تعقيدات مجموعة البيانات. أظهرت تحليل أهمية الميزات أن Charging_Time__seconds كان المتنبئ الأكثر أهمية لاستهلاك الطاقة، مما يبرز أهمية مقاييس مدة الجلسة. بشكل عام، تؤكد الدراسة على فعالية النماذج التجميعية وغير الخطية، وخاصة ETR، في التنبؤ بدقة بأنماط استهلاك الطاقة، مما يقترح طرقًا للبحث المستقبلي لتعزيز أداء النموذج والمساهمة في إدارة الطاقة المستدامة.

المناقشة

في هذا القسم، تركز المناقشة على التقدم في نماذج التعلم الآلي لتوقع استهلاك الطاقة في محطات شحن المركبات الكهربائية (EV). من الجدير بالذكر أن نموذج BiConvLSTM يظهر أداءً متفوقًا على ConvLSTM، محققًا متوسط خطأ مطلق (MAE) قدره 4.89 كيلوواط مقارنة بـ 5.34 كيلوواط، على الرغم من أن تعقيده يحد من قابليته للتطبيق في السيناريوهات الزمنية الحقيقية مع مجموعات بيانات أصغر. تم تقييم نماذج أخرى، بما في ذلك LSTM وARIMA، حيث تفوق LSTM في التنبؤات قصيرة المدى وأظهر ARIMA مرونة مع مجموعات بيانات أكبر. يعزز إدراج المتغيرات الخارجية، مثل ظروف الطقس، دقة التنبؤ بشكل كبير عبر نماذج مختلفة.

تسلط الدراسة الضوء على أهمية تقنيات التنبؤ المتقدمة في إدارة الطلب المتزايد على المركبات الكهربائية، مما يشكل تحديات للشبكات الكهربائية. أظهرت نماذج التعلم الآلي، وخاصة LSTM، دقة ملحوظة في تحديد أنماط الشحن المعقدة، محققة متوسط خطأ تربيعي (MSE) قدره 0.0022 ومتوسط خطأ نسبي مطلق (MAPE) قدره 5.7%. ومع ذلك، تتطلب هذه النماذج موارد حوسبة كبيرة وبيانات عالية الجودة، مما قد يحد من تنفيذها العملي. تؤكد النتائج على إمكانيات خوارزميات التعلم الآلي، مثل Random Forest وLightGBM، في تحسين توقعات استهلاك الطاقة ومعالجة التحديات المرتبطة بتوقعات الطاقة المتجددة، مما يساهم في تخطيط البنية التحتية، وإدارة الشبكة، وصنع السياسات لاعتماد المركبات الكهربائية المستدامة.

Journal: Scientific Reports, Volume: 15, Issue: 1
DOI: https://doi.org/10.1038/s41598-025-94946-7
PMID: https://pubmed.ncbi.nlm.nih.gov/40341692
Publication Date: 2025-05-08
Author(s): Izhar Hussain et al.
Primary Topic: Electric Vehicles and Infrastructure

Overview

This research investigates the efficacy of eleven machine learning models in predicting energy consumption, particularly in the context of increasing electric vehicle usage, using historical data from Colorado. The models assessed include Ridge Regression, Lasso Regression, K-Nearest Neighbors (KNN), Gradient Boosting, Support Vector Regression, Multi-Layer Perceptron (MLP), XGBoost, CatBoost, LightGBM, Gaussian Processes for Regression (GPR), and Extra Trees Regressor. Performance metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), R², Root Mean Squared Error (RMSE), and Normalized Root Mean Squared Error (NRMSE) were employed, with the Extra Trees Regressor emerging as the most accurate model, achieving an MAE of 0.5888 and an R² value of 0.9592. While Gradient Boosting and KNN also performed well, they were less reliable than the Extra Trees Regressor.

The study highlights the importance of selecting appropriate algorithms for energy demand forecasting, especially as electric vehicle adoption rises. It emphasizes the strengths of ensemble and non-linear models in capturing complex time-series patterns, though it notes limitations such as the exclusive focus on Colorado data, which may restrict generalizability to other regions. Additionally, while the Extra Trees Regressor demonstrated high accuracy, its computational demands could pose challenges for real-time applications. Future research directions include exploring deep learning and hybrid models, expanding datasets to encompass diverse demographics and weather conditions, and enhancing predictive accuracy through hyperparameter optimization and advanced machine learning techniques.

Methods

In this study, the methodology for energy prediction utilizing various machine learning (ML) models is outlined. The process commenced with data collection, followed by data preprocessing and exploratory data analysis to ensure the quality and relevance of the data. Subsequently, feature extraction and selection were conducted to identify the most pertinent variables influencing energy predictions. Based on the selected features, multiple algorithms were trained to evaluate their performance in predicting energy outcomes, as illustrated in the general architectural diagram presented in Figure 3.

Results

The research evaluated seven machine-learning algorithms for predicting energy usage based on historical data from Colorado, utilizing metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), R², Root Mean Squared Error (RMSE), and Normalized RMSE (NRMSE) to assess model performance. The Extra Trees Regressor (ETR) emerged as the most effective model, achieving an MAE of 0.5888 and an R² of 0.9592, indicating its capacity to capture 95.92% of the variance in energy consumption data. The model’s ability to handle large datasets and complex relationships contributed to its superior performance, as evidenced by time series and scatter plots that demonstrated a close alignment between predicted and actual values.

Other models, including K-Nearest Neighbors (KNN) and Gradient Boosting, also performed well, but with slightly lower predictive capabilities. KNN recorded an MAE of 1.8517 and an R² of 0.8792, while Gradient Boosting had an MAE of 2.0306 and an R² of 0.8838. In contrast, models like Multi-Layer Perceptron (MLP) and Ridge and Lasso Regression exhibited poorer performance, struggling to capture the dataset’s complexities. Feature importance analysis highlighted that Charging_Time__seconds was the most significant predictor of energy consumption, emphasizing the importance of session duration metrics. Overall, the study underscores the effectiveness of ensemble and non-linear models, particularly ETR, in accurately predicting energy consumption patterns, suggesting avenues for future research to enhance model performance and contribute to sustainable energy management.

Discussion

In this section, the discussion centers on the advancements in machine learning models for predicting energy consumption at electric vehicle (EV) charging stations. Notably, the BiConvLSTM model demonstrates superior performance over ConvLSTM, achieving a mean absolute error (MAE) of 4.89 kW compared to 5.34 kW, although its complexity limits its applicability in real-time scenarios with smaller datasets. Other models, including LSTM and ARIMA, were also evaluated, with LSTM excelling in short-term predictions and ARIMA showing flexibility with larger datasets. The incorporation of external variables, such as weather conditions, significantly enhances prediction accuracy across various models.

The research highlights the importance of advanced prediction techniques in managing the increasing demand for EVs, which poses challenges to electrical networks. Machine learning models, particularly LSTM, have shown remarkable accuracy in identifying complex charging patterns, achieving a mean squared error (MSE) of 0.0022 and a mean absolute percentage error (MAPE) of 5.7%. However, these models require substantial computational resources and high-quality data, which may restrict their practical implementation. The findings underscore the potential of machine learning algorithms, such as Random Forest and LightGBM, in optimizing energy consumption predictions and addressing the challenges associated with renewable energy forecasting, thereby informing infrastructure planning, grid management, and policy-making for sustainable EV adoption.