A temperature sensor control method, electronic device, and storage medium

By using a clustering method based on temperature data differences, the problem of redundant use of temperature sensors is solved, achieving resource conservation and detection effectiveness.

CN116519155BActive Publication Date: 2026-11-27HANHAI INFORMATION TECH SHANGHAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210070434.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-21
Publication Date
2026-11-27
Estimated Expiration
2042-01-21

AI Technical Summary

Technical Problem

In existing technologies, the setting of temperature sensors in warehousing applications relies on human experience, resulting in an excessive number of sensors, leading to redundant use and waste of resources.

Method used

By dividing the installed sensors into clusters based on the temperature data differences between pairs of temperature sensors, only one sensor within a cluster is controlled to be in an active state while the other sensors are in an inactive state. The number and members of the clusters are automatically determined using a hierarchical clustering algorithm.

Benefits of technology

This effectively avoids redundant use of temperature sensors, saves resources, and ensures the effectiveness of warehouse temperature detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116519155B_ABST
    Figure CN116519155B_ABST
Patent Text Reader

Abstract

The application discloses a temperature sensor control method, an electronic device and a storage medium, which can ensure effective measurement of the temperature in the warehouse, avoid redundant use of the temperature sensor, and save resources. The temperature sensor control method comprises the following steps: dividing each installed temperature sensor into at least one cluster based on the temperature data difference degree between two temperature sensors; wherein the temperature data difference degree is used to represent the difference degree when two temperature sensors collect temperature data of a target warehouse; each cluster comprises at least two temperature sensors, and the temperature data difference degree between two temperature sensors in each cluster is less than a first set threshold; and controlling any temperature sensor in each cluster in the at least one cluster to be in a working state.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application relates to the field of warehousing technology, and in particular to a control method for a temperature sensor, an electronic device, and a storage medium. [Background Technology]

[0002] In warehousing applications, temperature sensors are typically installed in warehouses to monitor temperature data and facilitate better management of stored items.

[0003] In existing technologies, temperature sensors are often set based on human experience, which may result in an excessive number of temperature sensors being set, leading to redundant use and wasted resources. [Summary of the Invention]

[0004] This application provides a control method, electronic device, and storage medium for a temperature sensor, which can ensure effective temperature measurement in a warehouse while avoiding redundant use of the temperature sensor, thereby saving resources.

[0005] In a first aspect, embodiments of this application provide a control method for a temperature sensor. This method is applied to an electronic device, which is communicatively connected to various temperature sensors already installed in a target warehouse. The method includes:

[0006] Based on the temperature data difference between two temperature sensors, the installed temperature sensors are divided into at least one cluster; wherein, the temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively, each cluster includes at least two temperature sensors, and the temperature data difference between two temperature sensors in each cluster is less than a first set threshold.

[0007] Control any temperature sensor within each of the at least one cluster to be in a working state.

[0008] In this embodiment, the temperature sensors installed in the target warehouse are divided into at least one cluster based on the temperature data difference between pairs of temperature sensors. Since the temperature data difference between at least two temperature sensors in each cluster is small, it can be considered that the at least two temperature sensors in each cluster are mutually redundant. Therefore, for each cluster, any one temperature sensor within that cluster can be controlled to be in an active state, while the other temperature sensors are in an inactive state. Inactive temperature sensors can be removed from the target warehouse, thereby avoiding redundant use of temperature sensors and saving resources.

[0009] Optionally, dividing the installed temperature sensors into at least one cluster based on the temperature data differences between pairs of temperature sensors includes:

[0010] Obtain historical temperature data of each temperature sensor installed in the target warehouse at each preset time within a historical time period;

[0011] The historical temperature data is input into a hierarchical clustering algorithm to obtain at least one cluster.

[0012] In this embodiment of the application, historical temperature data of temperature sensors installed in the target warehouse at each preset time within a certain historical period can be obtained. Based on the hierarchical clustering algorithm, it can automatically determine how many clusters each temperature sensor is divided into, without needing to predefine the number of clusters.

[0013] Optionally, inputting the historical temperature data into a hierarchical clustering algorithm to obtain the at least one cluster includes:

[0014] The temperature data difference between each pair of temperature sensors is determined based on the historical temperature data.

[0015] Temperature sensors whose temperature data difference is less than the first set threshold are grouped into a cluster.

