An intelligent robot and operation method for optimizing energy consumption in drug production
Through the data collection, processing and modeling optimization of the intelligent robot system, we build an energy consumption prediction model and adaptively optimize the energy system, solving the problem of low energy management efficiency in pharmaceutical companies and realizing lean, intelligent and automated energy management. Reduced energy costs and improved energy efficiency.
Patent Information
- Application Number
- CN202410835761.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing energy management model of pharmaceutical companies is inefficient, lacks automation, refined data collection and optimization analysis, makes it difficult to achieve global optimization of energy efficiency, and lacks adaptive optimization and real-time control, resulting in high energy costs and low efficiency.
Adopt an intelligent robot system to build a lean energy management software robot system for pharmaceutical companies through seamless integration of data collection, processing, modeling and control. It uses time series data analysis and machine learning algorithms to build an energy consumption prediction model and adaptively optimize the operation of the energy system. parameters, and realize automated control and real-time closed-loop monitoring.
It has achieved lean, intelligent, and automated energy management in pharmaceutical companies, reduced energy costs, improved energy utilization efficiency, and achieved energy conservation and emission reduction.
Smart Images

Figure CN118394017B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of energy management of pharmaceutical enterprises, and specifically relates to an intelligent robot and an operation method for optimizing and controlling energy consumption in drug production. Background Art
[0002] At present, pharmaceutical companies mainly use the following methods for energy management: manual inspection, energy monitoring system and energy management platform. Manual inspection is labor-intensive, prone to miss abnormalities, and has poor real-time and accuracy. The energy monitoring system can realize the automatic collection and visualization of energy consumption data, but lacks in-depth data mining and optimization analysis capabilities. Based on energy monitoring, the energy management platform combines energy metering, energy efficiency analysis, energy-saving diagnosis and other functions to provide digital tools for energy management, but lacks adaptive optimization and real-time control capabilities, making it difficult to cope with complex and changing production environments.
[0003] Existing energy management solutions have the following problems: lack of automated and refined collection of energy equipment and energy consumption data; lack of use of artificial intelligence technology to conduct in-depth mining and optimization analysis of energy consumption data to discover energy-saving potential; lack of an integrated model of pharmaceutical process flow and energy system, making it difficult to achieve global optimization of energy efficiency; lack of adaptive optimization of energy system operating parameters and control strategies based on production plans and changes in environmental parameters; lack of automated execution and real-time closed-loop control of energy management, making it difficult to reduce human intervention.
[0004] With the advancement of information technology and artificial intelligence technology, software robots and intelligent systems, as an emerging technology, have begun to be explored to support lean intelligent management, in order to further improve the efficiency of production processes through automation and intelligent means. Pharmaceutical companies consume a lot of energy, and energy costs account for a high proportion of production costs. The traditional energy management model relies on manual inspections and experience judgments, which is inefficient and has limited room for optimization. With the rise in energy prices and the increasing pressure to save energy and reduce emissions, pharmaceutical companies are in urgent need of establishing a lean and intelligent energy management system to achieve optimal energy efficiency and the lowest cost.
[0005] Therefore, there is an urgent need to develop a system and method that integrates the new generation of information technology to achieve lean, intelligent and automated energy management in pharmaceutical companies, so as to reduce energy costs, improve energy utilization efficiency and achieve energy conservation and emission reduction. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent robot and an operating method for optimizing and controlling energy consumption in drug production, so as to solve the problems of low efficiency and limited optimization space of traditional energy management modes, as well as the deficiencies of existing energy management solutions in data collection, optimization analysis, integrated modeling, adaptive optimization, and automated control, so as to realize lean, intelligent, and automated energy management of pharmaceutical enterprises, reduce energy costs, improve energy utilization efficiency, and achieve the effect of energy conservation and emission reduction.
[0007] In a first aspect, the present invention provides an intelligent robot operation method for optimizing and controlling energy consumption in drug production, comprising the following steps:
[0008] Step S1: Collect production process parameters and energy consumption data of pharmaceutical equipment and energy equipment, as well as production environment data and production batch information, and establish a time series data set and a graph data set. The format of the time series data set is:
[0009]
[0010] Among them, i represents the type of data collected, including electric energy sensors, steam flow meter records, and time series data of indoor and outdoor temperature, humidity, wind speed, and production process parameters, and n represents the number of sampling time points;
[0011] Step S2: Clean, store, calculate, and mine the collected data to provide data support for subsequent modeling optimization;
[0012] Step S3: Based on the data from step S2, a time series data analysis algorithm is used to construct an energy consumption prediction model integrating the pharmaceutical process and the energy system, and the operating parameters of the energy system are adaptively optimized;
[0013] Step S4: Generate energy equipment control instructions according to the optimized operating parameters, and use the control instructions to automatically control the energy equipment;
[0014] Step S5: Visually present the current status indicators of the energy system including the energy equipment. The current status indicators include the real-time status of the energy system, energy efficiency indicators, predicted trends of energy consumption and diagnostic information. The manager makes decisions based on the current status indicators.
[0015] Further, step S2 includes:
[0016] Step S21, using the forward filling method to process the missing values of the time series data in the data collected in step S1, the time series data includes power consumption data y, workshop temperature T1, workshop temperature T2, workshop humidity H1, workshop humidity H2, workshop wind speed W, and production process parameter set U; if the missing values of the data account for more than 50% of a time series data sequence, the time series data of this record is discarded;
[0017] Step S22, performing dimensionless processing on the time series data processed in step S21, using maximum and minimum normalization processing, and scaling the data to the interval [0, 1];
[0018] Step S23, obtaining the time interval of each time series data obtained by processing in step S22, that is, the granularity of the time series data, recording the maximum value of the granularity of the time series data as Interval, setting the maximum value of the granularity of the time series data as the granularity threshold of the time series data analysis, taking the average of the data whose sampling intervals before and after are within the granularity threshold of the time series data analysis as the new interpolation value, so as to facilitate the alignment between subsequent time series data;
[0019] Step S24, using the DTW algorithm to align the new interpolation of the same granularity time series data processed in step S23;
[0020] Step S25, cutting off the time series data collected in step S1, the time window of cutting off is equal to the time series data granularity threshold; using the Pearson correlation coefficient to evaluate the correlation between different influencing factors and the power consumption data y after alignment in step S24, including the new interpolation, the time series data aligned in step S24, the influencing factors include the temperature T1 inside the workshop, the temperature T2 outside the workshop, the humidity H1 inside the workshop, the humidity H2 outside the workshop, the wind speed W outside the workshop, and the production process parameter set U;
[0021] Step S26, setting a correlation threshold, and screening the influencing factors whose correlation calculated in step S25 is higher than the correlation threshold as key related independent variables X of the power consumption data for subsequent modeling and analysis.
[0022] This technical solution uses big data technology through a data processing module to conduct in-depth mining and optimization analysis of massive data to discover the key influencing factors and energy-saving potential of energy management.
[0023] Further, step S3 includes:
[0024] Step S31, constructing a data set for modeling: setting a time series data modeling window size of 10, and a sliding window size of padding=2, that is, the length of the independent variable X is 10, and each sampling slides back 2 time points, and the power consumption data y at the time point after the current window is used as the object to be predicted;
[0025] Step S32: Apply the LSTM model to build a time series data prediction model, encode the data set sorted in step S31 into a sequence as the LSTM model input, and predict the power consumption data y at the next time point;
[0026] Step S33, the ratio of the training set and the test set of the power consumption data in the LSTM model is 7:3, and the root mean square error RMSE and the determination coefficient R2 are used to evaluate the performance of the LSTM model. R2>0.9 indicates that the LSTM model has excellent prediction ability. The obtained LSTM model is the energy consumption prediction model, which is used for subsequent abnormal diagnosis tasks; R2<0.9 indicates that the LSTM model has poor prediction ability and is not used for subsequent predictions;
[0027] Step S34: Set rules to diagnose abnormal energy consumption. It represents the error of LSTM model prediction at the nth time point, and MAE is the average error of the model prediction results. To predict the maximum error, the rule is set as:
[0028]
[0029] Step S35: When abnormal energy consumption occurs, the software robot will display the alarm signal through a visual large screen or message notification to indicate two states: "warning" and "abnormal alarm";
[0030] Step S36, pattern recognition, marking the abnormal alarm point identified in step S34 as 1, and the normal mode as 0, using PCA to analyze the difference in main process parameters under the two modes, the main process parameters include temperature inside the workshop T1, temperature outside the workshop T2, humidity inside the workshop H1, humidity outside the workshop H2, wind speed outside the workshop W, and production process parameter set U, comparing each process parameter of the abnormal mode and the normal mode one by one, calculating the average value μ and standard deviation σ of each process parameter in the normal mode and the abnormal mode, and calculating the confidence interval of each process parameter in the two modes at the same confidence level according to the average value μ and standard deviation σ of each process parameter in the two modes, when the two sets of confidence intervals of the same process parameter in the two modes do not overlap, the process parameter is identified as the main factor of abnormal energy consumption, and energy abnormality diagnosis is achieved;
[0031] Step S37, use the particle swarm PSO algorithm to perform multi-objective optimization of the energy system. The optimized multi-objectives include energy efficiency and energy cost. By adjusting all parameters in the operation process of the energy system or the main process parameters selected in step S36, the PSO algorithm searches for the parameter combination that makes the objective function of the integrated energy consumption prediction model reach the Pareto optimal. The optimal parameter combination is the optimal energy system operation parameters.
[0032] In a second aspect, the present invention further provides an intelligent robot for optimizing and controlling energy consumption in drug production, comprising:
[0033] Data acquisition module, used to automatically collect production process parameters and energy consumption data of pharmaceutical equipment and energy equipment, as well as production environment data and production batch information;
[0034] Data processing module, used to clean, store, calculate, mine and analyze the collected data by using big data technology;
[0035] The modeling and optimization module uses a time series data analysis algorithm to build an energy consumption prediction model that integrates the pharmaceutical process and energy system, and adaptively optimizes the operating parameters of the energy system;
[0036] A decision control module is used to automatically generate energy equipment control instructions based on optimized operating parameters, and the control instructions automatically control the energy equipment;
[0037] The visualization module includes a visualization screen and a mobile APP for energy management. The visualization screen uses data visualization and virtual reality technology to intuitively present the real-time status, energy efficiency indicators, forecast trends and diagnostic information of the energy system; the mobile APP adopts a responsive design to support managers to access energy management data and control energy equipment anytime and anywhere, thereby improving the flexibility and convenience of energy management.
[0038] Furthermore, the data acquisition module includes various sensors and data acquisition devices deployed in pharmaceutical workshops, pharmaceutical equipment and energy equipment. The sensors include temperature sensors, pressure sensors, flow sensors, and power sensors, which are used to collect production process parameters and energy consumption data of the equipment; the data acquisition device adopts the industrial Ethernet communication protocol to upload the collected data to the data processing module in real time.
[0039] This technical solution realizes the automated, refined collection and multi-source integration of pharmaceutical equipment, energy equipment data, environmental data and batch production process parameters through the data acquisition module, providing comprehensive and accurate data support for energy management.
[0040] Furthermore, the data processing module includes a data cleaning unit, a data storage unit and a data analysis unit. The data cleaning unit performs pre-processing cleaning including denoising, deduplication and normalization on the data acquired by the collection unit; the data storage unit uses distributed database technology to store and manage the cleaned data; the data analysis unit uses big data analysis technology including clustering, association and regression to mine and analyze the stored historical data, extract key energy efficiency indicators and influencing factors, and provide data support for the modeling optimization module.
[0041] Furthermore, the modeling optimization module includes an integrated modeling unit, which uses a time series data analysis algorithm to construct an energy consumption prediction model that integrates the pharmaceutical process flow and the energy system.
[0042] Furthermore, the modeling optimization module also includes an anomaly detection unit. The anomaly detection unit diagnoses abnormal fluctuation points of energy consumption time series data through an integrated energy consumption prediction model, and combines the knowledge graph to infer the causes of fluctuations in energy consumption time series data, providing a mathematical basis for the next step of optimization.
[0043] Furthermore, the modeling optimization module includes a multi-objective optimization unit. The multi-objective optimization module uses production process parameters and energy prices as constraints, and adopts a machine learning algorithm to solve the Pareto optimal solution of the integrated energy consumption prediction model to obtain the optimal energy system operating parameters.
[0044] This technical solution constructs an integrated energy consumption prediction model for the pharmaceutical process and energy system through a modeling optimization module, and uses a machine learning algorithm to adaptively optimize the integrated energy consumption prediction model, thereby achieving dual optimization of energy efficiency and cost, and being able to diagnose energy anomalies.
[0045] Furthermore, the decision control module includes a decision generation unit, a control instruction generation unit and a device control unit. The decision generation unit automatically generates a control decision for the energy equipment based on the optimal energy system operating parameters output by the modeling optimization module. If the decision is confirmed to be feasible, the control instruction generation unit generates a control instruction, and the device control unit issues the control instruction to adjust the operating status of the energy equipment.
[0046] This technical solution automatically generates energy equipment control instructions through a decision-making control module, uses digital twin and industrial Internet technologies to achieve automated execution and real-time closed-loop control of energy management, and reduces human intervention.
[0047] Compared with the prior art, the present invention has the following beneficial effects:
[0048] 1. The technical solution of the present invention builds a lean energy management software robot system for pharmaceutical companies through seamless integration and collaborative optimization of data collection, processing, modeling, optimization, control, and visualization, so as to realize lean, intelligent, and automated energy management of pharmaceutical companies, reduce energy costs, improve energy utilization efficiency, and achieve the effect of energy conservation and emission reduction.
[0049] 2. By using an intelligent robot system, the present invention enables pharmaceutical companies to automatically collect, organize and analyze a large amount of energy usage data and generate standardized energy usage reports. This automated and intelligent processing greatly reduces the time required for manual data processing, while also improving the accuracy and consistency of data processing. Therefore, the RPA technology in the intelligent robot system can help pharmaceutical companies monitor energy management risk points in real time and trigger early warnings in a timely manner, thereby effectively reducing errors and delays that may occur in the process of lean intelligent energy management. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a block diagram of the intelligent robot for optimizing and regulating energy consumption in drug production according to the present invention. DETAILED DESCRIPTION
[0051] The technical solution of the present invention will be clearly described below in conjunction with the accompanying drawings. Obviously, the described embodiments are not all embodiments of the present invention, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the protection scope of the present invention.
[0052] Example 1
[0053] like Figure 1 As shown, the present invention provides an intelligent robot operation method for optimizing and controlling energy consumption in drug production, comprising the following steps:
[0054] Step S1: Collect production process parameters and energy consumption data of pharmaceutical equipment and energy equipment, as well as production environment data inside and outside the workshop and production batch related information.
[0055] The data types used include time series datasets and graph datasets. The format of the time series dataset is:
[0056]
[0057] Among them, i represents the type of data collected, including electric energy sensors, steam flow meter records, and time series data of indoor and outdoor temperature, humidity, wind speed, and production process parameters; n represents the number of sampling time points;
[0058] Production batch non-time series data includes product batch number, product name, output, production start time, production end time, production equipment used, etc.
[0059] Step S2: Clean, store, mine and analyze the collected data to extract key energy efficiency indicators and influencing factors.
[0060] Step S21: Use the forward filling method to process the missing values of the time series data in the data collected in step S1, the time series data includes power consumption data y, workshop temperature T1, workshop temperature T2, workshop humidity H1, workshop humidity H2, workshop wind speed W, and production process parameter set U; if the missing values of a time series data that have not been collected account for more than 50% of a time series data sequence, the time series data of this record is discarded;
[0061] Step S22: The time series data processed in step S21 is dimensionless processed, and the maximum and minimum normalization processing is adopted to scale the data to the interval [0, 1], so as to facilitate the subsequent unified analysis;
[0062] Step S23: obtaining the time interval of each time series data obtained in step S22, that is, the granularity of the time series data, recording the maximum value of the granularity of the time series data as Interval, setting the maximum value of the granularity of the time series data as the granularity threshold of the time series data analysis, taking the average of the data whose sampling intervals before and after are within the granularity threshold of the time series data analysis as the new interpolation value, so as to facilitate the alignment between subsequent time series data;
[0063] In this case, the granularity threshold of time series data analysis is set to 60 minutes, and the average of the data within 60 minutes of the previous and next sampling intervals is taken as the new interpolation value;
[0064] The granularity of the time series data refers to the time interval between each recording of the time series data. For example, if the time series data records data every 1 hour, its granularity is 1 hour.
[0065] Step S24: using the DTW algorithm to align the new interpolation of the same granularity time series data processed in step S23;
[0066] The DTW (Dynamic Time Warping) algorithm is used to align the time series data of the same granularity after processing in step S23. Generally speaking, the DTW algorithm is used to measure the similarity between two time series, especially for cases with different lengths or different rates.
[0067] The DTW algorithm first creates a cumulative distance matrix whose rows and columns correspond to each time point of the two time series. Each element in the matrix represents the cumulative distance from a certain time point of one time series to a certain time point of another time series. Starting from the lower left corner of the matrix, through each cell, calculate the cumulative distance of the current cell. The cumulative distance is usually based on the local distance of the current cell (such as Euclidean distance) and the cumulative distance of adjacent cells (usually through some form of weighting). Select a path from the lower left corner to the upper right corner of the matrix, which must meet the monotonically increasing condition (that is, it cannot go back to the past time point) and minimize the cumulative distance. This path represents the best alignment between the two time series. According to the selected path, the corresponding points between the two time series can be obtained, thereby achieving the alignment of the time series.
[0068] Step S25: Cut the original time series data according to the time window equal to the time series data granularity threshold. For example, if the time series data granularity threshold is 10 minutes and the original time series data granularity is 10 seconds, then resample the original time series data every 10 minutes to form a new time series data.
[0069] In this case, the time window is one hour. The Pearson Correlation Coefficient is used to evaluate the correlation between the different influencing factors and the power consumption data y after the alignment in step S24, including the time series data including the new interpolation. The influencing factors include the temperature inside the workshop T1, the temperature outside the workshop T2, the humidity inside the workshop H1, the humidity outside the workshop H2, the wind speed outside the workshop W, and the production process parameter set U.
[0070] Step S26: setting the correlation threshold to 0.5, and screening the influencing factors with a correlation higher than 0.5 calculated in step S25 as key related independent variables X of the power consumption data for subsequent modeling analysis;
[0071] Step S3: Use a time series data analysis algorithm to build an energy consumption prediction model that integrates the pharmaceutical process and energy system, and adaptively optimize the operating parameters of the energy system.
[0072] Step S31: Construct a data set for modeling: set a time series data modeling window size of 10, and a sliding window size of padding = 2, that is, the length of the independent variable X is 10, and each sampling slides back 2 time points, and the power consumption data y at the time point after the current window is used as the object to be predicted;
[0073] Step S32: This embodiment applies the LSTM model to construct a time series data prediction model, encodes the data set sorted in step S31 into a sequence as the LSTM model input, and predicts the power consumption data y at the next time point;
[0074] Step S33, the ratio of the training set and the test set of the power consumption data in the LSTM model is 7:3, and the root mean square error RMSE and the determination coefficient R2 are used to evaluate the performance of the LSTM model. R2>0.9 indicates that the LSTM model has excellent prediction ability. The obtained LSTM model is the energy consumption prediction model, which is used for subsequent abnormal diagnosis tasks; R2<0.9 indicates that the LSTM model has poor prediction ability and is not used for subsequent predictions;
[0075] Step S34: Then set certain rules to diagnose abnormal energy consumption. It represents the error of the LSTM model predicting the nth time point, and MAE is the average error of the LSTM model prediction results. To predict the maximum error, the rule is set as:
[0076]
[0077] Step S35: When abnormal energy consumption occurs, the software robot will display the alarm signal through a visual large screen or message notification to indicate two states: "warning" and "abnormal alarm";
[0078] Step S36, pattern recognition, marking the abnormal alarm point identified in step S34 as 1, and the normal mode as 0, using PCA to analyze the differences in the main process parameters under the two modes, the main process parameters include the temperature inside the workshop T1, the temperature outside the workshop T2, the humidity inside the workshop H1, the humidity outside the workshop H2, the wind speed outside the workshop W, and the production process parameter set U, calculating the average value μ and standard deviation σ of each process parameter in the normal mode and the abnormal mode, and calculating the confidence interval of each process parameter in the two modes at the same confidence level according to the average value μ and standard deviation σ of each process parameter in the two modes. When the two sets of confidence intervals of the same process parameter in the two modes do not overlap, the process parameter is identified as the main factor of abnormal energy consumption, and energy abnormality diagnosis is achieved;
[0079] Step S37: Use the particle swarm PSO algorithm to perform multi-objective optimization of the energy system. The optimized multi-objectives include energy efficiency and energy cost. By adjusting all parameters in the operation process of the energy system or the main process parameters selected in step S36, the PSO algorithm searches for the parameter combination that makes the objective function of the integrated energy consumption prediction model reach the Pareto optimal. The optimal parameter combination is the optimal energy system operation parameters.
[0080] By adjusting the operating parameters of the energy system, such as steam pressure, the PSO algorithm will find the optimal parameter combination that makes the objective function reach the optimal value. This optimal solution is the optimal range of the operating parameters of the energy system.
[0081] Step S4: Based on the operating parameters optimized in step S37 and combined with production experience, energy equipment control instructions are generated, and the instructions realize automatic control of the energy equipment through the Internet of Things and PLC system.
[0082] Step S5: Through data visualization and virtual reality technology, the large visualization screen directly presents the real-time status, energy efficiency indicators, forecast trends and diagnostic information of the energy system to provide support for management decisions.
[0083] The visualization screen can update and display the current status of the energy system in real time, including the operating status of each energy device, the energy usage of the production line, etc., so that managers can instantly understand the operating status of the energy system. The visualization screen displays a number of energy efficiency indicators, such as energy utilization rate, unit product energy consumption, etc. These indicators can help managers evaluate energy efficiency and thus discover potential energy saving space.
[0084] Based on the integrated energy consumption prediction model, the visualization screen can display the predicted trend of energy consumption, helping managers predict future energy demand, so as to prepare energy scheduling and reserve work in advance. The visualization screen can timely detect abnormal fluctuation points in the energy system, and infer possible causes of fluctuations based on the knowledge graph, providing managers with diagnostic information so that they can quickly locate problems and take corresponding solutions.
[0085] Example 2
[0086] like Figure 1 As shown, this embodiment provides an intelligent robot for optimizing and controlling energy consumption in drug production, which is used to perform Figure 1 The intelligent robot operating method of embodiment 1 is shown.
[0087] The energy management system includes a data acquisition module, a data processing module, a modeling optimization module, a decision control module and a visualization module.
[0088] The data acquisition module deploys data acquisition devices and environmental monitoring sensors on pharmaceutical equipment and energy equipment, and uses the data acquisition devices to collect production process parameters, energy consumption data, and record production batch information; it uses environmental monitoring sensors to automatically collect production environment data, thereby achieving refined data collection and multi-source fusion.
[0089] Specifically, the data acquisition module includes various sensors and data acquisition devices for environmental detection deployed in pharmaceutical workshops, pharmaceutical equipment and energy equipment. Sensors include temperature sensors, pressure sensors, flow sensors, power sensors, etc., which are used to collect production process parameters and energy consumption data of equipment respectively; the data acquisition device uses the industrial Ethernet communication protocol to upload the collected data to the data processing module in real time.
[0090] The data processing module uses big data technology to clean, align and pre-process the massive amount of collected data, and then mines and analyzes the data to extract key energy efficiency indicators and influencing factors, providing data support for subsequent modeling optimization.
[0091] Specifically, the data processing module includes a data cleaning unit, a data storage unit and a data analysis unit. The data cleaning unit performs pre-processing such as denoising, deduplication and normalization on the data acquired by the acquisition unit to improve the data quality. The data storage unit uses distributed database technology to store and manage the cleaned data to improve the reliability and accessibility of the data. The data analysis unit uses big data analysis technologies such as clustering, association, regression, etc. to mine and analyze the stored historical data, extract key energy efficiency indicators and influencing factors, and provide data support for the modeling optimization module.
[0092] The modeling and optimization module is used to build an integrated energy consumption prediction model for the pharmaceutical process and energy system, and use AI algorithms to adaptively optimize the operating parameters of the energy system to achieve dual optimization of energy efficiency and cost.
[0093] Specifically, the modeling and optimization module includes an integrated modeling unit, an anomaly detection unit, and a multi-objective optimization unit. The integrated modeling unit is based on the pharmaceutical process flow and energy consumption time series data, and uses the time series data analysis algorithm to build an integrated energy consumption prediction model for the two, revealing the inherent relationship between production process parameters, production environment, and energy consumption.
[0094] The anomaly detection unit diagnoses abnormal fluctuation points in energy consumption time series data through the energy consumption prediction model, and infers possible causes of fluctuations in combination with the knowledge graph. The entity nodes of the knowledge graph can be pharmaceutical equipment, energy equipment (such as steam boilers, power consumption equipment, etc.), production environment parameters (such as workshop temperature, humidity, wind speed, etc.), production batch information (products, batches, etc.), and energy consumption data (power consumption, steam consumption, etc.); the relationship edges are the energy consumption relationship between pharmaceutical equipment and energy equipment (such as the power consumption of a certain pharmaceutical equipment in a specific production process), the impact of production environment parameters on energy consumption (such as an increase in workshop temperature may lead to an increase in refrigeration equipment energy consumption), the impact of production batch information on energy consumption (different products and different batches may cause changes in energy consumption), and the time series change relationship of energy consumption data (trends and fluctuations in energy consumption over time), providing a mathematical basis for the next step of optimization.
[0095] The multi-objective optimization unit takes improving energy efficiency and reducing energy costs as optimization goals, and takes production process parameters and energy prices as constraints. It uses AI algorithms such as evolutionary algorithms and adversarial learning to solve the Pareto optimal solution of the integrated energy consumption prediction model and obtain the optimal energy system operating parameters.
[0096] The decision-making control module automatically generates control instructions for energy equipment based on the optimized energy system operating parameters if there is a clear causal regulation relationship in the knowledge graph; otherwise, the strategy is fed back to the operator to assist in decision-making; and the control instructions are sent to the software robot to realize the automated execution of energy management, achieve real-time closed-loop control of energy management, and reduce human intervention.
[0097] Specifically, the decision control module includes a decision generation unit, a control instruction generation unit and a device control unit. The decision generation unit automatically generates a control decision for the energy device based on the optimal energy system operating parameters output by the modeling optimization module. If the decision is confirmed to be feasible, the control instruction generation unit generates a control instruction. The device control unit issues control instructions to adjust the operating status of the energy device, realizing the automated execution and real-time closed-loop control of energy management.
[0098] The visualization module directly presents the real-time status, energy efficiency indicators, forecast trends and diagnostic information of the energy system through a large visualization screen, providing managers with visual, predictable and diagnosable energy management tools to support energy decision-making.
[0099] Specifically, the visualization module includes a visualization screen and mobile APP for energy management. The visualization screen uses data visualization and virtual reality technology to intuitively present the real-time status, energy efficiency indicators, forecast trends and diagnostic information of the energy system, providing managers with global energy management decision support. The mobile APP adopts a responsive design, allowing managers to access energy management data and control energy equipment anytime and anywhere, improving the flexibility and convenience of energy management.
[0100] The above technical features constitute the best embodiment of the present invention, which has strong adaptability and best implementation effect. Non-essential technical features can be added or reduced according to actual needs to meet the needs of different situations.
[0101] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.
Claims
1. An intelligent robot operation method for optimizing and controlling energy consumption in drug production, characterized in that: The following steps are involved: Step S1: Collect production process parameters and energy consumption data of pharmaceutical equipment and energy equipment, as well as production environment data and production batch information, and establish a time series data set and a graph data set. The format of the time series data set is: Among them, i represents the data type collected, including electric energy sensors, steam flow meter records, and time series data of indoor and outdoor temperature, humidity, wind speed, and production process parameters, and n represents the number of sampling time points; Step S2: Clean, store, calculate, and mine the collected data to provide data support for subsequent modeling optimization; Step S3: Based on the data from step S2, a time series data analysis algorithm is used to construct an energy consumption prediction model integrating the pharmaceutical process and the energy system, and the operating parameters of the energy system are adaptively optimized; Step S4: Generate energy equipment control instructions according to the optimized operating parameters, and use the control instructions to automatically control the energy equipment; Step S5: Visually presenting the current status indicators of the energy system including the energy equipment, the current status indicators include the real-time status of the energy system, energy efficiency indicators, predicted trends of energy consumption and diagnostic information, and the manager makes decisions based on the current status indicators; Step S2 includes: Step S21, using the forward filling method to process the missing values of the time series data in the data collected in step S1, the time series data includes power consumption data y, workshop temperature T1, workshop temperature T2, workshop humidity H1, workshop humidity H2, workshop wind speed W, and production process parameter set U; if the missing values of a time series data that have not been collected account for more than 50% of a time series data sequence, the time series data of this record is discarded; Step S22, performing dimensionless processing on the time series data processed in step S21, using maximum and minimum normalization processing, and scaling the data to the interval [0, 1]; Step S23, obtaining the time interval of each time series data obtained by processing in step S22, that is, the granularity of the time series data, recording the maximum value of the granularity of the time series data as Interval, setting the maximum value of the granularity of the time series data as the granularity threshold of the time series data analysis, taking the average of the data whose sampling intervals before and after are within the granularity threshold of the time series data analysis as the new interpolation value, so as to facilitate the alignment between subsequent time series data; Step S24, using the DTW algorithm to align the new interpolation of the same granularity time series data processed in step S23; Step S25, cutting off the time series data collected in step S1, the time window of cutting off is equal to the time series data granularity threshold; using the Pearson correlation coefficient to evaluate the correlation between different influencing factors and the power consumption data y after alignment in step S24, including the new interpolation, the time series data aligned in step S24, the influencing factors include the temperature T1 inside the workshop, the temperature T2 outside the workshop, the humidity H1 inside the workshop, the humidity H2 outside the workshop, the wind speed W outside the workshop, and the production process parameter set U; Step S26, setting a correlation threshold, and screening the influencing factors whose correlation calculated in step S25 is higher than the correlation threshold as key related independent variables X of the power consumption data for subsequent modeling and analysis.
2. The intelligent robot operation method according to claim 1, characterized in that: Step S3 includes: Step S31, constructing a data set for modeling: setting a time series data modeling window size of 10, and a sliding window size of padding=2, that is, the length of the independent variable X is 10, and each sampling slides back 2 time points, and the power consumption data y at the time point after the current window is used as the object to be predicted; Step S32: Apply the LSTM model to build a time series data prediction model, encode the data set sorted in step S31 into a sequence as the LSTM model input, and predict the power consumption data y at the next time point; Step S33, the ratio of the training set and the test set of the power consumption data in the LSTM model is 7:3, and the root mean square error RMSE and the determination coefficient R2 are used to evaluate the performance of the LSTM model. R2>0.9 indicates that the LSTM model has excellent prediction ability. The obtained LSTM model is the energy consumption prediction model, which is used for subsequent abnormal diagnosis tasks; R2<0.9 indicates that the LSTM model has poor prediction ability and is not used for subsequent predictions; Step S34: Set rules to diagnose abnormal energy consumption. It represents the error of the LSTM model predicting the nth time point, and MAE is the average error of the LSTM model prediction results. To predict the maximum error, the rule is set as: Step S35: When abnormal energy consumption occurs, the software robot will display the alarm signal through a visual large screen or message notification to indicate two states: "warning" and "abnormal alarm"; Step S36, pattern recognition, marking the abnormal alarm point identified in step S34 as 1, and the normal mode as 0, using PCA to analyze the difference in main process parameters under the two modes, the main process parameters include temperature inside the workshop T1, temperature outside the workshop T2, humidity inside the workshop H1, humidity outside the workshop H2, wind speed outside the workshop W, and production process parameter set U, comparing each process parameter of the abnormal mode and the normal mode one by one, calculating the average value μ and standard deviation σ of each process parameter in the normal mode and the abnormal mode, and calculating the confidence interval of each process parameter in the two modes at the same confidence level according to the average value μ and standard deviation σ of each process parameter in the two modes, when the two sets of confidence intervals of the same process parameter in the two modes do not overlap, the process parameter is identified as the main factor of abnormal energy consumption, and energy abnormality diagnosis is achieved; Step S37, use the particle swarm PSO algorithm to perform multi-objective optimization of the energy system. The optimized multi-objectives include energy efficiency and energy cost. By adjusting all parameters in the operation process of the energy system or the main process parameters selected in step S36, the PSO algorithm searches for the parameter combination that makes the objective function of the energy consumption prediction model reach the Pareto optimal. The optimal parameter combination is the optimal energy system operation parameters.
3. An intelligent robot for optimizing and controlling energy consumption in drug production, used to execute the intelligent robot operation method of claim 1, characterized in that: include: Data acquisition module, used to automatically collect production process parameters and energy consumption data of pharmaceutical equipment and energy equipment, as well as production environment data and production batch information; Data processing module, used to clean, store, calculate, mine and analyze the collected data by using big data technology; The modeling and optimization module uses a time series data analysis algorithm to build an energy consumption prediction model that integrates the pharmaceutical process and energy system, and adaptively optimizes the operating parameters of the energy system; A decision control module is used to automatically generate energy equipment control instructions based on optimized operating parameters, and the control instructions automatically control the energy equipment; The visualization module includes a visualization screen and a mobile APP for energy management. The visualization screen uses data visualization and virtual reality technology to intuitively present the real-time status, energy efficiency indicators, forecast trends and diagnostic information of the energy system; the mobile APP adopts a responsive design to support managers to access energy management data and control energy equipment anytime and anywhere.
4. The intelligent robot according to claim 3, characterized in that: The data acquisition module includes various sensors and data acquisition devices deployed in pharmaceutical workshops, pharmaceutical equipment and energy equipment. The sensors include temperature sensors, pressure sensors, flow sensors, and electric energy sensors, which are used to collect production process parameters and energy consumption data of the equipment; The data acquisition device adopts the industrial Ethernet communication protocol to upload the collected data to the data processing module in real time.
5. The intelligent robot according to claim 4, characterized in that: The data processing module includes a data cleaning unit, a data storage unit and a data analysis unit. The data cleaning unit performs pre-processing and cleaning operations such as denoising, deduplication and normalization on the data acquired by the collection unit; the data storage unit uses distributed database technology to store and manage the cleaned data; the data analysis unit uses clustering, association and regression big data analysis technology to mine and analyze the stored historical data, extract key energy efficiency indicators and influencing factors, and provide data support for the modeling optimization module.
6. The intelligent robot according to any one of claims 3 to 5, characterized in that: The modeling optimization module includes an integrated modeling unit, which uses a time series data analysis algorithm to build an energy consumption prediction model that integrates the pharmaceutical process and energy system.
7. The intelligent robot according to claim 6, characterized in that: The modeling optimization module also includes an anomaly detection unit, which diagnoses abnormal fluctuation points of energy consumption time series data through the energy consumption prediction model, and infers the reasons for the fluctuation of energy consumption time series data in combination with the knowledge graph.
8. The intelligent robot according to claim 7, characterized in that: The modeling optimization module includes a multi-objective optimization unit. The multi-objective optimization module uses production process parameters and energy prices as constraints, and adopts a machine learning algorithm to solve the Pareto optimal solution of the integrated model to obtain the optimal energy system operating parameters.
9. The intelligent robot according to claim 8, characterized in that: The decision control module includes a decision generation unit, a control instruction generation unit and a device control unit. The decision generation unit automatically generates a control decision for the energy equipment based on the optimal energy system operating parameters output by the modeling optimization module. If the decision is confirmed to be feasible, the control instruction generation unit generates a control instruction, and the device control unit issues the control instruction to adjust the operating status of the energy equipment.
