Data query method and electronic equipment

By pre-stored in the database the data flow and production information of multiple metering devices, multi-dimensional queries are supported, which solves the problem of singleness of energy consumption data query in the existing technology, and realizes the satisfaction of complex query requirements and the diversity and diversity of data queries. accuracy.

CN118535608APending Publication Date: 2024-08-23SUPCON TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410718348.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When querying energy consumption data, the existing technology lacks diversity and mainly relies on date for query, which cannot meet complex query requirements.

Method used

Provide a data query method and electronic equipment, by pre-stored in the database data flow, production layout information and production information of multiple measurement equipment, allowing users to according to the factory, production line, workshop, production process, production equipment, products, product batches Query energy consumption data by combining dimensions such as times and time periods, support multi-dimensional queries, and use deep neural network algorithms to process abnormal data.

Benefits of technology

It realizes the diversity query of energy consumption data, improves the flexibility and accuracy of data query, meets the needs of complex query, and enhances the diversity and accuracy of data query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535608A
    Figure CN118535608A
Patent Text Reader

Abstract

The invention provides a data query method and electronic equipment, and relates to the technical field of data processing. The data query method can comprise the steps of obtaining a first query instruction; wherein the first query instruction is used for indicating to query energy consumption data in a first query range; the first query range is a range of one dimension or a combination of ranges of multiple dimensions in a factory, a production line, a workshop, a production process, production equipment, a product, a product batch and a first time period; in response to the first query instruction, querying the energy consumption data in the first query range in a first database to obtain first energy consumption data; wherein a first metering data flow, production layout information, production information, an operation state flow of the production equipment and unit energy consumption data of the production equipment of each metering equipment in the plurality of metering equipment are pre-stored in the first database. The diversity of data query is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data query method and electronic equipment. Background Art

[0002] With the rapid development of science and technology, in order to optimize processes and reduce energy consumption, manufacturing companies usually install metering equipment such as water meters or electricity meters in the factory to measure the energy consumption in the production process through metering equipment.

[0003] Currently, the query of energy consumption is mainly completed based on dates, for example, querying the energy consumption of a factory in one or more days, which leads to the problem of single data query. Summary of the invention

[0004] The invention provides a data query method and electronic equipment, which can improve the diversity of data query.

[0005] In a first aspect, the present application provides a data query method, comprising: obtaining a first query instruction; wherein the first query instruction is used to instruct to query energy consumption data within a first query range; the first query range is a range of one dimension among factories, production lines, workshops, production processes, production equipment, products, product batches and a first time period, or a combination of ranges in multiple dimensions; in response to the first query instruction, in a first database, querying the energy consumption data within the first query range to obtain first energy consumption data; wherein the first database pre-stores a first metering data stream, production layout information, production information, an operating status stream of the production equipment and unit energy consumption data of each metering device among a plurality of metering devices; the production layout information refers to the layout relationship information between the factory, the production line, the workshop, the production process, the production equipment and the metering equipment; the production information refers to the product information, product batch information and production time of each of the production equipment during the production process.

[0006] Obviously, the first database pre-stores the first metering data flow, production layout information, production information, operation status flow of production equipment and unit energy consumption data of each metering device among multiple metering devices, and the production layout information can refer to the layout relationship information between factories, production lines, workshops, production processes, production equipment and metering equipment, and the production information refers to the product information, product batch information and production time of each production equipment in the production process. That is, it can be understood that the first database pre-stores data of multiple dimensions related to production activities, providing a data basis for the diversity of data queries.

[0007] Furthermore, the first query instruction may indicate to query the energy consumption data of the first query range, and the first query range is a range of one dimension or a combination of ranges of multiple dimensions in the factory, production line, workshop, production process, production equipment, product, product batch and first time period. That is, it can be understood that the first query range can be a combination of ranges of one dimension or multiple dimensions, which increases the diversity of the first query range, and then increases the diversity of the first query instruction, thereby providing an access basis for the diversity of data queries.

[0008] In this way, by obtaining and responding to the first query instruction, the energy consumption data in the first query range indicated by the first query instruction can be queried in the first database to obtain the first energy consumption data, thereby realizing the query of energy consumption data and improving the diversity of data query.

[0009] In a possible implementation, before obtaining the first query instruction, the method also includes: providing a configuration interface to the user in response to a configuration request triggered by the user; obtaining the first query scope filled in by the user in the configuration interface in response to a data query request based on the configuration interface; and generating the first query instruction according to the first query scope.

[0010] Obviously, by providing a configuration interface to the user, the user can fill in the first query range in the configuration interface according to the query requirements, providing a configuration basis for the diversity of data queries. In this way, by obtaining the first query range filled in by the user in the configuration interface and generating the first query instruction according to the first query range, the diversity of the first query instruction is improved.

[0011] In a possible implementation, the first query instruction further includes a first trigger time and / or a first trigger frequency; and the responding to the first query instruction includes: responding to the first query instruction according to the first trigger time and / or the first trigger frequency.

[0012] Obviously, since the first query instruction also includes the first trigger time and / or the first trigger frequency, the first query instruction can be responded to according to the first trigger time and / or the first trigger frequency, thereby enriching the opportunities for responding to the first query instruction.

[0013] In a possible implementation, the method further includes: collecting metering data of each of the metering devices at a first frequency, and storing the metering data of each of the metering devices in the second metering data stream of each metering device in the first database; determining the first metering data stream of each of the metering devices based on the second metering data stream of each of the metering devices; collecting the operating status of the production equipment at a second frequency, and storing the operating status of the production equipment in the operating status stream of the production equipment in the first database; collecting the product information, product batch information and current time being produced by each of the production equipment at a third frequency, and storing the product information, product batch information and current time being produced by each of the production equipment in the production information in the first database.

[0014] In a possible implementation, determining the first metering data stream of each of the metering devices based on the second metering data stream of each of the metering devices includes: eliminating abnormal zeroing data in the second metering data stream of each of the metering devices through a first model to obtain the first metering data stream of each of the metering devices; wherein the first model is constructed based on a deep neural network algorithm.

[0015] In a possible implementation, in the first database, querying the energy consumption data of the first query range to obtain the first energy consumption data includes: determining the target time period and the target production equipment according to the first query range and at least a part of the production layout information, production information, and the operating status flow of the production equipment; in the first database, querying the energy consumption data of the target production equipment in the target time period to obtain the first energy consumption data.

[0016] In a possible implementation, the method further includes: converting the first metering data stream of each metering device into the metering data stream of each of the production equipment according to the fourth frequency, based on the production layout information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment, and updating the metering data stream of each of the production equipment into the first database.