[0016] In this embodiment, the temperature data difference between two temperature sensors can be determined based on the temperature data, thereby grouping temperature sensors with smaller temperature data differences into a cluster. This allows for accurate identification of which installed temperature sensors are redundant and which are necessary.

[0017] Optionally, the temperature data difference is determined based on the average of the absolute values ​​of the differences between historical temperature data from each pair of temperature sensors at each preset time, or...

[0018] The temperature data difference is determined based on the ratio of a first quantity to a second quantity and the relative size of a second set threshold. The first quantity is the number of calculation results where the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time is greater than the second set threshold. The second quantity is the number of calculation results corresponding to the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time.

[0019] In this embodiment, the temperature data difference between two temperature sensors can be measured more accurately based on the average of the absolute values ​​of the differences between the historical temperature data of two temperature sensors at each preset time; or, the temperature data difference between two temperature sensors can be measured more accurately by the ratio of the first number of calculation results where the absolute value of the differences between the historical temperature data of two temperature sensors at each preset time is greater than a second preset threshold, and the second number of calculation results corresponding to the absolute value of the differences between the historical temperature data of two temperature sensors at each preset time.

[0020] Optionally, the electronic device pre-stores a floor plan of the target warehouse, which includes the correspondence between the identifiers and installation locations of each installed temperature sensor. Temperature sensors with temperature data differences less than the first set threshold are grouped into a cluster, including:

[0021] In the planar design drawing, temperature sensors whose temperature data difference is less than the first set threshold are displayed in the same preset manner.

[0022] In this embodiment of the application, if the electronic device stores a floor plan of the target warehouse, and the floor plan includes the correspondence between the identification of each temperature sensor and its installation location, then the temperature sensors with temperature data differences less than a first set threshold can be displayed in the floor plan in the same preset manner, thereby more intuitively displaying the cluster division results.

[0023] Secondly, embodiments of this application provide an electronic device that is communicatively connected to various temperature sensors already installed in a target warehouse. The electronic device includes:

[0024] A partitioning unit is used to partition the installed temperature sensors into at least one cluster based on the temperature data difference between two temperature sensors; wherein the temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively, each cluster includes at least two temperature sensors, and the temperature data difference between two temperature sensors in each cluster is less than a first set threshold.

[0025] A control unit is used to control any temperature sensor within each of the at least one cluster to be in a working state.

[0026] Optionally, the partitioning unit includes:

[0027] The acquisition subunit is used to acquire historical temperature data of each temperature sensor installed in the target warehouse at each preset time within a historical time period;

[0028] Obtain a sub-unit, which is used to input the historical temperature data into a hierarchical clustering algorithm to obtain at least one cluster.

[0029] Optionally, the obtaining subunit includes:

[0030] A subunit is defined to determine the temperature data difference between any two temperature sensors based on the historical temperature data.

[0031] The sub-unit is used to divide temperature sensors whose temperature data difference is less than the first set threshold into a cluster.

[0032] Optionally, the temperature data difference is determined based on the average of the absolute values ​​of the differences between historical temperature data from each pair of temperature sensors at each preset time, or...

[0033] The temperature data difference is determined based on the ratio of a first quantity to a second quantity. The first quantity is the number of calculation results where the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time is greater than a second set threshold. The second quantity is the number of calculation results corresponding to the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time.

[0034] Optionally, the electronic device pre-stores a floor plan of the target warehouse, which includes the identification of each installed temperature sensor and the correspondence between their installation locations. The sub-unit is specifically used for:

[0035] In the planar design drawing, temperature sensors whose temperature data difference is less than the first set threshold are displayed in the same preset manner.

[0036] Thirdly, embodiments of the present invention provide an electronic device, the electronic device including a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the steps of the method as described in any embodiment of the first aspect.

[0037] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method as described in any embodiment of the first aspect.

[0038] It should be understood that the second to fourth aspects of the embodiments of the present invention are consistent with the technical solutions of the first aspect of the embodiments of the present invention, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again. [Attached Image Description]

[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 A flowchart illustrating a control method for a temperature sensor provided in an embodiment of this application;

[0041] Figure 2 This is a schematic diagram of a temperature sensor cluster provided in an embodiment of this application;

[0042] Figure 3 A schematic diagram illustrating a temperature data difference calculation rule provided in an embodiment of this application;

[0043] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0044] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

Detailed Implementation Methods

