Data collection method and device for communication-constrained Internet of Things nodes in industrial environments

Through the K-medoids clustering algorithm and the method of dynamically selecting cluster heads, the sensor nodes are clustered and the communication links are optimized, which solves the problems of low data transmission efficiency and short node life in the industrial Internet of Things environment, and achieves efficient data collection. and long-lived sensor networks.

CN117939563BActive Publication Date: 2024-09-03SHANDONG COMP SCI CENTNAT SUPERCOMP CENT IN JINAN +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410145361.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-09-03
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

In the complex industrial Internet of Things environment, abnormal communication links and environmental factors between sensor nodes lead to low data transmission efficiency and shortened node life. Existing clustering algorithms cannot effectively deal with these problems.

Method used

The K-medoids clustering algorithm is used to cluster sensor nodes, and the optimal communication link is screened according to the signal-to-noise ratio, and cluster head nodes are dynamically selected to optimize data transmission, reduce data loss and extend node life.

Benefits of technology

It improves the data collection efficiency of sensor nodes, reduces data loss caused by communication problems, and extends the service life of nodes, providing a new method for large-scale wireless sensor networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117939563B
    Figure CN117939563B
Patent Text Reader

Abstract

The present invention belongs to the technical field of Internet of Things data collection, and more specifically, relates to a data collection method and device for communication-restricted Internet of Things nodes in an industrial environment. The method comprises: S1, a given node data set and preset parameters, the preset parameters comprising a node coverage radius R, a node coverage rate C and an initial number of cluster heads K; S2, based on the given node data set and the preset parameters, all sensor nodes in the node data set are divided into K clusters using a K-medoids clustering algorithm; S3, the total node coverage rate C' of the K clusters is calculated, if the total node coverage rate C' is greater than the given node coverage rate C, then step S4 is executed, if the total node coverage rate C' is less than or equal to the given node coverage rate C, then the given initial number of cluster heads K is increased by one, and step S2 is repeated; S4, it is determined whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node, if there is: the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node is screened, and the member node of the data to be sent is controlled to transmit its data to the corresponding target cluster head node through the optimal communication link. The present invention solves the problem that the existing method cannot ensure the establishment of an effective communication link between nodes during the data transmission process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Internet of Things data collection, and more specifically, relates to a data collection method and device for communication-restricted Internet of Things nodes in an industrial environment. Background Art

[0002] As an important part of the Internet of Things, sensor nodes are deployed in large numbers in monitoring areas to form wireless sensor networks to monitor environmental changes in real time. However, in some monitoring tasks in special industrial environments, due to geographical factors such as buildings or meteorological factors such as rain, snow, and hail, the communication conditions between sensors in a certain area of ​​the data collection scene may be poor, affecting the transmission efficiency of data between sensors.

[0003] In addition, as the scale of nodes continues to expand, the method of using multi-hop communication between sensor nodes to transmit data to the base station increases the probability of encountering communication link anomalies, further affecting the data transmission efficiency between sensors, and the increase in the number of multi-hop communications between nodes will reduce their service life. Therefore, the method of using multi-hop communication between sensor nodes cannot effectively cope with the increasing data collection tasks and communication conditions that change with the environment.

[0004] Clustering is an unsupervised learning method that does not require pre-labeled training data and is applicable to many practical scenarios. Its goal is to divide the samples in the data set into similar groups, so that the samples in the same group have a high similarity, while the similarity between different groups is low. The K-medoids clustering algorithm first randomly selects a representative object for each cluster; the remaining objects are assigned to the nearest cluster according to their distance from the representative object, and then the representative object is repeatedly replaced by a non-representative object to improve the quality of clustering. The quality of the clustering result is estimated by a cost function, which is used to evaluate the average dissimilarity between the object and its reference object. Using this algorithm to reasonably divide the nodes in the wireless sensor network into multiple clusters, the nodes in the cluster send data to the cluster head node to realize data collection of the nodes in the same cluster, and then use other methods to collect data from the cluster head node, such as using drones to collect data, is an effective way to solve the above problems, and has important research value and practical application significance.

[0005] In the prior art, Chinese patent document CN108684066A discloses a wireless sensor network clustering method based on K-medoids. According to the structure of the wireless sensor network, the coordinates of the center position of the wireless sensor network are obtained and the coordinates of the initial clustering points are determined; the sensor nodes are divided into clusters with the nearest initial clustering points, and the absolute error E is calculated; a common node is selected to replace a clustering point for re-clustering and the absolute error is calculated, and compared with the absolute error of the previous round, if the absolute error is reduced, the clustering result is retained, otherwise, the replacement is not accepted, and the search for common nodes continues; the coordinates of the new clustering points are calculated according to the divided clusters until all nodes are replaced once, and the clustering result is obtained. This method reduces the energy consumption of each sensor and prolongs the overall survival time of the wireless sensor network.

