Energy consumption analysis method and device, artificial intelligence model training method and device and electronic equipment
By deploying IoT devices in smart buildings and using big data and artificial intelligence technology to analyze and optimize the energy consumption of IoT devices, we solve the problem of unintelligent energy management and control in smart buildings and achieve more efficient energy consumption management and Energy saving effect.
Patent Information
- Application Number
- CN202410800343.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
There is a problem in smart buildings that energy management and control are not intelligent enough, resulting in heavy use of electrical appliances and serious waste of mechanical management, making it difficult for managers to comprehensively control the energy consumption of building spaces.
An energy consumption analysis method is provided. By obtaining the energy consumption analysis request of the target space, the pre-trained artificial intelligence model is used to perform big data analysis on the operating data of the IoT device, and an energy consumption analysis report is generated, including energy saving optimization measures. The method includes predicting and comparing energy consumption data of IoT devices, identifying devices with abnormal energy consumption, and generating automated configuration recommendations to achieve energy saving.
It achieves more fine-grained energy consumption management for smart buildings. Through big data computing and artificial intelligence technology, it provides automated energy-saving optimization analysis, reduces energy consumption costs, and improves the intelligence of energy consumption management and control.
Smart Images

Figure CN118673323A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an energy consumption analysis method, an artificial intelligence model training method, a device, an electronic device, a storage medium and a computer program product. Background Art
[0002] With the development of computer, control and communication technologies, intelligent buildings have emerged, which integrate computer, control and communication technologies with buildings. How to efficiently manage intelligent buildings is what managers need to focus on.
[0003] However, these smart buildings (such as hospital outpatient buildings, school teaching buildings, urban office buildings, etc.) usually have problems with energy management, including large usage of electrical appliances, mechanical management of electrical equipment, and widespread waste; managers are unable to fully control the overall energy consumption within the building space and are unable to formulate reasonable energy control strategies.
[0004] Therefore, there is a problem in the relevant technology that the energy consumption control is not intelligent enough. Summary of the invention
[0005] Based on this, it is necessary to provide an energy consumption analysis method, artificial intelligence model training method, device, electronic device, computer-readable storage medium and computer program product that can improve the intelligence of energy consumption control within the space in response to the above-mentioned technical problems.
[0006] In a first aspect, the present application provides an energy consumption analysis method, comprising:
[0007] Get energy consumption analysis request for target space;
[0008] Inputting the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space;
[0009] Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0010] In one embodiment, the space energy consumption data includes energy consumption data of each of the IoT devices; and performing energy consumption analysis on the space energy consumption data of the target space to generate an energy consumption analysis report for the target space includes:
[0011] Performing energy consumption analysis on the energy consumption data of each IoT device to obtain predicted energy consumption data corresponding to each IoT device in a predicted period;
[0012] Comparing the actual energy consumption data and the predicted energy consumption data of each IoT device corresponding to the predicted time period, to obtain the energy consumption difference of each IoT device corresponding to the predicted time period;
[0013] Energy-saving optimization measures for the target space are generated according to the energy consumption differences corresponding to each of the IoT devices in the predicted time period.
[0014] In one of the embodiments, generating energy-saving optimization measures for the target space according to the energy consumption differences corresponding to each of the IoT devices in the predicted period includes:
[0015] If there is an IoT device with abnormal energy consumption among the IoT devices, an automatic configuration suggestion for the IoT device with abnormal energy consumption is generated according to the device energy consumption analysis data of the IoT device with abnormal energy consumption; the automatic configuration suggestion includes a configuration scheme for instructing the IoT device with abnormal energy consumption to automatically enter an energy-saving mode; the energy consumption difference corresponding to the IoT device with abnormal energy consumption in the predicted time period meets a preset difference condition;
[0016] The energy-saving optimization measures are obtained according to the automated configuration suggestions.
[0017] In one embodiment, the target space includes at least one subspace; the energy consumption data of each IoT device includes historical energy consumption data of a historical period before the prediction period; the space energy consumption data also includes historical environmental data of the subspace where each IoT device is located in the historical period; the energy consumption analysis of the energy consumption data of each IoT device to obtain the predicted energy consumption data corresponding to each IoT device in the prediction period includes:
[0018] The energy consumption patterns of each of the IoT devices are analyzed according to the historical energy consumption data and the historical environmental data to obtain predicted energy consumption data corresponding to each of the IoT devices in the predicted time period.
[0019] In one embodiment, the target space includes at least one subspace, and the operating data of each IoT device includes device status data and environmental data of the subspace where the IoT device is located; before the step of obtaining an energy consumption analysis request for the target space, the method further includes:
[0020] Performing big data analysis on the device status data corresponding to each of the IoT devices and the environmental data of the subspace where each of the IoT devices is located to obtain energy consumption data of each of the IoT devices;
[0021] The space energy consumption data of the target space is obtained according to the energy consumption data of each of the IoT devices.
[0022] In one embodiment, obtaining the space energy consumption data of the target space according to the energy consumption data of each of the IoT devices includes:
[0023] According to different energy consumption analysis dimensions, big data analysis and processing are performed on the energy consumption data of each of the IoT devices to obtain the spatial energy consumption data of the target space under each of the energy consumption analysis dimensions; wherein each of the energy consumption analysis dimensions includes at least one of a time dimension, a subspace dimension, and a device type dimension.
[0024] In one embodiment, the device status data includes switch status data and corresponding timestamp data; the big data analysis is performed on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located to obtain the energy consumption data of each IoT device, including:
[0025] For any of the IoT devices, according to the environmental data of the subspace where any of the IoT devices is located, the switch state data corresponding to any of the IoT devices, and the corresponding timestamp data, the duration data of any of the IoT devices is obtained; the duration data includes at least one of the usage duration, energy-saving duration, and invalid energy consumption duration;
[0026] According to the duration data of any of the IoT devices, energy consumption data corresponding to any of the IoT devices is obtained; the energy consumption data includes at least one of total energy consumption data, energy-saving data and invalid energy consumption data.
[0027] In one embodiment, obtaining the duration data of any one of the IoT devices according to the environmental data of the subspace where any one of the IoT devices is located, the switch state data corresponding to any one of the IoT devices, and the corresponding timestamp data includes:
[0028] If any of the IoT devices is a controlled device, determining the automatic shutdown timestamp data corresponding to any of the IoT devices and the next startup timestamp data corresponding to any of the IoT devices according to the switch state data and the corresponding timestamp data;
[0029] The automatic shutdown timestamp data represents the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices, and the time when any of the IoT devices executes the shutdown action after the corresponding environmental trigger shutdown condition is met; the next startup timestamp data represents the next startup time of any of the IoT devices after executing the shutdown action;
[0030] The energy-saving duration of any one of the IoT devices is obtained according to the next-on timestamp data and the automatic-off timestamp data.
[0031] In one embodiment, obtaining the duration data of any one of the IoT devices according to the environmental data of the subspace where any one of the IoT devices is located, the switch state data corresponding to any one of the IoT devices, and the corresponding timestamp data includes:
[0032] If any of the IoT devices is a controlled device, and the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices meets the corresponding environmental trigger shutdown condition, the timestamp data corresponding to the reporting of the environmental data will be used as the expected shutdown timestamp data corresponding to any of the IoT devices;
[0033] Determine the actual closing timestamp data corresponding to any of the IoT devices according to the switch state data and the corresponding timestamp data of any of the IoT devices; the actual closing timestamp data represents the time when any of the IoT devices actually performs a closing action after the environment triggers a closing condition;
[0034] The invalid energy consumption duration is obtained according to the expected closing timestamp data and the actual closing timestamp data.
[0035] In a second aspect, the present application provides a method for training an artificial intelligence model, comprising:
[0036] Acquire training sample data; the training sample data includes energy consumption analysis sample report, equipment operation sample data, space environment sample data and space energy consumption sample data;
[0037] Input the equipment operation sample data, the space environment sample data and the space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report;
[0038] Optimizing the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report;
[0039] Retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and use the trained large model as the pre-trained artificial intelligence model; the pre-trained artificial intelligence model is used to execute the energy consumption analysis method described above.
[0040] In a third aspect, the present application also provides an energy consumption analysis device, comprising:
[0041] An acquisition module, used for acquiring an energy consumption analysis request for a target space;
[0042] An analysis module, used for inputting the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space;
[0043] Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0044] In a fourth aspect, the present application also provides a training device for an artificial intelligence model, comprising:
[0045] An acquisition module is used to acquire training sample data; the training sample data includes energy consumption analysis sample reports, equipment operation sample data, space environment sample data and space energy consumption sample data;
[0046] An input module, used to input the equipment operation sample data, the space environment sample data and the space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report;
[0047] An optimization module, used for optimizing the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report;
[0048] An iteration module is used to retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and the trained large model is used as the pre-trained artificial intelligence model; the pre-trained artificial intelligence model is used to execute the energy consumption analysis method described above.
[0049] In a fifth aspect, the present application further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0050] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0051] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0052] The above-mentioned energy consumption analysis method, device, electronic device, computer-readable storage medium and computer program product obtain an energy consumption analysis request for a target space; input the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space, and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space; wherein the spatial energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0053] In this way, by deploying IoT devices in the target space, the operating data of each IoT device can be collected in a more fine-grained manner, and the operating data of each IoT device can be parsed and analyzed through big data computing capabilities, which helps to identify the actual operating conditions and energy consumption characteristics of each IoT device in the target space, so as to obtain more accurate and fine-grained spatial energy consumption data. The spatial energy consumption data can provide basic data support for subsequent energy consumption optimization and energy-saving measures. Therefore, after the pre-trained artificial intelligence model trained based on the operating data of the IoT device receives an energy consumption analysis request for the target space, the pre-trained artificial intelligence model can perform energy consumption analysis on the spatial energy consumption data and output an energy consumption analysis report including energy-saving optimization measures for the target space, realizing the combination of big data computing and artificial intelligence technology to perform automated energy-saving optimization analysis of the target space, which is conducive to helping the target space achieve more efficient and intelligent energy consumption control, reduce energy consumption costs, and effectively improve the intelligence of energy consumption control in the target space. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 An application environment diagram of an energy consumption analysis method in one embodiment;
[0056] Figure 2 A schematic diagram of a flow chart of an energy consumption analysis method in an embodiment;
[0057] Figure 3 A schematic diagram of a timeline for reporting switch status data of an IoT device in one embodiment;
[0058] Figure 4 A schematic diagram of calculating energy saving duration in one embodiment;
[0059] Figure 5 A schematic diagram of calculating the duration of no energy consumption in one embodiment;
[0060] Figure 6 A schematic diagram of a device energy consumption reporting timeline in one embodiment;
[0061] Figure 7 is a schematic diagram of an invalid enabling curve and an energy consumption curve in one embodiment;
[0062] Figure 8 is a flow chart of an energy consumption analysis method in another embodiment;
[0063] Fig. 9 A flowchart of a training method for an artificial intelligence model in an embodiment;
[0064] Fig.10 A schematic diagram of a flow chart of yet another energy consumption analysis method in an embodiment;
[0065] Fig.11 is a structural block diagram of an energy consumption analysis device in one embodiment;
[0066] Fig.12 is a structural block diagram of a training device for an artificial intelligence model in one embodiment;
[0067] Fig.13 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0069] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0070] The energy consumption analysis method and the training method of the artificial intelligence model provided in this application can be applied to electronic devices, for example, the electronic device can be a user terminal, a server, etc. The energy consumption analysis method and the training method of the artificial intelligence model in the embodiment of this application can be applied to a variety of Internet of Things scenarios, for example, Internet of Things scenarios include but are not limited to smart home scenarios, office scenarios, etc. An application environment involved in this application will be introduced below.
[0071] In one embodiment, Figure 1 The schematic diagram of the implementation environment involved in the energy consumption analysis method and the training method of the artificial intelligence model. The implementation environment at least includes a user terminal 110, a smart device 130, a server 170, and a network device. Figure 1 In the embodiment, the network devices include a gateway 150 and a router 190, which is not specifically limited herein.
[0072] Among them, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart control panel, other devices with display and control functions, etc., which are not limited here.
[0073] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.
[0074] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, a millimeter wave radar, etc.
[0075] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.
[0076] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background services include energy consumption analysis services and / or artificial intelligence model training services.
[0077] In an application scenario, the server side 170 can obtain an energy consumption analysis request for a target space; then, the server side 170 can input the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform an energy consumption analysis on the spatial energy consumption data of the target space, and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space; wherein, the spatial energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0078] Of course, in other application scenarios, the energy consumption analysis process performed by the server 170 may also be implemented by the user terminal 110 .
[0079] In one embodiment, Figure 2 As shown, an energy consumption analysis method is provided. This embodiment uses the method applied to an electronic device as an example. As mentioned above, the electronic device may be a user terminal, a server, etc. For example, the electronic device may be Figure 1 The user terminal 110 or the server 170 in the embodiment. In this embodiment, the method includes the following steps:
[0080] Step S210: obtaining an energy consumption analysis request for a target space.
[0081] The target space may be a space that needs to be analyzed for energy consumption. The target space may be a relatively large open space, such as an office, lecture hall, cinema, or a relatively small closed space, such as a living room, bedroom, or other small space in a house. The size and shape of the target space are not limited here, and the target space may be set according to actual conditions.
[0082] The energy consumption analysis request may be a request for performing energy consumption analysis on a target space.
[0083] In a specific implementation, the electronic device may obtain an energy consumption analysis request for the target space. Specifically, when the user needs to analyze the energy consumption of the target space, the user may initiate a request for energy consumption analysis for the target space to the electronic device through the user terminal.
[0084] Exemplarily, the user terminal may provide a specific interactive interface, and the user may input instructions in the interactive interface to send an energy consumption analysis request for the target space to the electronic device, so as to request the electronic device to provide corresponding services. For example, if the user needs to perform energy consumption analysis on the target space, then "energy consumption analysis report for a first building" may be input through the specific interactive interface to send an energy consumption analysis request for the target space to the electronic device. When the electronic device is a server, after the user inputs instructions in the interactive interface, the user terminal may send the corresponding energy consumption analysis request to the server.
[0085] Step S220, input the energy consumption analysis request into the pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space.
[0086] Among them, the energy consumption analysis report includes energy-saving optimization measures for the target space.
[0087] Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space.
[0088] The spatial energy consumption data may include the energy consumption data of each IoT device in the target space, and may also include energy consumption data obtained by summarizing the energy consumption data of each IoT device in different dimensions. For example, in the big data analysis process, big data multi-dimensional analysis is adopted to obtain the energy consumption data of the target space in the time dimension (for example, it can distinguish between working days and non-working days) based on the energy consumption data of each IoT device; and obtain the energy consumption data of the target space in the spatial dimension (for example, the target space can be divided into multiple subspaces) based on the energy consumption data of each IoT device.
[0089] In some embodiments, the space energy consumption data may also include data related to energy consumption calculations, such as environmental data.
[0090] Among them, IoT devices may include IoT smart devices. IoT smart devices refer to various devices that are connected to the Internet and equipped with various sensors and actuators, and can collect, exchange, process and perform operations. These devices use their built-in sensors and actuators to interact with users, other devices and the environment to provide users with a more convenient and intelligent lifestyle. In this application, IoT devices may include Figure 1 Smart devices in.
[0091] The operation data of the IoT device refers to data related to the operation of the IoT device. For example, the operation data may include the status data of the IoT device, the environmental data of the space where the IoT device is located, etc. In a possible implementation, the operation data is stored in the IoT device in the form of an operation log.
[0092] The state data of the IoT device may represent the operating state of the IoT device at a specific time point. For example, the state data of the IoT device may include the switch state of the device and the corresponding timestamp data, location information, etc.
[0093] The environmental data may include but are not limited to temperature and humidity data, light intensity data and other data.
[0094] Among them, the pre-trained artificial intelligence model is trained based on operating data.
[0095] The pre-trained AI model is connected to the management system of the target space in the background to obtain the spatial energy consumption data of the target space. In practical applications, the pre-trained AI model can include a large model. In the field of AI, a large model refers to a machine learning model with large-scale parameters and complex computing structures.
[0096] In a specific implementation, the electronic device can input the energy consumption analysis request for the target space into the pre-trained artificial intelligence model. The pre-trained artificial intelligence model can respond to the energy consumption analysis request, perform energy consumption analysis on the spatial energy consumption data of the target space, and generate an energy consumption analysis report. Among them, the energy consumption analysis report includes energy-saving optimization measures for the target space, which are used to reduce the energy consumption of the target space. The spatial energy consumption data is obtained by big data analysis based on the operating data of each IoT device in the target space.
[0097] In the above energy consumption analysis method, an energy consumption analysis request for the target space is obtained; the energy consumption analysis request is input into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space, and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space; wherein, the spatial energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0098] In this way, by deploying IoT devices in the target space, the operating data of each IoT device can be collected in a more fine-grained manner, and the operating data of each IoT device can be parsed and analyzed through big data computing capabilities, which helps to identify the actual operating conditions and energy consumption characteristics of each IoT device in the target space, so as to obtain more accurate and fine-grained spatial energy consumption data. The spatial energy consumption data can provide basic data support for subsequent energy consumption optimization and energy-saving measures. Therefore, after the pre-trained artificial intelligence model trained based on the operating data of the IoT device receives an energy consumption analysis request for the target space, the pre-trained artificial intelligence model can perform energy consumption analysis on the spatial energy consumption data and output an energy consumption analysis report including energy-saving optimization measures for the target space, realizing the combination of big data computing and artificial intelligence technology to perform automated energy-saving optimization analysis of the target space, which is conducive to helping the target space achieve more efficient and intelligent energy consumption control, reduce energy consumption costs, and effectively improve the intelligence of energy consumption control in the target space.
[0099] In one embodiment, the spatial energy consumption data includes the energy consumption data of each IoT device; an energy consumption analysis is performed on the spatial energy consumption data of the target space to generate an energy consumption analysis report for the target space, including: performing an energy consumption analysis on the energy consumption data of each IoT device to obtain predicted energy consumption data corresponding to each IoT device in the prediction period; comparing the actual energy consumption data and predicted energy consumption data corresponding to each IoT device in the prediction period to obtain the energy consumption difference corresponding to each IoT device in the prediction period; and generating energy-saving optimization measures for the target space based on the energy consumption difference corresponding to each IoT device in the prediction period.
[0100] Among them, in the process of performing big data analysis on the operating data of each IoT device in the target space, the energy consumption data of each IoT device can be obtained.
[0101] The actual energy consumption data may be the energy consumption data actually consumed by the IoT device.
[0102] Among them, the predicted energy consumption data can be energy consumption data predicted for IoT devices based on a pre-trained artificial intelligence model.
[0103] The prediction period may be a period of time used for energy consumption prediction.
[0104] In the specific implementation, the pre-trained artificial intelligence model can analyze the energy consumption data of each IoT device in the process of analyzing the spatial energy consumption data of the target space and generating an energy consumption analysis report for the target space, and obtain the predicted energy consumption data corresponding to each IoT device in the predicted period. Among them, the energy consumption data for energy consumption analysis is the actual energy consumption data.
[0105] Then, the actual energy consumption data and predicted energy consumption data corresponding to each IoT device in the same prediction period are compared to obtain the energy consumption difference corresponding to each IoT device in the prediction period. Among them, the energy consumption difference corresponding to the IoT device in the same prediction period can be obtained based on the difference between the actual energy consumption data and the predicted energy consumption data corresponding to the IoT device in the same prediction period. In this way, energy-saving optimization measures for the target space can be generated based on the energy consumption difference corresponding to each IoT device in the prediction period. Specifically, based on the energy consumption difference corresponding to each IoT device in the prediction period, IoT devices with abnormal energy consumption can be identified, and corresponding energy-saving optimization measures can be set for IoT devices with abnormal energy consumption.
[0106] In the technical solution of this embodiment, the spatial energy consumption data includes the energy consumption data of each IoT device; by performing energy consumption analysis on the energy consumption data of each IoT device, the predicted energy consumption data corresponding to each IoT device in the prediction period is obtained; by comparing the actual energy consumption data corresponding to each IoT device in the prediction period with the predicted energy consumption data, the energy consumption difference corresponding to each IoT device in the prediction period is obtained; according to the energy consumption difference corresponding to each IoT device in the prediction period, energy-saving optimization measures for the target space are generated. In this way, by performing energy consumption analysis on the energy consumption data of IoT devices, the pre-trained artificial intelligence model can predict the predicted energy consumption data corresponding to each IoT device in the prediction period, and through the energy consumption difference between the actual energy consumption data corresponding to the IoT device in the prediction period and the predicted energy consumption data, the IoT device with abnormal energy consumption can be identified, so that energy-saving optimization measures for saving energy consumption can be automatically generated for the IoT device with abnormal energy consumption, thereby realizing more intelligent energy consumption control.
[0107] In one embodiment, energy-saving optimization measures for the target space are generated based on the energy consumption differences corresponding to each IoT device in the predicted time period, including: if there are IoT devices with abnormal energy consumption among the IoT devices, then based on the device energy consumption analysis data of the IoT devices with abnormal energy consumption, automatic configuration suggestions are generated for the IoT devices with abnormal energy consumption; and energy-saving optimization measures are obtained based on the automatic configuration suggestions.
[0108] Among them, the automated configuration recommendations include configuration solutions for instructing IoT devices with abnormal energy consumption to automatically enter energy-saving mode.
[0109] Among them, the energy-saving mode can achieve energy saving by turning off or turning on IoT devices under certain conditions.
[0110] Among them, the energy consumption difference corresponding to the abnormal energy consumption IoT device in the predicted period meets the preset difference condition.
[0111] The energy consumption difference can be characterized by the difference between the actual energy consumption data and the predicted energy consumption data corresponding to the IoT device in the same prediction period. Accordingly, the preset difference condition can be that the energy consumption difference corresponding to the IoT device in the prediction period is greater than or equal to a preset energy consumption difference threshold.
[0112] For example, if the preset energy consumption difference threshold is 30kwh (kilowatt-hour), if the actual energy consumption data corresponding to a certain IoT device in the prediction period is 272kwh, and the predicted energy consumption data corresponding to the prediction period is 230kwh, the energy consumption difference corresponding to the IoT device in the same prediction period is 42kwh, which exceeds 30kwh, then the IoT device is determined to be an IoT device with abnormal energy consumption.
[0113] Among them, the device energy consumption analysis data of the energy consumption abnormal IoT device can be data used to perform energy consumption analysis on the energy consumption abnormal IoT device. Exemplarily, the device energy consumption analysis data may include the device identification, device type, specific model, device location, total energy consumption data of the energy consumption abnormal IoT device during the energy consumption analysis period, month-on-month growth value of energy consumption data, average energy consumption data of similar devices, total energy consumption data on working days during the energy consumption analysis period, total energy consumption data on non-working days during the energy consumption analysis period, etc.
[0114] Among them, the energy consumption analysis period can be the time period indicated by the energy consumption analysis request during which energy consumption analysis is required. For example, if the energy consumption analysis request indicates to analyze the energy consumption of the target space last month, the total energy consumption data of the energy consumption analysis period can be the total energy consumption data of the abnormal energy consumption IoT devices in the last month; the average energy consumption data of the same type of devices can be the average total energy consumption data of the same type of devices with abnormal energy consumption IoT devices in the last month; the total energy consumption data on working days in the energy consumption analysis period can be the total energy consumption data of the abnormal energy consumption IoT devices on working days in the last month; the total energy consumption data on non-working days in the energy consumption analysis period can be the total energy consumption data of the abnormal energy consumption IoT devices on non-working days in the last month.
[0115] In a specific implementation, in the process of generating energy-saving optimization measures for the target space according to the energy consumption differences corresponding to each IoT device in the predicted period, if an IoT device with abnormal energy consumption is identified among the IoT devices, the device energy consumption analysis data of the IoT device with abnormal energy consumption can be obtained, and based on the device energy consumption analysis data of the IoT device with abnormal energy consumption, an automatic configuration suggestion for the IoT device with abnormal energy consumption is generated, and the automatic configuration suggestion includes a configuration scheme for instructing the IoT device with abnormal energy consumption to automatically enter the energy-saving mode. In this way, energy-saving optimization measures including automatic configuration suggestions can be obtained.
[0116] Among them, the configuration scheme for the abnormal energy consumption IoT device to automatically enter the energy-saving mode can be configured with trigger conditions and execution actions. When the trigger conditions are met, the energy-saving purpose is achieved by controlling the abnormal energy consumption IoT device to execute the corresponding execution action.
[0117] In some embodiments, in addition to energy-saving optimization measures, the energy consumption analysis report may also include energy consumption analysis data of IoT devices with abnormal energy consumption. For example, taking the target space as a building and the IoT device with abnormal energy consumption as a switch socket as an example, the energy consumption analysis report may include the device identification, device type, location of the device (e.g., 5th floor), total energy consumption data of the energy consumption analysis period (e.g., 295.88 kwh), month-on-month growth value of energy consumption data (e.g., 0.097%), average energy consumption data of similar devices (e.g., 4.89 kwh), total energy consumption data on working days in the energy consumption analysis period (e.g., 272.482 kwh), and total energy consumption data on non-working days in the energy consumption analysis period (e.g., 23.405 kwh). Based on the above-mentioned device energy consumption analysis data, the generated automatic configuration suggestion may be "Based on the device energy consumption analysis data of the device, you can consider adding a timed shutdown function to reduce the energy consumption of the device. For example, in On weekends or at night, you can set the device to automatically shut down after a certain period of no operation. Based on the trigger event of the high-precision human body sensor, you can set the device to automatically turn on when it detects movement to improve the efficiency of the device and the user experience. At the same time, when no one moves for a certain period of time, the device will automatically shut down to save energy. Devices in different locations can be set to trigger different actions according to the conditions of the specific location to improve the personalized experience of the device. For example, in the men's restroom equipment on different floors, you can set it to automatically turn on only when someone moves on that floor. You can refer to the automation configuration example of the gateway device, and formulate a more detailed and intelligent automation configuration based on the functional characteristics and usage scenarios of different devices, combined with the location information of the device, to meet the specific needs of users and improve the intelligence of the device. "
[0118] In another example, the generated automation configuration suggestion may be "To address the problem of high energy consumption on weekdays, consider using a timer switch to control the device. Set a timer task based on the office building's office hours so that the device automatically shuts down during non-office hours. To address the problem of high energy consumption on weekends, a human body sensor can be used for control. When no one is active, the device automatically shuts down to reduce energy consumption. For this device, the trigger condition can be set to "turn on the light when someone moves", and the device automatically turns on when someone moves. The configuration in the automation example of similar devices can be used as a reference and can be adjusted and customized according to actual needs to achieve more efficient equipment commissioning and energy management. The overall suggestion is to achieve equipment automation control and energy management through timed tasks, human body sensors, etc., to improve energy efficiency and equipment use results."
[0119] The technical solution of this embodiment is that if there is an IoT device with abnormal energy consumption among the IoT devices, then according to the device energy consumption analysis data of the IoT device with abnormal energy consumption, an automatic configuration suggestion for the IoT device with abnormal energy consumption is generated; the automatic configuration suggestion includes a configuration scheme for instructing the IoT device with abnormal energy consumption to automatically enter the energy-saving mode; the energy consumption difference corresponding to the IoT device with abnormal energy consumption in the predicted time period meets the preset difference condition; and energy-saving optimization measures are obtained according to the automatic configuration suggestion. In this way, by comparing the actual energy consumption data and the predicted energy consumption data corresponding to the IoT device in the predicted time period, the IoT device with abnormal energy consumption difference can be identified, so that according to the device energy consumption analysis data of the IoT device with abnormal energy consumption, the automatic configuration suggestion corresponding to the IoT device with abnormal energy consumption can be generated in a targeted manner to instruct the IoT device with abnormal energy consumption to automatically enter the energy-saving mode, so as to reduce the energy consumption of the IoT device with abnormal energy consumption and achieve effective energy-saving effect.
[0120] In one embodiment, the target space includes at least one subspace; the energy consumption data of each IoT device includes historical energy consumption data of a historical period before a prediction period; the spatial energy consumption data also includes historical environmental data of the subspace where each IoT device is located in a historical period; energy consumption analysis is performed on the energy consumption data of each IoT device to obtain predicted energy consumption data corresponding to each IoT device in the prediction period, including: analyzing the energy consumption pattern of each IoT device based on the historical energy consumption data and the historical environmental data to obtain predicted energy consumption data corresponding to each IoT device in the prediction period.
[0121] The target space may include at least one subspace, and each IoT device may be distributed in different subspaces. For example, the target space may be an office building, and the subspaces may be various offices in the office building.
[0122] The historical period may be a time period before the predicted period.
[0123] The historical energy consumption data may be the energy consumption data actually consumed by the IoT device in a historical period.
[0124] The historical environmental data may be environmental data of the subspace where the IoT device is located in a historical period. For example, the environmental data may include, but is not limited to, temperature and humidity data, light intensity data, and the like.
[0125] In the specific implementation, in the process of performing energy consumption analysis on the energy consumption data of each IoT device to obtain the predicted energy consumption data corresponding to each IoT device in the prediction period, the energy consumption patterns of each IoT device can be analyzed based on the historical energy consumption data of each IoT device in the historical period before the prediction period, and the historical environmental data of the subspace where each IoT device is located in the historical period, to obtain the predicted energy consumption data corresponding to each IoT device in the prediction period.
[0126] Specifically, the energy consumption prediction model of the target space can be trained and generated based on the historical energy consumption data of each IoT device in the historical period before the prediction period, as well as the historical environmental data of the subspace where each IoT device is located in the historical period. The predicted energy consumption data corresponding to each IoT device in the prediction period can be predicted through the energy consumption prediction model of the target space.
[0127] For example, suppose you need to predict and analyze the energy consumption of an office building. The office building contains multiple offices, each of which has multiple IoT devices such as air conditioners and lighting equipment. The collected spatial energy consumption data of the target space can be continuously input into the big model to train and generate the energy consumption prediction model of the building. By setting the environmental parameters and equipment operation mode, the future energy consumption trend can be predicted.
[0128] For example, the spatial energy consumption data of the target space may include the real-time power data of IoT devices such as air conditioners and lighting equipment in each office every hour in the past month (such as from March 1 to March 31) of the office building, as well as environmental data such as indoor temperature, humidity, and light intensity of each office. Taking March 1 to March 15 as the historical period, the real-time power data of each IoT device from March 1 to March 15, as well as the environmental data such as indoor temperature, humidity, and light intensity of the offices where each IoT device is located from March 1 to March 15 are used to construct an input feature sequence, and a building energy consumption prediction model (which can be a neural network model, such as an LSTM (Long Short-Term Memory) neural network model) is trained.
[0129] Then, the feature data from March 16 to March 31 can be input into the pre-trained building energy consumption prediction model, which can make the following predictions:
[0130] Predict the average power curve of each IoT device such as air conditioners and lighting equipment in each office every hour in the third week (March 16-March 22);
[0131] Predict the average power curve of each IoT device such as air conditioners and lighting equipment in each office every hour in the fourth week (March 23-March 29);
[0132] The average power curve of each IoT device, such as air conditioners and lighting equipment in each office, is further predicted every hour from April 1 to April 7.
[0133] In this way, the peak and valley periods of energy consumption in buildings can be determined by analyzing the prediction results. Users can take corresponding energy-saving measures based on this prediction information, such as adjusting the operation mode of equipment during low-load periods and optimizing energy consumption strategies.
[0134] The technical solution of this embodiment includes at least one subspace through the target space; the energy consumption data of each IoT device includes the historical energy consumption data of the historical period before the prediction period; the spatial energy consumption data also includes the historical environmental data of the subspace where each IoT device is located in the historical period; according to the historical energy consumption data and the historical environmental data, the energy consumption law of each IoT device is analyzed to obtain the predicted energy consumption data corresponding to each IoT device in the prediction period. In this way, the energy consumption trend can be predicted based on the historical energy consumption data and the historical environmental data, helping users predict the peak and valley periods of energy consumption and the high-load periods, so as to take corresponding energy-saving measures and optimize energy consumption strategies.
[0135] In one embodiment, the target space includes at least one subspace, and the operating data of each IoT device includes device status data and environmental data of the subspace where the IoT device is located; before the step of obtaining an energy consumption analysis request for the target space, the method also includes: performing big data analysis on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located to obtain the energy consumption data of each IoT device; and obtaining the spatial energy consumption data of the target space based on the energy consumption data of each IoT device.
[0136] Among them, the device status data is used to characterize the operating status of the IoT device at a specific point in time (such as on or off status).
[0137] In a specific implementation, the electronic device can also obtain the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located, and perform big data analysis on the device status data and environmental data to obtain the energy consumption data of each IoT device, so as to obtain the spatial energy consumption data of the target space based on the energy consumption data of each IoT device.
[0138] In practical applications, IoT devices report a large amount of data at all times, including heartbeat data packets, functional data, device state switching, and environmental data. This can be done by using a big data system to clean the required statistical data from a large amount of resource point value data. The collection and cleaning is processed using big data framework technologies such as Flume, Hive, Flink, and Spark. In this application, the data reported by IoT devices can be used as the operating data of IoT devices.
[0139] Among them, IoT devices have a variety of mechanisms for reporting data, such as device status switching, heartbeat mechanism, and value changes exceeding thresholds.
[0140] Among them, the IoT device will periodically report its own data to the gateway and then to the server. This part of the data can be called a heartbeat data packet.
[0141] Among them, each IoT device can have a resource value definition for opening and closing (this definition is maintained in the lowest-level device function definition logic). The IoT device will report resource value data in various states. For example, when the device state changes from the on state to the off state, or from the off state to the on state, or the device reports its own state through a periodic heartbeat, the device will report this data to the server through the gateway. The big data system can obtain data based on the cloud for analysis, thereby obtaining the energy consumption data of each IoT device.
[0142] Among them, the definition of resource values for start and end specifically means that the IoT device will have corresponding definition rules for its various states and functions. For example, the value corresponding to the resource value of the on / off state of the switch is an enumeration value, which is 0 and 1, representing off and on respectively. When the IoT device is in the on state, 1 is reported, and when the device becomes off, 0 is reported. This can be used as a definition of resource value.
[0143] In the technical solution of this embodiment, the target space includes at least one subspace, and the operation data of each IoT device includes device status data and environmental data of the subspace where the IoT device is located; the energy consumption data of each IoT device is obtained by performing big data analysis on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located; and the spatial energy consumption data of the target space is obtained based on the energy consumption data of each IoT device. In this way, the energy consumption data of the IoT device can be obtained by parsing and analyzing the operation data of the IoT device through big data computing power, which helps to identify the actual operation status and energy consumption characteristics of the IoT device, thereby obtaining the spatial energy consumption data of the target space, and further providing basic data support for subsequent energy consumption optimization and energy-saving measures for the target space.
[0144] In one embodiment, spatial energy consumption data of a target space is obtained based on energy consumption data of each IoT device, including: performing big data analysis and processing on the energy consumption data of each IoT device according to different energy consumption analysis dimensions to obtain spatial energy consumption data of the target space under each energy consumption analysis dimension.
[0145] The energy consumption analysis dimension may refer to various angles used to analyze energy consumption data.
[0146] Among them, each energy consumption analysis dimension includes at least one of a time dimension, a subspace dimension and an equipment type dimension.
[0147] The time dimension may include at least one of year, month, day and hour, and may also include working day and non-working day dimensions.
[0148] Among them, the subspace dimension can be the various subspaces where the IoT devices are located in the target space.
[0149] Among them, the device type dimension can be the device type corresponding to the IoT device.
[0150] In a specific implementation, when the electronic device obtains the spatial energy consumption data of the target space based on the energy consumption data of each IoT device, the electronic device can perform big data analysis and processing on the energy consumption data of each IoT device according to different energy consumption analysis dimensions to obtain the spatial energy consumption data of the target space under each energy consumption analysis dimension.
[0151] Among them, the energy consumption data of each IoT device can be summarized according to different energy consumption analysis dimensions, so that the spatial energy consumption data of the target space under each energy consumption analysis dimension can include the total energy consumption data of different subspaces, the total energy consumption data of different device types, and the total energy consumption data of different time granularities.
[0152] In practical applications, various labels can be set for each IoT device based on the time dimension, subspace dimension, and device type dimension, and each time period can be divided into smaller granularities. Combined with the energy consumption data of IoT devices, energy consumption analysis can be performed from multiple dimensions:
[0153] In the subspace dimension, according to the deployment location of the IoT device in the target space, the energy consumption data of each IoT device is summarized into the corresponding subspace. For each subspace, its total energy consumption data is calculated to obtain the energy consumption curve of the subspace.
[0154] In the device type dimension, the energy consumption data of IoT devices are summarized according to the device type. Through the energy consumption data comparison chart of the device type, the high-energy-consuming device type can be obtained, so that energy-saving optimization can be focused on the high-energy-consuming device type.
[0155] In the time dimension, we can divide the time periods and whether it is a working day. If it is determined that there is still high energy consumption on non-working days, it needs to be optimized.
[0156] The technical solution of this embodiment performs big data analysis and processing on the energy consumption data of each IoT device according to different energy consumption analysis dimensions to obtain the spatial energy consumption data of the target space under each energy consumption analysis dimension; wherein each energy consumption analysis dimension includes at least one of the time dimension, the subspace dimension, and the device type dimension. In this way, big data analysis and processing can be performed on the energy consumption data of each IoT device according to different energy consumption analysis dimensions, so as to achieve a more comprehensive analysis of the operation of the IoT devices in the target space, thereby obtaining the spatial energy consumption data of the target space under each energy consumption analysis dimension, providing more accurate and fine-grained energy consumption data, so as to more comprehensively analyze the energy consumption distribution of the target space.
[0157] In one embodiment, the device status data includes switch status data and corresponding timestamp data; big data analysis is performed on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located to obtain the energy consumption data of each IoT device, including: for any IoT device, according to the environmental data of the subspace where any IoT device is located, the switch status data corresponding to any IoT device, and the corresponding timestamp data, the duration data of any IoT device is obtained; according to the duration data of any IoT device, the energy consumption data corresponding to any IoT device is obtained.
[0158] Among them, as described in the above embodiments, the IoT device can report data in scenarios such as device status switching, and will carry the current timestamp when reporting the data. Therefore, the device status data may include switch status data (used to characterize whether the IoT device is in an on or off state) and corresponding timestamp data.
[0159] The duration data includes at least one of usage duration, energy-saving duration and ineffective energy consumption duration.
[0160] The usage time may be the duration that the IoT device is turned on.
[0161] The energy-saving duration may be the duration that the IoT device is in energy-saving mode.
[0162] The invalid energy consumption duration may be the duration during which the IoT device is in an invalid energy consumption state. Invalid energy consumption means that the IoT device consumes electrical energy but does not have any actual effect or does not bring any actual value. In actual applications, no energy consumption can also be named invalid enablement.
[0163] The energy consumption data includes at least one of total energy consumption data, energy-saving data and invalid energy consumption data.
[0164] The total energy consumption data may be the energy consumption data consumed by the IoT device during its use time.
[0165] The energy-saving data may be the energy consumption data of the IoT device during the energy-saving period.
[0166] The invalid energy consumption data may be the energy consumption data of the IoT device during the invalid energy consumption period.
[0167] In a specific implementation, when the electronic device performs big data analysis on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located to obtain the energy consumption data of each IoT device, for any IoT device, the electronic device can obtain the duration data of any IoT device based on the environmental data of the subspace where the any IoT device is located, the switch status data corresponding to the any IoT device, and the corresponding timestamp data. The duration data may include at least one of the usage duration, energy-saving duration, and invalid energy consumption duration.
[0168] As mentioned above, the IoT device can report data in scenarios such as device status switching, and the reported data will carry the current timestamp. Therefore, the usage time of the IoT device in each time period can be calculated based on the reported switch status data and the corresponding timestamp data.
[0169] In order to facilitate the understanding of those skilled in the art, Figure 3 A schematic diagram of the timeline for reporting switch status data of IoT devices is provided. Figure 3 As shown, the usage time of the IoT device can be obtained through the time axis of the switch status data reporting. Specifically, the timestamps of the IoT device reporting data five times are T1, T2, T3, T4 and T5, and the corresponding switch states are open state (on state), open state (on state), closed state (off state), open state (on state) and closed state (off state). From this, the duration (i.e., usage time) of the IoT device in the open state during the time period from T1 to T5 can be calculated as Ta = (T3-T1) + (T5-T4).
[0170] Among them, the target space can be configured with various automation schemes, some of which are used for energy saving. The energy saving values of these automation schemes (such as energy saving duration and energy saving data) can be quantified through the IoT devices associated with the automation schemes. For IoT devices associated with automation schemes, their automation schemes can monitor that the environment in which the IoT devices are located meets certain conditions, and control the IoT devices to automatically shut down to enter energy saving mode. Therefore, the energy saving duration of the IoT device can be calculated through the environmental data of the subspace where the IoT device is located, the switch status data corresponding to the IoT device, and the corresponding timestamp data.
[0171] In this way, the energy consumption data corresponding to any IoT device can be obtained based on the duration data of any IoT device, and the energy consumption data can include at least one of total energy consumption data, energy-saving data and invalid energy consumption data.
[0172] In the technical solution of this embodiment, the device status data includes switch status data and corresponding timestamp data; for any IoT device, the duration data of any IoT device is obtained according to the environmental data of the subspace where any IoT device is located, the switch status data corresponding to any IoT device and the corresponding timestamp data; the duration data includes at least one of the usage duration, energy-saving duration and invalid energy consumption duration; according to the duration data of any IoT device, the energy consumption data corresponding to any IoT device is obtained; the energy consumption data includes at least one of the total energy consumption data, energy-saving data and invalid energy consumption data. In this way, by collecting the environmental data of the subspace where each IoT device is located, the switch status data corresponding to the IoT device and the corresponding timestamp data, the power consumption of each IoT device can be accurately analyzed, and the usage duration, energy-saving duration and invalid energy consumption duration of each IoT device can be determined, so that the total energy consumption data, energy-saving data and invalid energy consumption data corresponding to each IoT device can be more accurately obtained according to these duration data, so as to achieve accurate energy consumption measurement and more comprehensive analysis of energy consumption distribution and consumption.
[0173] In one embodiment, the duration data of any IoT device is obtained based on the environmental data of the subspace in which any IoT device is located, the switch status data corresponding to any IoT device, and the corresponding timestamp data, including: if any IoT device is a controlled device, the automatic shutdown timestamp data corresponding to any IoT device and the next startup timestamp data corresponding to any IoT device are determined based on the switch status data and the corresponding timestamp data; the energy-saving duration of any IoT device is obtained based on the next startup timestamp data and the automatic shutdown timestamp data.
[0174] Among them, the automated shutdown timestamp data represents the environmental data of the subspace reported by the trigger device corresponding to any IoT device, and the time when any IoT device executes the shutdown action after the corresponding environmental trigger shutdown conditions are met.
[0175] Among them, the next startup timestamp data represents the time when any IoT device is next turned on after executing the shutdown action.
[0176] The automation scheme may be configured with trigger conditions and execution actions. The devices that implement the automation scene control include trigger devices and controlled devices (or execution devices), which are connected to each other through a gateway. When the trigger device meets the trigger condition, the gateway controls the controlled device to execute the corresponding execution action.
[0177] The trigger device refers to an intelligent device used to monitor the environmental conditions of the target space, and the controlled device refers to an intelligent device that performs actions in the target space. The trigger device can be various environmental sensing devices such as pressure sensors, temperature sensors, humidity sensors, door and window sensors, or smoke sensors. The controlled device can be various switches, sockets, etc.
[0178] Assume that an automation scheme is set up as "control to turn off the light when the light intensity in the space reaches the preset threshold value". The trigger condition in this automation scheme is that the light intensity in the space reaches the preset threshold value, and the execution action is that the smart switch controls the light to turn off the light. Based on this application scenario, the light sensor can be set as the trigger device, and the smart switch connected to the light can be set as the controlled device. It can be understood that in actual applications, when calculating energy consumption data, the controlled device can include the IoT device (the light in this embodiment) that is actually controlled to enter the off state.
[0179] In actual applications, when an IoT device is turned on, if its next shutdown is associated with an automation solution (each time the IoT device reports resource value data, it will carry relevant detailed information), then the time from this automated shutdown to the next IoT device startup can be defined as the energy-saving duration of the IoT device. In other words, the energy-saving duration can be understood as the duration of the automated shutdown.
[0180] In a specific implementation, in the process of determining the duration data of any IoT device, if any IoT device is associated with an automation scheme and the automation scheme can trigger the shutdown of any IoT device, that is, if any IoT device is a controlled device in the above-mentioned automation scheme, the electronic device can determine the automation shutdown timestamp data corresponding to any IoT device and the next startup timestamp data corresponding to any IoT device based on the switch status data and the corresponding timestamp data reported by any IoT device; wherein the automation shutdown timestamp data can represent the environmental data of the subspace reported by the triggering device corresponding to the any IoT device, and the time when the IoT device performs the shutdown action after the corresponding environmental trigger shutdown condition is met.
[0181] The environment-triggered shutdown condition may be a trigger condition that triggers the controlled device to execute a shutdown action based on environmental data. For example, if the automation solution is "control to turn off the light when the light intensity in the space reaches a preset threshold", "the light intensity in the space reaches a preset threshold" is an environment-triggered shutdown condition.
[0182] The next-on timestamp data represents the time when any IoT device is next turned on after executing a shutdown action.
[0183] In this way, the electronic device can obtain the energy-saving duration of any IoT device based on the next-on timestamp data and the automatic-off timestamp data corresponding to the any IoT device.
[0184] In order to facilitate the understanding of those skilled in the art, Figure 4 A schematic diagram for calculating the energy saving duration is provided. Figure 4 As shown, the IoT device as a controlled device can be a lamp, and the associated automation scheme is "when the trigger device (light sensor DeviceB) in the subspace SpaceA detects that the light intensity reaches a preset threshold (for example, 100), the controlled device (lamp DeviceA) in the subspace SpaceA is turned off". Among them, when the lamp DeviceA reports the on state (on state), the corresponding timestamp is T1; when the light sensor DeviceB reports the light intensity as 100, the lamp DeviceA is triggered to enter the off state (off state), and the corresponding timestamp is T2; subsequently, the light intensity becomes dim, and the user turns on the lamp DeviceA, and the lamp DeviceA enters the on state (on state), and the corresponding timestamp is T3.
[0185] Among them, T2 is the automatic closing timestamp data, and T3 is the next opening timestamp data. According to the definition of energy-saving duration, the energy-saving duration Tb=T3-T2.
[0186] The technical solution of this embodiment is as follows: if any IoT device is a controlled device, then according to the switch state data and the corresponding timestamp data, the automatic shutdown timestamp data corresponding to any IoT device and the next startup timestamp data corresponding to any IoT device are determined; the automatic shutdown timestamp data represents the environmental data of the subspace reported by the trigger device corresponding to any IoT device, and the time when any IoT device executes the shutdown action after the corresponding environmental trigger shutdown condition is met; the next startup timestamp data represents the next startup time of any IoT device after executing the shutdown action; according to the next startup timestamp data and the automatic shutdown timestamp data, the energy saving duration of any IoT device is obtained.
[0187] In this way, when an IoT device is associated with an automation solution and the automation solution can trigger the IoT device to shut down and enter energy-saving mode, the time when the IoT device performs the automated shutdown action and the next time it is turned on can be accurately determined based on the switch status data of the IoT device and the corresponding timestamp data, thereby achieving accurate quantification of the energy-saving duration of the IoT device based on the automation associated with the IoT device.
[0188] In one embodiment, the duration data of any IoT device is obtained based on the environmental data of the subspace where any IoT device is located, the switch status data corresponding to any IoT device, and the corresponding timestamp data, including: if any IoT device is a controlled device, and the environmental data of the subspace reported by the trigger device corresponding to any IoT device meets the corresponding environmental trigger shutdown condition, then the timestamp data corresponding to the reporting of the environmental data is used as the expected shutdown timestamp data corresponding to any IoT device; based on the switch status data and the corresponding timestamp data of any IoT device, the actual shutdown timestamp data corresponding to any IoT device is determined; based on the expected shutdown timestamp data and the actual shutdown timestamp data, the invalid energy consumption duration is obtained.
[0189] The actual shutdown timestamp data represents the time when any IoT device actually executes the shutdown action after the environment triggers the shutdown condition.
[0190] Among them, as described in the above embodiments, the invalid energy consumption duration can be the duration that the IoT device is in an invalid energy consumption state. Invalid energy consumption means that the IoT device consumes electrical energy but has no actual effect or does not bring actual value. For example, when the air-conditioning light intensity in a space reaches a preset threshold, it is determined that the space is in a high light intensity. If the lighting IoT device in the space is in the on state under this high light intensity, the energy consumption of the lighting IoT device in the on state during this time period is marked as invalid energy consumption. When a space is unmanned, but the air-conditioning, lighting and other IoT devices in the space are still in the on state, the energy consumption during the unmanned period can be marked as invalid energy consumption.
[0191] In a specific implementation, in the process of determining the duration data of any IoT device, if any IoT device is associated with an automation scheme, and the automation scheme can trigger the shutdown of any IoT device, that is, if any IoT device is a controlled device in the above-mentioned automation scheme, and the environmental data of the subspace reported by the trigger device corresponding to any IoT device meets the corresponding environmental trigger shutdown condition, then the timestamp data corresponding to the reporting of the environmental data can be used as the expected shutdown timestamp data corresponding to the any IoT device.
[0192] Among them, the expected shutdown timestamp data is the time when any IoT device is expected to enter the shutdown state. In actual applications, in automation solutions, we expect that after the environmental data of the space meets the corresponding environmental trigger shutdown conditions, the controlled device can be immediately triggered to enter the shutdown state to save energy. However, there may be a certain time difference between the time when the controlled device actually enters the shutdown state and the time when the environmental data meets the corresponding environmental trigger shutdown conditions. Therefore, in this application, the timestamp data corresponding to the reporting of environmental data can be used as the expected shutdown timestamp data corresponding to the controlled device, and the timestamp data corresponding to the actual execution of the shutdown action can be used as the actual shutdown timestamp data corresponding to the controlled device.
[0193] The actual shutdown timestamp data corresponding to any IoT device can be determined based on the switch state data and corresponding timestamp data of any IoT device as a controlled device. Specifically, after the corresponding environment triggers the shutdown condition, the actual shutdown timestamp data can be determined based on the switch state data and corresponding timestamp data indicating that any IoT device is in a shutdown state.
[0194] In this way, the invalid energy consumption duration corresponding to any IoT device can be obtained according to the expected shutdown timestamp data corresponding to any IoT device and the actual shutdown timestamp data corresponding to any IoT device.
[0195] In order to facilitate the understanding of those skilled in the art, Figure 5 A schematic diagram of the calculation of the time without energy consumption is provided. Figure 5 As shown, there are human presence sensors (trigger devices) and smart light devices (controlled devices) under the conference room space A. When a person enters space A, the human presence sensor will report that there is someone and turn on the light. After the person leaves, the human presence sensor will report that there is no one. The time interval from the person leaving to the subsequent light turning off is the ineffective energy consumption time of the smart light device in space A. That is, space A is configured with an automation solution of "turning on the light when there is someone and turning off the light when there is no one", and the environmental trigger shutdown condition can be "detecting that there is no one in the space".
[0196] Specifically, in the timeline events of space A, the timestamp corresponding to the event of someone entering space A is T1, the timestamp corresponding to when the human presence sensor reports that there is someone is T2, the timestamp corresponding to when the light is turned on is T3, the timestamp corresponding to when a person leaves space A and the human presence sensor reports that there is no one is T4, and the timestamp corresponding to when the light is turned off is T5.
[0197] Wherein, T4 is the expected closing timestamp data, and T5 is the actual closing timestamp data. According to the definition of the invalid energy consumption duration, the invalid energy consumption duration Tc=T5-T4.
[0198] The technical solution of this embodiment is as follows: if any IoT device is a controlled device, and the environmental data of the subspace reported by the trigger device corresponding to any IoT device meets the corresponding environmental trigger shutdown condition, the timestamp data corresponding to the reporting of the environmental data is used as the expected shutdown timestamp data corresponding to any IoT device; the actual shutdown timestamp data corresponding to any IoT device is determined according to the switch state data and the corresponding timestamp data of any IoT device; the actual shutdown timestamp data represents the time when any IoT device actually executes the shutdown action after the environmental trigger shutdown condition is met; and the invalid energy consumption duration is obtained according to the expected shutdown timestamp data and the actual shutdown timestamp data.
[0199] In this way, when the IoT device is associated with an automation solution, through the environmental data of the subspace where the IoT device is located, the switch status data of the IoT device and the corresponding timestamp data, it is possible to determine whether the energy consumption of the IoT device has a practical effect, and obtain the duration when the energy consumption of the IoT device has no practical effect, and obtain the energy-free time, thereby achieving a more comprehensive analysis of the energy consumption characteristics of the space.
[0200] In some embodiments, the energy consumption data includes at least one of total energy consumption data, energy-saving data, and invalid energy consumption data; in the process of obtaining the energy consumption data corresponding to the IoT device based on the duration data of the IoT device, the electronic device can further obtain the power data of the IoT device.
[0201] Power data can be obtained by:
[0202] For IoT devices with power metering, they have internal metering devices that continuously calculate energy consumption and report the accumulated value of energy consumption when the energy consumption changes reach a threshold or the heartbeat time. The difference between the two accumulated energy consumption values is the energy consumption during that period of time. Figure 6 As shown, a schematic diagram of the device energy consumption reporting timeline is provided. The timestamps when the IoT device reports the accumulated energy consumption five times are T1, T2, T3, T4 and T5 respectively. The total energy consumption data W of the IoT device in the time period from T1 to T5 is W=W5-W1.
[0203] Based on this, for IoT devices with power metering, the average power of IoT devices can be calculated based on the total energy consumption data W / working time [the usage time of IoT devices] Ta within the time range for subsequent calculations. Figure 6 and Figure 3 , Ta = (T3-T1) + (T5-T4), then the average power from T1 to T5 is: P = (W5-W1) / ((T3-T1) + (T5-T4))
[0204] Since not all IoT devices have the power metering function, a method based on power*time is also provided to calculate energy consumption data. If IoT devices in the target space are used, the management system of the target space already has the rated power of the IoT devices built in, which can be obtained directly through the power data in the management system.
[0205] In addition, if third-party IoT devices are connected, the management system also provides relevant web pages where users can input the power of these third-party IoT devices and perform subsequent energy consumption and energy saving calculations.
[0206] In addition, for IoT devices that do not have power measurement, it is necessary to calculate the energy consumption based on the formula:
[0207] Total energy consumption (kWh) = equipment power (kW) × usage time (h)
[0208] The above has introduced the calculation or acquisition method of usage time and power. On this basis, the total energy consumption data of the IoT device can be calculated based on the formula.
[0209] As for energy-saving data, based on the energy-saving duration and power of each IoT device, it can be calculated based on:
[0210] Energy saving (kWh) = Equipment power (kW) × Energy saving time (h)
[0211] Calculate the energy saving of a single IoT device. The execution of energy-saving automation is ultimately performed by the IoT device itself. Based on the operating data of automation and IoT devices, the energy saving of a single device can be aggregated to specific automation.
[0212] For invalid energy consumption data, you can use:
[0213] Ineffective energy consumption (kWh) = equipment power (kW) × ineffective energy consumption duration (h)
[0214] Calculate the invalid energy consumption data of a single IoT device. Figure 5 , invalid energy consumption = (T5-T4)*P (equipment power).
[0215] In practical applications, relevant statistics and calculations can be pre-placed in the IoT device system. For example, the IoT device can calculate specific usage time, energy consumption data and other values internally, and directly output the result data to the cloud for aggregation and analysis.
[0216] In this way, the energy consumption data of each IoT device is analyzed and processed by big data to obtain the spatial energy consumption data of the target space in the subspace dimension. In the subspace dimension, according to the deployment position of the IoT device in the target space, the energy consumption data of each IoT device is summarized into the corresponding subspace, and the total energy consumption data of each subspace is calculated to obtain the energy consumption curve of the subspace. The total energy consumption data of the IoT devices contained in the subspace is the total energy consumption data of the subspace.
[0217] For each subspace, the invalid energy consumption data is calculated to obtain the wireless energy consumption curve (invalid enabling curve) of the subspace. The sum of the invalid energy consumption data of the IoT devices contained in the subspace is the total invalid energy consumption data of the subspace.
[0218] Among them, according to the time axis analysis of the wireless energy consumption curve, the invalid energy consumption in each time period in each subspace is identified. Specifically, the time axis of the wireless energy consumption curve and the time axis of the energy consumption curve of the same subspace can be aligned, and the overlapping part is the invalid energy consumption part under the subspace, which can be used as the energy consumption that can be optimized.
[0219] The total energy consumption data and total ineffective energy consumption data of different time periods in each subspace can be visualized, supplemented by trend charts for optimization analysis. Specifically, optimization suggestions for specific time and space can be given, such as shutting down unnecessary equipment, adjusting operating hours, etc. Regularly track the optimization effect and adjust the invalid energy consumption judgment criteria.
[0220] In order to facilitate the understanding of those skilled in the art, Figure 7 A schematic diagram of the invalid enablement curve and energy consumption curve of a subspace Space1 is provided. Figure 7 , it can be analyzed that the ineffective energy consumption near point E in space Space1 can be optimized.
[0221] In this way, through multi-dimensional energy consumption analysis, we can obtain more comprehensive information on the operation status and invalid enablement of IoT devices. This helps to identify the actual operation status and energy consumption characteristics of IoT devices, provide basic data support for subsequent energy consumption optimization and energy-saving measures, and improve energy-saving effects.
[0222] In another embodiment, Figure 8 As shown, an energy consumption analysis method is provided, which is applied to Figure 1 Taking the electronic device as an example, the method includes the following steps:
[0223] Step S802, for any IoT device, the duration data of any IoT device is obtained according to the environmental data of the subspace where the IoT device is located, the switch state data corresponding to the IoT device, and the corresponding timestamp data.
[0224] Step S804, obtaining energy consumption data corresponding to any IoT device according to the duration data of any IoT device.
[0225] Step S806: Perform big data analysis on the energy consumption data of each IoT device according to different energy consumption analysis dimensions to obtain the spatial energy consumption data of the target space under each energy consumption analysis dimension.
[0226] Step S808: Perform energy consumption analysis on the energy consumption data of each IoT device to obtain predicted energy consumption data corresponding to each IoT device in the predicted time period.
[0227] Step S810, comparing the actual energy consumption data and the predicted energy consumption data corresponding to each IoT device in the predicted period to obtain the energy consumption difference corresponding to each IoT device in the predicted period.
[0228] Step S812: If there is an IoT device with abnormal energy consumption among the IoT devices, an automated configuration suggestion for the IoT device with abnormal energy consumption is generated according to the device energy consumption analysis data of the IoT device with abnormal energy consumption.
[0229] Step S814: obtaining an energy consumption analysis report including energy-saving optimization measures for the target space according to the automated configuration suggestions.
[0230] It should be noted that the specific limitations of the above steps can refer to the specific limitations of an energy consumption analysis method above.
[0231] In one embodiment, Fig. 9 As shown, a training method for an artificial intelligence model is provided. This embodiment takes the method applied to an electronic device as an example for explanation. The electronic device may be Figure 1 The user terminal 110 or the server 170 in the embodiment. In this embodiment, the method includes the following steps:
[0232] Step S910, obtaining training sample data.
[0233] Among them, the training sample data includes energy consumption analysis sample reports, equipment operation sample data, space environment sample data and space energy consumption sample data.
[0234] The device operation sample data may include operation data of the IoT device as sample data.
[0235] Among them, the spatial environment sample data may include the environmental data of the space where the IoT device serving as the sample data is located.
[0236] The space energy consumption sample data may include space energy consumption data obtained by performing big data analysis based on equipment operation sample data as sample data.
[0237] Among them, the energy consumption analysis sample report may include an energy consumption analysis report obtained by analyzing equipment operation sample data, space environment sample data and space energy consumption sample data.
[0238] Step S920, input the equipment operation sample data, space environment sample data and space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report.
[0239] Among them, the electronic device can input the equipment operation sample data, space environment sample data and space energy consumption sample data into the pre-trained large model, and the pre-trained large model can output the energy consumption analysis output report obtained by analyzing the equipment operation sample data, space environment sample data and space energy consumption sample data.
[0240] Step S930, optimizing the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report.
[0241] Step S940, retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and use the trained large model as a pre-trained artificial intelligence model.
[0242] Among them, the pre-trained artificial intelligence model is used to execute the energy consumption analysis method as mentioned above.
[0243] In a specific implementation, the electronic device can optimize the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report, and retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and use the trained large model as a pre-trained artificial intelligence model to generate an energy consumption analysis report. In this way, these training sample data can be used to fine-tune the pre-trained large model so that the large model can learn language representations and patterns related to energy consumption. During the fine-tuning process, a supervised learning method can be used to use the device operation sample data, space environment sample data, space energy consumption sample data and the corresponding energy consumption analysis report as training samples to guide the large model to learn how to generate the corresponding analysis report based on the device operation sample data, space environment sample data and space energy consumption sample data.
[0244] The training method of the above-mentioned artificial intelligence model obtains training sample data; the training sample data includes energy consumption analysis sample report, equipment operation sample data, space environment sample data and space energy consumption sample data; the equipment operation sample data, space environment sample data and space energy consumption sample data are input into the pre-trained large model to obtain the energy consumption analysis output report; according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report, the model parameters of the pre-trained large model are optimized; the large model with optimized model parameters is retrained until the trained large model meets the preset training conditions, and the trained large model is used as the pre-trained artificial intelligence model; the pre-trained artificial intelligence model is used to execute the energy consumption analysis method as mentioned above.
[0245] In this way, the pre-trained big model has learned rich language representations and patterns on large-scale text data. By optimizing the big model through training sample data, the big model can better understand the contextual information between the standby operation sample data, space environment sample data, space energy consumption sample data and energy consumption analysis sample report, thereby generating an energy consumption analysis report that is closer to the actual situation. The generated energy consumption analysis report can provide users with intelligent decision-making support, help users better understand the space energy consumption situation and take corresponding measures to improve energy efficiency.
[0246] In order to facilitate the understanding of those skilled in the art, Fig.10 A flow chart of another energy consumption analysis method is provided. Taking the target space as a building as an example, the energy consumption analysis method based on IoT devices and "big data computing + artificial intelligence" in this application can be applied to the sub-service module of intelligent building services, from the access of IoT smart devices, the collection and analysis of equipment operation data, the calculation of big data indicators, the multi-dimensional analysis of big data, the intelligent analysis and prediction construction of pre-trained artificial intelligence models, to the conversion of electricity prices and carbon, thereby constructing a complete building management system for implementing the energy consumption analysis method.
[0247] Among them, IoT devices can include various IoT smart devices such as gateway central control, switch sockets, dimming lighting, sensor detection, door and window shading, environmental adjustment, and other electrical appliances. After the IoT device is connected to the building management system, each device product can be viewed and managed in the system, and corresponding custom configurations can be made. For example, the spatial location of the device, the functional type of the device, and the power of third-party devices can be supplemented. The system will collect data from the entire life cycle of each IoT device (that is, from the time the device is connected to the system to the time the device exits the system). Users can view the device status data of any device at any time point within the storage date range to help users do historical tracing and building management analysis.
[0248] Among them, big data indicator calculation can calculate various indicator data such as energy consumption, energy saving, usage time, carbon emissions, etc. based on the equipment life cycle log data.
[0249] Among them, the connection of electricity charges, carbon emissions and other values
[0250] The system currently supports a variety of electricity metering methods, for example:
[0251] a. Calculation of fixed costs: Calculate the electricity fee based on the electricity consumption: Electricity fee = electricity consumption × electricity price.
[0252] Among them, the power consumption can be determined based on the total energy consumption data of the IoT devices.
[0253] b. Cumulative billing: Billing is carried out in sections according to the power consumption, and the unit price of electricity in different power consumption ranges is different
[0254] c. Time-of-day billing: The unit price of electricity in different time periods is different
[0255] At the same time, the system also provides conversion of values such as carbon emissions, and also provides conversion of other measurement methods.
[0256] The calculation methods of other indicator data are as described in the above embodiment and will not be repeated here.
[0257] Among them, through multi-dimensional data analysis, users can conduct comparative analysis based on various customized labels such as time dimension, subspace dimension and equipment type dimension, helping users to better analyze building enablement status.
[0258] Finally, by connecting to the big model, an artificial intelligence model is trained to generate energy consumption analysis reports.
[0259] In this way, the system integrates the Internet of Things, big data computing and artificial intelligence technologies to provide a comprehensive and intelligent energy management system. Through real-time data collection, automated energy-saving optimization and energy consumption forecasting analysis, it can improve the efficiency and accuracy of energy management, reduce energy waste and achieve sustainable use of building energy.
[0260] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0261] Based on the same inventive concept, the embodiment of the present application also provides an energy consumption analysis device for implementing the energy consumption analysis method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more energy consumption analysis device embodiments provided below can refer to the limitations on the energy consumption analysis method above, and will not be repeated here.
[0262] In an exemplary embodiment, Fig.11 As shown, an energy consumption analysis device is provided, including: an acquisition module 1110 and an analysis module 1120, wherein:
[0263] An acquisition module 110 is used to acquire an energy consumption analysis request for a target space;
[0264] The analysis module 1120 is used to input the energy consumption analysis request into the pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space;
[0265] Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
[0266] In one embodiment, the space energy consumption data includes energy consumption data of each of the IoT devices; the analysis module 1120 is specifically used to perform energy consumption analysis on the energy consumption data of each of the IoT devices to obtain predicted energy consumption data corresponding to each of the IoT devices in the prediction period; compare the actual energy consumption data and predicted energy consumption data corresponding to each of the IoT devices in the prediction period to obtain the energy consumption difference corresponding to each of the IoT devices in the prediction period; and generate energy-saving optimization measures for the target space based on the energy consumption difference corresponding to each of the IoT devices in the prediction period.
[0267] In one embodiment, the analysis module 1120 is specifically used to generate an automated configuration suggestion for the IoT device with abnormal energy consumption based on the device energy consumption analysis data of the IoT device with abnormal energy consumption if there is one among the IoT devices; the automated configuration suggestion includes a configuration scheme for instructing the IoT device with abnormal energy consumption to automatically enter an energy-saving mode; the energy consumption difference corresponding to the IoT device with abnormal energy consumption in the predicted time period satisfies a preset difference condition; and the energy-saving optimization measures are obtained based on the automated configuration suggestion.
[0268] In one embodiment, the target space includes at least one subspace; the energy consumption data of each of the IoT devices includes historical energy consumption data of a historical period before the prediction period; the spatial energy consumption data also includes historical environmental data of the subspace where each of the IoT devices is located during the historical period; the analysis module 1120 is specifically used to analyze the energy consumption patterns of each of the IoT devices based on the historical energy consumption data and the historical environmental data, and obtain the predicted energy consumption data corresponding to each of the IoT devices during the prediction period.
[0269] In one embodiment, the target space includes at least one subspace, and the operating data of each of the IoT devices includes device status data and environmental data of the subspace where the IoT device is located; the device also includes: a big data analysis module, which is specifically used to perform big data analysis on the device status data corresponding to each of the IoT devices and the environmental data of the subspace where each of the IoT devices is located to obtain energy consumption data of each of the IoT devices; based on the energy consumption data of each of the IoT devices, the spatial energy consumption data of the target space is obtained.
[0270] In one of the embodiments, the big data analysis module is specifically used to perform big data analysis and processing on the energy consumption data of each of the Internet of Things devices according to different energy consumption analysis dimensions, so as to obtain the spatial energy consumption data of the target space under each of the energy consumption analysis dimensions; wherein each of the energy consumption analysis dimensions includes at least one of a time dimension, a subspace dimension and a device type dimension.
[0271] In one of the embodiments, the big data analysis module is specifically used to obtain the duration data of any of the IoT devices based on the environmental data of the subspace in which any of the IoT devices is located, the switch state data corresponding to any of the IoT devices, and the corresponding timestamp data; the duration data includes at least one of the usage duration, energy-saving duration, and invalid energy consumption duration; based on the duration data of any of the IoT devices, the energy consumption data corresponding to any of the IoT devices is obtained; the energy consumption data includes at least one of the total energy consumption data, energy-saving data, and invalid energy consumption data.
[0272] In one of the embodiments, the big data analysis module is specifically used to determine the automatic shutdown timestamp data corresponding to any of the IoT devices and the next startup timestamp data corresponding to any of the IoT devices based on the switch state data and the corresponding timestamp data if any of the IoT devices is a controlled device; the automatic shutdown timestamp data represents the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices, and the time when any of the IoT devices executes the shutdown action after the corresponding environmental trigger shutdown condition is met; the next startup timestamp data represents the next startup time of any of the IoT devices after executing the shutdown action; based on the next startup timestamp data and the automatic shutdown timestamp data, the energy saving duration of any of the IoT devices is obtained.
[0273] In one of the embodiments, the big data analysis module is specifically used to, if any of the IoT devices is a controlled device and the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices meets the corresponding environmental trigger shutdown condition, use the timestamp data corresponding to the reporting of the environmental data as the expected shutdown timestamp data corresponding to any of the IoT devices; determine the actual shutdown timestamp data corresponding to any of the IoT devices based on the switch state data and the corresponding timestamp data of any of the IoT devices; the actual shutdown timestamp data represents the time when any of the IoT devices actually executes the shutdown action after the environmental trigger shutdown condition is met; and obtain the invalid energy consumption duration based on the expected shutdown timestamp data and the actual shutdown timestamp data.
[0274] Each module in the above energy consumption analysis device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0275] Based on the same inventive concept, the embodiment of the present application also provides a training device for an artificial intelligence model for implementing the training method of the artificial intelligence model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the training device for one or more artificial intelligence models provided below can refer to the limitations of the training method for the artificial intelligence model above, and will not be repeated here.
[0276] In an exemplary embodiment, Fig.12As shown, a training device for an artificial intelligence model is provided, including: an acquisition module 1210, an input module 1220, an optimization module 1230 and an iteration module 1240, wherein:
[0277] The acquisition module 1210 is used to acquire training sample data; the training sample data includes energy consumption analysis sample reports, equipment operation sample data, space environment sample data and space energy consumption sample data.
[0278] The input module 1220 is used to input the equipment operation sample data, the space environment sample data and the space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report.
[0279] The optimization module 1230 is used to optimize the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report.
[0280] The iteration module 1240 is used to retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and the trained large model is used as the pre-trained artificial intelligence model. The pre-trained artificial intelligence model is used to execute the energy consumption analysis method described above.
[0281] Each module in the training device of the above-mentioned artificial intelligence model can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0282] In an exemplary embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Fig.13As shown. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store spatial energy consumption data. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an energy consumption analysis method and / or an artificial intelligence model training method is implemented.
[0283] Those skilled in the art will understand that Fig.13 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0284] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0285] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0286] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0287] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0288] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0289] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0290] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An energy consumption analysis method, characterized in that: The method comprises: Get energy consumption analysis request for target space; Inputting the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space; Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
2. The method according to claim 1, characterized in that: The space energy consumption data includes energy consumption data of each of the IoT devices; the energy consumption analysis is performed on the space energy consumption data of the target space to generate an energy consumption analysis report for the target space, including: Performing energy consumption analysis on the energy consumption data of each IoT device to obtain predicted energy consumption data corresponding to each IoT device in a predicted period; Comparing the actual energy consumption data and the predicted energy consumption data of each IoT device corresponding to the predicted time period, to obtain the energy consumption difference of each IoT device corresponding to the predicted time period; Energy-saving optimization measures for the target space are generated according to the energy consumption differences corresponding to each of the IoT devices in the predicted time period.
3. The method according to claim 2, characterized in that The generating of energy-saving optimization measures for the target space according to the energy consumption differences corresponding to each of the IoT devices in the predicted time period includes: If there is an IoT device with abnormal energy consumption among the IoT devices, an automatic configuration suggestion for the IoT device with abnormal energy consumption is generated according to the device energy consumption analysis data of the IoT device with abnormal energy consumption; the automatic configuration suggestion includes a configuration scheme for instructing the IoT device with abnormal energy consumption to automatically enter an energy-saving mode; the energy consumption difference corresponding to the IoT device with abnormal energy consumption in the predicted time period meets a preset difference condition; The energy-saving optimization measures are obtained according to the automated configuration suggestions.
4. The method according to claim 2, characterized in that: The target space includes at least one subspace; the energy consumption data of each IoT device includes historical energy consumption data of a historical period before the prediction period; the space energy consumption data also includes historical environmental data of the subspace where each IoT device is located in the historical period; the energy consumption analysis of the energy consumption data of each IoT device to obtain the predicted energy consumption data corresponding to each IoT device in the prediction period includes: The energy consumption patterns of each of the IoT devices are analyzed according to the historical energy consumption data and the historical environmental data to obtain predicted energy consumption data corresponding to each of the IoT devices in the predicted time period.
5. The method according to claim 1, characterized in that The target space includes at least one subspace, and the operation data of each IoT device includes device status data and environmental data of the subspace where the IoT device is located; Before the step of obtaining an energy consumption analysis request for the target space, the method further includes: Performing big data analysis on the device status data corresponding to each of the IoT devices and the environmental data of the subspace where each of the IoT devices is located to obtain energy consumption data of each of the IoT devices; The space energy consumption data of the target space is obtained according to the energy consumption data of each of the IoT devices.
6. The method according to claim 5, characterized in that The obtaining the space energy consumption data of the target space according to the energy consumption data of each of the IoT devices includes: According to different energy consumption analysis dimensions, big data analysis and processing are performed on the energy consumption data of each of the IoT devices to obtain the spatial energy consumption data of the target space under each of the energy consumption analysis dimensions; wherein each of the energy consumption analysis dimensions includes at least one of a time dimension, a subspace dimension, and a device type dimension.
7. The method according to claim 5, characterized in that The device status data includes switch status data and corresponding timestamp data; the big data analysis is performed on the device status data corresponding to each IoT device and the environmental data of the subspace where each IoT device is located to obtain the energy consumption data of each IoT device, including: For any of the IoT devices, according to the environmental data of the subspace where any of the IoT devices is located, the switch state data corresponding to any of the IoT devices, and the corresponding timestamp data, the duration data of any of the IoT devices is obtained; the duration data includes at least one of the usage duration, energy-saving duration, and invalid energy consumption duration; According to the duration data of any of the IoT devices, energy consumption data corresponding to any of the IoT devices is obtained; the energy consumption data includes at least one of total energy consumption data, energy-saving data and invalid energy consumption data.
8. The method according to claim 7, characterized in that The obtaining the duration data of any one of the IoT devices according to the environmental data of the subspace where any one of the IoT devices is located, the switch state data corresponding to any one of the IoT devices, and the corresponding timestamp data, comprises: If any of the IoT devices is a controlled device, determining the automatic shutdown timestamp data corresponding to any of the IoT devices and the next startup timestamp data corresponding to any of the IoT devices according to the switch state data and the corresponding timestamp data; The automatic shutdown timestamp data represents the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices, and the time when any of the IoT devices executes the shutdown action after the corresponding environmental trigger shutdown condition is met; the next startup timestamp data represents the next startup time of any of the IoT devices after executing the shutdown action; The energy-saving duration of any one of the IoT devices is obtained according to the next-on timestamp data and the automatic-off timestamp data.
9. The method according to claim 7, characterized in that: The obtaining the duration data of any one of the IoT devices according to the environmental data of the subspace where any one of the IoT devices is located, the switch state data corresponding to any one of the IoT devices, and the corresponding timestamp data, comprises: If any of the IoT devices is a controlled device, and the environmental data of the subspace reported by the trigger device corresponding to any of the IoT devices meets the corresponding environmental trigger shutdown condition, the timestamp data corresponding to the reporting of the environmental data will be used as the expected shutdown timestamp data corresponding to any of the IoT devices; Determine the actual closing timestamp data corresponding to any of the IoT devices according to the switch state data and the corresponding timestamp data of any of the IoT devices; the actual closing timestamp data represents the time when any of the IoT devices actually performs a closing action after the environment triggers a closing condition; The invalid energy consumption duration is obtained according to the expected closing timestamp data and the actual closing timestamp data.
10. A method for training an artificial intelligence model, characterized in that: The method comprises: Acquire training sample data; the training sample data includes energy consumption analysis sample report, equipment operation sample data, space environment sample data and space energy consumption sample data; Input the equipment operation sample data, the space environment sample data and the space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report; Optimizing the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report; Retrain the large model after model parameter optimization until the trained large model meets the preset training conditions, and use the trained large model as the pre-trained artificial intelligence model; the pre-trained artificial intelligence model is used to execute the energy consumption analysis method as described in any one of claims 1 to 9.
11. An energy consumption analysis device, characterized in that: The device comprises: An acquisition module, used for acquiring an energy consumption analysis request for a target space; An analysis module, used for inputting the energy consumption analysis request into a pre-trained artificial intelligence model to instruct the artificial intelligence model to perform energy consumption analysis on the spatial energy consumption data of the target space and generate an energy consumption analysis report for the target space; the energy consumption analysis report includes energy-saving optimization measures for the target space; Among them, the space energy consumption data is obtained based on big data analysis of the operating data of each IoT device in the target space; and the pre-trained artificial intelligence model is trained based on the operating data.
12. A training device for an artificial intelligence model, characterized in that: The device comprises: An acquisition module is used to acquire training sample data; the training sample data includes energy consumption analysis sample reports, equipment operation sample data, space environment sample data and space energy consumption sample data; An input module, used to input the equipment operation sample data, the space environment sample data and the space energy consumption sample data into the pre-trained large model to obtain an energy consumption analysis output report; An optimization module, used for optimizing the model parameters of the pre-trained large model according to the difference between the energy consumption analysis output report and the energy consumption analysis sample report; An iteration module is used to retrain the large model after the model parameters are optimized until the trained large model meets the preset training conditions, and the trained large model is used as the pre-trained artificial intelligence model; the pre-trained artificial intelligence model is used to execute the energy consumption analysis method as described in any one of claims 1 to 9.
13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of the method according to any one of claims 1 to 9 and / or implements the steps of the method according to claim 10.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 9 and / or the steps of the method according to claim 10.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 9 and / or the steps of the method according to claim 10.
Citation Information
Cited By
Multi-stage quantitative measurement evaluation method and device for energy consumption of digital intelligent base
CN119621578A
Multi-level quantitative measurement and evaluation method and device for energy consumption of digital intelligent base station
CN119621578B