[0045] To better understand the technical solutions in this specification, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0046] It should be understood that the described embodiments are merely some, not all, of the embodiments in this specification. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without inventive effort are within the scope of protection of this specification.

[0047] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0048] Taking community e-commerce as an example, users can place orders for items they need the day before, such as seafood, grains and oils, and fruits; there are no specific restrictions on the type of goods. Merchants will then transport the goods to a warehouse in the user's area in advance for storage, and then distribute them.

[0049] In the aforementioned warehousing process, it is often necessary to divide the storage into zones according to the characteristics of different items. For example, a warehouse can be divided into ambient temperature zones, refrigerated zones, and frozen zones. Seafood is usually stored in the frozen zone, fruits in the refrigerated zone, and grains and oils in the ambient temperature zone. For any given zone, in order to better manage the items stored there, temperature sensors are usually installed to monitor the temperature within that zone, allowing for timely adjustments to the temperature based on the monitoring results.

[0050] The inventors of this application have discovered that when installing temperature sensors in a warehouse, the decision to install the required number of temperature sensors often relies on human experience. This may result in an excessive number of temperature sensors being installed, leading to redundant use and wasted resources.

[0051] In view of this, embodiments of this application provide a control method for temperature sensors. In this method, the temperature sensors installed in a target warehouse are divided into at least one cluster based on the temperature data difference between pairs of temperature sensors. If the temperature data difference between at least two temperature sensors in each cluster is small, then the at least two temperature sensors in each cluster can be considered redundant. Therefore, for each cluster, any one temperature sensor within that cluster can be controlled to be in an active state, while other temperature sensors are in an inactive state. Inactive temperature sensors can be removed from the target warehouse, thereby avoiding redundant use of temperature sensors and saving resources.

[0052] The following detailed description, with reference to the accompanying drawings, illustrates how the electronic device in this application avoids redundant use of temperature sensors. Please refer to... Figure 1 This application provides a method for controlling a temperature sensor. This method can be applied to electronic devices, such as desktop computers, laptops, and servers. No particular limitation is placed on the type of electronic device. The process of this method is described below:

[0053] Step 101: Based on the temperature data difference between each pair of temperature sensors, the installed temperature sensors are divided into at least one cluster. The temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively. Each cluster includes at least two temperature sensors, and the temperature data difference between each pair of temperature sensors in each cluster is less than a first set threshold.

[0054] In the initial state, in order to effectively detect the temperature in various locations within the target warehouse, a large number of temperature sensors can be installed in the target warehouse. In other words, in the initial state, it can be assumed that the temperature sensors in the target warehouse are redundantly used.

[0055] In this embodiment of the application, to avoid redundant use of temperature sensors already installed in the target warehouse, resulting in resource waste, redundant temperature sensors can be removed from the installed temperature sensors. Before this, it is necessary to first identify which of the installed temperature sensors are redundant. It should be understood that whether two temperature sensors are redundant to each other can be measured based on the temperature data difference, which refers to the degree of difference when the two temperature sensors collect temperature data from the target warehouse respectively.

[0056] As one possible implementation, the electronic device can divide the installed temperature sensors into at least one cluster based on the temperature data difference between pairs of temperature sensors. Each cluster can then be considered to include at least two temperature sensors. It should be understood that the temperature data difference between any two temperature sensors grouped into the same cluster is less than a first preset threshold; that is, redundant temperature sensors are grouped into the same cluster.

[0057] The following section provides a detailed explanation of how to divide the installed temperature sensors into at least one cluster based on the temperature data differences between pairs of temperature sensors.

[0058] First, historical temperature data from each temperature sensor installed in the target warehouse can be obtained at preset times within a historical time period. For example, the historical time period can be one day, ten days, or thirty days, and there are no particular restrictions on the time span of the historical time period; the preset times can be the times corresponding to every ten, twenty, or thirty minutes within the historical time period, and there are no particular restrictions on the granularity of the historical temperature data obtained.

[0059] Once the historical temperature data of each installed temperature sensor at each preset time within a historical time period is obtained, the historical temperature data can be input into a hierarchical clustering algorithm. This hierarchical clustering algorithm can automatically determine how many clusters each temperature sensor needs to be divided into, thereby obtaining at least one cluster.

[0060] For example, hierarchical clustering algorithms can determine the temperature data difference between pairs of temperature sensors based on the historical temperature data. On this basis, temperature sensors with a temperature data difference of less than a first set threshold are grouped into a cluster.