[0006] And, Chinese patent document CN111263324A discloses a wireless sensor network compressed sensing processing method based on K-medoids clustering, which uses K-medoids clustering method to cluster sensor nodes of wireless sensor network; secondly, compressed sensing technology is used to compress and sample the sensing data of nodes in the cluster. In this process, the original data collected by the node is first sparsely processed, an ID is assigned to each node in the cluster, and a pseudo-random number is generated with the ID as Seed to form a sampling matrix. The cluster head node transmits the compressed sampled measurement data, and finally the base station uses a reconstruction algorithm to reconstruct the original data. This method can cluster the wireless sensor network more reasonably, thereby reducing the energy consumption of data transmission in the cluster. The compressed sensing technology can restore the original signal with high accuracy at a low sampling rate, thereby improving the efficiency and confidentiality of information transmission.

[0007] However, although clustering algorithms are expected to enhance the efficiency of data transmission, they cannot ensure the establishment of effective communication links between nodes during the data transmission process. Therefore, in the complex industrial Internet of Things environment, there is still a lack of an effective solution that can reduce the information loss caused by environmental factors on node data collection. Summary of the invention

[0008] The present invention aims to overcome at least one defect of the above-mentioned prior art and provide a data collection method for communication-restricted Internet of Things nodes in an industrial environment, which is used to improve the data collection rate of sensor nodes and extend the service life of the nodes.

[0009] The present invention also discloses a device loaded with a data collection method for communication-restricted Internet of Things nodes in an industrial environment.

[0010] The detailed technical scheme of the present invention is as follows:

[0011] A data collection method for communication-constrained Internet of Things nodes in an industrial environment, the method comprising:

[0012] Step S1, given a node data set and preset parameters, wherein the node data set contains all sensor nodes in the monitoring area, and the preset parameters include a node coverage radius R, a node coverage rate C, and an initial cluster head number K;

[0013] Step S2: based on the given node data set and preset parameters, using the K-medoids clustering algorithm to divide all sensor nodes in the node data set into K clusters, wherein each of the obtained clusters contains a target cluster head node and several member nodes;

[0014] Step S3, based on the number of all sensor nodes covered by the K clusters, calculate the total node coverage rate C' of the K clusters, and compare the total node coverage rate C' of the K clusters with the given node coverage rate C: if the total node coverage rate C' of the K clusters is greater than the given node coverage rate C, execute step S4; if the total node coverage rate C' of the K clusters is less than or equal to the given node coverage rate C, increase the given initial number of cluster heads K by one, and repeat step S2;

[0015] Step S4, determining whether there is an intermediate member node between the member node to be sent and its corresponding target cluster head node, if so: calculating the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node to be sent to its corresponding target cluster head node, so as to screen the optimal communication link between the member node to be sent and its corresponding target cluster head node, and controlling the member node to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link;

[0016] If not present: controlling the member node of the data to be sent to directly transmit the data to the corresponding target cluster head node.

[0017] Preferably, according to the present invention, step S2 specifically includes:

[0018] S21, input data: input the given initial number of cluster heads K and the node data set into the K-medoi ds clustering algorithm;

[0019] S22, assigning nodes: for each sensor node, using the Euclidean distance algorithm to assign it to the cluster where the nearest initial cluster head node is located, to obtain K initial clusters, wherein the initial cluster head node is obtained by random selection;

[0020] S23, update cluster head: for each cluster, calculate the average dissimilarity of each sensor node in the cluster, and select the sensor node with the smallest average dissimilarity as the new cluster head node;

[0021] S24, iterative cluster allocation: repeating steps S22 to S23 until the updated cluster head node remains unchanged or a predetermined number of iterations is reached;

[0022] S25. Output result: output the divided K clusters and the corresponding K target cluster head nodes.

[0023] Preferably, according to the present invention, step S2 specifically further includes:

[0024] S26, determining the node category: determining the coverage range of each target cluster head node based on the node coverage radius R, if:

[0025] If the coverage ranges of adjacent target cluster head nodes do not overlap, all member nodes in the corresponding cluster are determined as single coverage member nodes; if:

[0026] If the coverage ranges of adjacent target cluster head nodes overlap, all member nodes in the corresponding cluster outside the overlapped range are determined as single-coverage member nodes, and all member nodes in the corresponding cluster within the overlapped range are determined as multi-coverage member nodes;

[0027] The single-coverage member node corresponds to one target cluster head node, and the multi-coverage member node corresponds to multiple target cluster head nodes.

[0028] Preferably, in step S23, the calculation of the average dissimilarity of each sensor node in the cluster specifically includes: calculating the dissimilarity of all sensor nodes in each cluster to other sensor nodes in the cluster, and obtaining the average value of all dissimilarity, that is, obtaining the average dissimilarity of each sensor node in each cluster as:

[0029]

[0030] In formula (1): P(C i , p j ) represents cluster C i Internal node p j The average dissimilarity of cluster C i The number of nodes in d(p j , p k ) represents node p j and node p k The distance measure between them is the Euclidean distance.

