A method for energy consumption management based on machine learning

Energy consumption management is carried out through machine learning technology, identifying periodic changes and abnormal patterns, adjusting production line parameters in real time, solving the problems of insufficient data analysis and slow response of traditional energy consumption management methods, and achieving maximum efficiency and minimization of waste in energy use. , which improves the intelligent level of energy consumption optimization and the economic and environmental benefits of enterprises.

CN118134696BActive Publication Date: 2024-10-25HANGZHOU WHALE CLOUD INTELLIGENT IND TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410414074.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-10-25
Estimated Expiration
2044-04-08

AI Technical Summary

Technical Problem

Traditional energy consumption management methods are insufficient in detailed data analysis, real-time monitoring and precise regulation, and cannot effectively distinguish between different energy consumption behavior patterns, resulting in unreasonable energy use, slow response, and inability to optimize energy utilization, which increases corporate costs and affects Environmental protection effect.

Method used

Adopt an energy consumption management method based on machine learning to identify periodic changes through time series analysis, cluster analysis to classify energy consumption behavior patterns, identify abnormal patterns, use decision tree algorithms to adjust production line parameters, establish an energy consumption optimization model, and achieve real-time monitoring and Dynamic regulation ensures maximum efficiency and minimized waste in energy use.

Benefits of technology

Through accurate energy consumption trend prediction and real-time control, the intelligent level of energy management is improved, the effectiveness of energy consumption optimization is improved, and the economic benefits and environmental responsibility of enterprises are promoted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118134696B_ABST
    Figure CN118134696B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent energy consumption optimization technology, specifically to an energy consumption management method based on machine learning, including the following steps: collecting energy consumption data and production process parameters in industrial production, performing time series analysis, identifying periodic changes, marking energy consumption peaks and troughs, generating periodic energy consumption patterns, dividing data into multiple groups representing differentiated energy consumption behaviors, analyzing each data group, selecting key energy consumption influencing factors, and generating energy consumption association rules. In the present invention, the identification of periodic changes through time series analysis not only enhances the accuracy of prediction of energy consumption trends, but also provides a reliable basis for the prediction of peak and trough periods. The introduction of cluster analysis processes data to improve the pertinence and effectiveness of management measures. Through abnormal pattern recognition and decision tree algorithms, energy consumption management can be refined and regulated on the basis of real-time monitoring, ensuring the maximum efficiency and minimum waste of energy use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy consumption optimization, and in particular to an energy consumption management method based on machine learning. Background Art

[0002] The field of energy optimization technology is a field that uses data analysis technology to improve energy efficiency and reduce energy consumption. In this technology field, machine learning algorithms are used to understand and predict energy consumption patterns, thereby achieving more effective energy management. This includes identifying trends and patterns from historical energy consumption data, optimizing the operating time of equipment and systems to reduce waste, and automatically adjusting energy distribution to meet changes in demand. This field is not only focused on reducing energy costs, but also on reducing environmental impact and promoting sustainable development through smarter energy management.

[0003] Among them, the energy consumption management method based on machine learning is a way to monitor, analyze and optimize energy consumption using machine learning technology. The main purpose of this method is to identify energy saving opportunities and inefficient nodes by analyzing a large amount of energy consumption data. Through in-depth learning of historical energy consumption data, this method can predict energy consumption requirements in specific periods of time, automatically adjust the operating status of equipment, and implement energy-saving measures to reduce overall energy consumption, improve energy efficiency, and reduce environmental impact.

[0004] Traditional energy management methods are obviously insufficient in terms of detailed data analysis, real-time monitoring and precise control. Traditional methods lack in-depth analysis of periodic changes and fail to make full use of advanced data processing technologies such as clustering, resulting in the inability to effectively distinguish different energy consumption behavior patterns, affecting the efficiency and effectiveness of energy management. The lack of abnormal pattern recognition and the lack of effective decision support tools further limit the timeliness and accuracy of production parameter adjustments, resulting in unreasonable energy use and failure to meet optimization needs. These limitations lead to slow response of energy management in responding to emergencies and adjusting production line parameters to adapt to changes in energy consumption, making it impossible to achieve optimal energy utilization, increasing enterprise costs and affecting environmental protection effects. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings of the prior art and propose an energy consumption management method based on machine learning.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: an energy consumption management method based on machine learning, comprising the following steps:

[0007] S1: Collect energy consumption data and production process parameters in industrial production, conduct time series analysis, identify periodic changes, mark peak and trough periods of energy consumption, and generate periodic energy consumption patterns;

[0008] S2: Based on the periodic energy consumption pattern, a cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, each data group is analyzed, and based on the frequency screening pattern combination, key energy consumption influencing factors are selected to generate energy consumption association rules;