[0061] In some embodiments, when the installed temperature sensors are divided into at least one cluster, although the electronic device can output which temperature sensors are assigned to the same cluster, the intuitiveness is weak, and the user cannot establish the relationship between the installation location of each temperature sensor and the formed cluster. Therefore, this application can visually demonstrate the relationship between the installation location of each temperature sensor and the formed cluster, providing the user with a more intuitive display effect.

[0062] As one possible implementation, the electronic device can pre-store a floor plan of the target warehouse, such as a CAD design drawing. This floor plan includes the correspondence between the identification of each temperature sensor and its installation location. Then, temperature sensors with temperature data differences less than a first set threshold can be displayed in the floor plan in the same preset manner, thereby more intuitively showing the correlation between the installation location of each temperature sensor and the cluster division results.

[0063] For example, see Figure 2 The target warehouse contains 8 installed temperature sensors. Using a hierarchical clustering algorithm, these 8 sensors are divided into 3 clusters. The temperature data difference between sensors 1-3 is less than a first set threshold. Therefore, [they can be selected]. Figure 3 Temperature sensors 1-3 are grouped into the same dashed rectangle, meaning they are considered the first cluster. If the temperature data difference between temperature sensors 4-5 is less than a first set threshold, then... Figure 3 Temperature sensors 4-5 are grouped into the same dashed rectangle, meaning they are considered part of the second cluster. If the temperature data difference between temperature sensors 6-8 is less than a first set threshold, then... Figure 3 Temperature sensors 6-8 are grouped into the same dashed rectangle, meaning that temperature sensors 6-8 are considered to be in the third cluster.

[0064] It should be understood that the representation of a cluster is not limited to a rectangular frame; it can also be a circular frame. Of course, clusters can also be distinguished intuitively by different colors and different text labels. No special restrictions are imposed here.

[0065] The following section details the rules used to determine the temperature data difference between two temperature sensors:

[0066] Rule 1: The temperature data difference between two temperature sensors can be measured more accurately by averaging the absolute values ​​of the differences between the historical temperature data of two temperature sensors at each preset time.

[0067] For example, see Figure 3If, within the historical time period, at time T1, temperature sensor 1 collects a temperature of 25.6°C and temperature sensor 2 collects a temperature of 26.3°C, the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 is 0.7; at time T2, temperature sensor 1 collects a temperature of 26.3°C and temperature sensor 2 collects a temperature of 26.8°C, the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 is 0.5; at time T3, temperature sensor 1 collects a temperature of 27.2°C and temperature sensor 2 collects a temperature of 27.8°C, the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 is 0.6; at time T4, ... Temperature sensor 1 collects a temperature of 28.4°C, and temperature sensor 2 collects a temperature of 29.2°C. The absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 is 0.8. Therefore, the average absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 from T1 to T4 is 0.65, which means that the temperature data difference between temperature sensor 1 and temperature sensor 2 is 0.65. If the first set threshold is 1, then the temperature data difference between temperature sensor 1 and temperature sensor 2 is less than the first set threshold. Therefore, the temperature data difference between temperature sensor 1 and temperature sensor 2 can be considered small, and temperature sensor 1 and temperature sensor 2 should be classified into the same cluster.

[0068] Rule 2: The difference in temperature data between two temperature sensors can be measured more accurately by the ratio of the first number of calculation results where the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time is greater than the second set threshold, and the second number of calculation results corresponding to the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time.

[0069] For example, please continue to see Figure 3During the historical time period, at time T1, temperature sensor 1 collected a temperature of 25.6°C, temperature sensor 2 collected a temperature of 26.3°C, and the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 was 0.7°C; at time T2, temperature sensor 1 collected a temperature of 26.3°C, temperature sensor 2 collected a temperature of 26.8°C, and the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 was 0.5°C; at time T3, temperature sensor 1 collected a temperature of 27.2°C, temperature sensor 2 collected a temperature of 27.8°C, and the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 was 0.6°C; at time T4, temperature sensor 1 collected a temperature of 28.4°C, temperature sensor 2 collected a temperature of 29.2°C, and the absolute value of the temperature difference between temperature sensor 1 and temperature sensor 2 was 0.8°C. If the first set threshold is 0.5 and the second set threshold is 0.75, then among the four sets of calculation results (the second number is 4) corresponding to the absolute value of the temperature difference from time T1 to time T4, only one set of calculation results is greater than the second set threshold (the first number is 1). That is, the absolute value of the temperature difference at time T4 is greater than the second set threshold. Then the ratio of the first number to the second number is 0.25, that is, the temperature data difference between temperature sensor 1 and temperature sensor 2 is 0.25, which is less than the first set threshold of 0.5. Therefore, it can be considered that the temperature data difference between temperature sensor 1 and temperature sensor 2 is small, and temperature sensor 1 and temperature sensor 2 should be classified into one cluster.