[0017] In one possible implementation, querying the energy consumption data of the target production equipment in the target time period in the first database to obtain the first energy consumption data includes: obtaining the metering data of the target production equipment based on the target time period from the metering data stream of each of the production equipment in the first database; and determining the first energy consumption data based on the metering data of the target production equipment based on the target time period.

[0018] In a possible implementation, the energy consumption data of the target production equipment in the target time period is queried in the first database to obtain the first energy consumption data, including: determining the metering data flow of the target production equipment according to the production layout information, the operating status flow of the production equipment, the unit energy consumption data of the production equipment and the first metering data flow of each of the metering devices; obtaining the metering data of the target production equipment based on the target time period from the metering data flow of the target production equipment; and determining the first energy consumption data according to the metering data of the target production equipment based on the target time period.

[0019] In a possible implementation, determining the metering data flow of the target production equipment according to the production layout information, the operating status flow of the production equipment, the unit energy consumption data of the production equipment and the first metering data flow of each of the metering devices includes: determining the target metering equipment associated with the target production equipment according to the production layout information; eliminating abnormal zeroing data in the first metering data flow of the target metering equipment through the second model; determining the metering data flow of the target production equipment according to the first metering data flow of the target metering equipment from which the abnormal zeroing data is eliminated, in combination with the production layout information, the operating status flow of the production equipment and the unit energy consumption data of the production equipment; wherein the second model is constructed based on a deep neural network algorithm.

[0020] In a possible implementation, the metering device is a water meter, an electricity meter, a gas meter, or a compressed gas meter.

[0021] In a second aspect, the present application provides a data query device, comprising: an acquisition module, configured to obtain a first query instruction; wherein the first query instruction is configured to instruct to query energy consumption data within a first query range;

[0022] The first query scope is a range of one dimension or a combination of ranges of multiple dimensions among factories, production lines, workshops, production processes, production equipment, products, product batches and the first time period; a query module is used to query the energy consumption data of the first query scope in the first database in response to the first query instruction to obtain first energy consumption data; wherein the first database pre-stores the first metering data stream of each metering device among multiple metering devices, production layout information, production information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment; the production layout information refers to the layout relationship information between the factory, the production line, the workshop, the production process, the production equipment and the metering equipment; the production information refers to the product information, product batch information and production time of each of the production equipment in the production process.

[0023] In a third aspect, the present application provides an electronic device comprising a memory and a processor; the memory is used to store a computer program; the processor is used to implement a data query method as described in any one of the first aspects when executing the computer program.

[0024] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data query method as described in any one of the first aspects is implemented.

[0025] The beneficial effects brought about by the above-mentioned second to fourth aspects and each possible design of the above-mentioned second to fourth aspects can be referred to the beneficial effects brought about by the above-mentioned first aspect and each possible implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the layout structure of a production enterprise provided in an embodiment of the present application;

[0027] Figure 2 An example flowchart of a data query method provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of a process for configuring a first query instruction provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of a process for updating data in a first database provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of a process for performing data query in a first database provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the structure of a data query device provided in an embodiment of the present application;

[0032] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0034] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0035] The term "including" and its variations used in this article are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, etc., and are not used to limit the order or interdependence of the functions performed by these devices, modules or units, etc.

[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0038] In order to solve the above problems, the embodiment of the present application provides a data query method, which can not only query the energy consumption data in the production activities of the production enterprise, but also improve the diversity of data query. The method can be executed by an electronic device. The electronic device includes but is not limited to a desktop computer, a laptop computer, a smart phone, a personal digital processor, etc., and the embodiment of the present application does not specifically limit this.

[0039] Below, in order to better understand the data query method provided in the embodiment of the present application, the technologies and concepts involved in the present application are first explained.

[0040] For a manufacturing enterprise, usually at least one factory and at least one production line are set up. Each factory may include at least one workshop, each production line may include multiple production processes, and each production process may correspond to at least one production equipment.

[0041] At least one production line may be arranged in at least one factory. Different production processes may be arranged in the same workshop or in different workshops. A production process may be arranged in one workshop or in multiple workshops. In other words, production equipment corresponding to different production processes may be arranged in the same workshop or in different workshops. Production equipment corresponding to a production process may be arranged in one workshop or in multiple workshops, and no special limitation is made here.

[0042] The number of production equipment corresponding to different production processes may be the same or different, and there is no special limitation here.

[0043] In a production enterprise, multiple metering devices may be set up to measure the energy consumption data of production equipment in the factory, and then determine the energy consumption data in the production activities based on the metering data of the multiple metering devices.

[0044] The metering device may be a water meter, an electricity meter, a gas meter or a compressed gas meter, etc., and the embodiments of the present application do not specifically limit this. Multiple metering devices may be arranged in a workshop. Each metering device is used to measure the energy consumption data of the production equipment connected to each metering device. The number of production equipment connected to a metering device may be one or more. Multiple production equipment connected to a metering device may belong to the same production process or to different production processes, and the embodiments of the present application do not specifically limit this.

[0045] The number, type and layout of the metering equipment in the factory can be set according to actual needs, and the embodiments of the present application do not impose any special limitations on this.

[0046] For example, Figure 1 As shown, the manufacturing enterprise may include a factory 110 and a production line. The production line may include 8 production processes, namely production process 121 to production process 128. The factory 110 may include five workshops, namely workshop 111 to workshop 115. Five metering devices are also set in the manufacturing enterprise, namely metering devices 131 to metering devices 135.

[0047] Production process 121 corresponds to 2 production equipment, namely production equipment 1211 and production equipment 1212. Production process 122 corresponds to 5 production equipment, namely production equipment 1221 to production equipment 1225. Production process 123 corresponds to 3 production equipment, namely production equipment 1231 to production equipment 1233. Production process 124 corresponds to 2 production equipment, namely production equipment 1241 and production equipment 1242. Production process 125 corresponds to 6 production equipment, namely production equipment 1251 to production equipment 1256. Production process 126 corresponds to 4 production equipment, namely production equipment 1261 to production equipment 1264. Production process 127 corresponds to 2 production equipment, namely production equipment 1271 and production equipment 1272. Production process 128 corresponds to 1 production equipment, which is production equipment 1281. The production line layout is in factory 110, specifically:

[0048] The production process 121 is arranged in the workshop 111. Specifically, the production equipment 1211 and the production equipment 1212 are arranged in the workshop 111. The production process 122 is arranged in the workshop 112, and specifically, the production equipment 1221 to the production equipment 1225 are arranged in the workshop 112. The production process 123, the production process 124, and the production process 125 are arranged in the workshop 113, and specifically, the production equipment 1231 to the production equipment 1233, the production equipment 1241 and the production equipment 1242, and the production equipment 1251 to the production equipment 1256 are arranged in the workshop 113. The production process 126 is arranged in the workshop 114, and specifically, the production equipment 1261 to the production equipment 1264 are arranged in the workshop 114. The production process 127 and the production process 128 are arranged in the workshop 115, and specifically, the production equipment 1271, the production equipment 1272, and the production equipment 1281 are arranged in the workshop 115.

[0049] The metering device 131 is disposed in the workshop 111, and can measure the energy consumption data of the production equipment corresponding to the production process 121 and the production equipment corresponding to the production process 122. The metering device 131 is connected to the production equipment 1211, the production equipment 1212, the production equipment 1221, the production equipment 1222, the production equipment 1223, the production equipment 1224, and the production equipment 1225.

[0050] Metering equipment 132 and metering equipment 133 are arranged in workshop 113. Metering equipment 132 can measure the energy consumption data of production equipment corresponding to production process 123 and production equipment corresponding to production process 124. Metering equipment 132 is connected to production equipment 1231, production equipment 1232, production equipment 1233, production equipment 1241 and production equipment 1242. Metering equipment 133 can measure the energy consumption data of production equipment corresponding to production process 125. Metering equipment 133 is connected to production equipment 1251, production equipment 1252, production equipment 1253, production equipment 1254, production equipment 1255 and production equipment 1256.

[0051] The metering device 134 is disposed in the workshop 114, and can measure the energy consumption data of the production equipment corresponding to the production process 126. The metering device 134 is connected to the production equipment 1261, the production equipment 1262, the production equipment 1263, and the production equipment 1264.

[0052] The metering device 135 is disposed in the workshop 115 and can measure the energy consumption data of the production equipment corresponding to the production process 127 and the production equipment corresponding to the production process 128. The metering device 135 is connected to the production equipment 1271, the production equipment 1272 and the production equipment 1281.

[0053] The first query instruction may be used to instruct a query for energy consumption data in a first query range.

[0054] Energy consumption data may refer to water consumption, electricity consumption or gas consumption, etc.

[0055] The first query scope may be a range of one dimension among factories, production lines, workshops, production procedures, production equipment, products, product batches, and the first time period, or a combination of ranges of multiple dimensions.

[0056] For example, the first query range may be a combination of factory A and March 8, 2024 to March 20, 2024, that is, it can be understood that the first query range is a combination of the factory dimension range and the first time period dimension range. Among them, factory A is the factory dimension range, and March 8, 2024 to March 20, 2024 is the first time period dimension range. The energy consumption data may be electricity consumption.

[0057] Based on this, the first query instruction may refer to querying the electricity consumption of Factory A from March 8, 2024 to March 20, 2024.

[0058] Exemplarily, the first query scope may be product A. That is, it can be understood that the first query scope is the scope of the product dimension. Among them, product A is the scope of the product dimension. The energy consumption data may be water consumption.

[0059] Based on this, the first query instruction may refer to querying the water consumption for producing product A.

[0060] Exemplarily, the first query range may be product A and batch B. That is, it can be understood that the first query range is a combination of the range of the product dimension and the range of the product batch dimension. Among them, product A is the range of the product dimension, and batch B is the range of the product batch. The energy consumption data may be electricity consumption.

[0061] Based on this, the first query instruction may refer to querying the power consumption of batch B of product A.

[0062] Exemplarily, the first query range may be a combination of production equipment A and batch B, that is, it can be understood that the first query range is a combination of the range of the production equipment dimension and the range of the product batch dimension, wherein production equipment A is the range of the production equipment dimension, and batch B is the range of the product batch dimension. The energy consumption data may be water consumption.

[0063] Based on this, the first query instruction may refer to querying the water consumption of the product of batch B produced by production equipment A.

[0064] The first database may pre-store the first metering data stream of each metering device in the plurality of metering devices, production layout information, production information, the operating status stream of the production device, and the unit energy consumption data of the production device. Among them:

[0065] The first metering data stream of the metering device may be a data stream formed by sorting the metering data of the metering device in chronological order. It should be noted that the metering data of the metering device may be the original metering data of the metering device, or the metering data after removing abnormal zeroing data from the original metering data of the metering device.

[0066] The production layout information may refer to the layout relationship information between factories, production lines, workshops, production processes, production equipment and metering equipment. Exemplarily, the layout relationship information between factories, production lines, workshops, production processes, production equipment and metering equipment may refer to the layout relationship information between any two of the factories, production lines, workshops, production processes, production equipment and metering equipment.

[0067] by Figure 1 Taking the example, the layout relationship information is exemplarily described.

[0068] The layout relationship information between the factory and the workshop can be shown in Table 1:

[0069] factory workshop Factory 110 Workshop 111, Workshop 112, Workshop 113, Workshop 114, Workshop 115

[0070] Table 1

[0071] The layout relationship information between the workshop and the production process can be shown in Table 2:

[0072] workshop Production process Workshop 111 Production process 121 Workshop 112 Production process 122 Workshop 113 Production process 123, production process 124, production process 125 Workshop 114 Production process 126 Workshop 115 Production process 127, production process 128

[0073] Table 2

[0074] The layout relationship information between production equipment and workshops can be shown in Table 3:

[0075]

[0076] Table 3

[0077] The layout relationship information between the metering equipment and the production equipment can be shown in Table 4:

[0078]

[0079] Table 4

[0080] It should be noted that this does not Figure 1 All layout relationships are listed in the figure. For layout relationships not listed, please refer to the above description.

[0081] Production information may refer to the product information, product batch information and production time of each production equipment during the production process.

[0082] The following is an exemplary description of the product information, product batch information and production time of the production equipment A during the production process. The details are shown in Table 5:

[0083] Production Equipment Product Information Product batch information Production time Production Equipment A Product A Batch B February 3, 2024 at 9:00 Production Equipment A Product B Batch C February 3, 2024 at 9:30 Production Equipment A Product B Batch C February 3, 2024 10:00 Production Equipment A Product B Batch C February 3, 2024 at 10:30 Production Equipment A Product A Batch B February 3, 2024 at 11:00 Production Equipment A Product A Batch B February 3, 2024 at 11:30 Production Equipment A Product A Batch C February 3, 2024 12:00 Production Equipment A Product A Batch C February 3, 2024 at 12:30 Production Equipment A Product A Batch C February 3, 2024 13:00

[0084] Table 5