[0009] S3: using the energy consumption association rule, analyzing each data point in the data set, identifying the data points with abnormal patterns, marking them as abnormal, refining the abnormal pattern classification, and establishing an abnormal pattern recognition model;

[0010] S4: Based on the abnormal pattern recognition model, a decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust production line parameters to match energy consumption optimization requirements, capture optimal parameter configuration, and establish a production line energy consumption optimization model;

[0011] S5: Using the production line energy consumption optimization model, implement real-time energy consumption data monitoring and conduct instant analysis. When the energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted to establish a real-time energy consumption monitoring and adjustment framework;

[0012] S6: Based on the real-time monitoring and adjustment framework for energy consumption, dynamically adjust production parameters according to monitoring results, maintain energy consumption at an optimal level, and generate a dynamic energy consumption control strategy.

[0013] As a further solution of the present invention, the periodic performance consumption pattern includes energy consumption peak period indicators, energy consumption trough period indicators, and a set of periodic change time points; the energy consumption association rules include a set of energy consumption influencing factors, a set of energy consumption behavior patterns, and an energy consumption relationship mapping table; the abnormal pattern recognition model is specifically an abnormal data point set, an abnormal pattern category, and a normal and abnormal distinction standard set; the production line energy consumption optimization model includes a parameter relationship graph set, a parameter adjustment scheme set, and an energy consumption and production efficiency balance configuration; the energy consumption real-time monitoring and adjustment framework includes a real-time data monitoring system, an automatic parameter adjustment mechanism, and an energy consumption optimization strategy set; the dynamic energy consumption control strategy includes a parameter adjustment instruction set, an equipment operating speed adjustment strategy, and a temperature setting optimization scheme.

[0014] As a further solution of the present invention, based on the periodic energy consumption mode, a cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, each data group is analyzed, and based on the frequency screening mode combination, key energy consumption influencing factors are selected, and the steps of generating energy consumption association rules are specifically as follows:

[0015] S201: Based on the periodic energy consumption pattern, a time series analysis method is used to collect energy consumption data in multiple time periods, analyze the change trend, identify the peak and trough periods of energy consumption, construct the characteristics of energy consumption fluctuations over time, and generate a periodic fluctuation feature set;

[0016] S202: Based on the periodic fluctuation feature set, the energy consumption data is subdivided, the energy consumption performance in the differentiated time periods is distinguished, the energy consumption characteristics in each time period are plotted, the data is grouped according to the energy consumption characteristics, and differentiated energy consumption behavior groups are generated;

[0017] S203: Based on the differentiated energy consumption behavior grouping, collect and analyze the frequency and pattern of data in each group, select data patterns based on frequency and influence, reveal the association between energy consumption and factors through data patterns, and establish energy consumption association rules.

[0018] As a further solution of the present invention, the time series analysis method adopts the formula

[0019]

[0020] in, is the weighted moving average at time t, w i is the weight coefficient at time ti, n is the window size of the moving average, x t-i is the original data value at time ti.

[0021] As a further solution of the present invention, the steps of using energy consumption association rules to analyze each data point in the data set, identifying data points with abnormal patterns, marking them as abnormal, refining the abnormal pattern classification, and establishing an abnormal pattern recognition model are as follows:

[0022] S301: Analyze each data point in the data set by using the energy consumption association rule, identify data points that deviate from the normal range by comparing energy consumption patterns, mark them as preliminary abnormalities, and establish a preliminary abnormality data set;

[0023] S302: Based on the preliminary abnormal data set, perform in-depth analysis on the abnormal data points, and obtain a refined abnormal pattern classification data set by identifying energy consumption fluctuation patterns of the data points, including sudden increases or sudden decreases;

[0024] S303: Based on the refined abnormal pattern classification data set, each data point is marked with an abnormal pattern, the data points and abnormal patterns are integrated, each data point in the data set is classified, the classification results are quality evaluated, and an abnormal pattern recognition model is established.

[0025] As a further solution of the present invention, based on the abnormal pattern recognition model, a decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust production line parameters to match energy consumption optimization requirements, capture optimal parameter configuration, and establish a production line energy consumption optimization model in the following specific steps:

[0026] S401: Analyze the abnormal energy consumption pattern under the operating conditions of the target production line based on the abnormal pattern recognition model, identify the operating conditions with excessively high energy consumption by comparing normal energy consumption data with abnormal energy consumption data, and generate correlation analysis results;

[0027] S402: Based on the correlation analysis results, design adjustment measures for operating conditions with high energy consumption, adjust production line parameters one by one, implement small-scale tests, record energy consumption changes after each adjustment, and generate adjustment experiment optimization results;

[0028] S403: Based on the optimization results of the adjustment experiment, the optimal parameter configuration is implemented in the production line, the operating conditions are adjusted, the energy consumption performance after optimization is monitored over a long period of time, the long-term effect and stability of the adjustment measures are verified, and a production line energy consumption optimization model is established.

