A method for optimizing transmission of multimodal monitoring data of Internet of Things
By dynamically analyzing the denoising degree of the internal temperature data of cold chain transportation vehicles, and using the optimal number of neighborhood data sets for denoising processing, the problem of poor denoising effect caused by the fixed neighborhood range is solved, and the transmission of temperature data is improved. Quality and analytical accuracy.
Patent Information
- Application Number
- CN202410822568.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In the existing technology, the denoising effect is poor due to the fixed neighborhood range in the internal temperature data transmission of cold chain transportation vehicles, which affects the compression transmission effect and analysis application of the data.
By collecting temperature data and humidity data, the neighborhood data set of temperature data at each moment is dynamically obtained, the initial noise level and global noise level of the temperature data are analyzed, and denoising is performed based on the optimal number, and finally the denoised Data is compressed and transmitted.
It improves the denoising effect and transmission quality of temperature data, ensures the accuracy and reliability of data, and is suitable for real-time monitoring and analysis of temperature data in cold chain transportation.
Smart Images

Figure CN118376284B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method for optimizing transmission of multimodal monitoring data of the Internet of Things. Background Art
[0002] In cold chain transportation, the temperature data inside the cold chain transportation vehicle is extremely important. Many products in the cold chain transportation vehicle, such as food, medicine, biological products, etc., are very sensitive to temperature. Recording the temperature inside the cold chain transportation vehicle can ensure that the product is always within a safe temperature range during the entire transportation process to avoid product corruption, deterioration or failure. Therefore, the temperature data inside the cold chain transportation vehicle is detected and stored and transmitted to the cloud so that relevant staff can promptly confirm the temperature environment inside the cold chain transportation vehicle and deal with abnormal situations in a timely manner.
[0003] Before the temperature data inside the cold chain transport vehicle is transmitted, the collected temperature data may contain noise, which interferes with the statistical characteristics of the data, affects the compression transmission effect of the data and the subsequent analysis and application. Therefore, before the temperature data inside the cold chain transport vehicle is transmitted, it is particularly important to denoise the temperature data. The existing data denoising method is based on the analysis of the noise level of the data within a fixed neighborhood range of each temperature data. The fixed neighborhood range leads to poor data denoising effect, which in turn makes the transmission effect of the temperature data poor. Summary of the invention
[0004] In order to solve the technical problem that the existing method has poor transmission effect on temperature data, the purpose of the present invention is to provide an optimized transmission method for multimodal monitoring data of the Internet of Things. The technical solution adopted is as follows:
[0005] Collect temperature data and humidity data at different times within a set time period in a cold chain transport vehicle, and obtain a neighborhood data set of temperature data at each time according to the distribution of temperature data at each time; the neighborhood data set of temperature data at each time includes at least two;
[0006] According to the change between each two adjacent temperature data within the preset neighborhood range of the temperature data at each moment, and the change between the humidity data at the corresponding moment of the temperature data, the initial noise level of the temperature data at each moment is obtained;
[0007] According to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood of the temperature data, and the initial noise level, the global noise level of the temperature data at each moment within the preset neighborhood is obtained;
[0008] Obtaining the optimal number of temperature data at each moment according to the difference between the temperature data within a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution within the preset neighborhood range and the global noise level;
[0009] Denoising the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets;
[0010] The denoised temperature data is compressed and transmitted.
[0011] Preferably, obtaining the initial noise level of the temperature data at each moment according to the change between each adjacent two temperature data within a preset neighborhood range of the temperature data at each moment and the change between the humidity data at the corresponding moment of the temperature data specifically includes:
[0012] Arrange the temperature data at all times within the set time period in a set order to obtain a temperature arrangement sequence;
[0013] The temperature data at any moment is recorded as the target temperature data, and the temperature data adjacent to the target temperature data in the temperature arrangement sequence is recorded as the target reference data; the difference between the target temperature data and the target reference data is recorded as the data characteristic difference of the target temperature data;
[0014] Obtaining an influence coefficient of the target temperature data according to the data characteristic difference and the difference between the humidity data at the time corresponding to the target temperature data and the humidity data at the time corresponding to the target reference data;
[0015] Taking the target temperature data as the center, a first preset number of temperature data in the temperature arrangement sequence constitutes a neighborhood range sequence of the target temperature data;
[0016] The initial noise level of the target temperature data is obtained according to the difference between the target temperature data and the mean of all temperature data in the neighborhood range sequence, and the difference between the influence coefficient of the target temperature data and the mean of the influence coefficient of all temperature data in the neighborhood range sequence.
[0017] Preferably, the calculation formula for the initial noise level of the target temperature data is specifically:
[0018] ;
[0019] in, is the initial noise level of the target temperature data, and also represents the initial noise level of the xth temperature data in the temperature arrangement sequence; is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; is the target reference data, and also represents the x-1th temperature data in the temperature arrangement sequence; Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data; Indicates the humidity data at the time corresponding to the xth temperature data in the temperature arrangement sequence. Indicates the humidity data at the time corresponding to the x-1th temperature data in the temperature arrangement sequence. The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, The r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, It represents the humidity data at the time corresponding to the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence. represents the humidity data at the time corresponding to the r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, Norm ( ) represents the linear normalization function, and All represent preset hyperparameters.
[0020] Preferably, the step of obtaining the global noise level of the temperature data at each moment within the preset neighborhood range according to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data, and the initial noise level, specifically includes:
[0021] Obtaining a first characteristic coefficient according to a difference between the target temperature data and each temperature data in the neighborhood range sequence, and a time interval between the target temperature data and each temperature data in the neighborhood range sequence;
[0022] Obtaining a second characteristic coefficient according to the difference between the data characteristic difference value of the target temperature data and the data characteristic difference value of each temperature data in the neighborhood range sequence, and the time interval between the target temperature data and each temperature data in the neighborhood range sequence;
[0023] According to the initial noise level of the target temperature data, the first characteristic coefficient and the second characteristic coefficient, the global noise level of the target temperature data within a preset neighborhood range is obtained.
[0024] Preferably, the calculation formula for the global noise level of the target temperature data within a preset neighborhood range is specifically:
[0025] ;
[0026] in, is the global noise level of the target temperature data within the preset neighborhood, Indicates the data characteristic difference of the xth temperature data in the temperature arrangement sequence, The data characteristic difference of the sth temperature data in the neighborhood range sequence of the xth temperature data, Represents the time interval between the xth temperature data and the sth temperature data in the neighborhood range sequence of the xth temperature data, is the initial noise level of the target temperature data, is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the sth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence.
[0027] Preferably, obtaining the optimal number of temperature data at each moment according to the difference between the temperature data within a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution within the preset neighborhood range and the global noise level, specifically includes:
[0028] The first coefficient is obtained according to the difference between each temperature data in the neighborhood range sequence of the target temperature data and the mean of all temperature data in the neighborhood range sequence of the target temperature data; the second coefficient is obtained according to the quantity distribution of temperature data corresponding to the value greater than or less than the mean of all temperature data in the neighborhood range sequence of the target temperature data; the adjustment coefficient of the target temperature data is obtained according to the first coefficient, the second coefficient and the global noise level;
[0029] According to the adjustment coefficient of the target temperature data, the preset initial quantity is adjusted to obtain the optimal quantity of the target temperature data.
[0030] Preferably, the calculation formula of the adjustment coefficient of the target temperature data is specifically:
[0031] ;
[0032] in, is the adjustment coefficient of the target temperature data, and also represents the adjustment coefficient of the xth temperature data in the temperature arrangement sequence. is the global noise level of the target temperature data within the preset neighborhood, Represents the kth temperature data in the neighborhood range sequence of the target temperature data, Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data, Indicates that the temperature data in the neighborhood range sequence of the target temperature data is greater than The number of Indicates that the temperature data in the neighborhood range sequence of the target temperature data is less than The number of The number of temperature data contained in the neighborhood range sequence of the target temperature data. are the preset hyperparameters.
[0033] Preferably, the step of adjusting the preset initial quantity according to the adjustment coefficient of the target temperature data to obtain the optimal quantity of the target temperature data specifically includes:
[0034] The product of the adjustment coefficient and the preset initial quantity is calculated and rounded to obtain the optimal quantity of target temperature data.
[0035] Preferably, the denoising process is performed on the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets, specifically comprising:
[0036] For the temperature data at any moment, obtain the normalized value of the mean of the global noise level within the optimal number of neighborhood data sets corresponding to the temperature data to obtain the noise coefficient of the temperature data at that moment; and eliminate the temperature data whose noise coefficient within the set time period is greater than or equal to the preset noise threshold.
[0037] Preferably, the step of obtaining a neighborhood data set of temperature data at each moment according to the distribution of temperature data at each moment specifically includes:
[0038] Taking the target temperature data as the center, in the temperature arrangement sequence, obtain a second preset number of temperature data to constitute the first neighborhood data set of the target temperature data, increase the preset number in sequence according to the set step size, and obtain each neighborhood data set of the target temperature data respectively; the second preset number is less than the first preset number.
[0039] The embodiments of the present invention have at least the following beneficial effects:
[0040] The present invention first obtains the temperature data and humidity data in the cold chain transport vehicle, and obtains the neighborhood data set of the temperature data at each moment. Each neighborhood data set represents a different data range for each temperature data, providing a data basis for subsequent data analysis. Then, the changes between each two adjacent temperature data within the preset neighborhood range of the temperature data at each moment, and the changes between the humidity data at the corresponding moment of the temperature data are analyzed, considering the numerical distribution of temperature under the influence of humidity, and analyzing the changes of adjacent temperature data at the same time. The initial noise degree obtained preliminarily characterizes the possibility that the temperature data is noise, and then the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data are analyzed. Combined with the initial noise degree, the global noise degree is obtained. On the basis of the preliminary analysis, the data difference and time difference between each temperature data and the temperature data within the neighborhood range are further considered, and the evaluation degree of the data distribution within the neighborhood range on the temperature data noise is fully considered. The global noise degree more comprehensively reflects the possibility that the temperature data is noise. Furthermore, based on the global noise level, the difference between the temperature data within the preset neighborhood range of the temperature data at each moment and the overall distribution, as well as the distribution of the temperature data within the preset neighborhood range are analyzed to determine the optimal number, which reflects that a different number of neighborhood ranges are required for noise evaluation of each temperature data, so that the evaluation result is more accurate, that is, the global noise level within the range of the optimal number of neighborhood data sets is used for denoising, so that the denoising effect of the temperature data is better, and thus the transmission effect of the temperature data is better. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a method flow chart of a method for optimizing transmission of multimodal monitoring data of the Internet of Things of the present invention. DETAILED DESCRIPTION
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of an IoT multimodal monitoring data optimization transmission method proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0044] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0045] An embodiment of an optimized transmission method for multimodal monitoring data of the Internet of Things:
[0046] The following is a detailed description of a method for optimizing transmission of multimodal monitoring data of the Internet of Things provided by the present invention in conjunction with the accompanying drawings.
[0047] See also Figure 1 , which shows a method flow chart of a method for optimizing transmission of multimodal monitoring data of the Internet of Things provided by an embodiment of the present invention, the method comprising the following steps:
[0048] Step one: collect temperature data and humidity data at different times in a set time period in a cold chain transport vehicle, and obtain a neighborhood data set of temperature data at each moment according to the distribution of temperature data at each moment; the neighborhood data set of temperature data at each moment includes at least two.
[0049] When temperature data is transmitted during cold chain transportation, noise data may be generated due to the uncertainty of environmental factors and the instability of measuring equipment in a low-temperature environment. The temperature noise data may interfere with the statistical characteristics, compression effects, and subsequent analysis and application processes of the data, so the temperature data needs to be denoised first.
[0050] First, the temperature data and humidity data at different times within the set time period in the cold chain transport vehicle are collected. It should be noted that the purpose of collecting humidity data is to analyze the changes in the temperature data at the corresponding time under the influence of the humidity data at each moment, which can more accurately reflect the noise and abnormal conditions of the temperature data at each moment. Among them, in this embodiment, the length of the set time period is set to 1 hour, and the time interval between two adjacent moments in the set time period is set to 1 second. The implementer can set it according to the specific implementation scenario. That is, each moment in the set time period corresponds to a temperature data and a humidity data. The temperature data can be collected using a temperature sensor, or other methods can be used, such as a thermometer. The humidity data can be collected using a humidity sensor, or other methods can be used, such as a hygrometer. The implementer can choose according to the specific implementation scenario.
[0051] When analyzing the noise situation of the temperature data at each moment, a fixed neighborhood range is used to calculate the noise level of the temperature data at each moment, for example, the signal-to-noise ratio of the temperature data at each moment in the fixed neighborhood range is calculated, and the noise level of the temperature data is analyzed based on the signal-to-noise ratio. Considering that the fixed neighborhood range leads to an inaccurate analysis of the noise level of each temperature data, this embodiment uses a plurality of neighborhood ranges of different lengths to analyze different noise levels for the temperature data at each moment, thereby being able to obtain a more accurate noise level, so that the data denoising effect is better.
[0052] Based on this, it is necessary to first obtain a certain number of data sets of different neighborhood ranges of the temperature data at each moment. That is, according to the distribution of the temperature data at each moment, the neighborhood data set of the temperature data at each moment is obtained; the neighborhood data set of the temperature data at each moment includes at least two. Specifically, the temperature data of all moments within the set time period are arranged in a set order to obtain a temperature arrangement sequence; the temperature data at any moment is recorded as the target temperature data. In the temperature arrangement sequence centered on the target temperature data, a second preset number of temperature data is obtained to constitute the first neighborhood data set of the target temperature data, and the preset number is increased in sequence according to the set step size to obtain each neighborhood data set of the target temperature data respectively.
[0053] In this embodiment, the temperature data are arranged in order from small to large according to their values to obtain a temperature arrangement sequence. In other embodiments, the implementer may also sort them in order from large to small. Taking the i-th temperature data in the temperature arrangement sequence as an example, the value of the second preset number is 31, that is, the first neighborhood data set of the i-th temperature data includes all temperature data from the i-15th temperature data to the i+15th temperature data in the temperature arrangement sequence. If the step length is set to 14, the second neighborhood data set includes all temperature data from the i-22th temperature data to the i+22th temperature data in the temperature arrangement sequence, and then the third neighborhood data set includes all temperature data from the i-29th temperature data to the i+29th temperature data in the temperature arrangement sequence, and so on. Each neighborhood data set of the i-th temperature data is obtained in sequence according to the set step length. In this embodiment, the initial number of neighborhood data sets of each temperature data is set to 10.
[0054] Step 2: According to the change between each two adjacent temperature data within a preset neighborhood range of the temperature data at each moment, and the change between the humidity data at the corresponding moment of the temperature data, the initial noise level of the temperature data at each moment is obtained.
[0055] It should be noted that the neighborhood data set of each temperature data represents the neighborhood range of the temperature data values that are close to each other. Different neighborhood data sets represent different neighborhood ranges of temperature data. In this implementation, the noise level of the temperature data is analyzed by gradually increasing the range. The specific number of different data value ranges selected for the noise level analysis operation needs to be analyzed specifically according to the data distribution of the temperature data at each moment. That is, first, the changes between each adjacent two temperature data within the preset neighborhood range of the temperature data at each moment, and the changes between the humidity data at the corresponding moment of the temperature data are analyzed.
[0056] In this embodiment, the distribution and difference distribution of each temperature data are analyzed within a set range to determine a better range number. First, the target temperature data is taken as the center, and the first preset number of temperature data in the temperature arrangement sequence constitutes a neighborhood range sequence of the target temperature data. Among them, the value of the first preset number is 101, that is, in the temperature arrangement sequence, the target temperature data is taken as the center, and 50 temperature data are selected on the left and right sides of the target temperature data to form a neighborhood range sequence. And it should be noted that the first preset number is greater than the second preset number, that is, when analyzing and determining the subsequent optimal number, it is necessary to ensure an appropriate data range, which is greater than the initial data range when each temperature data is subjected to noise level analysis.
[0057] At the same time, considering that the humidity in the cold chain transport vehicle may have a certain impact on the temperature, we first analyze the numerical performance of each temperature data and the correlation between the change characteristics of the temperature data and humidity data at the same time. There is a certain synchronization between the temperature data at each moment and the corresponding humidity data at the same moment. The higher the temperature, the lower the humidity at the same moment, which means that the synchronization between the temperature data and the humidity data at the same moment is stronger, indicating that the temperature data at this moment is less likely to be a noise point.
[0058] Based on this, the temperature data at any moment is recorded as the target temperature data, and the temperature data adjacent to the target temperature data in the temperature arrangement sequence is recorded as the target reference data; the difference between the target temperature data and the target reference data is recorded as the data feature difference of the target temperature data; the influence coefficient of the target temperature data is obtained according to the data feature difference and the difference between the humidity data at the corresponding moment of the target temperature data and the humidity data at the corresponding moment of the target reference data; the initial noise degree of the target temperature data is obtained according to the difference between the target temperature data and the mean of all temperature data in the neighborhood range sequence, and the difference between the influence coefficient of the target temperature data and the mean of the influence coefficient of all temperature data in the neighborhood range sequence.
[0059] In this embodiment, the xth temperature data in the temperature arrangement sequence is used as the target temperature data, and the x-1th temperature data in the temperature arrangement sequence is used as the target reference data. Then, the calculation formula for the initial noise level of the xth temperature data in the temperature arrangement sequence can be expressed as:
[0060]
[0061] in, is the initial noise level of the target temperature data, and also represents the initial noise level of the xth temperature data in the temperature arrangement sequence; is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; is the target reference data, and also represents the x-1th temperature data in the temperature arrangement sequence; Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data; Indicates the humidity data at the time corresponding to the xth temperature data in the temperature arrangement sequence. Indicates the humidity data at the time corresponding to the x-1th temperature data in the temperature arrangement sequence. The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, The r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, It represents the humidity data at the time corresponding to the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence. represents the humidity data at the time corresponding to the r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, Norm ( ) represents the linear normalization function, and All represent preset hyperparameters.
[0062] In this embodiment, and The value of is 0.1. To prevent the denominator from being 0, the implementer can set the value of the hyperparameter according to the specific implementation scenario, or set the two hyperparameters to different extremely small positive numbers to prevent the denominator from being 0 when calculating the ratio.
[0063] It reflects the difference between the target temperature data and all the temperature data in the neighborhood range sequence as a whole, that is, it characterizes the numerical performance of the target temperature data. The larger its value is, the greater the corresponding initial noise level is, which means that the target temperature data is more likely to be noise.
[0064] is the data characteristic difference of the target temperature data, reflecting the data difference between the xth temperature data and its adjacent previous temperature data. Reflects the difference between the two humidity data at the same time as the temperature data. It characterizes the changes between two adjacent temperature data and the humidity data at the corresponding time, reflects the change of humidity data relative to temperature data, and also reflects the synchronization of temperature data and humidity data at the same time.
[0065] It characterizes the overall change of the data in the neighborhood range sequence of the target temperature data, and then It reflects the difference in the synchronization of each temperature data in the neighborhood range sequence compared to the overall situation. The larger its value is, the greater the possibility that there is noise in the data distribution in the neighborhood range sequence, and thus the greater the possibility that the target temperature data is noise.
[0066] The initial noise level of the temperature data at each moment takes into account the data distribution within the neighborhood of the temperature data, as well as the impact and correlation of humidity data on the temperature data, and reflects the possibility that the temperature data at each moment is noise from the perspective of initial characteristics.
[0067] It should be noted that, considering that the temperature data before a part of the temperature data with smaller data values in the temperature arrangement sequence is insufficient, it is difficult to obtain the neighborhood range sequence of the data, and considering that the temperature data in the cold chain transportation vehicle is normally small, the possibility that the temperature data with smaller values is abnormal or belongs to noise is generally small. Therefore, this embodiment does not perform feature analysis on the temperature data in the temperature arrangement sequence for which the neighborhood range sequence cannot be obtained.
[0068] Step three, according to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data, and the initial noise level, the global noise level of the temperature data at each moment within the preset neighborhood range is obtained.
[0069] Since the initial noise level of the temperature data only considers the changes in the adjacent temperature data within the neighborhood of the temperature data, and does not analyze the differences in the temperature data values within the neighborhood of the temperature data, the data differences and time differences between the temperature data at each moment and each temperature data within the preset neighborhood of the temperature data are analyzed, and adjustments are made based on the initial noise level to obtain a more comprehensive global noise level that characterizes the noise situation of the temperature data.
[0070] A first characteristic coefficient is obtained based on the difference between the target temperature data and each temperature data in the neighborhood range sequence, and the time interval between the target temperature data and each temperature data in the neighborhood range sequence; a second characteristic coefficient is obtained based on the difference between the data characteristic difference of the target temperature data and the data characteristic difference of each temperature data in the neighborhood range sequence, and the time interval between the target temperature data and each temperature data in the neighborhood range sequence; and a global noise degree of the target temperature data within a preset neighborhood range is obtained based on the initial noise degree of the target temperature data, the first characteristic coefficient, and the second characteristic coefficient.
[0071] In this embodiment, the xth temperature data in the temperature arrangement sequence is used as the target temperature data, and the calculation formula of the global noise level of the target temperature data within the preset neighborhood range can be expressed as:
[0072] ;
[0073] in, is the global noise level of the target temperature data within the preset neighborhood, Indicates the data characteristic difference of the xth temperature data in the temperature arrangement sequence, The data characteristic difference of the sth temperature data in the neighborhood range sequence of the xth temperature data, Represents the time interval between the xth temperature data and the sth temperature data in the neighborhood range sequence of the xth temperature data, is the initial noise level of the target temperature data, is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the sth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence.
[0074] The data feature difference can be expressed as , ,in, Indicates the x-1th temperature data in the temperature arrangement sequence. Represents the s-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, It reflects the data difference between the target temperature data and its adjacent temperature data, reflecting The data difference between the temperature data in the neighborhood range sequence and its adjacent temperature data, and then It reflects the difference in data changes between the target temperature data and the temperature data in the neighborhood range sequence. The larger the value, the greater the difference in data changes between the target temperature data and the temperature data in the neighborhood range sequence, which further indicates that the target temperature data may be abnormal. In other words, the larger the corresponding global noise level value, the greater the possibility that the target temperature data is noise.
[0075] It reflects the data difference between the target temperature data and the temperature data in the neighborhood range sequence. The larger its value is, the greater the data difference between the target temperature data and the temperature data in the neighborhood range sequence is, the larger the corresponding global noise level is, and the greater the possibility that the target temperature data is noise.
[0076] The larger the time interval between the target temperature data and the temperature data in the neighborhood range sequence, the larger the sampling distance between the two data, and the lower the noise evaluation weight of the temperature data in the corresponding neighborhood range to the target temperature data. and the second characteristic coefficient The larger the value of is and the larger the value of the initial noise level is, the greater the possibility that the corresponding target temperature data belongs to noise is.
[0077] The global noise level further analyzes the difference between each temperature data and the data within a certain range around it and the difference in data changes based on the initial noise level, which can more comprehensively characterize the possibility that each temperature data belongs to noise.
[0078] Step 4: According to the difference between the temperature data in a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution in the preset neighborhood range and the global noise level, the optimal number of temperature data at each moment is obtained.
[0079] The global noise level of the temperature data at each moment reflects the possibility that each temperature data is noise, considering that the noise evaluation of the temperature data in a relatively fixed and single neighborhood range may be accidental, and then the greater the possibility that the temperature data is noise, the more likely the temperature data is to be noise, the more neighborhood ranges need to be assigned to jointly perform noise evaluation. If the possibility that the temperature data is noise is smaller, it means that the temperature data is relatively stable in the surrounding data changes, and the temperature data with a smaller possibility of being noise only needs to be evaluated in a less distributed neighborhood range. Based on this, the adjustment coefficient corresponding to each temperature data can be obtained according to the difference between the temperature data in the preset neighborhood range of the temperature data at each moment and the overall distribution, as well as the temperature data in the preset neighborhood range and the global noise level, and the initial number of neighborhood ranges is adaptively adjusted using the adjustment coefficient to obtain the optimal number of noise evaluations for each temperature data.
[0080] Specifically, the first coefficient is obtained according to the difference between each temperature data in the neighborhood range sequence of the target temperature data and the mean of all temperature data in the neighborhood range sequence of the target temperature data; the second coefficient is obtained according to the distribution of the number of temperature data corresponding to values greater than or less than the mean of all temperature data in the neighborhood range sequence of the target temperature data; and the adjustment coefficient of the target temperature data is obtained according to the first coefficient, the second coefficient and the global noise level.
[0081] In this embodiment, the xth temperature data in the temperature arrangement sequence is used as the target temperature data, and the calculation formula of the adjustment coefficient of the target temperature data can be expressed as:
[0082] ;
[0083] in, is the adjustment coefficient of the target temperature data, and also represents the adjustment coefficient of the xth temperature data in the temperature arrangement sequence. is the global noise level of the target temperature data within the preset neighborhood, Represents the kth temperature data in the neighborhood range sequence of the target temperature data, Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data, Indicates that the temperature data in the neighborhood range sequence of the target temperature data is greater than The number of Indicates that the temperature data in the neighborhood range sequence of the target temperature data is less than The number of The number of temperature data contained in the neighborhood range sequence of the target temperature data. are the preset hyperparameters.
[0084] In this example, the hyperparameters The value is 0.01, in order to prevent The value of is 0, which affects the overall calculation result. The hyperparameter needs to be set to a very small positive number. The implementer can set other values according to the specific implementation scenario.
[0085] It reflects the difference between the temperature data in the neighborhood range sequence and the overall distribution of the data. The larger the value, the greater the first coefficient The larger the value of , the greater the deviation between the temperature data in the neighborhood range sequence and the overall value, and the larger the corresponding adjustment coefficient.
[0086] Reflects that the temperature data in the neighborhood range sequence is greater than the mean The number and temperature data are less than the mean The smaller the difference between the two, the greater the second coefficient The smaller the value of is, the more uniform the distribution of temperature data in the neighborhood range sequence is, and the closer it is to the mean. The closer it is to , the more regular the distribution of temperature data in the neighborhood range sequence is, and the smaller the corresponding adjustment coefficient is.
[0087] When the global noise level of the target temperature data is greater, the first coefficient is greater and the second coefficient is greater, it means that the target temperature data is more likely to be noise, and the corresponding adjustment coefficient is greater, indicating that the target temperature data needs more neighborhood ranges for different noise evaluations. When the global noise level of the target temperature data is smaller, the first coefficient is smaller and the second coefficient is smaller, it means that the target temperature data is less likely to be noise, and the corresponding adjustment coefficient is smaller, indicating that the target temperature data needs less neighborhood ranges for different noise evaluations.
[0088] Further, according to the adjustment coefficient of the target temperature data, the preset initial number is adjusted to obtain the optimal number of target temperature data. That is, the initial number of the neighborhood range of the temperature data at each moment is adaptively adjusted using the adjustment coefficient, so that a more accurate noise evaluation result for each temperature data can be obtained. Specifically, the product of the adjustment coefficient and the preset initial number is calculated and rounded to obtain the optimal number of target temperature data.
[0089] Among them, in this embodiment, for the target temperature data, the product of the adjustment coefficient of the target temperature data and the preset initial number is calculated, and the product is rounded according to the rounding method to obtain the optimal number of target temperature data. It should be noted that considering that too many initial numbers of neighborhood ranges are likely to cause diversity in the calculation results, the initial number of neighborhood ranges is generally selected to be a smaller value, that is, in this embodiment, the value of the initial number is 10, and the implementer can set it according to the specific implementation scenario.
[0090] Step five: denoising the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets.
[0091] There is an optimal number of temperature data at each moment, which means that obtaining the optimal number of neighborhood ranges for noise evaluation of temperature data is more effective. For example, for temperature data at any moment, the optimal number of temperature data corresponding to the temperature data is 7, and then the 7 neighborhood data sets around the temperature data can be obtained in sequence according to the method for obtaining the neighborhood data set in step 1, and the data range contained in each neighborhood data set is different.
[0092] For the temperature data at any moment, obtain the normalized value of the mean value of the global noise level within the range of the optimal number of neighborhood data sets corresponding to the temperature data, and obtain the noise coefficient of the temperature data at that moment. The calculation of the initial noise level and the global noise level of each temperature data in step 2 and step 3 is performed by performing data analysis within the data range contained in the neighborhood range sequence, and then the global noise level of the temperature data within the data range contained in each neighborhood data set can be calculated according to the same calculation method as step 2 and step 3, and the noise coefficient of the temperature data can be obtained based on the mean value of the global noise level corresponding to the optimal number of neighborhood data sets of the temperature data.
[0093] The noise coefficient of temperature data fully combines the data distribution characteristics of different data ranges around the temperature data, and more accurately reflects the possibility that the temperature data is noise. The larger the value of the noise coefficient, the greater the possibility that the temperature data is noise data. The smaller the value of the noise coefficient, the smaller the possibility that the temperature data is noise.
[0094] Furthermore, the temperature data corresponding to the noise coefficient greater than or equal to the preset noise threshold within the set time period is eliminated. In this embodiment, the value of the noise threshold is 0.7, and the implementer can set it according to the specific implementation scenario. When the noise coefficient of the temperature data is greater than or equal to the noise threshold, it means that the possibility that the temperature data belongs to noise is greater, and the corresponding denoising operation should be performed on it. When the noise coefficient of the temperature data is less than the noise threshold, it means that the possibility that the temperature data belongs to noise is smaller, and the denoising operation is less needed.
[0095] At the same time, considering that the value of the noise coefficient in this embodiment is a normalized value, the value of the noise threshold is (0,1). The closer the value of the noise threshold is to 1, the stricter the standard for noise evaluation of temperature data is, and the closer the value of the noise threshold is to 0, the looser the standard for noise evaluation of temperature data is.
[0096] Step six: compress and transmit the denoised temperature data.
[0097] In this embodiment, after obtaining the denoised temperature data in step 5, the denoised temperature data is compressed using a compression algorithm, and then the compressed temperature data is transmitted to the cloud so that relevant staff can observe the changes in the temperature data in a timely manner. Among them, the method for compressing the denoised temperature data can select common compression algorithms such as Huffman coding and run-length coding.
[0098] An embodiment of a method for denoising multimodal monitoring data of the Internet of Things:
[0099] In cold chain transportation, the temperature data inside cold chain transportation vehicles is of great significance. Many products in cold chain transportation vehicles, such as food, medicine, biological products, etc., are very sensitive to temperature. Recording the temperature inside cold chain transportation vehicles can ensure that the products are always within a safe temperature range throughout the transportation process to avoid product corruption, deterioration or failure. Therefore, it is particularly important to monitor the temperature data inside cold chain transportation vehicles. However, due to the uncertainty of environmental factors and the instability of measuring equipment in low temperature environments, noise data may be generated, which in turn affects the monitoring results, so it is necessary to denoise the temperature data. The existing data denoising method is based on the analysis of the degree of noise in the fixed neighborhood range of each temperature data. The fixed neighborhood range leads to poor data denoising effect.
[0100] In order to solve the technical problem that the existing method has poor denoising effect on temperature data, the purpose of this embodiment is to provide a method for denoising multimodal monitoring data of the Internet of Things. The technical solution adopted is as follows:
[0101] Step one: collect temperature data and humidity data at different times in a set time period in a cold chain transport vehicle, and obtain a neighborhood data set of temperature data at each moment according to the distribution of temperature data at each moment; the neighborhood data set of temperature data at each moment includes at least two.
[0102] Step 2: According to the change between each two adjacent temperature data within a preset neighborhood range of the temperature data at each moment, and the change between the humidity data at the corresponding moment of the temperature data, the initial noise level of the temperature data at each moment is obtained.
[0103] Step three, according to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data, and the initial noise level, the global noise level of the temperature data at each moment within the preset neighborhood range is obtained.
[0104] Step 4: According to the difference between the temperature data in a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution in the preset neighborhood range and the global noise level, the optimal number of temperature data at each moment is obtained.
[0105] Step five: denoising the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets.
[0106] Since steps 1 to 5 have been described in detail in an embodiment of an Internet of Things multimodal monitoring data optimization transmission method, they will not be repeated here.
[0107] The embodiment of the present invention provides a method for denoising multimodal monitoring data of the Internet of Things, which has the following technical effects:
[0108] This embodiment first obtains the temperature data and humidity data in the cold chain transport vehicle, and obtains the neighborhood data set of the temperature data at each moment. Each neighborhood data set represents a different data range for each temperature data, providing a data basis for subsequent data analysis. Then, the changes between each two adjacent temperature data within the preset neighborhood range of the temperature data at each moment, and the changes between the humidity data at the corresponding moment of the temperature data are analyzed, considering the numerical distribution of temperature under the influence of humidity, and analyzing the changes of adjacent temperature data at the same time. The initial noise level obtained preliminarily characterizes the possibility that the temperature data is noise, and then analyzes the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data. Combined with the initial noise level, the global noise level is obtained. On the basis of the preliminary analysis, the data difference and time difference between each temperature data and the temperature data within the neighborhood range are further considered, and the evaluation degree of the data distribution within the neighborhood range on the temperature data noise is fully considered. The global noise level more comprehensively reflects the possibility that the temperature data is noise. Furthermore, based on the global noise level, the difference between the temperature data within the preset neighborhood range of the temperature data at each moment and the overall distribution, as well as the distribution of the temperature data within the preset neighborhood range are analyzed to determine the optimal number, which reflects that each temperature data requires a different number of neighborhood ranges for noise evaluation, so that the evaluation result is more accurate, that is, the global noise level within the range of the optimal number of neighborhood data sets is used for denoising, so that the denoising effect of the temperature data is better.
[0109] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for optimizing transmission of multimodal monitoring data of the Internet of Things, characterized in that: The method comprises the following steps: Collect temperature data and humidity data at different times within a set time period in a cold chain transport vehicle, and obtain a neighborhood data set of temperature data at each time according to the distribution of temperature data at each time; the neighborhood data set of temperature data at each time includes at least two; According to the change between each two adjacent temperature data within the preset neighborhood range of the temperature data at each moment, and the change between the humidity data at the corresponding moment of the temperature data, the initial noise level of the temperature data at each moment is obtained; According to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood of the temperature data, and the initial noise level, the global noise level of the temperature data at each moment within the preset neighborhood is obtained; Obtaining the optimal number of temperature data at each moment according to the difference between the temperature data within a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution within the preset neighborhood range and the global noise level; Denoising the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets; Compress and transmit the denoised temperature data; The step of obtaining the global noise level of the temperature data at each moment within the preset neighborhood range according to the data difference and time difference between the temperature data at each moment and each temperature data within the preset neighborhood range of the temperature data, and the initial noise level, specifically includes: The temperature data at any moment is recorded as the target temperature data, and the first preset number of temperature data in the temperature arrangement sequence with the target temperature data as the center constitutes a neighborhood range sequence of the target temperature data; Obtaining a first characteristic coefficient according to a difference between the target temperature data and each temperature data in the neighborhood range sequence, and a time interval between the target temperature data and each temperature data in the neighborhood range sequence; Obtaining a second characteristic coefficient according to the difference between the data characteristic difference value of the target temperature data and the data characteristic difference value of each temperature data in the neighborhood range sequence, and the time interval between the target temperature data and each temperature data in the neighborhood range sequence; Obtaining a global noise level of the target temperature data within a preset neighborhood range according to an initial noise level of the target temperature data, a first characteristic coefficient, and a second characteristic coefficient; The calculation formula of the global noise level of the target temperature data within the preset neighborhood range is specifically: ; in, is the global noise level of the target temperature data within the preset neighborhood, Indicates the data characteristic difference of the xth temperature data in the temperature arrangement sequence, The data characteristic difference of the sth temperature data in the neighborhood range sequence of the xth temperature data, Represents the time interval between the xth temperature data and the sth temperature data in the neighborhood range sequence of the xth temperature data. is the initial noise level of the target temperature data, is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the sth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence.
2. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 1, characterized in that: The initial noise level of the temperature data at each moment is obtained according to the change between each adjacent two temperature data within the preset neighborhood range of the temperature data at each moment and the change between the humidity data at the corresponding moment of the temperature data, specifically including: Arrange the temperature data at all times within the set time period in a set order to obtain a temperature arrangement sequence; Record the temperature data adjacent to the target temperature data in the temperature arrangement sequence as target reference data; record the difference between the target temperature data and the target reference data as the data characteristic difference of the target temperature data; Obtaining an influence coefficient of the target temperature data according to the data characteristic difference and the difference between the humidity data at the time corresponding to the target temperature data and the humidity data at the time corresponding to the target reference data; The initial noise level of the target temperature data is obtained according to the difference between the target temperature data and the mean of all temperature data in the neighborhood range sequence, and the difference between the influence coefficient of the target temperature data and the mean of the influence coefficient of all temperature data in the neighborhood range sequence.
3. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 2, characterized in that: The calculation formula of the initial noise level of the target temperature data is specifically: ; in, is the initial noise level of the target temperature data, and also represents the initial noise level of the xth temperature data in the temperature arrangement sequence; is the target temperature data, and also represents the xth temperature data in the temperature arrangement sequence; is the target reference data, and also represents the x-1th temperature data in the temperature arrangement sequence; Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data; Indicates the humidity data at the time corresponding to the xth temperature data in the temperature arrangement sequence. Indicates the humidity data at the time corresponding to the x-1th temperature data in the temperature arrangement sequence. The number of temperature data contained in the neighborhood range sequence of the target temperature data. Represents the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, The r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, It represents the humidity data at the time corresponding to the rth temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence. represents the humidity data at the time corresponding to the r-1th temperature data in the neighborhood range sequence of the xth temperature data in the temperature arrangement sequence, Norm ( ) represents the linear normalization function, and All represent preset hyperparameters.
4. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 2, characterized in that: The step of obtaining the optimal number of temperature data at each moment according to the difference between the temperature data within a preset neighborhood range of the temperature data at each moment and the overall distribution, the temperature data distribution within the preset neighborhood range and the global noise level specifically includes: The first coefficient is obtained according to the difference between each temperature data in the neighborhood range sequence of the target temperature data and the mean of all temperature data in the neighborhood range sequence of the target temperature data; the second coefficient is obtained according to the quantity distribution of temperature data corresponding to the value greater than or less than the mean of all temperature data in the neighborhood range sequence of the target temperature data; the adjustment coefficient of the target temperature data is obtained according to the first coefficient, the second coefficient and the global noise level; According to the adjustment coefficient of the target temperature data, the preset initial quantity is adjusted to obtain the optimal quantity of the target temperature data.
5. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 4 is characterized in that: The calculation formula of the adjustment coefficient of the target temperature data is specifically: ; in, is the adjustment coefficient of the target temperature data, and also represents the adjustment coefficient of the xth temperature data in the temperature arrangement sequence. is the global noise level of the target temperature data within the preset neighborhood, Represents the kth temperature data in the neighborhood range sequence of the target temperature data, Represents the mean of all temperature data in the neighborhood range sequence of the target temperature data, Indicates that the temperature data in the neighborhood range sequence of the target temperature data is greater than The number of Indicates that the temperature data in the neighborhood range sequence of the target temperature data is less than The number of The number of temperature data contained in the neighborhood range sequence of the target temperature data. are the preset hyperparameters.
6. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 4, characterized in that: The step of adjusting the preset initial quantity according to the adjustment coefficient of the target temperature data to obtain the optimal quantity of the target temperature data specifically includes: The product of the adjustment coefficient and the preset initial quantity is calculated and rounded to obtain the optimal quantity of target temperature data.
7. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 1, characterized in that: The denoising process is performed on the temperature data at each moment according to the global noise level of the temperature data at each moment within the range of the optimal number of neighborhood data sets, specifically comprising: For the temperature data at any moment, obtain the normalized value of the mean of the global noise level within the optimal number of neighborhood data sets corresponding to the temperature data to obtain the noise coefficient of the temperature data at that moment; and eliminate the temperature data whose noise coefficient within the set time period is greater than or equal to the preset noise threshold.
8. The method for optimizing transmission of multimodal monitoring data of the Internet of Things according to claim 2, characterized in that: The step of obtaining a neighborhood data set of temperature data at each moment according to the distribution of temperature data at each moment specifically includes: Taking the target temperature data as the center, in the temperature arrangement sequence, obtain a second preset number of temperature data to constitute the first neighborhood data set of the target temperature data, increase the preset number in sequence according to the set step size, and obtain each neighborhood data set of the target temperature data respectively; the second preset number is less than the first preset number.
