Energy consumption map construction method and system based on internet of things
Through the Internet of Things technology, signal characteristics and air pressure height are collected, and a signal reference library is constructed to realize the precise positioning of indoor energy-consuming equipment and the construction of energy consumption maps, solving the problem of low indoor positioning accuracy and promoting energy conservation and emission reduction.
Patent Information
- Application Number
- PCT/CN2023/082212
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-01
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology makes it difficult to position power-consuming equipment with high precision indoors, especially in complex environments without satellite navigation signals. Indoor positioning accuracy is not high, and base stations or hardware equipment need to be added to support positioning.
Using the energy consumption map construction method based on the Internet of Things, the communication module configured with multiple Internet of Things protocols collects signal characteristics, divides the three-dimensional space blocks, builds a signal reference library, and combines the barometer module to obtain the equipment height, using signal characteristics and height matching location coordinates to construct an energy consumption map.
It achieves precise positioning and energy consumption monitoring of indoor energy-consuming equipment without increasing costs, improves the accuracy and visual display of energy consumption maps, and promotes energy conservation and emission reduction.
Smart Images

Figure CN2023082212_06092024_PF_FP
Abstract
Description
Energy consumption map construction method and system based on Internet of Things Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method and system for constructing an energy consumption map based on the Internet of Things. Background Art
[0002] The development of science and technology is driving the continuous progress of positioning technology, and the advancement of energy conservation and emission reduction ideas is closely linked to people's demand for high-precision energy consumption monitoring and energy conservation. How to quickly monitor energy-consuming equipment in an area and express their energy consumption simply and intuitively is an urgent problem to be solved. At present, energy consumption monitoring can already achieve overall detection of a building or an area, but for more refined energy consumption monitoring, it is still not perfect enough. For this reason, the present invention proposes an energy consumption map construction device, method and storage medium based on the Internet of Things. Unified management and monitoring of indoor positioning and energy consumption monitoring is achieved without increasing costs. Outdoor positioning technology generally uses the global satellite navigation system. Most of the existing widely used positioning systems are GNSS positioning methods, and the indoor positioning accuracy is not high. For complex indoor places without satellite navigation signals, it is relatively complicated to obtain the location of some equipment. Most of the current indoor positioning technologies require the addition of base stations or other hardware equipment to support them.
[0003] How to locate indoor power-consuming devices based on wireless device signals is a technical problem that needs to be solved.
[0004] Summary of the Invention
[0005] The technical task of the present invention is to address the above shortcomings and provide an energy consumption map construction method and system based on the Internet of Things to solve the technical problem of how to locate indoor power-consuming devices based on wireless device signals.
[0006] In a first aspect, the present invention provides a method for constructing an energy consumption map based on the Internet of Things. The method collects signal characteristics by an Internet of Things communication module configured with multiple Internet of Things protocols, and locates energy-consuming devices in an indoor space based on the signal characteristics. The signal characteristics include signal strength, communication status information, and arrival angle. The method includes the following steps:
[0007] The indoor space is divided into multiple three-dimensional spatial blocks. For each spatial block, the signal characteristics of each signal in the spatial block are collected through the Internet of Things communication module. A signal characteristic matrix is constructed based on the signal characteristics of all signals. The signal characteristic matrix corresponding to the spatial block is used as the signal fingerprint. A signal reference library is constructed based on the spatial coordinates of all spatial blocks and the corresponding signal fingerprints.
[0008] For each energy-consuming device in the indoor space, the signal characteristics of each signal at the location of the energy-consuming device are collected through the Internet of Things communication module configured on the energy-consuming device, and the height of the energy-consuming device is collected through the barometer module configured on the energy-consuming device;
[0009] For each energy-consuming device in the indoor space, based on the signal characteristics and height corresponding to the energy-consuming device, match the three-dimensional spatial block with the closest correlation from the signal reference library, and use the spatial coordinates corresponding to the three-dimensional spatial block as the location coordinates of the energy-consuming device;
[0010] For an energy-consuming device whose location coordinates are determined, collecting electric energy data of the energy-consuming device through an electric energy metering module configured on the energy-consuming device;
[0011] For all energy-consuming devices in the indoor space, an energy consumption map is constructed based on the location coordinates and power data of each energy-consuming device. The energy consumption map is used to display the location coordinates and power data of each energy-consuming device in the indoor space in the form of a map.
[0012] 2. The method for constructing an energy consumption map based on the Internet of Things according to claim 1, wherein the Internet of Things protocols include WIFI, BLE, ZigBee and LoRa.
[0013] Preferably, for each spatial block, collecting signal characteristics of each signal in the spatial block through the Internet of Things communication module includes the following steps:
[0014] For the spatial block, the spatial block is divided into a plurality of three-dimensional blocks that meet the predetermined accuracy threshold, and a constant speed is moved between the three-dimensional blocks along a straight line. Each time the spatial coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement;
[0015] For each signal in the spatial block, performing numerical processing on the signal characteristics of the signal by using a normal distribution fitting method, and performing data preprocessing on the signal characteristics to remove outliers in signal strength, channel state information, and arrival angle, to obtain processed signal characteristics;
[0016] For each signal within the spatial block, based on the processed signal characteristics, select the spatial coordinates of the center of the spatial block as the three-dimensional coordinates of the spatial block, and select the processed signal characteristics corresponding to the center as the signal characteristics of the spatial block;
[0017] For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
[0018] Preferably, for each energy-consuming device in the indoor space, matching corresponding spatial coordinates from the signal reference library as the position coordinates of the energy-consuming device based on the signal characteristics and height corresponding to the energy-consuming device includes the following steps:
[0019] For each energy-consuming device, a signal reference library is constructed based on the signal strength, channel state information, and arrival angle of the energy-consuming device, and each spatial block data is used as a target cluster;
[0020] For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
[0021] Preferably, selecting a cluster matching the signal fingerprint of the energy consuming device by a K-means clustering algorithm based on the signal strength of the energy consuming device comprises the following steps:
[0022] L1. Set cluster data K;
[0023] L2, taking the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library as a sample set, and selecting K samples from the initial sample set as cluster centers;
[0024] L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into the cluster corresponding to the cluster center closest to it based on the signal strength;
[0025] L4. Calculate the mean of each cluster;
[0026] L5. Use the signal strength, channel state information, and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
[0027] In a second aspect, the present invention provides an energy consumption map construction system based on the Internet of Things, which is used to execute the energy consumption map construction method based on the Internet of Things as described in any one of the first aspects, and the system includes:
[0028] A device detection terminal is configured on each energy-consuming device and includes a processing module and an Internet of Things communication module electrically connected to the processing module, a power module, a barometer module, and an electricity metering module. The Internet of Things communication module is configured with multiple Internet of Things protocols and is used to collect signal characteristics. The barometer module is used to detect the height of the corresponding energy-consuming device. The power module is used to provide power. The electricity metering module is used to collect electricity data from the energy-consuming device.
[0029] An indoor detection terminal, the indoor detection terminal being configured with a processing module and an Internet of Things communication module electrically connected to the processing module, a power module, and a manometer module, the Internet of Things communication module being configured with multiple Internet of Things protocols for collecting signal characteristics, the manometer module being used to detect the height of the indoor space, and the power module being used to provide power;
[0030] A signal reference library construction module, which cooperates with the indoor detection terminal to perform the following operations: dividing the indoor space into multiple three-dimensional spatial blocks, for each spatial block, collecting signal characteristics of each signal within the spatial block via the Internet of Things communication module in the indoor detection terminal, constructing a signal characteristic matrix based on the signal characteristics of all signals, using the signal characteristic matrix corresponding to the spatial block as a signal fingerprint, and constructing a signal reference library based on the spatial coordinates of all spatial blocks and the corresponding signal fingerprints;
[0031] An energy-consuming device collection module, for each energy-consuming device in the indoor space, the energy-consuming device is configured to perform the following operations through the device detection terminal corresponding to the energy-consuming device: collecting signal characteristics of each signal at the location of the energy-consuming device through the Internet of Things communication configured on the energy-consuming device, and collecting the height of the energy-consuming device through the barometer module configured on the energy-consuming device;
[0032] An energy-consuming device positioning module, for each energy-consuming device in the indoor space, the energy-consuming device positioning module is used to match the corresponding spatial coordinates from the signal reference library as the position coordinates of the energy-consuming device based on the signal characteristics and height corresponding to the energy-consuming device;
[0033] An energy-consuming device power collection module, for an energy-consuming device whose position coordinates are determined, the energy-consuming device power collection module is used to collect power data of the energy-consuming device through an electricity metering module configured on the energy-consuming device;
[0034] An energy consumption map construction module is used to construct an energy consumption map for all energy-consuming devices in the indoor space based on the location coordinates and power data of each energy-consuming device. The energy consumption map is used to display the location coordinates and power data of each energy-consuming device in the indoor space in the form of a map.
[0035] Preferably, the Internet of Things protocols include WIFI, BLE, ZigBee and LoRa.
[0036] Preferably, for each spatial block, the signal reference library construction module cooperates with the Internet of Things communication module to perform the following steps to collect signal characteristics of each signal in the spatial block:
[0037] For the spatial block, the spatial block is divided into a plurality of three-dimensional blocks that meet the predetermined accuracy threshold, and a constant speed is moved between the three-dimensional blocks along a straight line. Each time the spatial coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement;
[0038] For each signal in the spatial block, performing numerical processing on the signal characteristics of the signal by using a normal distribution fitting method, and performing data preprocessing on the signal characteristics to remove outliers in signal strength, channel state information, and arrival angle, to obtain processed signal characteristics;
[0039] For each signal within the spatial block, based on the processed signal characteristics, select the spatial coordinates of the center of the spatial block as the three-dimensional coordinates of the spatial block, and select the processed signal characteristics corresponding to the center as the signal characteristics of the spatial block;
[0040] For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
[0041] Preferably, for each energy-consuming device in the indoor space, the energy-consuming device positioning module is configured to perform the following steps to match the corresponding spatial coordinates from the signal reference library:
[0042] For each energy-consuming device, a signal reference library is constructed based on the signal strength, channel state information, and arrival angle of the energy-consuming device, and each spatial block data is used as a target cluster;
[0043] For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
[0044] Preferably, the energy consuming device positioning module is configured to perform the following steps to select a cluster matching the signal fingerprint of the energy consuming device:
[0045] L1. Set cluster data K;
[0046] L2, taking the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library as a sample set, and selecting K samples from the initial sample set as cluster centers;
[0047] L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into the cluster corresponding to the cluster center closest to it based on the signal strength;
[0048] L4. Calculate the mean of each cluster;
[0049] L5. Use the signal strength, channel state information, and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
[0050] The method and system for constructing an energy consumption map based on the Internet of Things of the present invention have the following advantages:
[0051] 1. The IoT communication module collects signal characteristics from various locations indoors, and a signal reference library is constructed based on the spatial coordinates of each location. For each energy-consuming device in the room, the IoT communication module configured on the device collects the signal characteristics of the device's location, and the barometer module configured on the device collects the device's height. Based on the signal characteristics and height of the energy-consuming device, the corresponding spatial coordinates are matched from the signal reference library as the location coordinates of the energy-consuming device, achieving precise positioning of the indoor energy-consuming device.
[0052] 2. For each located energy-consuming device, collect the power data of the energy-consuming device and build an energy consumption map based on the location coordinates and power data;
[0053] 3. When constructing the signal reference library, the indoor space is divided into multiple three-dimensional spatial blocks. In each spatial block, the spatial block is divided into multiple three-dimensional small blocks that meet the accuracy threshold. The signal features of each three-dimensional small block are collected, and all discrete signal features in the spatial block are fitted with a normal distribution and preprocessed. Based on the fitting results, the signal features corresponding to the center of the spatial block are taken as the signal features of the spatial block, and the space at the center is used as the spatial coordinates of the idle block, thereby improving the accuracy of the signal features. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] The present invention will be further described below with reference to the accompanying drawings.
[0056] FIG1 is a flowchart of a method for constructing an energy consumption map based on the Internet of Things according to Example 1;
[0057] FIG2 is a signal strength distribution diagram of signals in a spatial block in the method for constructing an energy consumption map based on the Internet of Things in Example 1;
[0058] FIG3 is a flowchart of the K-means clustering method in the method for constructing an energy consumption map based on the Internet of Things in Example 1. DETAILED DESCRIPTION
[0059] The present invention will be further described below with reference to the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments given are not intended to limit the present invention. Unless there is a conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.
[0060] The embodiments of the present invention provide a method and system for constructing an energy consumption map based on the Internet of Things, which are used to solve the technical problem of how to locate indoor power-consuming devices based on wireless device signals.
[0061] Example 1:
[0062] The present invention provides a method for constructing an energy consumption map based on the Internet of Things. This method uses an Internet of Things communication module equipped with multiple Internet of Things protocols to collect signal characteristics, including signal strength, channel state information, and angle of arrival, and locates energy-consuming devices within indoor spaces. The method includes the following steps:
[0063] S100, dividing the indoor space into a plurality of three-dimensional spatial blocks. For each spatial block, using an IoT communication module, collect signal characteristics of each signal within the spatial block, construct a signal characteristic matrix based on the signal characteristics of all signals, use the signal characteristic matrix and spatial coordinates corresponding to the spatial block as signal fingerprints, and construct a signal reference library based on the signal fingerprints corresponding to all spatial blocks;
[0064] S200: For each energy-consuming device in the indoor space, collect signal characteristics of each signal at the location of the energy-consuming device through an Internet of Things communication module configured on the energy-consuming device, and collect the height of the energy-consuming device through a barometer module configured on the energy-consuming device;
[0065] S300: For each energy-consuming device in the indoor space, based on the signal characteristics and height corresponding to the energy-consuming device, match the three-dimensional spatial block with the closest correlation from the signal reference library, and use the spatial coordinates corresponding to the three-dimensional spatial block as the location coordinates of the energy-consuming device;
[0066] S400: For an energy-consuming device whose location coordinates are determined, collecting power data of the energy-consuming device through a power metering module configured on the energy-consuming device;
[0067] S500: For all energy-consuming devices in the indoor space, construct an energy consumption map based on the location coordinates and power data of each energy-consuming device, wherein the energy consumption map is used to display the location coordinates and power data of each energy-consuming device in the indoor space in the form of a map.
[0068] In this embodiment, the Internet of Things communication module includes WIFI, BLE, ZigBee and LoRa protocol modules, which can collect WIFI, BLE, ZigBee and LoRa signal characteristics.
[0069] The barometer module obtains relative altitude based on the principle of air pressure altitude measurement and provides indoor altitude data.
[0070] In this embodiment, step S100 collects signal characteristics of each signal in each spatial block through the IoT communication module, including the following steps:
[0071] (1) For the spatial block, the spatial block is divided into a plurality of three-dimensional small blocks that meet the predetermined accuracy threshold, and a uniform speed is moved between the three-dimensional small blocks along a straight line. Each time the spatial coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement;
[0072] (2) For each signal in the spatial block, the signal characteristics of the signal are numerically processed by a normal distribution fitting method, and the signal characteristics are preprocessed to remove abnormal values in signal strength, channel state information, and arrival angle to obtain processed signal characteristics;
[0073] (3) For each signal within the spatial block, based on the processed signal characteristics, select the spatial coordinates at the center of the spatial block as the three-dimensional coordinates of the spatial block, and select the processed signal characteristics corresponding to the center as the signal characteristics of the spatial block;
[0074] (4) For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
[0075] The IoT signal collection method in this embodiment is as follows: first, the area to be located is divided into three-dimensional blocks of a size that meets the accuracy requirements. The user moves along a straight line at a constant speed, and a point is marked for each step. The signal value obtained during the movement is the signal fingerprint of the point. The data format of the signal fingerprint library is ((x i ,y i , z i ), B), its (x i ,y i , z i ) represents the center position of the grid, and B is the signal strength matrix at that point. Figure 2 shows the intensity distribution of a signal.
[0076] After collecting the signal strength, the data is processed by the normal distribution fitting method, and then the signal strength is determined. A matrix is constructed for the strength of multiple groups of signals (WiFi, BLE, Zigbee, Lora) to establish a fingerprint library.
[0077] For indoor energy-consuming devices, the signal characteristics of the energy-consuming devices are collected in step S200 of this implementation according to the following principle: In indoor environments, the signal strength of IoT devices such as wifi, BLE, zigbee, and lora is negatively correlated with the distance, and as the distance increases, the signal strength decreases logarithmically. However, in specific situations, the signal strength is greatly affected by the surrounding environment and does not strictly decrease logarithmically according to the formula. The signal strength of a signal node at a straight-line distance of 20m is measured, with a sampling point interval of 1m. The single-point signal strength value is the result of averaging 10 times, and these data are fitted with a logarithmic equation in the form of the following formula. rss represents the signal strength received by the target device, s represents the distance of the target device from the WIFI signal node, and a and b represent the fitting model coefficients: rss=a lg s+b
[0078] RSS indicates the target device's received signal strength.
[0079] Step S300 includes the following steps:
[0080] (1) For each energy-consuming device, a signal reference library is constructed based on the signal strength, channel state information, and arrival angle of the energy-consuming device, and each spatial block data is used as a target cluster;
[0081] (2) For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
[0082] Wherein, step (1) selects a cluster matching the signal fingerprint of the energy-consuming device based on the signal strength of the energy-consuming device by using a K-means clustering algorithm, and includes the following steps:
[0083] L1. Set cluster data K;
[0084] L2, taking the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library as a sample set, and selecting K samples from the initial sample set as cluster centers;
[0085] L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into the cluster corresponding to the cluster center closest to it based on the signal strength;
[0086] L4. Calculate the mean of each cluster;
[0087] L5. Use the signal strength, channel state information, and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
[0088] To reduce the difficulty of matching, all fingerprint points are classified. During the positioning phase, the target device does not need to retrieve all fingerprint points in the fingerprint map. Instead, it first uses the signal strength characteristics to find the cluster category where the target device is located, and then retrieves all fingerprint points in that category. The specific clustering process is as follows: first, k clusters are set. The system selects k fingerprint locations as the center of each class. Then, the Euclidean distance from all fingerprint points on the fingerprint map to each class center is calculated. The fingerprint points are assigned to the class with the closest class center. The mean of each cluster is calculated. The cluster center is changed and the mean of each cluster is recalculated until the most suitable cluster center is found.
[0089] The nearest neighbor algorithm compares and calculates the Euclidean distance between the signal strength measured by the target device and the signal strengths in the fingerprint library to obtain the location coordinates with the shortest Euclidean distance, which is the location coordinates of the target device. The Euclidean distance calculation formula is shown in the formula.
[0090] Where di represents the Euclidean distance from the target device to the i-th location coordinate in the fingerprint library, rss represents the received signal strength of the target device, sj represents the signal strength of the j-th Wi-Fi node at the current location coordinate, and n represents the signal strength of the n IoT devices received at the current location coordinate.
[0091] In step S500, after determining the location of energy-consuming devices, the power metering module measures electrical parameters and sends all data to the server. Upon receiving the data, the server first calibrates the location information on a map and then assigns different colors to the energy consumption values at the corresponding locations to distinguish between different intensities. Based on the acquired data, an energy consumption map is created and displayed on the front-end. This helps track high-energy-consuming devices and achieve energy conservation and emission reduction.
[0092] The method of this embodiment obtains reliable positioning information of indoor energy-consuming devices through information fusion of the Internet of Things intelligent system, and constructs an energy consumption map based on the positioning information and energy consumption, further discovers the distribution of high-energy-consuming devices, and provides assistance for power system construction and balanced configuration.
[0093] Example 2:
[0094] The present invention provides an energy consumption map construction system based on the Internet of Things, including a device detection terminal, an indoor detection terminal, a signal reference library construction module, an energy-consuming device collection module, an energy-consuming device positioning module, an energy-consuming device power collection module, and an energy consumption map construction module. The system executes the method disclosed in Example 1 to construct an energy consumption map for indoor energy-consuming devices.
[0095] Each energy-consuming device is equipped with a device detection terminal, which includes a processing module and an Internet of Things communication module electrically connected to the processing module, a power module, a barometer module, and an electricity metering module. The Internet of Things communication module is equipped with multiple Internet of Things protocols and is used to collect signal characteristics. The barometer module is used to detect the height of the corresponding energy-consuming device. The power module is used to provide power. The electricity metering module is used to collect electricity data of the energy-consuming device.
[0096] In this embodiment, the Internet of Things communication module includes WIFI, BLE, ZigBee and LoRa protocol modules, which can collect WIFI, BLE, ZigBee and LoRa signal characteristics.
[0097] The barometer module obtains relative altitude based on the principle of air pressure altitude measurement and provides indoor altitude data.
[0098] The indoor detection terminal is equipped with a processing module and an Internet of Things communication module, a power module and a pressure gauge module electrically connected to the processing module. The Internet of Things communication module is equipped with multiple Internet of Things protocols and is used to collect signal characteristics. The pressure gauge module is used to detect the height of the indoor space, and the power module is used to provide power.
[0099] The signal reference library construction module cooperates with the indoor detection terminal to perform the following: divide the indoor space into multiple three-dimensional spatial blocks, for each spatial block, collect the signal characteristics of each signal in the spatial block through the Internet of Things communication module in the indoor detection terminal, construct a signal feature matrix based on the signal characteristics of all signals, use the signal feature matrix corresponding to the spatial block as the signal fingerprint, and construct a signal reference library based on the spatial coordinates of all spatial blocks and the corresponding signal fingerprints.
[0100] As a specific implementation, the signal reference library construction module is used to perform the following operations to collect the signal characteristics of each signal in the spatial block through the Internet of Things communication module:
[0101] (1) For the spatial block, the spatial block is divided into a plurality of three-dimensional small blocks that meet the predetermined accuracy threshold, and a uniform speed is moved between the three-dimensional small blocks along a straight line. Each time the spatial coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement;
[0102] (2) For each signal in the spatial block, the signal characteristics of the signal are numerically processed by a normal distribution fitting method, and the signal characteristics are preprocessed to remove abnormal values in signal strength, channel state information, and arrival angle to obtain processed signal characteristics;
[0103] (3) For each signal within the spatial block, based on the processed signal characteristics, select the spatial coordinates at the center of the spatial block as the three-dimensional coordinates of the spatial block, and select the processed signal characteristics corresponding to the center as the signal characteristics of the spatial block;
[0104] (4) For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
[0105] The specific operation of the signal reference library construction module is as follows: first, the area to be located is divided into small blocks with a predetermined accuracy. The user moves along a straight line at a constant speed. During this period, a point is marked by one step. The signal value obtained during the movement is the signal fingerprint of the point. The data format of the signal fingerprint library is ((x i ,y i, z i ), B), its (x i ,y i , z i ) represents the center position of the grid, and B is the signal strength matrix of that point.
[0106] After collecting the signal strength, the signal reference library construction module is used to process the data through the normal distribution fitting method, and then determine the signal strength, construct a matrix for the strength of multiple groups of signals (WiFi, BLE, ZigBee, LoRa), and establish a fingerprint library.
[0107] For each energy-consuming device in the indoor space, the energy-consuming device collection module is used to perform the following through the device detection terminal corresponding to the energy-consuming device: collect the signal characteristics of each signal at the location of the energy-consuming device through the Internet of Things communication configured on the energy-consuming device, and collect the height of the energy-consuming device through the barometer module configured on the energy-consuming device.
[0108] For indoor energy-consuming devices, the energy-consuming device acquisition module of this embodiment is used to collect the signal characteristics of the energy-consuming device through the following principle: In an indoor environment, the signal strength of IoT devices such as wifi, BLE, zigbee, and lora is negatively correlated with the distance, and as the distance increases, the signal strength decreases logarithmically. However, in specific situations, the signal strength is greatly affected by the surrounding environment and does not strictly decrease logarithmically according to the formula. The signal strength of a signal node at a straight-line distance of 20m is measured, and the sampling point interval is 1m. The single-point signal strength value is the result of averaging 10 times, and these data are fitted with a logarithmic equation in the form of the following formula. rss represents the signal strength received by the target device, s represents the distance of the target device from the WIFI signal node, and a and b represent the fitting model coefficients: rss = a lg s + b
[0109] RSS indicates the target device's received signal strength.
[0110] For each energy-consuming device in the indoor space, the energy-consuming device positioning module is used to match corresponding spatial coordinates from the signal reference library as position coordinates of the energy-consuming device based on the signal characteristics and height corresponding to the energy-consuming device.
[0111] As a specific implementation, the energy-consuming device positioning module is used to perform positioning as follows:
[0112] (1) For each energy-consuming device, a signal reference library is constructed based on the signal strength, channel state information, and arrival angle of the energy-consuming device, and each spatial block data is used as a target cluster;
[0113] (2) For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
[0114] The energy-consuming device positioning module is configured to perform the following steps to select a cluster that matches the signal fingerprint of the energy-consuming device:
[0115] L1. Set cluster data K;
[0116] L2, the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library are used as the sample set, and K samples are selected from the initial sample set as cluster centers;
[0117] L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into the cluster corresponding to the cluster center closest to it based on the signal strength;
[0118] L4. Calculate the mean of each cluster;
[0119] L5. Use the signal strength, channel state information, and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
[0120] In this embodiment, to reduce matching difficulty, the energy-consuming device positioning module is used to classify all fingerprint points. During the positioning phase, the target device does not need to retrieve all fingerprint points in the fingerprint map. Instead, it first uses signal strength characteristics to find the cluster category of the target device, and then retrieves all fingerprint points within that category. The specific clustering process is as follows: first, k clusters are set. The system selects k fingerprint locations as cluster centers. Then, the Euclidean distance from all fingerprint points on the fingerprint map to each cluster center is calculated. The fingerprint points are assigned to the cluster with the closest cluster center. The mean of each cluster is calculated. The cluster center is changed, and the mean of each cluster is recalculated until the most suitable cluster center is found.
[0121] The nearest neighbor algorithm compares and calculates the Euclidean distance between the signal strength measured by the target device and the signal strengths in the fingerprint library to obtain the location coordinates with the shortest Euclidean distance, which is the location coordinates of the target device. The Euclidean distance calculation formula is shown in the formula.
[0122] Where di represents the Euclidean distance from the target device to the i-th location coordinate in the fingerprint library, rss represents the received signal strength of the target device, sj represents the signal strength of the j-th Wi-Fi node at the current location coordinate, and n represents the signal strength of the n IoT devices received at the current location coordinate.
[0123] For the energy-consuming device whose position coordinates are determined, the energy-consuming device power collection module is used to collect the power data of the energy-consuming device through the power metering module configured on the energy-consuming device.
[0124] For all energy-consuming devices in the indoor space, the energy consumption map construction module is used to construct an energy consumption map based on the location coordinates and power data of each energy-consuming device. The energy consumption map is used to display the location coordinates and power data of each energy-consuming device in the indoor space in the form of a map.
[0125] After determining the location of energy-consuming equipment, the power metering module measures electrical parameters and sends all data to the server. Upon receiving the data, the server first calibrates the location information on a map and then assigns different colors to the energy consumption values at the corresponding locations to distinguish between different intensities. Based on the acquired data, an energy consumption map is created and displayed on the front-end. This helps track high-energy-consuming equipment and achieve energy conservation and emission reduction.
[0126] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the scope of protection of the present invention.
Claims
1. A method for constructing an energy consumption map based on the Internet of Things, characterized in that: The method collects signal characteristics by using an IoT communication module configured with a plurality of IoT protocols, and locates energy-consuming devices in an indoor space based on the signal characteristics, wherein the signal characteristics include signal strength, communication status information, and angle of arrival. The method comprises the following steps: The indoor space is divided into multiple three-dimensional spatial blocks. For each spatial block, the signal characteristics of each signal in the spatial block are collected through the Internet of Things communication module, a signal characteristic matrix is constructed based on the signal characteristics of all signals, the signal characteristic matrix corresponding to the spatial block is used as the signal fingerprint, and a signal reference library is constructed based on the spatial coordinates of all spatial blocks and the signal fingerprints corresponding thereto; For each energy-consuming device in the indoor space, the signal characteristics of each signal at the location of the energy-consuming device are collected through the Internet of Things communication configured on the energy-consuming device, and the height of the energy-consuming device is collected through the barometer module configured on the energy-consuming device; For each energy-consuming device in the indoor space, based on the signal characteristics and height corresponding to the energy-consuming device, match the three-dimensional space block with the closest correlation from the signal reference library, and use the space coordinates corresponding to the three-dimensional space block as the position coordinates of the energy-consuming device; For the energy-consuming device whose position coordinates are determined, the electric energy data of the energy-consuming device is collected by an electric power metering module configured on the energy-consuming device; For all energy-consuming devices in the indoor space, an energy consumption map is constructed based on the location coordinates and power data of each energy-consuming device, and the energy consumption map is used to display the location coordinates and power data of each energy-consuming device in the indoor space in the form of a map.
2. The method for constructing an energy consumption map based on the Internet of Things according to claim 1, characterized in that: The IoT protocols include WIFI, BLE, ZigBee and LoRa.
3. The method for constructing an energy consumption map based on the Internet of Things according to claim 1, characterized in that: For each spatial block, the signal characteristics of each signal in the spatial block are collected by the Internet of Things communication module, including the following steps: For the spatial block, the spatial block is divided into a plurality of three-dimensional small blocks that meet a predetermined precision threshold, and a uniform speed is moved between the three-dimensional small blocks along a straight line. Each time the spatial coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement; For each signal in the spatial block, the signal The signal characteristics are processed digitally, and the signal characteristics are preprocessed to remove abnormal values in signal strength, channel state information and arrival angle to obtain processed signal characteristics; For each signal in the spatial block, based on the processed signal characteristics, the spatial coordinates at the center of the spatial block are selected as the three-dimensional coordinates of the spatial block, and the processed signal characteristics corresponding to the center are selected as the signal characteristics of the spatial block; For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
4. The method for constructing an energy consumption map based on the Internet of Things according to claim 1, characterized in that: For each energy-consuming device in the indoor space, matching the corresponding spatial coordinates from the signal reference library as the position coordinates of the energy-consuming device based on the signal characteristics and height corresponding to the energy-consuming device, including the following steps: For each energy consuming device, a signal reference library is constructed based on the signal strength, channel state information and arrival angle of the energy consuming device, and each spatial block data is used as a target cluster; For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
5. The method for constructing an energy consumption map based on the Internet of Things according to claim 4, characterized in that: Based on the signal strength of the energy consuming device, a cluster matching the signal fingerprint of the energy consuming device is selected by a K-means clustering algorithm, including the following steps: L1. Set clustering data K; L2, taking the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library as a sample set, and selecting K samples from the initial sample set as clustering centers; L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into a cluster corresponding to the cluster center closest to it based on the signal strength; L4, calculate the mean of each cluster; L5. Use the signal strength, channel state information and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
6. An energy consumption map construction system based on the Internet of Things, characterized in that: Used to execute the method for constructing an energy consumption map based on the Internet of Things as described in any one of claims 1 to 5, the system comprising: An equipment detection terminal is configured on each energy-consuming device, and includes a processing module and an Internet of Things communication module electrically connected to the processing module, a power module, a barometer module, and an electricity metering module. The Internet of Things communication module is configured with a plurality of Internet of Things protocols and is used to collect signal characteristics. The barometer module is used to detect the height of the corresponding energy-consuming device. The power module is used to provide power. The electricity metering module is used to collect electric energy data of the energy-consuming device. An indoor detection terminal, wherein the indoor detection terminal is configured with a processing module and an Internet of Things communication module, a power module and a pressure gauge module electrically connected to the processing module, wherein the Internet of Things communication module is configured with a plurality of Internet of Things protocols and is used to collect signal characteristics, the pressure gauge module is used to detect the height of the indoor space, and the power module is used to provide power; A signal reference library construction module, which cooperates with the indoor detection terminal to perform the following: dividing the indoor space into multiple three-dimensional spatial blocks, for each spatial block, collecting the signal characteristics of each signal in the spatial block through the Internet of Things communication module in the indoor detection terminal, building a signal characteristic matrix based on the signal characteristics of all signals, using the signal characteristic matrix corresponding to the spatial block as a signal fingerprint, and building a signal reference library based on the spatial coordinates of all spatial blocks and the signal fingerprints corresponding thereto; The energy consumption device collection module, for each energy consumption device in the indoor space, the energy consumption device is used to perform the following through the device detection terminal corresponding to the energy consumption device: collect the signal characteristics of each signal at the location of the energy consumption device through the Internet of Things communication configured on the energy consumption device, and collect the height of the energy consumption device through the barometer module configured on the energy consumption device; An energy-consuming device positioning module, for each energy-consuming device in the indoor space, the energy-consuming device positioning module is used to match the corresponding spatial coordinates from the signal reference library as the position coordinates of the energy-consuming device based on the signal characteristics and height corresponding to the energy-consuming device; An energy-consuming device power collection module, for an energy-consuming device whose position coordinates are determined, the energy-consuming device power collection module is used to collect power data of the energy-consuming device through an electric power metering module configured on the energy-consuming device; Energy consumption map construction module, for all energy-consuming devices in the indoor space, the energy consumption map construction The building module is used to build an energy consumption map based on the location coordinates and power data of each energy consuming device, and the energy consumption map is used to display the location coordinates and power data of each energy consuming device in the indoor space in the form of a map.
7. The energy consumption map construction system based on the Internet of Things according to claim 6 is characterized in that: The IoT protocols include WIFI, BLE, ZigBee and LoRa.
8. The energy consumption map construction system based on the Internet of Things according to claim 6 is characterized in that: For each spatial block, the signal reference library construction module cooperates with the Internet of Things communication module to perform the following steps to collect signal characteristics of each signal in the spatial block: for The spatial block is divided into a plurality of three-dimensional small blocks that meet a predetermined precision threshold, and moves along a straight line between the three-dimensional small blocks at a uniform speed, and moves to a space coordinate (x i ,y i , z i ), signal characteristics of each signal in the three-dimensional small block collected by the Internet of Things communication device during movement; For each signal in the spatial block, the signal characteristics of the signal are numerically processed by a normal distribution fitting method, and the signal characteristics are preprocessed to remove abnormal values in signal strength, channel state information and arrival angle to obtain processed signal characteristics; For each signal in the spatial block, based on the processed signal characteristics, the spatial coordinates at the center of the spatial block are selected as the three-dimensional coordinates of the spatial block, and the processed signal characteristics corresponding to the center are selected as the signal characteristics of the spatial block; For the spatial block, a signal feature matrix B is constructed based on the signal features of all signals in the spatial block.
9. The energy consumption map construction system based on the Internet of Things according to claim 6, characterized in that: For each energy-consuming device in the indoor space, the energy-consuming device positioning module is used to perform the following matching of the corresponding space coordinates from the signal reference library: For each energy consuming device, a signal reference library is constructed based on the signal strength, channel state information and arrival angle of the energy consuming device, and each spatial block data is used as a target cluster; For each energy-consuming device, based on the signal strength and height of the energy-consuming device, a signal fingerprint matching the energy-consuming device is selected from the target cluster through the nearest neighbor algorithm as the target signal fingerprint, and the spatial coordinates corresponding to the target signal fingerprint are used as the location coordinates of the energy-consuming device.
10. The energy consumption map construction system based on the Internet of Things according to claim 9, characterized in that: The energy-consuming device positioning module is used to perform the following steps to select a cluster that matches the signal fingerprint of the energy-consuming device: L1. Set clustering data K; L2, taking the signal strength, channel state information and arrival angle corresponding to all signal fingerprints in the signal reference library as a sample set, and selecting K samples from the initial sample set as clustering centers; L3. For each signal in the signal reference library, cluster each signal fingerprint in the signal reference library into a cluster corresponding to the cluster center closest to it based on the signal strength; L4, calculate the mean of each cluster; L5. Use the signal strength, channel state information and arrival angle of the energy-consuming device as new samples to update the sample set. For the updated sample set, based on whether the mean of the cluster decreases, loop through steps L1-L4 until the mean of the cluster no longer decreases, and determine the cluster corresponding to the energy-consuming device.
Citation Information
Patent Citations
WLAN (Wireless Local Area Network) indoor positioning method based on subregion information entropy gain
CN102821465A
Method and apparatus for supporting visual representation of intelligent power consumption information
CN105005571A
Indoor wireless positioning method and system based on deep learning
CN110536245A
Power consumption data processing and visualization method and system
CN111507861A
Method and device for generating wireless signal fingerprint database and electronic equipment
CN114189806A
Cited By
Real-time positioning method for communication equipment
CN118828880A
A real-time positioning method for communication equipment
CN118828880B