[0031] Preferably, according to the present invention, in step S23, the sensor node with the smallest average dissimilarity is selected as the new cluster head node, specifically:

[0032]

[0033] In formula (2): pm Indicates the new cluster head node.

[0034] Preferably, according to the present invention, in step S3, based on the number of all sensor nodes covered by the K clusters, the total node coverage rate C′ of the K clusters is calculated, specifically:

[0035]

[0036] In formula (3), q represents the number of all sensor nodes covered by K clusters; Q represents the number of all sensor nodes in the node data set.

[0037] Preferably, in step S4, calculating the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node to send data to its corresponding target cluster head node specifically includes:

[0038] S41, using a logarithmic distance path loss model to describe the signal propagation between adjacent sensor nodes when there is no direct path, and calculating the path loss of the logarithmic distance path loss model, that is:

[0039]

[0040] In formula (4), PL(d) represents the path loss at the signal propagation distance d; PL o represents the path loss at the reference distance d0, which is usually taken as 1 meter; n represents the path loss exponent, which usually depends on the environmental conditions; X f represents the environmental attenuation factor;

[0041] S42, calculate the antenna gain of each sensor node, that is:

[0042]

[0043] In formula (5): G h represents the antenna gain of the sensor node; A e It represents the equivalent aperture area of ​​the antenna in square meters;

[0044] S43, calculating the signal-to-noise ratio between adjacent sensor nodes based on the path loss of the logarithmic distance path loss model and the antenna gain of each sensor node, that is:

[0045] SNR(dB)=PL(d)+G h -N (6);

[0046] In formula (6), SNR (dB) represents the signal-to-noise ratio between two adjacent sensor nodes; N represents the noise level.

[0047] Preferably, according to the present invention, in step S4, for the single coverage member node, its data is transmitted to the corresponding target cluster head node by direct communication or by communication through the optimal communication link.

[0048] Preferably, according to the present invention, in step S4, for the multi-coverage member nodes, an optimal target cluster head node is determined according to the optimal communication link, and its data is transmitted to the selected optimal target cluster head node by direct communication or communication through the optimal communication link.

[0049] In another aspect of the present invention, a device for implementing a data collection method for communication-restricted Internet of Things nodes in an industrial environment is provided, the device comprising:

[0050] An input module is used to input a given node data set and preset parameters, wherein the node data set includes all sensor nodes in the monitoring area, and the preset parameters include a node coverage radius R, a node coverage rate C, and an initial cluster head number K;

[0051] A clustering module, for dividing all sensor nodes in the node data set into K clusters using a K-medoids clustering algorithm based on the given node data set and preset parameters, wherein each of the obtained clusters includes a target cluster head node and a plurality of member nodes;

[0052] A verification module, for calculating the total node coverage C' of the K clusters based on the number of all sensor nodes covered in the K clusters, and comparing the total node coverage C' of the K clusters with a given node coverage C: if the total node coverage C' of the K clusters is greater than the given node coverage C, executing step S4; if the total node coverage C' of the K clusters is less than or equal to the given node coverage C, adding one to the given initial number of cluster heads K, and repeating step S2;

[0053] The execution module is used to determine whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node. If so, the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node is calculated to screen the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node, and control the member node of the data to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link; if not, control the member node of the data to be sent to directly transmit its data to the corresponding target cluster head node.

[0054] Compared with the prior art, the present invention has the following beneficial effects:

[0055] (1) The present invention provides a data collection method for communication-constrained Internet of Things nodes in an industrial environment. The K-medoids clustering algorithm is used to cluster all sensor nodes in the monitoring area. Then, it is determined whether there is an intermediate member node between the member node to be sent and its corresponding target cluster head node. If so, the channel condition is given priority, and the optimal communication link is selected according to the real-time environment to transmit the data to the corresponding target cluster head node, thereby reducing data loss caused by communication problems, maximizing the amount of data collected, and extending the service life of the sensor nodes.

[0056] (2) Based on the data collection of wireless sensor networks in industrial environments, the present invention uses the K-medoids clustering algorithm and the method of dynamically selecting cluster heads to establish an optimization problem with the goal of maximizing the amount of data collected in the scene, providing a new method for data collection in large-scale wireless sensor networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a flow chart of the data collection method for communication-restricted Internet of Things nodes in an industrial environment described in the present invention.

[0058] Figure 2 It is a schematic diagram of clustering of large-scale nodes in Embodiment 1 of the present invention.

[0059] Figure 3 This is a schematic diagram of member node categories in Example 1 of the present invention.

[0060] Figure 4 It is a comparison chart of data collection rates using the method of the present invention and other existing methods in Example 1 of the present invention. DETAILED DESCRIPTION

[0061] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0062] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0063] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0064] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0065] The large-scale deployment of sensor nodes places higher demands on the communication system, such as improving data transmission efficiency and better coverage. Especially in some typical industrial scenarios, the environmental data obtained through the monitoring of sensor nodes needs to be transmitted to decision makers as completely and timely as possible, which is crucial to the accuracy and reliability of the measures taken.