[0085] Obviously, it can be seen from Table 5 that a row of information indicates the product information and product batch information produced by production equipment A at the production time of the row.

[0086] The operating status stream of the production equipment may include the operating status stream of each production equipment in the production enterprise. For each production equipment, the operating status stream of the production equipment may be a data stream formed by sorting the operating status of the production equipment in chronological order. The operating status of the production equipment may include two types: running and shutting down.

[0087] The unit energy consumption data of the production equipment may refer to the energy consumption data of the production equipment in a unit time. The unit time may be 1 hour, half an hour, etc., and the present application embodiment does not specifically limit this. It should be noted that the unit energy consumption data of the production equipment can be calculated based on the historical energy consumption data of the production equipment.

[0088] Figure 2 The following is an example flow chart of the data query method provided in the embodiment of the present application, such as Figure 2 As shown, the method may include:

[0089] 210. Obtain a first query instruction.

[0090] The first query instruction has been explained above and will not be repeated here.

[0091] 220. In response to the first query instruction, query the energy consumption data in the first query range in the first database to obtain the first energy consumption data.

[0092] The first database has been described above and will not be described again here.

[0093] Obviously, the first database pre-stores the first metering data flow, production layout information, production information, operation status flow of production equipment and unit energy consumption data of each metering device among multiple metering devices, and the production layout information can refer to the layout relationship information between factories, production lines, workshops, production processes, production equipment and metering equipment, and the production information refers to the product information, product batch information and production time of each production equipment in the production process. That is, it can be understood that the first database pre-stores data of multiple dimensions related to production activities, providing a data basis for the diversity of data queries.

[0094] Furthermore, the first query instruction may indicate to query the energy consumption data of the first query range, and the first query range is a range of one dimension or a combination of ranges of multiple dimensions in the factory, production line, workshop, production process, production equipment, product, product batch and first time period. That is, it can be understood that the first query range can be a combination of ranges of one dimension or multiple dimensions, which increases the diversity of the first query range, and then increases the diversity of the first query instruction, thereby providing an access basis for the diversity of data queries.

[0095] In this way, by obtaining and responding to the first query instruction, the energy consumption data in the first query range indicated by the first query instruction can be queried in the first database to obtain the first energy consumption data, thereby realizing the query of energy consumption data and improving the diversity of data query.

[0096] Figure 3 The flowchart of configuring the first query instruction provided in the embodiment of the present application is as follows. It should be noted that the flowchart of configuring the first query instruction is before obtaining the first query instruction. Figure 3 As shown, the process of configuring the first query instruction may include:

[0097] 310. In response to a configuration request triggered by the user, provide a configuration interface to the user.

[0098] The user can trigger a configuration control on the electronic device to send a configuration request to the electronic device. In response to the configuration request triggered by the user, the electronic device provides a configuration interface to the user.

[0099] In the configuration interface, an area for filling in the first query range may be provided to the user, and a selection control corresponding to each dimension involved in the first query range may also be provided to the user, so that the user can fill in the first query range by selection. In addition, a configuration completion control may be set in the configuration interface, so that after the user completes filling in the first query range, the user can send a data query request to the electronic device by triggering the configuration completion control.

[0100] 320. In response to a data query request based on the configuration interface, obtain a first query range filled in by the user in the configuration interface. Specifically, receive and respond to a data query request triggered by the user, and query the configuration interface for the first query range filled in by the user.

[0101] 330. Generate a first query instruction according to the first query range.

[0102] Obviously, by providing a configuration interface to the user, the user can fill in the first query range in the configuration interface according to the query requirements, providing a configuration basis for the diversity of data queries. In this way, by obtaining the first query range filled in by the user in the configuration interface and generating the first query instruction according to the first query range, the diversity of the first query instruction is improved.

[0103] In some embodiments, the first query instruction may further include a first trigger time and / or a first trigger frequency. The first trigger time may be the current time or a specified time set by the user, and the embodiment of the present application does not specifically limit this. The first trigger frequency may be set according to the query requirements, and the embodiment of the present application does not specifically limit this.

[0104] It should be noted that, in the case where the first query instruction further includes the first trigger time and the first trigger frequency, the first trigger time can be understood as the time of the first response to the first query instruction.

[0105] The first trigger time and / or the first trigger frequency may be filled in by the user when filling in the first query range.

[0106] Based on this, the specific process of responding to the first query instruction may be: responding to the first query instruction according to the first trigger time and / or the first trigger frequency.

[0107] Exemplarily, when the first query instruction further includes a first trigger time, the specific process of responding to the first query instruction may be: responding to the first query instruction at the first trigger time.

[0108] In the case where the first query instruction further includes the first trigger frequency, the specific process of responding to the first query instruction may be: responding to the first query instruction according to the first trigger frequency.

[0109] When the first query instruction further includes the first trigger time and the first trigger frequency, the specific process of responding to the first query instruction may be: responding to the first query instruction at the first trigger time and then responding to the first query instruction according to the first trigger frequency.

[0110] Obviously, since the first query instruction also includes the first trigger time and / or the first trigger frequency, the first query instruction can be responded to according to the first trigger time and / or the first trigger frequency, thereby enriching the opportunities for responding to the first query instruction.

[0111] Figure 4 A schematic diagram of a process for updating data in a first database provided in an embodiment of the present application. Figure 4 As shown, the process may include:

[0112] 410. Collect metering data of each metering device at the first frequency, and store the metering data of each metering device in a second metering data stream of each metering device in the first database.

[0113] The first frequency may be set according to the accuracy requirement of the data query. For each metering device, the second metering data stream of the metering device may be a data stream obtained by sorting the original metering data of the metering device in chronological order.

[0114] By collecting the metering data of each metering device according to the first frequency and storing the metering data of each metering device in the second metering data stream of each metering device in the first database, it is possible to add new metering data to the second metering data stream of each metering device in the first database, so that the second metering data stream of each metering device in the first database can reflect current and historical metering data, thereby improving the accuracy of data query.

[0115] 420. Determine the first metering data flow of each metering device according to the second metering data flow of each metering device.

[0116] The specific implementation process of 420 may include at least the following two steps:

[0117] First, the second metering data flow of each metering device may be determined as the first metering data flow of each metering device.

[0118] The second method is to remove abnormal zeroing data in the second metering data stream of each metering device through the first model to obtain the first metering data stream of each metering device. The first model is constructed based on a deep neural network algorithm.

[0119] The deep neural network algorithm may be a convolutional neural network algorithm or a recurrent neural network algorithm, etc., and the embodiments of the present application do not specifically limit this.

[0120] The training process of the first model can be as follows:

[0121] The training data is obtained, wherein the training data is a second metering data stream of a large number of metering devices, and for the second metering data stream including abnormal zeroing data, the abnormal zeroing data in the second metering data stream is marked.

[0122] The deep neural network algorithm is trained by training data to obtain the weight values ​​of the parameters in the deep neural network algorithm, thereby obtaining a first model. The first model may be a deep neural network algorithm carrying the weight values ​​of the parameters.

[0123] The first model is tested using test data, and the weight values ​​of the parameters are adjusted according to the test results to improve the accuracy of the first model.

[0124] Obviously, since the first model is obtained by training the deep neural network algorithm based on the second metering data stream marked with abnormal zeroing data, the abnormal zeroing data in the second metering data stream can be eliminated by the first model.

[0125] Based on this, since abnormal situations may exist during the operation of the measuring device, causing the measuring device to suddenly return to zero, resulting in errors in the measuring data, in order to improve the accuracy of the measuring data, for each measuring device, the second measuring data stream of each measuring device can be input into the first model, so that the first model can eliminate the abnormal zeroing data in the second measuring data stream of each measuring device to obtain the first measuring data stream of each measuring device, so as to improve the accuracy of the first measuring data stream of each measuring device, thereby improving the accuracy of data query.

[0126] It should be noted that the first metering data stream of each metering device may be the remaining data after the abnormal zeroing data is removed from the second metering data stream of each metering device.

[0127] It should be noted that after the first metering data stream of each metering device is determined, the first metering data stream of each metering device needs to be stored in the first database.

[0128] 430. Collect the operating status of the production equipment at the second frequency, and store the operating status of the production equipment in the operating status stream of the production equipment in the first database.

[0129] The second frequency may be set according to the accuracy of the data query. The specific implementation process of 430 may be: collecting the operating status of each production device according to the second frequency, and storing the operating status of each production device in the operating status stream of each production device in the first database.

[0130] By collecting the operating status of the production equipment at the second frequency and storing the operating status of the production equipment in the operating status stream of the production equipment in the first database, it is possible to add new data to the operating status stream of the production equipment in the first database, so that the operating status stream of the production equipment can reflect the current and historical operating status of the production equipment, thereby improving the accuracy of data query.

[0131] 440. According to the third frequency, the product information, product batch information and current time currently being produced by each of the production equipment are collected, and the product information, product batch information and current time currently being produced by each of the production equipment are stored in the production information in the first database.

[0132] The third frequency can be set according to the accuracy of the data query. It should be noted that the current time can be understood as the production time in Table 5. The third frequencies of different production equipment can be the same or different, and the embodiment of the present application does not make special limitations on this.

[0133] According to the third frequency, the product information, product batch information and current time currently being produced by each production equipment are collected, and the product information, product batch information and current time currently being produced by each production equipment are stored in the production information in the first database. This can enable the addition of new data to the production information in the first database, so that the production information can reflect current and historical production information, thereby improving the accuracy of data query.

[0134] It should be noted that the production layout information usually changes very rarely. Therefore, the production layout information can be stored in the first database at the initial construction stage, and when the production layout information changes, the changed production layout information can be updated to the first database.

[0135] In addition, for the unit energy consumption data of the production equipment, at the initial stage of construction, the unit energy consumption data of the production equipment can be calculated according to the historical energy consumption data of the production equipment that has been previously counted, and the unit energy consumption data of the production equipment can be stored in the first database. And, at a certain frequency, the unit energy consumption data of the production equipment is updated according to the newly added historical energy consumption data of the production equipment. It should be noted that, since the unit energy consumption data of the production equipment is unlikely to change too much in a short period of time, the update frequency of the unit energy consumption data of the production equipment can be set to be relatively small.

[0136] In some embodiments, the first metering data stream of each metering device can be converted into the metering data stream of each production equipment according to the production layout information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment at a fourth frequency, and the metering data stream of each production equipment can be updated into the first database.

[0137] Specifically, the production equipment connected to each metering device can be determined based on the layout relationship information between the metering devices and the production equipment in the production layout information. Then, the metering data flow of each production equipment is determined based on the operation status flow of the production equipment connected to each metering device, the unit energy consumption data of the production equipment, and the first metering data flow of each metering device.

[0138] It is understood that for each production equipment, a virtual metering device can be set for each production equipment, and each virtual metering device is used to measure the energy consumption data of the corresponding production equipment. The virtual metering device includes but is not limited to a virtual water meter, a virtual electricity meter or a virtual gas meter.

[0139] Based on this, for each production equipment, the metering data flow of the production equipment can be understood as: a data flow formed by sorting the metering data of the virtual metering equipment corresponding to the production equipment in chronological order. In other words, for each production equipment, the metering data flow of the production equipment can also be understood as: a data flow formed by sorting the energy metering data of the production equipment in chronological order.

[0140] The fourth frequency can be set arbitrarily, and the embodiment of the present application does not impose any special limitation on this.

[0141] Next, we determine Figure 1 The process of metering data flow of each production equipment connected to the metering device 131 is exemplarily described.

[0142] First, a first metering data stream of the metering device 131 is obtained. Then, the production equipment connected to the metering device 131 is determined from the production layout information in the first database. Figure 1As shown, the production equipment connected to the metering device 131 includes: production equipment 1211, production equipment 1212, production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225. Finally, according to the operation status flow and unit energy consumption data of each of the production equipment 1211, production equipment 1212, production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225, and combined with the first metering data flow of the metering device 131, the metering data flow of each of the production equipment 1211, production equipment 1212, production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225 is determined.

[0143] Specifically, starting from the moment when the production enterprise is built and put into operation for the first time, the process of determining the metering data flow of each of the above-mentioned production equipment is exemplified.

[0144] At time t0, ie, the time of the first operation, the metering data at time t0 in the first metering data stream of the metering device 131 is 0. Thus, the metering data of each production device connected to the metering device 131 is also 0 at the time of the first operation (ie, time t0).

[0145] From the running state stream of each production equipment connected to the metering device 131, determine the time t1 and the first production equipment. The first production equipment is one or more, and the first production equipment includes the production equipment connected to the metering device 131 and in running state between the time t0 and the time t1. For example, the first production equipment includes the production equipment 1211 and the production equipment 1212.

[0146] The metering data at time t1 is obtained from the first metering data stream of the metering device 131, wherein the difference between the metering data at time t1 and the metering data at time t0 of the first metering data stream of the metering device 131 may refer to the total energy consumption data of the production equipment 1211 and the production equipment 1212 from time t1 to time t0.