[0070] It should be understood that Rules 1 and 2 above can be used individually or together when clustering the installed temperature sensors, and there are no special restrictions here.

[0071] Step 102: Control at least one temperature sensor in each cluster to be in working condition.

[0072] In this embodiment of the application, after the installed temperature sensors are divided into at least one cluster, since the at least two temperature sensors in the same cluster can be considered redundant, only one temperature sensor needs to be retained for each cluster. This ensures the effective detection of temperature data in the target warehouse and avoids redundant use of temperature sensors.

[0073] In one possible implementation, the electronic device can control any one temperature sensor within at least one cluster to be in an active state, while other temperature sensors are in an off state. Subsequent personnel can then remove the off temperature sensors from the target warehouse. It should be understood that the electronic device has a communicative connection with each temperature sensor already installed in the target warehouse.

[0074] Please see Figure 4Based on the same inventive concept, this application provides an electronic device that is communicatively connected to various temperature sensors installed in a target warehouse. The electronic device includes a partitioning unit 201 and a control unit 202.

[0075] The partitioning unit 201 is used to partition the installed temperature sensors into at least one cluster based on the temperature data difference between two temperature sensors; wherein the temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively, each cluster includes at least two temperature sensors, and the temperature data difference between two temperature sensors in each cluster is less than a first set threshold.

[0076] Control unit 202 is used to control any temperature sensor in at least one cluster to be in working state.

[0077] Optionally, the partitioning unit 201 includes:

[0078] The acquisition subunit is used to acquire historical temperature data of each temperature sensor installed in the target warehouse at each preset time within a historical time period;

[0079] Obtain sub-units to input historical temperature data into a hierarchical clustering algorithm to obtain at least one cluster.

[0080] Optionally, obtaining sub-units includes:

[0081] A sub-unit is defined to determine the temperature data difference between any two temperature sensors based on historical temperature data.

[0082] The sub-unit is used to divide temperature sensors whose temperature data difference is less than a first set threshold into a cluster.

[0083] Optionally, the temperature data difference is determined based on the average of the absolute values ​​of the differences between historical temperature data from each pair of temperature sensors at each preset time, or...

[0084] The temperature data difference is determined based on the ratio of a first quantity to a second quantity. The first quantity is the number of calculation results where the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time is greater than a second set threshold. The second quantity is the number of calculation results corresponding to the absolute value of the difference between the historical temperature data of two temperature sensors at each preset time.

[0085] Optionally, the electronic device pre-stores a floor plan of the target warehouse, which includes the identification of each installed temperature sensor and its corresponding installation location. The sub-units are specifically used for:

[0086] In the plan view, temperature sensors with temperature data differences less than a first set threshold are displayed using the same preset method.

[0087] Please see Figure 5 Based on the same inventive concept, embodiments of this application provide an electronic device, which includes at least one processor 301. The processor 301 is used to execute a computer program stored in a memory to implement the functions provided in embodiments of this application. Figure 1 The steps of the control method for the temperature sensor shown are as follows.

[0088] Optionally, the processor 301 may be a central processing unit, a specific ASIC, or one or more integrated circuits used to control program execution.

[0089] Optionally, the electronic device may further include a memory 302 connected to at least one processor 301. The memory 302 may include ROM, RAM, and disk storage. The memory 302 stores data required for the processor 301 to run, i.e., it stores instructions executable by at least one processor 301. The at least one processor 301 executes instructions stored in the memory 302 to perform tasks such as... Figure 1 The method is shown. The number of memories 302 is one or more. The memories 302 are in... Figure 5 It is shown together, but it should be noted that memory 302 is not a mandatory functional module, therefore in Figure 5 It is shown in dashed lines.