[0029] As a further solution of the present invention, the production line energy consumption optimization model is used to implement real-time energy consumption data monitoring and conduct instant analysis. When the energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted. The steps of establishing a real-time energy consumption monitoring and adjustment framework are specifically as follows:

[0030] S501: using the production line energy consumption optimization model, implementing real-time energy consumption data monitoring, and generating a real-time equipment status data set by installing temperature and current monitors at key nodes of the production line;

[0031] S502: Based on the real-time equipment status data set, a decision tree algorithm is used to monitor the equipment operating efficiency, identify equipment with low operating efficiency, mark equipment that does not meet the efficiency standard through an efficiency evaluation tool, and establish a list of inefficient equipment;

[0032] S503: According to the inefficient equipment list, the production line parameters are automatically adjusted, the production process is optimized by modifying the equipment operation mode or replacing the inefficient equipment, and a real-time monitoring and adjustment framework for energy consumption is established.

[0033] As a further solution of the present invention, the decision tree algorithm adopts the formula

[0034]

[0035] Among them, Improved Gini(t) is the improved Gini impurity, c is the number of categories, p(i|t) is the proportion of records belonging to the i-th category under node t, Var(T) is the variance of data set T, which indicates the degree of dispersion of feature data, Skew(T) is the skewness of data set T, which indicates the asymmetry of data distribution, Kurt(T) is the kurtosis of data set T, which indicates the sharpness of data distribution, α, β, γ

[0036] is the weight coefficient, which adjusts the influence of variance, skewness and kurtosis on improving Gini impurity.

[0037] Compared with the prior art, the advantages and positive effects of the present invention are:

[0038] In the present invention, accurate identification of periodic changes through time series analysis not only enhances the accuracy of energy consumption trend prediction, but also provides a reliable basis for the prediction of peak and trough periods. The introduction of cluster analysis effectively differentiates the data and improves the pertinence and effectiveness of management measures. Through accurate abnormal pattern recognition and decision tree algorithm, energy consumption management can be finely regulated on the basis of real-time monitoring, thereby ensuring maximum efficiency and minimum waste of energy use. The innovative application of these technical means has significantly improved the intelligence level of energy management, strengthened the effectiveness of energy consumption optimization, and effectively promoted the dual improvement of economic benefits and environmental responsibility of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the main steps of the present invention;

[0040] Figure 2 It is a schematic diagram of the refinement of S1 of the present invention;

[0041] Figure 3 It is a schematic diagram of the refinement of S2 of the present invention;

[0042] Figure 4 It is a schematic diagram of the refinement of S3 of the present invention;

[0043] Figure 5 It is a schematic diagram of the refinement of S4 of the present invention;

[0044] Figure 6 It is a detailed schematic diagram of S5 of the present invention;

[0045] Figure 7 It is a detailed schematic diagram of S6 of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0047] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0048] Embodiment 1

[0049] See also Figure 1 The present invention provides a technical solution: an energy consumption management method based on machine learning, comprising the following steps:

[0050] S1: Collect energy consumption data and production process parameters in industrial production, conduct time series analysis, identify periodic changes, mark peak and trough periods of energy consumption, and generate periodic energy consumption patterns;

[0051] S2: Based on the periodic energy consumption pattern, the cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, analyze each data group, select key energy consumption influencing factors based on the frequency screening pattern combination, and generate energy consumption association rules;

[0052] S3: Use energy consumption association rules to analyze each data point in the data set, identify data points with abnormal patterns, mark them as abnormal, refine the abnormal pattern classification, and establish an abnormal pattern recognition model;

[0053] S4: Based on the abnormal pattern recognition model, the decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust the production line parameters to match the energy consumption optimization requirements, capture the optimal parameter configuration, and establish a production line energy consumption optimization model;

[0054] S5: Use the production line energy consumption optimization model to implement real-time energy consumption data monitoring and conduct instant analysis. When energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted to establish a real-time energy consumption monitoring and adjustment framework;

[0055] S6: Based on the real-time monitoring and adjustment framework of energy consumption, dynamically adjust production parameters according to the monitoring results, maintain energy consumption at the optimal level, and generate a dynamic energy consumption control strategy.

[0056] The periodic performance consumption pattern includes energy consumption peak period indicators, energy consumption trough period indicators, and a set of periodic change time points. The energy consumption association rules include a set of energy consumption influencing factors, a set of energy consumption behavior patterns, and an energy consumption relationship mapping table. The abnormal pattern recognition model is specifically a set of abnormal data points, abnormal pattern categories, and a set of normal and abnormal distinction standards. The production line energy consumption optimization model includes a parameter relationship graph set, a parameter adjustment plan set, and an energy consumption and production efficiency balance configuration. The real-time monitoring and adjustment framework of energy consumption includes a real-time data monitoring system, an automatic parameter adjustment mechanism, and an energy consumption optimization strategy set. The dynamic energy consumption control strategy includes a parameter adjustment instruction set, an equipment operating speed adjustment strategy, and a temperature setting optimization plan.