[0066] In view of the defects of information loss caused by environmental factors in the existing Internet of Things data transmission methods, the present invention provides a sensor node data collection method that integrates K-medoids clustering algorithm and dynamic cluster head selection method, named DSK-medoids. Based on the data collection of wireless sensor networks in industrial environments, the method uses K-medoids clustering algorithm and dynamic cluster head selection method to establish an optimization problem with the goal of maximizing the amount of data collected in the scene.

[0067] By using the DSK-medoids method proposed in the present invention, the data collection efficiency of sensor nodes can be improved, the data loss caused by communication problems can be reduced, and the service life of sensor nodes can be extended, providing a new method for data collection in large-scale wireless sensor networks.

[0068] The data collection method and device for communication-restricted IoT nodes in an industrial environment of the present invention will be further described below in conjunction with specific embodiments.

[0069] Embodiment 1,

[0070] Ginseng Figure 1 This embodiment provides a data collection method for communication-restricted IoT nodes in an industrial environment, the method comprising:

[0071] Step S1: Given a node data set and preset parameters, wherein the node data set includes all sensor nodes in a monitoring area, and the preset parameters include a node coverage radius R, a node coverage rate C, and an initial cluster head number K.

[0072] In this embodiment, the location information of all sensor nodes in the monitoring area is known.

[0073] In this embodiment, the given initial number of cluster heads K is used to determine that all sensor nodes in the monitoring area are divided into K clusters, each of which has a cluster head node. The given node coverage radius R is used to determine the coverage range of each cluster head node. The given node coverage rate C can be used in subsequent steps to verify whether the clustering results of all sensor nodes in the monitoring area are reasonable, so as to adjust the node clustering results in real time according to the operating conditions.

[0074] Step S2: Based on the given node data set and preset parameters, all sensor nodes in the node data set are divided into K clusters using a K-medoids clustering algorithm, wherein each of the obtained clusters includes a target cluster head node and several member nodes.

[0075] Specific reference Figure 2 It is known that the given preset parameters include the initial number of cluster heads K, that is, the expected number of clusters is K, and all sensor nodes in the monitoring area constitute a node data set. Based on this, in step S2, all sensor nodes in the node data set are divided into K clusters using the K-medoids clustering algorithm, which specifically includes:

[0076] S21. Input data: input the given initial number of cluster heads K and the node data set into the K-medoids clustering algorithm.

[0077] S22. Allocate nodes: For each sensor node, the Euclidean distance algorithm can be used to allocate it to the cluster where the nearest initial cluster head node is located, so as to obtain K initial clusters; wherein the initial cluster head node is obtained by random selection.

[0078] S23, update cluster head: for each cluster, calculate the average dissimilarity of each sensor node in the cluster, and select the sensor node with the smallest average dissimilarity as the new cluster head node.

[0079] Since the selection of the initial cluster head node is random, and the output goal of the K-medoids clustering algorithm is to minimize the sum of the dissimilarities between all nodes and their nearest center points, it is necessary to select a new cluster head node from all the nodes assigned to each cluster to update the cluster head node of each cluster and finally obtain the target cluster head node.

[0080] Specifically, in step S23, the calculation of the average dissimilarity of each sensor node in the cluster specifically includes: calculating the dissimilarity of all sensor nodes in each cluster to other sensor nodes in the cluster, and calculating the average value of all dissimilarity, that is, obtaining the average dissimilarity of each sensor node in each cluster as:

[0081]

[0082] In formula (1): P(C i , p j ) represents cluster C i Internal node p j The average dissimilarity of cluster C i The number of nodes in d(p j , p k ) represents node pj and node p k The distance measure between them is the Euclidean distance.

[0083] Then select the sensor node with the smallest average dissimilarity as the new cluster head node, specifically:

[0084]

[0085] In formula (2): p m Represents the new cluster head node

[0086] S24, iterative cluster allocation: repeat steps S22 to S23 until the updated cluster head node remains unchanged or a predetermined number of iterations is reached.

[0087] S25. Output result: output the divided K clusters and the corresponding K target cluster head nodes.

[0088] It should be understood that in each allocated cluster, except for its corresponding target cluster head node, the remaining nodes are member nodes.

[0089] Furthermore, the step S2 specifically includes:

[0090] S26, determine the node category: determine the coverage range of each target cluster head node based on the node coverage radius R, if the coverage ranges of adjacent target cluster head nodes do not overlap, then all member nodes in the corresponding cluster are determined as single coverage member nodes; if the coverage ranges of adjacent target cluster head nodes overlap, then all member nodes in the corresponding cluster that are outside the overlap range are determined as single coverage member nodes, and all member nodes in the corresponding cluster that are within the overlap range are determined as multi-coverage member nodes. For details, refer to Figure 3 shown.