[0147] Since production equipment 1211 and production equipment 1212 are the same production equipment belonging to the same production process, the unit energy consumption data of production equipment 1211 and production equipment 1212 are the same. Based on this, the energy consumption data of production equipment 1211 and production equipment 1212 from time t0 to time t1 are half of the above total energy consumption data.

[0148] The sum of the energy consumption data of the production equipment 1211 from time t0 to time t1 and the metering data at time t0 is taken as the metering data of the production equipment 1211 at time t1. It should be noted that, from time t0 to time t1, since the production equipment 1211 is in operation, the metering data of the production equipment 1211 changes continuously. In this way, the metering data of the production equipment 1211 at any time from time t0 to time t1 can be determined based on the energy consumption data of the production equipment 1211 from time t0 to time t1, so that the metering data flow of the production equipment 1211 from time t0 to time t1 is obtained.

[0149] Similarly, the metering data flow of the production equipment 1212 from time t0 to time t1 is obtained.

[0150] As can be seen from the above, from time t0 to time t1, production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225 are in a shutdown state. Therefore, at each moment from time t0 to time t1, the metering data of production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225 are all 0. In this way, the metering data flow of each production equipment in production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224, and production equipment 1225 from time t0 to time t1 is obtained.

[0151] After determining the metering data flow of each production device connected to the metering device 131 from time t0 to time t1, determine time t2 and the second production device, wherein the second production device is one or more, and the second production device includes the production device connected to the metering device 131 and in operation between time t1 and time t2. For example, the second production device includes production device 1221, production device 1222, production device 1223, production device 1224, and production device 1225.

[0152] The metering data at time t2 is obtained from the first metering data stream of the metering device 131. The difference between the metering data at time t2 and the metering data at time t1 of the first metering data stream of the metering device 131 may refer to the total energy consumption data of the production equipment 1221, the production equipment 1222, the production equipment 1223, the production equipment 1224 and the production equipment 1225 from time t1 to time t2.

[0153] Since production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224 and production equipment 1225 are the same production equipment belonging to the same production process, the unit energy consumption data of production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224 and production equipment 1225 are the same. Based on this, the energy consumption data of production equipment 1221, production equipment 1222, production equipment 1223, production equipment 1224 and production equipment 1225 from time t1 to time t2 is one fifth of the above total energy consumption data.

[0154] The sum of the energy consumption data of the production equipment 1221 from time t1 to time t2 and the metering data at time t1 is taken as the metering data of the production equipment 1221 at time t2. It should be noted that from time t1 to time t2, since the production equipment 1221 is in operation, the metering data of the production equipment 1221 changes continuously. In this way, the metering data of the production equipment 1221 at any time from time t1 to time t2 can be determined based on the energy consumption data of the production equipment 1221 from time t1 to time t2, so that the metering data flow of the production equipment 1221 from time t1 to time t2 is obtained, and thus the metering data flow of the production equipment 1221 from time t0 to time t2 is obtained.

[0155] Similarly, the metering data flow of each of the production equipment 1222, the production equipment 1223, the production equipment 1224, and the production equipment 1225 from the time t0 to the time t2 is determined.

[0156] As can be seen from the above, from time t1 to time t2, production equipment 1211 and production equipment 1212 are in a shutdown state. Therefore, at each moment from t1 to t2, the metering data of production equipment 1211 and production equipment 1212 are their metering data at time t1. In this way, the metering data flow of production equipment 1211 and production equipment 1212 from time t1 to t2 is obtained, and thus the metering data flow of production equipment 1211 and production equipment 1212 from time t0 to t2 is obtained.

[0157] After determining the metering data flow of each production device connected to the metering device 131 from time t0 to time t2, determine time t3 and the third production device, wherein the third production device is one or more, and the third production device includes production devices connected to the metering device 131 and in operation between time t2 and time t3. For example, the third production device includes production devices 1211, 1212, 1223, 1224, and 1225.

[0158] The metering data at time t3 is obtained from the first metering data stream of the metering device 131, wherein the difference between the metering data at time t3 and the metering data at time t2 of the first metering data stream of the metering device 131 may refer to the total energy consumption data of production equipment 1211, production equipment 1212, production equipment 1223, production equipment 1224 and production equipment 1225 from time t2 to time t3.

[0159] Since the unit energy consumption data of production equipment 1211 and production equipment 1212 are the same, the unit energy consumption data of production equipment 1223, production equipment 1224 and production equipment 1225 are the same, and the unit energy consumption data of production equipment 1211 and production equipment 1212 are different from the unit energy consumption data of production equipment 1223, production equipment 1224 and production equipment 1225. Therefore, the total energy consumption data of production equipment 1211 and production equipment 1212 from time t2 to time t3 and the total energy consumption data of production equipment 1223, production equipment 1224 and production equipment 1225 from time t2 to time t3 can be determined based on the unit energy consumption data of production equipment 1211 and the unit energy consumption data of production equipment 1223, in combination with the number of production equipment and the total energy consumption data of production equipment 1211, production equipment 1212, production equipment 1223, production equipment 1224 and production equipment 1225 from time t2 to time t3.

[0160] Next, referring to the relevant content above, the metering data flow of each production device connected to the metering device 131 from time t2 to time t3 can be determined, and then the metering data flow of each production device connected to the metering device 131 from time t0 to time t3 can be determined.

[0161] It should be noted that the calculation method of the metering data flow of each production equipment after time t3 can be referred to as shown above, and will not be repeated here.

[0162] Obviously, by determining the metering data flow of each production equipment, a data basis can be provided for later determination of the first energy consumption data.

[0163] Figure 5 A schematic diagram of a process for performing data query in a first database provided in an embodiment of the present application. Figure 5 As shown:

[0164] In the first database, a process of querying energy consumption data in a first query range to obtain first energy consumption data may include:

[0165] 510. Determine a target time period and target production equipment based on the first query scope and at least a portion of the production layout information, production information, and operating status flow of the production equipment.

[0166] The target production equipment may refer to the production equipment involved in the first query scope. The number of the target production equipment may be one or more.

[0167] The target time period may refer to the operating time period of the target production equipment within the first query range. In the case where there are multiple target production equipments, there are also multiple target time periods, and the multiple target time periods correspond to the multiple target production equipments one by one. Among them, each target time period may refer to the operating time of the corresponding target production equipment within the first query range.

[0168] It should be noted that, for each target production device, the target time period corresponding to the target production device may include at least one time period. The at least one time period included in the target time period indicates at least one operating time period of the corresponding target production device in the first query range.