[0057] See also Figure 2 , collect energy consumption data and production process parameters in industrial production, conduct time series analysis, identify periodic changes, mark peak and trough periods of energy consumption, and generate periodic energy consumption patterns in the following steps:

[0058] S101: By installing electric energy meters, flow meters and temperature sensors, the energy consumption data and production process parameters in industrial production are captured in real time, recorded in the database, and the original energy consumption and production parameter data sets are generated;

[0059] By installing electric energy meters, flow meters and temperature sensors, energy consumption data and production process parameters in industrial production are captured in real time and recorded in the database to generate original energy consumption and production parameter data sets. The data is then stored in a structured manner using the database management system (specifically MySQL, which uses Structured Query Language for data insertion, including the INSERT INTO statement for inserting the captured data into the specified data table. The data table design includes fields such as energy consumption values, flow values, temperature values ​​and timestamps to ensure structured data storage for subsequent processing). The data is then sorted and archived to ensure data integrity and accessibility.

[0060] S102: Based on the original energy consumption and production parameter data sets, each indicator is subdivided into time periods, the change trend of the data in each subdivided time period is identified, the periodic fluctuation pattern in the data is separated, and a periodic change characteristic data set is obtained;

[0061] Based on the original energy consumption and production parameter data sets, each indicator is subdivided into time periods, the changing trend of the data in each subdivided time period is identified, the periodic fluctuation pattern in the data is separated, and the periodic change characteristic data set is obtained. The time series analysis method is used (specifically, the time series is segmented using Python's pandas library, and the time series data is resampled through the resample function to be divided into finer time periods, such as by hours or days, and then the nump y library is used to calculate the average, maximum, minimum and other statistical indicators in each subdivided time period, and the periodic fluctuation pattern is identified through these statistical indicators) to perform statistical analysis on the segmented time periods, identify the periodic fluctuation pattern, and extract representative periodic characteristics.

[0062] S103: Based on the periodic variation characteristic data set, classify the data points according to the fit of the energy consumption fluctuation, mark the data points as time periods representing peak periods or trough periods, integrate the classification and marking information, and generate a periodic energy consumption pattern.

[0063] Based on the periodic change characteristic data set, the data points are classified according to the fit of the energy consumption fluctuation, and the data points are marked as time periods representing peak or trough periods. The classification and marking information is integrated to generate a periodic energy consumption pattern. The clustering analysis method is used (specifically, the KMeans algorithm in the scikit-learn library is used, the number of clusters is set to 2, representing peak and trough periods, the energy consumption value of the data point is used as the feature input, and the data points are fitted and classified through the fit_predict method to obtain the category to which each data point belongs) to classify the periodic characteristic data, mark the time periods of the data points, and complete the construction of the periodic energy consumption pattern.

[0064] See also Figure 3 ,Based on the periodic energy consumption pattern, a cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, and each data group is analyzed.,Based on the combination of frequency screening patterns, key energy consumption influencing factors are selected, and the steps of generating energy consumption association rules are as follows:

[0065] S201: Based on the periodic energy consumption pattern, the time series analysis method is used to collect energy consumption data in multiple time periods, analyze the change trend, identify the peak and trough periods of energy consumption, construct the characteristics of energy consumption fluctuations over time, and generate a periodic fluctuation feature set;

[0066] Based on the periodic energy consumption pattern, the time series analysis method is adopted, and the pandas library in Python language is used to process the energy consumption data of multiple time periods. First, the energy consumption data is loaded through the DataFrame object, and then the resample method is used to resample the data according to the time frequency to analyze the change trend and identify the peak and trough periods of energy consumption. The rolling method is used to calculate the moving average to smooth the data fluctuations. The matplotlib library is used to draw a chart of the energy consumption fluctuations over time, and the characteristics of the energy consumption fluctuations over time are constructed to generate a periodic fluctuation feature set.

[0067] Time series analysis uses the formula

[0068]

[0069] in, is the weighted moving average at time t, w i is the weight coefficient at time ti, n is the window size of the moving average, x t-i is the original data value at time ti.

[0070] First, the window size n is selected, which determines the time range considered when calculating the moving average. Then, a weight coefficient w is set for each time point ti i , these weight coefficients reflect the relative importance of the data at each time point in calculating the current moving average. Then, the weighted sum is calculated, that is, the original data value at each time point is multiplied by its corresponding weight coefficient, and then summed. Finally, the weighted sum is divided by the sum of the weight coefficients to obtain the weighted moving average at time t. Weight coefficient w i The settings can be adjusted according to the specific characteristics of the data. For example, the weight can be increased or decreased according to the distance of the time point from the current moment, or the weight can be adjusted according to the peak and trough periods of energy consumption in the past to improve the calculation accuracy.

[0071] S202: Based on the periodic fluctuation feature set, the energy consumption data is segmented, the energy consumption performance in the differentiated time periods is distinguished, the energy consumption characteristics in each time period are plotted, the data is grouped according to the energy consumption characteristics, and differentiated energy consumption behavior groups are generated;

[0072] Based on the periodic fluctuation feature set, the cluster analysis method is adopted, and the KMeans algorithm of the scikit-learn library in Python language is used to segment the energy consumption data. First, the energy consumption data in the time period is input into the KMeans algorithm through the fit_predict method. The cluster number parameter n_clusters is set in the algorithm as the predetermined number of groups to distinguish the energy consumption performance in differentiated time periods. The energy consumption characteristics chart of each time period is drawn using the matplotlib library. The data is grouped according to the energy consumption characteristics to generate differentiated energy consumption behavior groups.

[0073] S203: Based on the differentiated energy consumption behavior grouping, collect and analyze the frequency and pattern of data in each group, select data patterns based on frequency and influence, reveal the association between energy consumption and factors through data patterns, and establish energy consumption association rules.

[0074] Based on the differentiated energy consumption behavior grouping, the association rule learning method is adopted. The apriori function and association_rules function of the mlxtend library in Python language are used to collect and analyze the frequency and pattern of data in each group. The minimum support parameter min_support is set in the apriori function to filter low-frequency item sets, and the association_rules function is used to select data patterns based on frequency and influence. Through these data patterns, the association between energy consumption and factors is revealed, and energy consumption association rules are established.

[0075] See also Figure 4 ,Using the energy consumption association rules, analyzing each data point in the data set, identifying the data points with abnormal patterns, marking them as abnormal, refining the abnormal pattern classification, and establishing the abnormal pattern recognition model are as follows:

[0076] S301: Analyze each data point in the data set by using the energy consumption association rule, identify data points that deviate from the normal range by comparing the energy consumption patterns, mark them as preliminary abnormalities, and establish a preliminary abnormality data set;

[0077] By using energy consumption association rules and outlier detection algorithm, each data point in the data set is processed using the zscore function of the SciPy library in the Python language. First, the z score of each data point is calculated to compare the energy consumption pattern, identify data points that deviate from the normal range, and mark them as preliminary anomalies. The indexes of data points that deviate from the normal range are collected through the numpy library, and these data points are extracted from the original data set based on the index to establish a preliminary anomaly data set.

[0078] S302: Based on the preliminary abnormal data set, perform in-depth analysis on the abnormal data points, and obtain a refined abnormal pattern classification data set by identifying the energy consumption fluctuation pattern of the data points, including sudden increase or sudden decrease;

[0079] Based on the preliminary abnormal data set, the time series anomaly detection method is adopted, and the Facebook Prophet library in Python language is used to conduct in-depth analysis of the abnormal data points. First, the preliminary abnormal data set is input into the Prophet model through the fit method. The model automatically processes the seasonal changes and trends of the time series data, and identifies the energy consumption fluctuation pattern of the data point through the predict method, including sudden increase or decrease. The component analysis function of the Prophet model is used to obtain a refined abnormal pattern classification data set.

[0080] S303: Based on the refined abnormal pattern classification data set, each data point is marked with an abnormal pattern, the data points and abnormal patterns are integrated, each data point in the data set is classified, the classification results are quality evaluated, and an abnormal pattern recognition model is established.

[0081] Based on the refined abnormal pattern classification dataset, the label encoding algorithm is adopted, and the LabelEncoder class of the scikit-learn library in Python language is used to mark the abnormal pattern of each data point. First, the LabelEncoder object is initialized, and the abnormal patterns in the refined abnormal pattern classification dataset are converted into numerical labels through the fit_transform method. The data points and abnormal patterns are integrated, and these labels are used to classify each data point in the dataset. The classification results are evaluated for quality through the classification_report function of the scikit-learn library, and an abnormal pattern recognition model is established.

[0082] See also Figure 5 ,Based on the abnormal pattern recognition model, the decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust the production line parameters to match the energy consumption optimization requirements, capture the optimal parameter configuration, and establish the production line energy consumption optimization model. The specific steps are as follows:

[0083] S401: Analyze the abnormal energy consumption pattern under the operating conditions of the target production line based on the abnormal pattern recognition model, identify the operating conditions with excessively high energy consumption by comparing the normal energy consumption data with the abnormal energy consumption data, and generate correlation analysis results;

[0084] Based on the abnormal pattern recognition model, a machine learning classification algorithm is adopted, and the RandomForestClassifier of the scikit-learn library in the Python language is used for analysis. First, the model is trained through the fit method, and the trained model is used to predict the energy consumption data under the operating conditions of the target production line. The normal energy consumption data and the abnormal energy consumption data are compared, and the threshold is set to judge the anomaly, and the operating conditions with excessive energy consumption are identified. The confusion_matrix method is used to evaluate the recognition accuracy of the model and generate correlation analysis results.

[0085] S402: Based on the correlation analysis results, design adjustment measures for operating conditions with high energy consumption, adjust production line parameters one by one, and record the energy consumption changes after each adjustment by implementing small-scale tests to generate adjustment experiment optimization results;

[0086] Based on the results of correlation analysis, the designed experiment method was adopted, and the numpy library in Python language was used to simulate the adjustment of production line parameters. First, the simulation adjustment parameters were generated through the random module, and the production line parameters were adjusted one by one. The matplotlib library was used to draw the energy consumption change chart after each adjustment. The chart was analyzed to identify the energy consumption change trend, and the energy consumption change after each adjustment was recorded to generate the adjustment experiment optimization results.

[0087] S403: Based on the optimization results of the adjustment experiment, implement the optimal parameter configuration on the production line, adjust the operating conditions, verify the long-term effect and stability of the adjustment measures through long-term tracking and monitoring of the optimized energy consumption performance, and establish a production line energy consumption optimization model.

[0088] Based on the optimization results of the adjustment experiment, an optimization configuration algorithm is adopted, and the optimize module of the scipy library in the Python language is used to find the optimal parameter configuration. The minimize method is used to search for the operating condition parameters that minimize energy consumption. The searched optimal parameter configuration is applied to the production line, and a long-term tracking and monitoring system is used to record the energy consumption performance after optimization. The statistical module is used to analyze the long-term effects and stability of the recorded data, and a production line energy consumption optimization model is established.

[0089] See also Figure 6 , using the production line energy consumption optimization model, implement real-time energy consumption data monitoring and conduct instant analysis. When energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted. The specific steps to establish a real-time energy consumption monitoring and adjustment framework are as follows:

[0090] S501: Using the production line energy consumption optimization model, implement real-time energy consumption data monitoring, and generate real-time equipment status data sets by installing temperature and current monitors at key nodes of the production line;

[0091] The energy consumption optimization model of the production line is used to implement real-time energy consumption data monitoring. Temperature and current monitors are installed at key nodes of the production line, the Internet of Things technology is used, and the MQTT protocol is used to realize data communication between the equipment and the central monitoring system. Each monitor sends the collected temperature and current data to the central monitoring system in real time through the publish / subscribe mode. The central system uses the paho-mqtt library of the Python language to receive data and generate a real-time equipment status data set.

[0092] S502: Based on the real-time equipment status data set, a decision tree algorithm is used to monitor the equipment operating efficiency, identify equipment with low operating efficiency, mark equipment that does not meet the efficiency standards through efficiency evaluation tools, and establish a list of inefficient equipment;

[0093] Based on the real-time equipment status data set, the decision tree algorithm of machine learning is adopted, and the scikit-learn library in Python language is used to monitor and analyze the equipment operation efficiency. First, the DecisionTreeClassifier class is used to create a decision tree model. The input feature data includes temperature and current values ​​extracted from the real-time equipment status data set. The model outputs the equipment operation efficiency classification. The model identifies the equipment with low operating efficiency, and uses the custom efficiency evaluation tool to mark the equipment that does not meet the efficiency standard, and establishes a list of inefficient equipment.

[0094] The decision tree algorithm uses the formula

[0095]

[0096] Among them, Improved Gini(t) is the improved Gini impurity, c is the number of categories, p(i|t) is the proportion of records belonging to the i-th category under node t, Var(T) is the variance of data set T, which indicates the degree of dispersion of feature data, Skew(T) is the skewness of data set T, which indicates the asymmetry of data distribution, Kurt(T) is the kurtosis of data set T, which indicates the sharpness of data distribution, α, β, γ

[0097] is the weight coefficient, which adjusts the influence of variance, skewness and kurtosis on improving Gini impurity.

[0098] First, calculate the original Gini impurity using Calculation, this step takes into account the node t

[0099] Next, calculate the proportion of records in each category, and then calculate the variance Var(T) of the data set T

[0100] , which is used to reflect the dispersion of feature data. Next, the skewness Skew(T) and kurtosis Kurt(T) of the data set T are calculated, which respectively represent the asymmetry and sharpness of the data distribution. Finally, the weight coefficients α, β, and γ are introduced.

[0101] , these coefficients adjust the effects of variance, skewness, and kurtosis on Gini impurity, respectively.

[0102] S503: Automatically adjust production line parameters based on the list of inefficient equipment, optimize production processes by modifying equipment operation modes or replacing inefficient equipment, and establish a real-time monitoring and adjustment framework for energy consumption.

[0103] Based on the list of inefficient equipment, an automated control system is used, and PLC (programmable logic controller) and HMI (human-machine interface) are used to adjust production line parameters. The adjustment commands entered by the production line operator are first received through the HMI interface. Then the PLC automatically modifies the equipment operation mode or replaces the control logic of the inefficient equipment according to the received commands. Finally, the adjustment results are fed back to the operator through the HMI to optimize the production process and establish a real-time monitoring and adjustment framework for energy consumption.

[0104] See also Figure 7 Based on the real-time monitoring and adjustment framework of energy consumption, the production parameters are dynamically adjusted according to the monitoring results to maintain the energy consumption at the optimal level. The specific steps of generating a dynamic energy consumption control strategy are as follows:

[0105] S601: Based on the real-time monitoring and adjustment framework for energy consumption, analyze the current operating status of the production line, adjust the working parameters of key equipment on the production line, fine-tune the production process by adjusting the equipment temperature and pressure parameters, ensure production efficiency and energy consumption optimization, and generate a dynamic adjustment instruction set;

[0106] Based on the real-time monitoring and adjustment framework of energy consumption, the current operating status of the production line is analyzed. A genetic algorithm is adopted and the DEAP (Distributed Evolutionary Algorithms in Python) library in Python language is used to implement the genetic algorithm. First, the population is initialized and the working parameters of the key equipment of the production line are used as genetic encoding. Then, the fitness function is defined to evaluate the balance between energy consumption optimization and production efficiency. The parameters are iteratively optimized through genetic operations such as selection, crossover, and mutation. Finally, a dynamic adjustment instruction set that meets the fitness requirements is generated.

[0107] S602: Based on the dynamic adjustment instruction set, adjust the device parameters, send the adjustment command to the target device, modify the device working status in real time, and generate an optimized device status report;

[0108] Based on the dynamic adjustment instruction set, the PID control algorithm is adopted and the PLC (programmable logic controller) is used to adjust the equipment parameters. First, the target value of the PID controller is set according to the target parameters in the dynamic adjustment instruction set, and then the equipment temperature and pressure parameters are adjusted through real-time feedback to achieve the predetermined working state. Finally, an optimized equipment status report is generated.

[0109] S603: Based on the optimized equipment status report, collect energy consumption data of the production line, compare the energy consumption changes before and after equipment optimization, identify the links where energy consumption is reduced but production efficiency is not improved, modify the production process, adjust equipment operating parameters, and generate a dynamic energy consumption control strategy.

[0110] According to the equipment status report after optimization, data analysis methods are adopted to collect and analyze energy consumption data using the pandas library and matplo tlib library in Python language. First, the energy consumption data before and after equipment optimization are extracted from the database, and then the percentage of energy consumption reduction and the change in production efficiency are calculated and compared to identify the links where energy consumption is reduced but production efficiency is not improved. Finally, based on actual production needs, the production process is modified, the equipment operating parameters are adjusted, and a dynamic energy consumption control strategy is generated.

[0111] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for energy consumption management based on machine learning, characterized in that: The following steps are involved: Collect energy consumption data and production process parameters in industrial production, conduct time series analysis, identify periodic changes, mark peak and trough periods of energy consumption, and generate periodic energy consumption patterns; Based on the periodic energy consumption pattern, a cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, each data group is analyzed, and based on the frequency screening pattern combination, key energy consumption influencing factors are selected to generate energy consumption association rules; Utilizing the energy consumption association rules, analyzing each data point in the data set, identifying data points with abnormal patterns, marking them as abnormal, refining the abnormal pattern classification, and establishing an abnormal pattern recognition model; Based on the abnormal pattern recognition model, a decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust production line parameters to match energy consumption optimization requirements, capture optimal parameter configuration, and establish a production line energy consumption optimization model; The energy consumption optimization model of the production line is used to monitor the real-time energy consumption data and conduct instant analysis. When the energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted to establish a real-time monitoring and adjustment framework for energy consumption. Based on the real-time monitoring and adjustment framework of energy consumption, the production parameters are dynamically adjusted according to the monitoring results to maintain the energy consumption at an optimal level and generate a dynamic energy consumption control strategy; The periodic performance consumption mode includes energy consumption peak index, energy consumption valley index, and periodic change time point set. The energy consumption association rule includes energy consumption influencing factor set, energy consumption behavior pattern set, and energy consumption relationship mapping table. The abnormal pattern recognition model is specifically an abnormal data point set, an abnormal pattern category, and a normal and abnormal distinction standard set. The production line energy consumption optimization model includes a parameter relationship graph set, a parameter adjustment scheme set, and energy consumption and production efficiency balance configuration. The energy consumption real-time monitoring and adjustment framework includes a real-time data monitoring system, an automatic parameter adjustment mechanism, and an energy consumption optimization strategy set. The dynamic energy consumption control strategy includes a parameter adjustment instruction set, an equipment operation speed adjustment strategy, and a temperature setting optimization scheme. Based on the periodic energy consumption pattern, a cluster analysis method is used to divide the data into multiple groups representing differentiated energy consumption behaviors, and each data group is analyzed. Based on the frequency screening pattern combination, key energy consumption influencing factors are selected, and the steps of generating energy consumption association rules are as follows: Based on the periodic energy consumption pattern, a time series analysis method is used to collect energy consumption data in multiple time periods, analyze the change trend, identify the peak and trough periods of energy consumption, construct the characteristics of energy consumption fluctuations over time, and generate a periodic fluctuation feature set; Based on the periodic fluctuation feature set, the energy consumption data is subdivided, the energy consumption performance in differentiated time periods is distinguished, the energy consumption characteristics in each time period are plotted, the data is grouped according to the energy consumption characteristics, and differentiated energy consumption behavior groups are generated; Based on the differentiated energy consumption behavior grouping, the frequency and pattern of data in each grouping are collected and analyzed, data patterns are selected based on frequency and influence, the association between energy consumption and factors is revealed through the data patterns, and energy consumption association rules are established; The time series analysis method uses the formula: in, is the weighted moving average at time t, w i is the weight coefficient at time ti, n is the window size of the moving average, x t-i is the original data value at time ti; Using energy consumption association rules, we analyze each data point in the data set, identify data points with abnormal patterns, mark them as abnormal, refine the abnormal pattern classification, and establish the abnormal pattern recognition model in the following steps: Utilizing the energy consumption association rules, analyzing each data point in the data set, identifying data points that deviate from the normal range by comparing energy consumption patterns, marking them as preliminary abnormalities, and establishing a preliminary abnormality data set; Based on the preliminary abnormal data set, an in-depth analysis is performed on the abnormal data points to obtain a refined abnormal pattern classification data set by identifying the energy consumption fluctuation pattern of the data points, including sudden increase or sudden decrease; Based on the refined abnormal pattern classification data set, each data point is marked with an abnormal pattern, the data points and abnormal patterns are integrated, each data point in the data set is classified, the classification results are quality evaluated, and an abnormal pattern recognition model is established; Based on the abnormal pattern recognition model, the decision tree algorithm is used to analyze the relationship between production line parameters and energy consumption, adjust the production line parameters to match the energy consumption optimization requirements, capture the optimal parameter configuration, and establish the production line energy consumption optimization model in the following steps: Based on the abnormal pattern recognition model, analyze the abnormal energy consumption pattern under the operating conditions of the target production line, identify the operating conditions with excessively high energy consumption by comparing normal energy consumption data with abnormal energy consumption data, and generate correlation analysis results; Based on the correlation analysis results, design adjustment measures for operating conditions with high energy consumption, adjust production line parameters one by one, and through small-scale tests, record the energy consumption changes after each adjustment to generate adjustment experiment optimization results; Based on the optimization results of the adjustment experiment, the optimal parameter configuration is implemented in the production line, the operating conditions are adjusted, the energy consumption performance after optimization is monitored over a long period of time, the long-term effect and stability of the adjustment measures are verified, and a production line energy consumption optimization model is established; The energy consumption optimization model of the production line is used to implement real-time energy consumption data monitoring and conduct instant analysis. When the energy consumption deviates from the predetermined range, the production line parameters are automatically adjusted. The steps for establishing a real-time monitoring and adjustment framework for energy consumption are as follows: Using the production line energy consumption optimization model, real-time energy consumption data monitoring is implemented, and real-time equipment status data sets are generated by installing temperature and current monitors at key nodes of the production line; Based on the real-time equipment status data set, a decision tree algorithm is used to monitor the equipment operating efficiency, identify equipment with low operating efficiency, mark equipment that does not meet the efficiency standards through an efficiency evaluation tool, and establish a list of inefficient equipment; According to the inefficient equipment list, the production line parameters are automatically adjusted, the production process is optimized by modifying the equipment operation mode or replacing the inefficient equipment, and a real-time monitoring and adjustment framework for energy consumption is established; The decision tree algorithm uses the formula: Among them, Improved Gini(t) is the improved Gini impurity, c is the number of categories, p(i|t) is the proportion of records belonging to the i-th category under node t, Var(T) is the variance of data set T, which indicates the degree of dispersion of feature data, Skew(T) is the skewness of data set T, which indicates the asymmetry of data distribution, Kurt(T) is the kurtosis of data set T, which indicates the sharpness of data distribution, α, β, γ are weight coefficients, which adjust the influence of variance, skewness and kurtosis on the improved Gini impurity.

Citation Information

Cited By

  • Electric energy consumption management method and device for energy management in chemical industry

    CN121502558A