[0090] The physical devices corresponding to both the partitioning unit 201 and the control unit 202 can be the aforementioned processor 301. This electronic device can be used to execute... Figure 1 The method provided in the illustrated embodiment. Therefore, regarding the functions that each functional module in this electronic device can achieve, please refer to... Figure 1 The corresponding descriptions in the illustrated embodiments will not be repeated here.

[0091] This application embodiment also provides a computer storage medium, wherein the computer storage medium stores computer instructions, which, when executed on a computer, cause the computer to perform actions such as... Figure 1 The method described.

[0092] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

Claims

1. A control method for a temperature sensor, characterized in that, Applied to electronic devices that are communicatively connected to various temperature sensors already installed in a target warehouse, the method includes: Based on the temperature data difference between two temperature sensors, the installed temperature sensors are divided into at least one cluster; the temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively, each cluster includes at least two temperature sensors, and the temperature data difference between two temperature sensors in each cluster is less than a first set threshold. Controlling any temperature sensor within each of the at least one cluster to be in a working state; The method of dividing the installed temperature sensors into at least one cluster based on the temperature data difference between each pair of temperature sensors includes: Obtain historical temperature data of each temperature sensor installed in the target warehouse at each preset time within a historical time period; The historical temperature data is input into a hierarchical clustering algorithm to obtain at least one cluster; Based on the historical temperature data, determine the temperature data difference between each pair of temperature sensors; Temperature sensors whose temperature data difference is less than the first set threshold are grouped into a cluster; The temperature data difference is determined based on the average of the absolute values ​​of the differences in historical temperature data from each temperature sensor at each preset time, or... The temperature data difference is determined based on the ratio of a first quantity and a second quantity. The first quantity is the number of calculation results where the absolute value of the difference between the historical temperature data of each pair of temperature sensors at each preset time is greater than a second set threshold. The second quantity is the number of calculation results corresponding to the absolute value of the difference between the historical temperature data of each pair of temperature sensors at each preset time. The electronic device pre-stores a floor plan of the target warehouse, which includes the correspondence between the identifiers and installation locations of each installed temperature sensor. The step of grouping temperature sensors with temperature data differences less than a first set threshold into a cluster includes: The temperature sensor whose temperature data difference is less than the first preset threshold is displayed in the same preset manner in the planar design drawing.

2. An electronic device, characterized in that, The electronic device is communicatively connected to each temperature sensor already installed in the target warehouse, and includes: A partitioning unit is used to divide the installed temperature sensors into at least one cluster based on the temperature data difference between two temperature sensors; the temperature data difference is used to characterize the degree of difference when two temperature sensors collect temperature data of the target warehouse respectively, each cluster includes at least two temperature sensors, and the temperature data difference between two temperature sensors in each cluster is less than a first set threshold. A control unit is used to control any temperature sensor in each of the at least one clusters to be in a working state. The partitioning unit includes: The acquisition subunit is used to acquire historical temperature data of each temperature sensor installed in the target warehouse at each preset time within a historical time period; Obtain a sub-unit, which is used to input the historical temperature data into a hierarchical clustering algorithm to obtain the at least one cluster; The obtained subunit includes: A determination subunit is used to determine the temperature data difference between each pair of temperature sensors based on the historical temperature data; The sub-unit is used to group temperature sensors whose temperature data difference is less than the first set threshold into a cluster; The temperature data difference is determined based on the average of the absolute values ​​of the differences in historical temperature data from each temperature sensor at each preset time, or... The temperature data difference is determined based on the ratio of a first quantity and a second quantity. The first quantity is the number of calculation results where the absolute value of the difference between the historical temperature data of each pair of temperature sensors at each preset time is greater than a second set threshold. The second quantity is the number of calculation results corresponding to the absolute value of the difference between the historical temperature data of each pair of temperature sensors at each preset time. The electronic device pre-stores a floor plan of the target warehouse, which includes the identification of each installed temperature sensor and its corresponding installation location. The sub-unit division is specifically used for: The temperature sensor whose temperature data difference is less than the first preset threshold is displayed in the same preset manner in the planar design drawing.

3. An electronic device, characterized in that, The method includes at least one processor and a memory connected to the at least one processor, wherein the at least one processor is configured to implement the steps of the method as claimed in claim 1 when executing a computer program stored in the memory.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in claim 1.

Citation Information

Patent Citations

  • Soil moisture status determining method and apparatus

    CN105825433A