[0169] For example, if the first query range is a combination of factory A and March 8, 2024 to March 20, 2024. Then, the target production equipment is the production equipment in factory A that operates between March 8, 2024 and March 20, 2024. Specifically, the target production equipment can be determined according to the production layout information and the operating status flow of the production equipment. The target time period is the operating time period of the target production equipment between March 8, 2024 and March 20, 2024. Specifically, the target time period can be determined according to the operating status flow of the production equipment.

[0170] If the first query range can be product A and batch B, the target production equipment is the production equipment that produces batch B of product A. Specifically, the target production equipment can be determined based on production information. The target time period is the production time period of batch B of product A produced by the target production equipment, which can be determined based on production information.

[0171] It can be understood that in production activities, all equipment that can consume energy are production equipment. Therefore, in the process of querying the energy consumption data in the first query range, the first query range can be converted into the production equipment involved in the first query range (i.e., the target production equipment) and the operating time period of the target production equipment in the first query range (i.e., the target time period) through 510, so as to query the energy consumption data based on the target production equipment and the target time period.

[0172] 520. In the first database, query the energy consumption data of the target production equipment in the target time period to obtain first energy consumption data.

[0173] The specific implementation process of 520 may include at least two of the following:

[0174] First, when the metering data stream of each production equipment is stored in the first database, the specific implementation of 520 can be: obtaining the metering data of the target production equipment based on the target time period from the metering data stream of each production equipment in the first database, and determining the first energy consumption data based on the metering data of the target production equipment based on the target time period.

[0175] Specifically, when there is only one target production equipment and the target time period corresponding to the target production equipment includes one time period (i.e., the target time period itself), the metering data stream of the target production equipment is obtained from the metering data stream of each production equipment in the first database. The metering data at the start time and the metering data at the end time of the target time period are determined from the metering data stream of the target production equipment, and the energy consumption data (i.e., the first energy consumption data) of the target production equipment in the target time period is determined by the difference between the metering data at the end time and the metering data at the start time.

[0176] When there is one target production device and the target time period corresponding to the target production device includes multiple time periods, the energy consumption data of the target production device in each time period is determined in a manner similar to the above manner, and the sum of the energy consumption data of the target production device in the multiple time periods is determined as the first energy consumption data.

[0177] In the case where there are multiple target production equipment, the energy consumption data of each target production equipment in the corresponding target time period is determined in a manner similar to the above manner, and the sum of the energy consumption data of multiple target production equipment in the corresponding target time period is determined as the first energy consumption data.

[0178] Obviously, since the first database stores the metering data stream of each production equipment, the metering data of the target production equipment in the target time period can be queried through the target time period and the target production equipment to obtain the first energy consumption data, which improves the query efficiency and makes the query method simple and easy.

[0179] The second method is to first determine the metering data flow of the target production equipment according to the production layout information, the operation status flow of the production equipment, the unit energy consumption data of the production equipment and the first metering data flow of each metering device.

[0180] Specifically, according to the production layout information, the target metering device associated with the target production equipment is determined. The target metering device is a metering device connected to the target production equipment. From the first metering data stream of each metering device in the first database, the first metering data stream of the target metering device is obtained. The abnormal zeroing data in the first metering data stream of the target metering device is eliminated by the second model. According to the first metering data stream of the target metering device with the abnormal zeroing data eliminated, combined with the production layout information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment, the metering data stream of the target production equipment is determined. Among them, the second model is constructed based on a deep neural network algorithm.

[0181] It should be noted that the second model can refer to the relevant description of the first model above, which will not be repeated here. The principle of eliminating abnormal zeroing data in the first metering data stream of the target metering device through the second model can refer to the principle of eliminating abnormal zeroing data in the first metering data stream of each metering device through the first model above, which will not be repeated here.

[0182] It should be noted that the principle of determining the metering data flow of the target production equipment can be found in the relevant description above and will not be repeated here.

[0183] Obviously, by eliminating abnormal zeroing data in the first metrology data stream of the target metrology equipment through the second model, the accuracy of the first metrology data stream is improved, thereby improving the accuracy of determining the metrology data stream of the target production equipment.

[0184] Then, the metering data of the target production equipment based on the target time period is obtained from the metering data stream of the target production equipment. The specific implementation of this process can be found in the relevant description above, and will not be repeated here.

[0185] Finally, the first energy consumption data is determined according to the metering data of the target production equipment based on the target time period. The specific implementation of this process can be found in the relevant description above, and will not be repeated here.

[0186] Figure 6 A schematic diagram of a data query device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data query device 600 may include: an acquisition module 610 and a query module 620. Among them:

[0187] The obtaining module 610 is used to obtain a first query instruction; wherein the first query instruction is used to instruct to query energy consumption data in a first query range; the first query range is a range in one dimension or a combination of ranges in multiple dimensions among a factory, a production line, a workshop, a production process, a production equipment, a product, a product batch and a first time period;

[0188] The query module 620 can be used to query the energy consumption data within the first query range in the first database in response to the first query instruction to obtain the first energy consumption data; wherein the first database pre-stores the first metering data stream, production layout information, production information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment for each metering device among multiple metering devices; the production layout information refers to the layout relationship information between the factory, the production line, the workshop, the production process, the production equipment and the metering equipment; the production information refers to the product information, product batch information and production time of each of the production equipment in the production process.

[0189] In one possible embodiment, the acquisition module 610 may also be used to provide a configuration interface to the user in response to a configuration request triggered by the user before obtaining the first query instruction; obtain the first query range filled in by the user in the configuration interface in response to a data query request based on the configuration interface; and generate the first query instruction based on the first query range.

[0190] In a possible manner, the first query instruction further includes a first trigger time and / or a first trigger frequency;

[0191] The query module 620 may be specifically configured to respond to the first query instruction according to the first trigger time and / or the first trigger frequency.

[0192] In one possible embodiment, the query module 620 is also used to collect the metering data of each of the metering devices at a first frequency, and store the metering data of each of the metering devices in the second metering data stream of each of the metering devices in the first database; determine the first metering data stream of each of the metering devices based on the second metering data stream of each of the metering devices; collect the operating status of the production equipment at a second frequency, and store the operating status of the production equipment in the operating status stream of the production equipment in the first database; collect the product information, product batch information and current time being produced by each of the production equipment at a third frequency, and store the product information, product batch information and current time being produced by each of the production equipment in the production information in the first database.

[0193] In one possible embodiment, the query module 620 is further specifically used to eliminate abnormal zeroing data in the second metering data stream of each metering device through a first model to obtain a first metering data stream of each metering device; wherein the first model is constructed based on a deep neural network algorithm.