[0091] The single coverage member node corresponds to one target cluster head node. When data transmission is performed, the single coverage member node transmits its data to the corresponding target cluster head node.

[0092] The multi-coverage member nodes correspond to multiple target cluster head nodes. When performing data transmission, the multi-coverage member nodes can select an optimal target cluster head node according to channel conditions and transmit their data to the optimal target cluster head node.

[0093] Step S3, based on the number of all sensor nodes covered in the K clusters, calculate the total node coverage C' of the K clusters, and compare the total node coverage C' of the K clusters with the given node coverage C: if the total node coverage C' of the K clusters is greater than the given node coverage C, execute step S4; if the total node coverage C' of the K clusters is less than or equal to the given node coverage C, increase the given initial number of cluster heads K by one, and repeat step S2.

[0094] This step is used to verify whether the cluster allocation result output in step S2 is reasonable according to the given node coverage C. In step S3, based on the number of all sensor nodes covered by the K clusters, the total node coverage C′ of the K clusters is calculated, specifically:

[0095]

[0096] In formula (3), q represents the number of all sensor nodes covered by K clusters; Q represents the number of all sensor nodes in the node data set.

[0097] In this way, the cluster allocation results output by the K-medoids clustering algorithm are continuously iterated and updated until a reasonable clustering result is finally obtained. This not only ensures that all sensor nodes in the monitoring area can be better covered, but also helps to improve the data collection efficiency of the nodes based on reasonable clustering results.

[0098] Step S4, determine whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node. If so, calculate the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node, so as to screen the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node, and control the member node of the data to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link; if not, control the member node of the data to be sent to directly transmit its data to the corresponding target cluster head node.

[0099] In this embodiment, in order to reduce data loss caused by communication problems, when collecting data, channel conditions are given priority according to the real-time environment, and a communication link with good channel conditions is selected for data transmission. Good channel conditions, that is, good channel quality, are proportional to the signal-to-noise ratio, that is, the higher the value of the signal-to-noise ratio, the better the channel quality.

[0100] Based on this, in step S4, the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node to be sent data to its corresponding target cluster head node is calculated to screen the optimal communication link, specifically including:

[0101] S41, using a logarithmic distance path loss model to describe the signal propagation between adjacent sensor nodes when there is no direct path, and calculating the path loss of the logarithmic distance path loss model, that is:

[0102]

[0103] In formula (4), PL(d) represents the path loss at the signal propagation distance d; PL0 represents the path loss at the reference distance d0, which is usually taken as 1 meter; n represents the path loss index, which usually depends on the environmental conditions; X f Represents the environmental attenuation factor.

[0104] It should be understood that the situation where there is no direct path between adjacent sensor nodes may be caused by building shielding or other environmental factors.

[0105] S42, calculate the antenna gain of each sensor node, that is:

[0106]

[0107] In formula (5): G h represents the antenna gain of the sensor node; A e Represents the equivalent aperture area of ​​the antenna in square meters.

[0108] S43, calculating the signal-to-noise ratio between adjacent sensor nodes based on the path loss of the logarithmic distance path loss model and the antenna gain of each sensor node, that is:

[0109] SNR(dB)=PL(d)+G h -N (6);

[0110] In formula (6), SNR (dB) represents the signal-to-noise ratio between two adjacent sensor nodes; N represents the noise level, which can be obtained through channel analysis or other measurement tools.

[0111] The higher the SNR value, the better the channel quality. Based on this, the optimal communication link between the member nodes and the target cluster head node can be screened out.

[0112] After the member nodes collect the data, they convert the data into wireless signals through the built-in communication module, and transmit them to the corresponding target cluster head node through the wireless transmission medium when there are no intermediate member nodes; or when there are intermediate member nodes, an optimal communication link is selected by calculating the signal-to-noise ratio between adjacent nodes on each communication link, and the data is transmitted to the corresponding target cluster head node through the optimal communication link.

[0113] Furthermore, in this embodiment, the member nodes are divided into single-coverage member nodes and multi-coverage member nodes according to the coverage range of the target cluster head node of each cluster.

[0114] Among them, for a single coverage member node, it corresponds to a target cluster head node, then during data transmission, the following situations may exist:

[0115] 1) If there is no intermediate member node between the single coverage member node to be sent and its corresponding target cluster head node, direct communication can be used to transmit its data to its corresponding target cluster head node, thereby completing the data aggregation task.

[0116] 2) If there is an intermediate member node between the single coverage member node to be sent and its corresponding target cluster head node, an optimal communication link is selected according to the signal-to-noise ratio, and its data is transmitted to the corresponding target cluster head node through the optimal communication link, thereby completing the data aggregation task.

[0117] For multi-coverage member nodes, there may be two or more corresponding target cluster head nodes. Therefore, for multi-coverage member nodes, in order to improve the efficiency of data transmission, this embodiment provides a method for dynamically selecting cluster heads, so that multi-coverage member nodes can dynamically select links with better communication conditions for data transmission according to environmental conditions (channel conditions). That is, when multi-coverage member nodes transmit data, the following situations may exist:

[0118] 1) If there is no intermediate member node between the multi-coverage member node to be sent and one of the corresponding target cluster head nodes, but there is an intermediate member node between the multi-coverage member node and the corresponding other target cluster head nodes, then in order to reduce data transmission loss, the multi-coverage member node to be sent can give priority to transmitting its data directly to the target cluster head node without intermediate member nodes, thereby completing the data aggregation task.

[0119] 2) If there are no intermediate member nodes between the multi-coverage member node of the data to be sent and the corresponding multiple target cluster head nodes, the signal-to-noise ratio between the multi-coverage member node of the data to be sent and all its corresponding target cluster head nodes is calculated, and the target cluster head node with the largest signal-to-noise ratio value is selected as the optimal target cluster head node. The multi-coverage member node of the data to be sent transmits its data to the optimal target cluster head node, thereby completing the data aggregation task.

[0120] 3) If there are intermediate member nodes between the multi-coverage member node to be sent and the corresponding multiple target cluster head nodes, then in order to reduce data transmission loss, the signal-to-noise ratio between all adjacent nodes on the path from the multi-coverage member node to be sent to all its corresponding target cluster head nodes is also calculated to screen out an optimal communication link. The receiving end of the optimal communication link is the corresponding optimal target cluster head node. The multi-coverage member node to be sent will transmit its data to the corresponding optimal target cluster head node through the optimal communication link, thereby completing the data aggregation task.

[0121] It should be understood that the channel quality is affected by the environment. For example, some areas where sensor nodes are distributed may have poor communication quality. In this case:

[0122] For a single-coverage member node, if there is no intermediate member node between it and its corresponding target cluster head node, it still uses direct communication to transmit its data to the corresponding target cluster head node; if there is an intermediate member node between it and its corresponding target cluster head node, it still uses the method of selecting the optimal communication link to transmit its data to the corresponding target cluster head node;

[0123] For multi-coverage member nodes, assuming that some of their corresponding target cluster head nodes are located in poor communication areas and some of their corresponding target cluster head nodes are located in good communication areas, in order to reduce data transmission losses, the optimal communication link and the corresponding optimal target cluster head node are still mainly determined by calculating the signal-to-noise ratio, and their data are transmitted to the corresponding optimal target cluster head node through the optimal communication link.

[0124] Thus, the method of this embodiment considers the cases of single-coverage member nodes and multi-coverage member nodes respectively. For single-coverage member nodes, data can be transmitted to the corresponding target cluster head node by directly communicating with the target cluster head node or by communicating through the optimal communication link; for multi-coverage member nodes, channel conditions are given priority, the optimal communication link is selected according to the real-time environment, and its data is transmitted to the corresponding optimal target cluster head node, thereby reducing data loss caused by communication problems and maximizing the amount of data collected.

[0125] In this embodiment, the method of this embodiment is compared with the existing method to verify the effectiveness of the method of this embodiment, as shown in the following.

[0126] 1) Design the experimental scenario: Use Python language to set up a simulated wireless sensor network environment, including several sensor nodes randomly distributed in an area of ​​2000*2000m, and randomly generate 6 areas with poor wireless communication quality.

[0127] 2) Deploy the GPSR algorithm (Greedy Perimeter Stateless Routing, routing algorithm), K-medodis algorithm (traditional clustering algorithm) and DSK-medoids algorithm (method of this embodiment): deploy the GPSR, K-medodis and DSK-medoids algorithms to the designed experimental scenarios respectively. Ensure that they run in exactly the same environment.

[0128] 3) Performance metric: Packet collection rate: The ratio of sent packets successfully received by the target node.

[0129] 4) Data analysis: According to Figure 4 , and conduct statistical analysis. Figure 4 A comparison chart of data collection rates using the method of this embodiment and other existing methods is shown.

[0130] GPSR algorithm: The data rate shows a gradual downward trend as the number of nodes increases from 50 to 400. This may be because the GPSR algorithm is not flexible enough in dealing with communication barrier areas, resulting in a decrease in data transmission efficiency when the number of nodes increases.

[0131] K-medoids algorithm: The data rate is relatively stable with little fluctuation when the number of nodes increases from 50 to 400. The K-medoids algorithm is more stable in data transmission efficiency than GPSR, but may have certain limitations in the case of high-density nodes.

[0132] DSK-medoids algorithm: The data yield is high and the change trend is small when the number of nodes increases from 50 to 400. The DSK-medoids algorithm shows high data transmission efficiency under different numbers of nodes, showing strong adaptability to communication barrier areas.

[0133] 5) Conclusion and discussion: In general, the DSK-medoids algorithm performs better than GPSR and K-medoids in data transmission efficiency, especially in high-density node scenarios. This is because the DSK-medoids algorithm introduces a dynamic cluster head selection mechanism, which enables the network to adjust more flexibly when facing communication problems and reduces the number of multi-hop transmissions, thereby improving the data collection efficiency of sensor nodes, reducing data loss, and extending the service life of nodes.