[0194] In one possible manner, the query module 620 can be specifically used to determine the target time period and the target production equipment based on the first query range and at least a part of the production layout information, production information, and the operating status flow of the production equipment; in the first database, the energy consumption data of the target production equipment in the target time period is queried to obtain the first energy consumption data.

[0195] In one possible embodiment, the query module 620 may also be used to convert the first metering data stream of each metering device into the metering data stream of each production equipment according to the fourth frequency, based on the production layout information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment, and to update the metering data stream of each production equipment into the first database.

[0196] In one possible manner, the query module 620 can be specifically used to obtain the metering data of the target production equipment based on the target time period from the metering data stream of each of the production equipment in the first database; and determine the first energy consumption data based on the metering data of the target production equipment based on the target time period.

[0197] In one possible manner, the query module 620 can be specifically used to determine the metering data flow of the target production equipment based on the production layout information, the operating status flow of the production equipment, the unit energy consumption data of the production equipment and the first metering data flow of each of the metering devices; obtain the metering data of the target production equipment based on the target time period from the metering data flow of the target production equipment; and determine the first energy consumption data based on the metering data of the target production equipment based on the target time period.

[0198] In one possible manner, the query module 620 can be specifically used to determine the target metering equipment associated with the target production equipment based on the production layout information; eliminate abnormal zeroing data in the first metering data stream of the target metering equipment through the second model; determine the metering data stream of the target production equipment based on the first metering data stream of the target metering equipment from which the abnormal zeroing data is eliminated, combined with the production layout information, the operating status stream of the production equipment and the unit energy consumption data of the production equipment; wherein the second model is constructed based on a deep neural network algorithm.

[0199] In one possible embodiment, the metering device is a water meter, an electricity meter, a gas meter or a compressed gas meter.

[0200] It should be noted that the data query device can achieve similar effects as the data query method, which will not be described in detail here.

[0201] like Figure 7 As shown, an electronic device 700 provided by an embodiment of the present invention includes a memory 710 and a processor 720; the memory 710 is used to store a computer program; the processor 720 is used to implement the data query method as described above when executing the computer program.

[0202] It should be noted that the electronic device can achieve similar effects as the data query method, which will not be described in detail here.

[0203] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data query method as described above is implemented.

[0204] It should be noted that the computer-readable storage medium can achieve similar effects as the data query method, which will not be described in detail here.

[0205] An electronic device 700 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 700 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 700 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described herein and / or required.

[0206] The electronic device 700 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0207] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be arranged on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0208] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A data query method, characterized in that: include: Obtaining a first query instruction; Wherein, the first query instruction is used to instruct to query the energy consumption data of the first query range; The first query scope is a range of one dimension or a combination of ranges of multiple dimensions including factory, production line, workshop, production process, production equipment, product, product batch and first time period; In response to the first query instruction, querying the energy consumption data in the first query range in a first database to obtain first energy consumption data; The first database pre-stores the first metering data stream of each metering device in the plurality of metering devices, production layout information, production information, the operation status stream of the production device, and the unit energy consumption data of the production device; The production layout information refers to the layout relationship information between the factory, the production line, the workshop, the production process, the production equipment and the metering equipment; The production information refers to the product information, product batch information and production time of each of the production equipment during the production process.

2. The method according to claim 1, characterized in that Before obtaining the first query instruction, the method further includes: In response to a configuration request triggered by a user, providing a configuration interface to the user; In response to a data query request based on the configuration interface, obtaining the first query scope filled in by the user in the configuration interface; The first query instruction is generated according to the first query range.

3. The method according to claim 1, characterized in that The first query instruction also includes a first trigger time and / or a first trigger frequency; The responding to the first query instruction comprises: Respond to the first query instruction according to the first trigger time and / or the first trigger frequency.

4. The method according to claim 1, characterized in that: The method further comprises: collecting metering data of each metering device at a first frequency, and storing the metering data of each metering device in a second metering data stream of each metering device in the first database; Determine a first metering data stream of each metering device according to a second metering data stream of each metering device; collecting the operating status of the production equipment at a second frequency, and storing the operating status of the production equipment in an operating status stream of the production equipment in the first database; The product information, product batch information and current time being produced by each of the production equipment are collected at the third frequency, and the product information, product batch information and current time being produced by each of the production equipment are stored in the production information in the first database.

5. The method according to claim 4, characterized in that Determining the first metering data flow of each metering device according to the second metering data flow of each metering device comprises: Eliminate abnormal zeroing data in the second metering data stream of each metering device through the first model to obtain the first metering data stream of each metering device; Among them, the first model is built based on a deep neural network algorithm.

6. The method according to any one of claims 1 to 5, characterized in that: The querying of the energy consumption data in the first query range in the first database to obtain the first energy consumption data includes: Determine a target time period and a target production equipment according to the first query scope and at least a part of the production layout information, the production information, and the operation status flow of the production equipment; In the first database, the energy consumption data of the target production equipment in the target time period is queried to obtain first energy consumption data.

7. The method according to claim 6, characterized in that The method further comprises: According to the fourth frequency, based on the production layout information, the operating status flow of the production equipment and the unit energy consumption data of the production equipment, the first metering data flow of each of the metering devices is converted into the metering data flow of each of the production equipment, and the metering data flow of each of the production equipment is updated into the first database.

8. The method according to claim 7, characterized in that The querying of the energy consumption data of the target production equipment in the target time period in the first database to obtain the first energy consumption data includes: Obtaining the metering data of the target production equipment based on the target time period from the metering data stream of each of the production equipment in the first database; The first energy consumption data is determined according to the metering data of the target production equipment based on the target time period.

9. The method according to claim 6, characterized in that The querying of the energy consumption data of the target production equipment in the target time period in the first database to obtain the first energy consumption data includes: Determine the metering data flow of the target production equipment according to the production layout information, the operating status flow of the production equipment, the unit energy consumption data of the production equipment and the first metering data flow of each of the metering devices; Obtaining, from the metering data stream of the target production equipment, metering data of the target production equipment based on the target time period; The first energy consumption data is determined according to the metering data of the target production equipment based on the target time period.

10. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the data query method according to any one of claims 1 to 9 when executing the computer program.

Citation Information

Patent Citations

  • Industrial enterprise product energy consumption calculation and allocation method, system, equipment and medium

    CN115809786A

  • Energy information management method, system and equipment based on identifier analysis and storage medium

    CN116150408A

  • Flour production line equipment operation and maintenance management method based on Internet of Things

    CN118096085A

  • State-based hierarchy energy modeling

    US10372118B2