[0134] In summary, according to the data collection method for communication-restricted IoT nodes in an industrial environment of this embodiment, the K-medoids clustering algorithm is used to cluster all sensor nodes in the monitoring area, and then it is determined whether there is an intermediate member node between the member node to be sent and its corresponding target cluster head node. If so, the channel condition is given priority, and the optimal communication link is selected according to the real-time environment to transmit the data to the corresponding target cluster head node, thereby reducing data loss caused by communication problems, maximizing the amount of data collection, and extending the service life of the sensor nodes.

[0135] Embodiment 2,

[0136] This embodiment provides a device for implementing a data collection method for communication-restricted IoT nodes in an industrial environment, the device comprising:

[0137] The input module is used to input a given node data set and preset parameters, wherein the node data set contains all sensor nodes in the monitoring area, and the preset parameters include the node coverage radius R, the node coverage rate C, and the initial cluster head number K2

[0138] A clustering module, for dividing all sensor nodes in the node data set into K clusters using a K-medoids clustering algorithm based on the given node data set and preset parameters, wherein each of the obtained clusters includes a target cluster head node and a plurality of member nodes;

[0139] A verification module, for calculating the total node coverage C' of the K clusters based on the number of all sensor nodes covered in the K clusters, and comparing the total node coverage C' of the K clusters with a given node coverage C: if the total node coverage C' of the K clusters is greater than the given node coverage C, executing step S4; if the total node coverage C' of the K clusters is less than or equal to the given node coverage C, adding one to the given initial number of cluster heads K, and repeating step S2;

[0140] The execution module is used to determine whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node. If so, the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node is calculated to screen the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node, and control the member node of the data to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link; if not, control the member node of the data to be sent to directly transmit its data to the corresponding target cluster head node.

[0141] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A data collection method for communication-constrained Internet of Things nodes in an industrial environment, characterized in that: The method comprises: S1. Given a node data set and preset parameters, wherein the node data set contains all sensor nodes in the monitoring area, and the preset parameters include a node coverage radius R, a node coverage rate C, and an initial number of cluster heads K; S2, based on the given node data set and preset parameters, using K-medoids clustering algorithm to divide all sensor nodes in the node data set into K clusters, wherein each of the obtained clusters contains a target cluster head node and several member nodes; S3, based on the number of all sensor nodes covered by the K clusters, calculate the total node coverage rate C' of the K clusters, and compare the total node coverage rate C' of the K clusters with the given node coverage rate C: if the total node coverage rate C' of the K clusters is greater than the given node coverage rate C, execute step S4; if the total node coverage rate C' of the K clusters is less than or equal to the given node coverage rate C, add one to the given initial number of cluster heads K, and repeat step S2; S4, determine whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node, if there is: calculate the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node, so as to screen the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node, and control the member node of the data to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link; wherein, calculating the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node specifically includes: S41, using a logarithmic distance path loss model to describe the signal propagation between adjacent sensor nodes when there is no direct path, and calculating the path loss of the logarithmic distance path loss model, that is: In formula (4), PL(d) represents the path loss at the signal propagation distance d; PL0 represents the path loss at the reference distance d0, which is usually taken as 1 meter; n represents the path loss index, which usually depends on the environmental conditions; X f represents the environmental attenuation factor; S42, calculate the antenna gain of each sensor node, that is: In formula (5): G h represents the antenna gain of the sensor node; A e represents the equivalent aperture area of ​​the antenna in square meters; λ represents the wavelength of the signal; S43, calculating the signal-to-noise ratio between adjacent sensor nodes based on the path loss of the logarithmic distance path loss model and the antenna gain of each sensor node, that is: SNR(dB)=PL(d)+G h -N (6); In formula (6), SNR (dB) represents the signal-to-noise ratio between two adjacent sensor nodes; N represents the noise level; If not present: controlling the member node of the data to be sent to directly transmit the data to the corresponding target cluster head node.

2. The data collection method for communication-constrained IoT nodes in an industrial environment according to claim 1, characterized in that: The step S2 specifically includes: S21, input data: input the given initial number of cluster heads K and the node data set into the K-medoids clustering algorithm; S22, assigning nodes: for each sensor node, using the Euclidean distance algorithm to assign it to the cluster where the nearest initial cluster head node is located, to obtain K initial clusters, wherein the initial cluster head node is obtained by random selection; S23, update cluster head: for each cluster, calculate the average dissimilarity of each sensor node in the cluster, and select the sensor node with the smallest average dissimilarity as the new cluster head node; S24, iterative cluster allocation: repeating steps S22 to S23 until the updated cluster head node remains unchanged or a predetermined number of iterations is reached; S25. Output result: output the divided K clusters and the corresponding K target cluster head nodes.

3. The data collection method for communication-restricted IoT nodes in an industrial environment according to claim 2, characterized in that: The step S2 specifically includes: S26, determining the node category: determining the coverage range of each target cluster head node based on the node coverage radius R, if: If the coverage ranges of adjacent target cluster head nodes do not overlap, all member nodes in the corresponding cluster are determined as single coverage member nodes; if: If the coverage ranges of adjacent target cluster head nodes overlap, all member nodes in the corresponding cluster outside the overlapped range are determined as single-coverage member nodes, and all member nodes in the corresponding cluster within the overlapped range are determined as multi-coverage member nodes; The single-coverage member node corresponds to one target cluster head node, and the multi-coverage member node corresponds to multiple target cluster head nodes.

4. The data collection method for communication-restricted IoT nodes in an industrial environment according to claim 2, characterized in that: In step S23, the calculation of the average dissimilarity of each sensor node in the cluster specifically includes: calculating the dissimilarity of all sensor nodes in each cluster to other sensor nodes in the cluster, and calculating the average value of all dissimilarity, that is, obtaining the average dissimilarity of each sensor node in each cluster as: In formula (1): P(C i , p j ) represents cluster C i Internal node p j The average dissimilarity of cluster C i The number of nodes in d(p j , p k ) represents node p j and node p k The distance measure between them is the Euclidean distance.

5. The data collection method for communication-restricted IoT nodes in an industrial environment according to claim 4, characterized in that: In step S23, the sensor node with the smallest average dissimilarity is selected as the new cluster head node, specifically: In formula (2): p m Indicates the new cluster head node.

6. The data collection method for communication-constrained IoT nodes in an industrial environment according to claim 1, characterized in that: In step S3, based on the number of all sensor nodes covered by the K clusters, the total node coverage rate C′ of the K clusters is calculated, specifically: In formula (3), q represents the number of all sensor nodes covered by K clusters; Q represents the number of all sensor nodes in the node data set.

7. The data collection method for communication-restricted IoT nodes in an industrial environment according to claim 3, characterized in that: In the step S4, for the single coverage member node, its data is transmitted to the corresponding target cluster head node by direct communication or by communication through the optimal communication link.

8. The data collection method for communication-constrained IoT nodes in an industrial environment according to claim 3, characterized in that: In step S4, for the multiple coverage member nodes, an optimal target cluster head node is determined according to the optimal communication link, and data is transmitted to the selected optimal target cluster head node by direct communication or communication via the optimal communication link.

9. A device for implementing a data collection method for communication-restricted Internet of Things nodes in an industrial environment, characterized in that: The device comprises: An input module is used to input a given node data set and preset parameters, wherein the node data set includes all sensor nodes in the monitoring area, and the preset parameters include a node coverage radius R, a node coverage rate C, and an initial cluster head number K; A clustering module, for dividing all sensor nodes in the node data set into K clusters using a K-medoids clustering algorithm based on the given node data set and preset parameters, wherein each of the obtained clusters includes a target cluster head node and a plurality of member nodes; A verification module, for calculating the total node coverage C' of the K clusters based on the number of all sensor nodes covered in the K clusters, and comparing the total node coverage C' of the K clusters with a given node coverage C: if the total node coverage C' of the K clusters is greater than the given node coverage C, executing step S4; if the total node coverage C' of the K clusters is less than or equal to the given node coverage C, adding one to the given initial number of cluster heads K, and repeating step S2; The execution module is used to determine whether there is an intermediate member node between the member node of the data to be sent and its corresponding target cluster head node. If there is an intermediate member node, the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node is calculated to screen the optimal communication link between the member node of the data to be sent and its corresponding target cluster head node, and control the member node of the data to be sent to transmit its data to the corresponding target cluster head node through the optimal communication link; wherein, calculating the signal-to-noise ratio between all adjacent sensor nodes on the path from the member node of the data to be sent to its corresponding target cluster head node specifically includes: S41, using a logarithmic distance path loss model to describe the signal propagation between adjacent sensor nodes when there is no direct path, and calculating the path loss of the logarithmic distance path loss model, that is: In formula (4), PL(d) represents the path loss at the signal propagation distance d; PL0 represents the path loss at the reference distance d0, which is usually taken as 1 meter; n represents the path loss index, which usually depends on the environmental conditions; X f represents the environmental attenuation factor; S42, calculate the antenna gain of each sensor node, that is: In formula (5): G h represents the antenna gain of the sensor node; A e represents the equivalent aperture area of ​​the antenna in square meters; λ represents the wavelength of the signal; S43, calculating the signal-to-noise ratio between adjacent sensor nodes based on the path loss of the logarithmic distance path loss model and the antenna gain of each sensor node, that is: SNR(dB)=PL(d)+G h -N (6); In formula (6), SNR (dB) represents the signal-to-noise ratio between two adjacent sensor nodes; N represents the noise level; If not present: controlling the member node of the data to be sent to directly transmit the data to the corresponding target cluster head node.