CN115219067A - Real-time state monitoring method for garlic storage - Google Patents

Real-time state monitoring method for garlic storage Download PDF

Info

Publication number
CN115219067A
CN115219067A CN202211140311.9A CN202211140311A CN115219067A CN 115219067 A CN115219067 A CN 115219067A CN 202211140311 A CN202211140311 A CN 202211140311A CN 115219067 A CN115219067 A CN 115219067A
Authority
CN
China
Prior art keywords
temperature
temperature value
value
data
segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211140311.9A
Other languages
Chinese (zh)
Other versions
CN115219067B (en
Inventor
周成启
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinxiang County Chengqi Warehousing Service Co ltd
Original Assignee
Jinxiang County Chengqi Warehousing Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinxiang County Chengqi Warehousing Service Co ltd filed Critical Jinxiang County Chengqi Warehousing Service Co ltd
Priority to CN202211140311.9A priority Critical patent/CN115219067B/en
Publication of CN115219067A publication Critical patent/CN115219067A/en
Application granted granted Critical
Publication of CN115219067B publication Critical patent/CN115219067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K3/00Thermometers giving results other than momentary value of temperature
    • G01K3/02Thermometers giving results other than momentary value of temperature giving means values; giving integrated values
    • G01K3/04Thermometers giving results other than momentary value of temperature giving means values; giving integrated values in respect of time
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K3/00Thermometers giving results other than momentary value of temperature
    • G01K3/08Thermometers giving results other than momentary value of temperature giving differences of values; giving differentiated values
    • G01K3/10Thermometers giving results other than momentary value of temperature giving differences of values; giving differentiated values in respect of time, e.g. reacting only to a quick change of temperature

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Temperature (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention relates to a real-time state monitoring method for garlic storage, which belongs to the technical field of data processing and comprises the following steps: collecting temperature time sequence data of each detection position in the garlic storage room in real time, and dividing each data segment into a plurality of subdata segments according to the importance degree of each temperature value; performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment, and subtracting the fitting value of each temperature value from the corresponding temperature value to obtain a first differential sequence corresponding to each sub-data segment; coding and compressing the first differential sequence corresponding to each subdata segment to obtain compressed data of each subdata segment; transmitting the compressed data of each subdata segment to a monitoring control center of the garlic storage room; the invention improves the step of obtaining the differential sequence in the differential reversible variable length coding, and avoids the problem of error propagation caused by the abnormity of the whole differential sequence.

Description

Real-time state monitoring method for garlic storage
Technical Field
The invention relates to the technical field of data processing, in particular to a real-time state monitoring method for garlic storage.
Background
In the garlic storage, a large batch of garlic needs to be stored, wherein the large batch of garlic needs to be monitored periodically during storage so as to ensure that the garlic does not rot or be damaged when being delivered. The storage of garlic receives the temperature influence great, the lower garlic surface frosting that can lead to of temperature, receive the frostbite harm, the higher garlic of temperature sprouts easily, lead to the garlic clove to become dry, influence the quality of garlic, so need monitor the indoor temperature of garlic storage in real time in order to guarantee the quality of garlic, when the monitoring, generally utilize the indoor temperature sensor of storage to carry out the monitoring to the indoor temperature of storage, then the temperature of the indoor different positions of monitoring control center regulation and control garlic storage through the storage.
Because the data of the temperature sensor needs to be transmitted to the monitoring control center and then the temperature in the storage room can be determined by the staff, the transmission method of the temperature data generally adopts the way that the acquired data is directly transmitted to the monitoring control center or the acquired data is compressed by a compression algorithm and then transmitted, but in the prior art, the data compression is generally carried out by adopting differential reversible variable length coding when the data is compressed. In the differential reversible variable length coding in the prior art, a differential method is adopted to obtain a differential sequence by subtracting previous data from next data, if data at a certain position is wrong, the difference between the previous data and the next data can cause the cumulative error of the whole differential sequence, and the error can be propagated in the later period, so that the later-period decoded value is too large to deviate from the original data, and the temperature in the storage room can not be accurately monitored.
Disclosure of Invention
The invention provides a real-time state monitoring method for garlic storage, which improves the step of obtaining a differential sequence in differential reversible variable length coding, adaptively segments data according to the characteristics of collected temperature data in a garlic storage room, obtains a reference value of each segment of data, and subtracts the temperature value of each segment of data from the reference value to obtain the differential sequence of each segment of data, thereby avoiding error propagation caused by accumulated errors in the process of obtaining the differential sequence.
The invention relates to a method for monitoring the real-time state of garlic storage, which adopts the following technical scheme; the method comprises the following steps:
collecting the temperature value of each detection position in the garlic storage room in real time;
forming a temperature time sequence data sequence by temperature values in the same sampling interval of each detection position, converting the temperature time sequence data sequence into a two-dimensional data matrix, establishing a sliding window by taking each temperature value in the two-dimensional data matrix as a center, and calculating the importance degree of each temperature value by using all the temperature values contained in the sliding window;
calculating the temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix;
solving an intersection of the temperature change intervals of all the temperature values, and dividing the temperature values corresponding to the temperature change intervals with the common intersection into a data section to obtain a plurality of data sections;
dividing each data segment into a plurality of subdata segments according to the similarity of adjacent temperature values in each data segment;
performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment, subtracting the fitting value of each temperature value from the corresponding temperature value to obtain a first differential value of each temperature value, and arranging the obtained first differential values corresponding to each temperature value in each sub-data segment according to a time sequence order to obtain a first differential sequence corresponding to each sub-data segment;
coding and compressing the first differential sequence corresponding to each subdata segment to obtain compressed data of each subdata segment;
and transmitting the compressed data of each subdata segment to a garlic storage chamber monitoring control center, decompressing the compressed data by the garlic storage chamber monitoring control center, and acquiring temperature time sequence data of each detection position in the garlic storage chamber in the same sampling interval.
Further, the step of establishing a sliding window by taking each temperature value in the two-dimensional data matrix as a center, and calculating the importance degree of each temperature value by using all temperature values contained in the sliding window comprises:
selecting any temperature value in the two-dimensional data matrix as a target temperature value, and establishing a target sliding window by taking the target temperature value as a center;
calculating a first temperature average value corresponding to the target sliding window by using all temperature values contained in the target sliding window;
calculating a first difference value between each temperature value in the target sliding window and a first temperature average value corresponding to the target sliding window;
calculating the importance degree of the target temperature value by using all the first difference values corresponding to the target sliding window and the quantity of the temperature values in the target sliding window;
and calculating the importance degree of each temperature value according to the importance degree calculation method of the target temperature value.
Further, the step of calculating the temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix includes:
calculating a second temperature average value corresponding to the two-dimensional data matrix by using all temperature values in the two-dimensional data matrix;
acquiring a maximum temperature value in the two-dimensional data matrix, and calculating a second difference value between the corresponding maximum temperature value in the two-dimensional data matrix and a second temperature average value;
calculating the temperature change amplitude corresponding to each temperature value by using the second difference value and the importance degree of each temperature value;
adding the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature upper limit value of the temperature value, and subtracting the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature lower limit value of the temperature value;
and determining the temperature change interval of each temperature value according to the upper temperature limit value and the lower temperature limit value of each temperature value.
Further, the step of solving an intersection of the temperature change intervals of all the temperature values and dividing the temperature values corresponding to the temperature change intervals with the common intersection into one data segment includes:
acquiring a temperature change interval of a first temperature value and a second temperature value in a temperature time sequence data sequence;
if the temperature change interval of the second temperature value is intersected with the temperature change interval of the first temperature value, dividing the second temperature value and the first temperature value into the same section;
acquiring a temperature change interval of a third temperature value in the temperature time sequence data sequence, and if a common intersection exists between the temperature change interval of the third temperature value and the temperature change intervals of the second temperature value and the first temperature value, dividing the third temperature value, the second temperature value and the first temperature value into the same section;
and traversing each temperature value in the temperature time sequence data sequence in sequence, if the temperature value and each temperature value of the category of the previous temperature value have a common intersection, dividing the temperature value and the previous temperature value into the same segment, otherwise, starting to segment again from the temperature value, and taking the temperature value divided into the same segment in the temperature time sequence data sequence as a data segment.
Further, the step of dividing each data segment into a plurality of sub-data segments according to the similarity of adjacent temperature values in each data segment includes:
obtaining a second difference sequence of each data segment by utilizing the difference between the temperature value of the latter temperature value and the temperature value of the former temperature value in every two adjacent temperature values in each data segment;
calculating the similarity of adjacent temperature values in each data segment according to the difference value of two adjacent differential values in the second differential sequence;
and determining the number of a plurality of continuous and adjacent temperature values of which the accumulated similarity is greater than a similarity threshold value by utilizing the similarity of the adjacent temperature values in each data segment, dividing the plurality of continuous and adjacent temperature values of which the similarity is greater than the similarity threshold value into a sub-data segment, and dividing each data segment into a plurality of sub-data segments in the same way.
Further, the step of performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment includes:
the position of each temperature value in each sub data segment in the sub data segment is taken as an abscissa, and the temperature value is taken as an ordinate, so as to obtain a coordinate value of each temperature value in each sub data segment in a two-dimensional coordinate system;
fitting all coordinate values in each subdata segment in a two-dimensional coordinate system to obtain a linear fitting equation;
and substituting each temperature value in each subdata segment into a linear fitting equation to obtain a fitting value of each temperature value in each subdata segment.
Further, the step of encoding and compressing the first differential sequence corresponding to each sub-data segment to obtain compressed data of each sub-data segment includes:
and coding and compressing the first difference sequence corresponding to each sub-data segment by adopting run coding, and obtaining compressed data of each sub-data segment under the condition of storing the slope and intercept of the linear fitting equation corresponding to each sub-data segment.
The beneficial effects of the invention are:
the invention provides a real-time state monitoring method for garlic storage, which is characterized in that according to the characteristics of temperature data in a storage room, a plurality of subdata segments are obtained by carrying out adaptive segmentation on the temperature data acquired by a sensor, and the purpose of carrying out adaptive segmentation on the temperature data is to divide continuous temperature values with large similarity into one subdata segment.
After the plurality of sub data segments are obtained, fitting all data in each sub data segment to obtain a fitting value of each temperature value in each sub data segment, taking the fitting value of each temperature value in each sub data segment as a reference value, and subtracting the reference value from the temperature value of each sub data segment to obtain a difference sequence of each sub data segment; when the differential sequence of data compression is obtained, the differential sequence is obtained without depending on difference of adjacent temperature values, but a fitting value of each temperature value is determined as a reference value, the temperature value of each sub-data segment is subtracted from the reference value to obtain the differential sequence of each sub-data segment, and the differential sequence is obtained by subtracting the temperature value from the reference value, so that the problem that when data propagation errors occur at a certain position, the integral data are propagated due to accumulated errors of the whole differential sequence, and the decoding value at the later stage is deviated from the original data to be overlarge can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating the general steps of a real-time status monitoring method for garlic storage according to an embodiment of the present invention;
FIG. 2 is a diagram showing the position of each temperature value in each sub-data segment in a two-dimensional coordinate system according to the present invention;
FIG. 3 shows a linear fitting equation obtained by fitting all coordinate values in each sub-data segment in a two-dimensional coordinate system.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention relates to a method for monitoring the real-time status of garlic storage, as shown in fig. 1, the method comprises:
s1, collecting the temperature value of each detection position in the garlic storage room in real time.
Owing to deposit regional difference during the garlic storage, the garlic temperature also can have the difference, in order to guarantee that the quality of garlic is the same as far as possible, the temperature of the indoor different positions in regulation and control garlic storage of quick accurate for every position all is in the best storage temperature as long as possible in the garlic storage process, the event arranges temperature sensor in the inside different regions in garlic storage room, gather the temperature data in the garlic storage process, wherein, different detection position both contain the garlic inlayer region and also contain the outer region of garlic. Because a sensor is arranged at each detection position in the garlic storage room, the temperature value of each detection position can be acquired by using the sensor.
And S2, forming a temperature time sequence data sequence by temperature values in the same sampling interval of each detection position, converting the temperature time sequence data sequence into a two-dimensional data matrix, establishing a sliding window by taking each temperature value in the two-dimensional data matrix as a center, and calculating the importance degree of each temperature value by using all the temperature values contained in the sliding window.
According to the invention, after the temperature time sequence data sequence of each detection position is acquired, the importance degree of each temperature value is analyzed. The temperature values in the storage room are similar under the normal condition, the similarity of the temperature values acquired at adjacent moments is larger, in order to increase the correlation among the temperature values, the temperature values in the same sampling interval of each detection position form a temperature time sequence data sequence, and the temperature time sequence data sequence is converted into a two-dimensional data matrix, so that the reference point of the data is prevented from being excessively limited.
When the temperature time sequence data sequence is divided, the temperature time sequence data with the length of N is divided into M temperature substring sequences with the length of N, and the M temperature substring sequences with the length of N after the division are arranged according to the dividing sequence to obtain the temperature substring sequence with the size of N
Figure DEST_PATH_IMAGE001
In the generation of two-dimensional data matrices, i.e. in the generation of
Figure 748284DEST_PATH_IMAGE001
A single analysis is carried out after each temperature time sequence data, i.e. the sampling interval is
Figure 440296DEST_PATH_IMAGE001
And (4) data.
Establishing a sliding window by taking each temperature value in the two-dimensional data matrix as a center, and calculating the importance degree of each temperature value by using all temperature values contained in the sliding window, wherein the steps comprise: selecting any temperature value in the two-dimensional data matrix as a target temperature value, and establishing a target sliding window by taking the target temperature value as a center; calculating a first temperature average value corresponding to the target sliding window by using all temperature values contained in the target sliding window; calculating a first difference value between each temperature value in the target sliding window and a first temperature average value corresponding to the target sliding window; calculating the importance degree of the target temperature value by using all the first difference values corresponding to the target sliding window and the number of the temperature values in the target sliding window; and calculating the importance degree of each temperature value according to the importance degree calculation method of the target temperature value.
The calculation formula of the importance degree of the target temperature value is as follows:
Figure DEST_PATH_IMAGE003
wherein the content of the first and second substances,
Figure 52674DEST_PATH_IMAGE004
indicating the number one contained in a target sliding window established with the target temperature value as the center
Figure DEST_PATH_IMAGE005
A temperature value;
Figure 218470DEST_PATH_IMAGE006
representing a first temperature average value corresponding to a target sliding window;
Figure DEST_PATH_IMAGE007
representing the number of temperature values within the target sliding window;
Figure 523680DEST_PATH_IMAGE008
expressing an exponential function with a natural constant e as a base;
Figure DEST_PATH_IMAGE009
representing the importance of the target temperature value. When the difference between the target temperature value and the neighborhood temperature value is larger, the larger the deviation degree of the target temperature value from the normal is, that is, the more important the target temperature value is, the accuracy of the target temperature value needs to be ensured, and the importance degree of each temperature value is calculated according to the importance degree calculation method of the target temperature value.
And S3, calculating a temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix.
The step of calculating the temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix comprises the following steps: calculating a second temperature average value corresponding to the two-dimensional data matrix by using all temperature values in the two-dimensional data matrix; acquiring a maximum temperature value in the two-dimensional data matrix, and calculating a second difference value between the corresponding maximum temperature value in the two-dimensional data matrix and a second temperature average value; calculating the temperature change amplitude corresponding to each temperature value by using the second difference and the importance degree of each temperature value; adding the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature upper limit value of the temperature value, and subtracting the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature lower limit value of the temperature value; and determining the temperature change interval of each temperature value according to the upper temperature limit value and the lower temperature limit value of each temperature value.
After the importance degree of each temperature value in the two-dimensional data matrix is determined, the data is subjected to self-adaptive segmentation, the important data is expected to be classified into one class, and in order to increase the subsequent compression rate and accelerate the data transmission rate, the difference sequence is expected to be subjected to recompression, so that the temperature values with similar data importance degrees and similar data change trends are expected to be classified into one class. For the temperature value with large importance degree, the data difference which can be accommodated is small, and for the temperature value with small importance degree, the data difference which can be accommodated is large, so the calculation formula of the temperature change interval of each temperature value is as follows:
Figure DEST_PATH_IMAGE011
wherein, the first and the second end of the pipe are connected with each other,
Figure 280152DEST_PATH_IMAGE012
representing a temperature value of
Figure 492959DEST_PATH_IMAGE012
Figure 575578DEST_PATH_IMAGE009
Representing a temperature value
Figure 848427DEST_PATH_IMAGE012
The degree of importance of;
Figure DEST_PATH_IMAGE013
maximum temperature values in the two-dimensional data matrix;
Figure 420092DEST_PATH_IMAGE014
representing a second temperature average value corresponding to the two-dimensional data matrix;
Figure DEST_PATH_IMAGE015
representing a temperature value
Figure 374273DEST_PATH_IMAGE012
Temperature change interval of (2).
Figure 606671DEST_PATH_IMAGE016
The meaning of (a) is that the greater the significance of a temperature value, the more significant it means, i.e. the smaller its allowable temperature variation interval, and conversely the smaller the significance of a temperature value, the less significant it means, i.e. the larger its allowable temperature interval. And obtaining the temperature change interval of each temperature value in the two-dimensional matrix.
And S4, solving an intersection of the temperature change intervals of all the temperature values, and dividing the temperature values corresponding to the temperature change intervals with the common intersection into a data section to obtain a plurality of data sections.
The intersection of the temperature change intervals of all the temperature values is solved, and the step of dividing the temperature values corresponding to the temperature change intervals with the common intersection into a data section comprises the following steps: acquiring a temperature change interval of a first temperature value and a second temperature value in a temperature time sequence data sequence; if the temperature change interval of the second temperature value is intersected with the temperature change interval of the first temperature value, dividing the second temperature value and the first temperature value into the same section; acquiring a temperature change interval of a third temperature value in the temperature time sequence data sequence, and if a common intersection exists between the temperature change interval of the third temperature value and the temperature change intervals of the second temperature value and the first temperature value, dividing the third temperature value, the second temperature value and the first temperature value into the same section; and traversing each temperature value in the temperature time sequence data sequence in sequence, if the temperature value and each temperature value of the type of the previous temperature value have a common intersection, dividing the temperature value and the previous temperature value into the same section, otherwise, starting to segment again from the temperature value, and taking the temperature value divided into the same section in the temperature time sequence data sequence as a data section.
The data are pre-segmented according to the temperature change interval of each temperature value, the acquired temperature data are time sequence data, therefore, the first temperature value in the temperature time sequence data sequence is taken as a reference point, the temperature change interval of the first temperature value is acquired, the temperature change interval of the second temperature value is searched according to the time sequence, and if the temperature change interval of the second temperature value is intersected with the temperature change interval of the first temperature value, the second temperature value and the first temperature value are divided into the same segment. And continuing to search for a third temperature value, and if a common intersection exists between the temperature change interval of the third temperature value and the temperature change intervals of the second temperature value and the first temperature value, dividing the third temperature value, the second temperature value and the first temperature value into the same section.
Continuously searching a fourth temperature value, and if a common intersection exists between the temperature change interval of the fourth temperature value and the temperature change intervals of the third temperature value, the second temperature value and the first temperature value, dividing the fourth temperature value, the third temperature value, the second temperature value and the first temperature value into the same segment; and if the temperature change interval of the fourth temperature value does not have a common intersection with the temperature change interval of any one of the third temperature value, the second temperature value and the first temperature value, starting the segmentation of the first data segment from the fourth temperature value, stopping the segmentation of the second data segment from the fourth temperature value, and taking the temperature value which is divided into the same segment in the temperature time sequence data sequence as one data segment according to the method.
And S5, dividing each data segment into a plurality of sub-data segments according to the similarity of the adjacent temperature values in each data segment.
The step of dividing each data segment into a plurality of sub-data segments according to the similarity of adjacent temperature values in each data segment comprises the following steps: obtaining a second difference sequence of each data segment by utilizing the difference between the temperature value of the latter temperature value and the temperature value of the former temperature value in every two adjacent temperature values in each data segment; calculating the similarity of adjacent temperature values in each data segment according to the difference value of two adjacent differential values in the second differential sequence; and determining the number of a plurality of continuous and adjacent temperature values of which the accumulated similarity is greater than a similarity threshold value by utilizing the similarity of the adjacent temperature values in each data segment, dividing the plurality of continuous and adjacent temperature values of which the similarity is greater than the similarity threshold value into a sub-data segment, and dividing each data segment into a plurality of sub-data segments in the same way.
After the temperature time sequence data sequence is divided into a plurality of data sections, in order to enable the follow-up compression ratio to be larger, each data section needs to be subdivided, as the more similar the variation trends of the data, the more favorable the data recompression is, the more dissimilar the variation trends of the data, the more unfavorable the recompression is, each data section is divided into a plurality of sub-data sections according to the similarity of adjacent temperature values in each data section, and when each data section is divided into a plurality of sub-data sections, the second differential sequence of each data section is firstly obtained as follows:
Figure 50422DEST_PATH_IMAGE018
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE019
representing the difference between the second temperature value and the first temperature value in any data segment;
Figure 174629DEST_PATH_IMAGE020
representing a difference between the third temperature value and the second temperature value;
Figure DEST_PATH_IMAGE021
denotes the first
Figure 198080DEST_PATH_IMAGE022
Individual temperature value and
Figure DEST_PATH_IMAGE023
difference in temperature values. The second difference sequence is obtained in the invention to subdivide each data segment, and the more similar the change trends of the adjacent temperature values, the higher the similarity of the difference values, i.e. the more favorable the recompression is when the temperature values are classified into one class, so the calculation formula of the similarity of the adjacent temperature values in each data segment is as follows:
Figure DEST_PATH_IMAGE025
wherein the content of the first and second substances,
Figure 190044DEST_PATH_IMAGE026
is shown as
Figure DEST_PATH_IMAGE027
A temperature value and a
Figure 273538DEST_PATH_IMAGE028
The difference value of the temperature values, namely two differential sequence values are selected according to the sequence of the differential sequences to carry out data similarity calculation, if the requirement is met, the number of the differential sequences is continuously increased, and when the calculated similarity of a plurality of continuous and adjacent data is obtained
Figure DEST_PATH_IMAGE029
In time, a data similarity threshold is set according to empirical values
Figure 914735DEST_PATH_IMAGE030
Figure DEST_PATH_IMAGE031
When the calculated similarity of a plurality of continuous and adjacent data is smaller than the similarity threshold value, stopping at the moment, classifying the difference values into a class, namely classifying the difference values into a class
Figure 231622DEST_PATH_IMAGE028
The temperature values are subdivided into sub-data segments, and after each data segment is divided into a plurality of sub-data segments, the number of the temperature values in the sub-data segments is at least 2, and at most
Figure 376296DEST_PATH_IMAGE023
At this time, finishing the fine segmentation of each data segment, and dividing each data segment into a plurality of sub-data segments; the similarity of the data calculated by using the difference between two adjacent differential values is that the smaller the difference between two adjacent differential values is, the more similar the temperature values corresponding to the differential values are.
S6, performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment, subtracting the fitting value of each temperature value from the corresponding temperature value to obtain a first differential value of each temperature value, and arranging the obtained first differential values corresponding to each temperature value in each sub-data segment according to a time sequence to obtain a first differential sequence corresponding to each sub-data segment.
The step of performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment comprises the following steps: the position of each temperature value in each sub data segment in the sub data segment is taken as an abscissa, and the temperature value is taken as an ordinate, so as to obtain a coordinate value of each temperature value in each sub data segment in a two-dimensional coordinate system; fitting all coordinate values in each subdata segment in a two-dimensional coordinate system to obtain a linear fitting equation; and substituting each temperature value in each sub data segment into a linear fitting equation to obtain a fitting value of each temperature value in each sub data segment.
In the prior art, when the differential sequence is obtained by adopting differential reversible variable length coding to carry out data compression, the differential sequence is obtained by depending on adjacent data, so that the invention does not depend on the adjacent data when carrying out differential, and a datum data is required to be selected for each data as a differential target in order to avoid error propagation. Constructing a two-dimensional coordinate system by taking the position of each temperature value in each sub-data segment as an abscissa and the temperature value as an ordinate, and obtainingThe coordinate value of each temperature value in each subdata segment in the two-dimensional coordinate system is
Figure 427429DEST_PATH_IMAGE032
As shown in FIG. 2, the position of each temperature value within each sub-data segment in the two-dimensional coordinate system is determined.
As shown in FIG. 3, fitting all coordinate values in each sub-data segment in a two-dimensional coordinate system to obtain a linear fitting equation, and fitting by using the least square method to obtain a linear equation of
Figure DEST_PATH_IMAGE033
And substituting each temperature value in each sub data segment into a linear fitting equation to obtain a fitting value of each temperature value in each sub data segment. The fitting value of each temperature value is subtracted from the corresponding temperature value to obtain a first differential value corresponding to each temperature value, the obtained first differential values corresponding to each temperature value in each sub-data segment are arranged according to a time sequence to obtain a first differential sequence corresponding to each sub-data segment, and a calculation formula of the first differential value corresponding to each temperature value in the first differential sequence is as follows:
Figure DEST_PATH_IMAGE035
wherein the content of the first and second substances,
Figure 992140DEST_PATH_IMAGE036
representing the Rth temperature value in any subdata segment;
Figure DEST_PATH_IMAGE037
a fitting value representing an Rth temperature value in any sub data segment;
Figure 622972DEST_PATH_IMAGE038
a first differential value representing the R-th temperature value in any one of the subsections. Thus, a first differential value sequence corresponding to each sub data segment is obtained:
Figure DEST_PATH_IMAGE039
wherein, in the process,
Figure 825415DEST_PATH_IMAGE040
and indicating the number of the difference values in the first difference value sequence corresponding to the sub data segments.
S7, coding and compressing the first differential sequence corresponding to each subdata segment to obtain compressed data of each subdata segment.
The step of coding and compressing the first differential sequence corresponding to each subdata segment to obtain the compressed data of each subdata segment comprises the following steps: and coding and compressing the first difference sequence corresponding to each sub-data segment by adopting run coding, and obtaining compressed data of each sub-data segment under the condition of storing the slope and intercept of the linear fitting equation corresponding to each sub-data segment.
After the first differential sequence corresponding to each subdata segment is obtained, coding and compressing the first differential sequence corresponding to each subdata segment by adopting run length coding, and simultaneously storing the slope and intercept of a linear fitting equation corresponding to each subdata segment, wherein the slope of the linear fitting equation is used as the slope
Figure DEST_PATH_IMAGE041
For expressing, intercept of, linear fitting equation
Figure 814493DEST_PATH_IMAGE042
And (4) showing. For example: in one of the sub-data sections
Figure DEST_PATH_IMAGE043
The values are:
Figure 367965DEST_PATH_IMAGE044
and the first difference sequence corresponding to the sub data segment is as follows:
Figure DEST_PATH_IMAGE045
the compressed data is
Figure 802489DEST_PATH_IMAGE046
Compression of other sub-segmentsIn the same manner, the header storage of the sub-segment compressed data is
Figure 217027DEST_PATH_IMAGE043
The value, the remaining storage is the first differential sequence value.
S8, transmitting the compressed data of each subdata segment to a garlic storage chamber monitoring control center, decompressing the compressed data by the garlic storage chamber monitoring control center, and acquiring temperature time sequence data of each detection position in the garlic storage chamber in the same sampling interval.
Transmitting the compressed data of each subdata segment to a garlic storage chamber monitoring control center, decompressing the compressed data by the garlic storage chamber monitoring control center, acquiring temperature time sequence data of each detection position in the garlic storage chamber in the same sampling interval, analyzing and calculating the temperature time sequence data of each detection position in the same sampling interval, judging whether the temperature time sequence data of each detection position in the same sampling interval deviates from a normal temperature range, calculating the deviation degree of the deviation from the normal temperature range, determining whether the temperature of each detection position is abnormal according to the deviation degree and the variation trend, determining the detection position with abnormal temperature, and informing garlic storage chamber managers to regulate and control the area with abnormal temperature.
In summary, the present invention provides a real-time status monitoring method for garlic storage, which improves the step of obtaining a difference sequence in a difference reversible variable length code, adaptively segments data according to the characteristics of collected temperature data in a garlic storage room, obtains a reference value of each segment of data, and subtracts the temperature value of each segment of data from the reference value to obtain the difference sequence of each segment of data, thereby avoiding error propagation caused by cumulative errors occurring in obtaining the difference sequence.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A real-time state monitoring method for garlic storage is characterized by comprising the following steps:
collecting the temperature value of each detection position in the garlic storage room in real time;
forming a temperature time sequence data sequence by temperature values in the same sampling interval of each detection position, converting the temperature time sequence data sequence into a two-dimensional data matrix, establishing a sliding window by taking each temperature value in the two-dimensional data matrix as a center, and calculating the importance degree of each temperature value by using all temperature values contained in the sliding window;
calculating the temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix;
solving an intersection of the temperature change intervals of all the temperature values, and dividing the temperature values corresponding to the temperature change intervals with the common intersection into a data section to obtain a plurality of data sections;
dividing each data segment into a plurality of sub-data segments according to the similarity of adjacent temperature values in each data segment;
performing linear fitting on all temperature values in each sub-data segment to obtain a fitting value of each temperature value in each sub-data segment, subtracting the fitting value of each temperature value from the corresponding temperature value to obtain a first differential value of each temperature value, and arranging the obtained first differential values corresponding to each temperature value in each sub-data segment according to a time sequence order to obtain a first differential sequence corresponding to each sub-data segment;
coding and compressing the first differential sequence corresponding to each sub-data segment to obtain compressed data of each sub-data segment;
transmitting the compressed data of each subdata segment to a garlic storage chamber monitoring control center, decompressing the compressed data by the garlic storage chamber monitoring control center, and acquiring temperature time sequence data of each detection position in the garlic storage chamber in the same sampling interval.
2. The real-time status monitoring method for garlic storage according to claim 1, wherein the step of establishing a sliding window with each temperature value in the two-dimensional data matrix as the center, and calculating the importance of each temperature value using all temperature values contained in the sliding window comprises:
selecting any temperature value in the two-dimensional data matrix as a target temperature value, and establishing a target sliding window by taking the target temperature value as a center;
calculating a first temperature average value corresponding to the target sliding window by using all temperature values contained in the target sliding window;
calculating a first difference value between each temperature value in the target sliding window and a first temperature average value corresponding to the target sliding window;
calculating the importance degree of the target temperature value by using all the first difference values corresponding to the target sliding window and the quantity of the temperature values in the target sliding window;
and calculating the importance degree of each temperature value according to the importance degree calculation method of the target temperature value.
3. The method for monitoring the real-time status of garlic storage according to claim 1, wherein the step of calculating the temperature change interval of each temperature value by using the importance degree of each temperature value in the two-dimensional data matrix comprises:
calculating a second temperature average value corresponding to the two-dimensional data matrix by using all temperature values in the two-dimensional data matrix;
acquiring a maximum temperature value in the two-dimensional data matrix, and calculating a second difference value between the corresponding maximum temperature value in the two-dimensional data matrix and a second temperature average value;
calculating the temperature change amplitude corresponding to each temperature value by using the second difference and the importance degree of each temperature value;
adding the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature upper limit value of the temperature value, and subtracting the temperature change amplitude corresponding to each temperature value and the temperature value to be used as the temperature lower limit value of the temperature value;
the temperature change interval of each temperature value is determined by the upper temperature limit value and the lower temperature limit value of each temperature value.
4. The method for monitoring the real-time status of garlic storage according to claim 1, wherein the step of intersecting the temperature variation intervals of all the temperature values and dividing the temperature values corresponding to the temperature variation intervals with the common intersection into a data segment comprises:
acquiring a temperature change interval of a first temperature value and a second temperature value in a temperature time sequence data sequence;
if the temperature change interval of the second temperature value is intersected with the temperature change interval of the first temperature value, dividing the second temperature value and the first temperature value into the same section;
acquiring a temperature change interval of a third temperature value in the temperature time sequence data sequence, and if a common intersection exists between the temperature change interval of the third temperature value and the temperature change intervals of the second temperature value and the first temperature value, dividing the third temperature value, the second temperature value and the first temperature value into the same section;
and traversing each temperature value in the temperature time sequence data sequence in sequence, if the temperature value and each temperature value of the type of the previous temperature value have a common intersection, dividing the temperature value and the previous temperature value into the same section, otherwise, starting to segment again from the temperature value, and taking the temperature value divided into the same section in the temperature time sequence data sequence as a data section.
5. The method for monitoring the real-time status of garlic storage according to claim 1, wherein the step of dividing each data segment into a plurality of sub-data segments according to the similarity of adjacent temperature values in each data segment comprises:
obtaining a second difference sequence of each data segment by utilizing the difference between the temperature value of the latter temperature value and the temperature value of the former temperature value in every two adjacent temperature values in each data segment;
calculating the similarity of adjacent temperature values in each data segment according to the difference value of two adjacent differential values in the second differential sequence;
and determining the number of a plurality of continuous and adjacent temperature values with the accumulated similarity larger than the similarity threshold value by utilizing the similarity of the adjacent temperature values in each data segment, dividing the plurality of continuous and adjacent temperature values with the similarity larger than the similarity threshold value into a sub-data segment, and dividing each data segment into a plurality of sub-data segments in the same way.
6. The method for monitoring the real-time status of garlic storage according to claim 1, wherein the step of performing linear fitting on all temperature values in each sub-data segment to obtain a fitted value of each temperature value in each sub-data segment comprises:
taking the position of each temperature value in each subdata segment in the subdata segment as an abscissa and the temperature value as an ordinate, and obtaining a coordinate value of each temperature value in each subdata segment in a two-dimensional coordinate system;
fitting all coordinate values in each subdata segment in a two-dimensional coordinate system to obtain a linear fitting equation;
and substituting each temperature value in each sub data segment into a linear fitting equation to obtain a fitting value of each temperature value in each sub data segment.
7. The method for monitoring the real-time state of garlic storage according to claim 6, wherein the step of encoding and compressing the first differential sequence corresponding to each sub-data segment to obtain the compressed data of each sub-data segment comprises:
and coding and compressing the first differential sequence corresponding to each subdata segment by adopting run length coding, and obtaining compressed data of each subdata segment under the condition of storing the slope and intercept of the linear fitting equation corresponding to each subdata segment.
CN202211140311.9A 2022-09-20 2022-09-20 Real-time state monitoring method for garlic storage Active CN115219067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211140311.9A CN115219067B (en) 2022-09-20 2022-09-20 Real-time state monitoring method for garlic storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211140311.9A CN115219067B (en) 2022-09-20 2022-09-20 Real-time state monitoring method for garlic storage

Publications (2)

Publication Number Publication Date
CN115219067A true CN115219067A (en) 2022-10-21
CN115219067B CN115219067B (en) 2023-01-03

Family

ID=83617323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211140311.9A Active CN115219067B (en) 2022-09-20 2022-09-20 Real-time state monitoring method for garlic storage

Country Status (1)

Country Link
CN (1) CN115219067B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115792479A (en) * 2023-02-08 2023-03-14 东营市建筑设计研究院 Intelligent power consumption monitoring method and system for intelligent socket
CN116232935A (en) * 2023-02-07 2023-06-06 河南大学 Big data transmission method for monitoring Internet of things
CN116414076A (en) * 2023-06-12 2023-07-11 济宁长兴塑料助剂有限公司 Intelligent monitoring system for recovered alcohol production data
CN117856799A (en) * 2024-03-07 2024-04-09 山东博物馆 Efficient collection and analysis method for exhibition hall smoke detector data

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235115A1 (en) * 2005-08-01 2010-09-16 Thermal Wave Imaging, Inc. Automated Binary Processing of Thermographic Sequence Data
US20110051806A1 (en) * 2009-09-02 2011-03-03 Sony Computer Entertainment Inc. Picture-level rate control for video encoding
CN107463604A (en) * 2017-06-19 2017-12-12 天津科技大学 A kind of time series fixed segments algorithm based on vital point
CN109730678A (en) * 2019-01-28 2019-05-10 常州大学 A kind of multilayer cerebral function network module division methods
JP2020086786A (en) * 2018-11-21 2020-06-04 ファナック株式会社 Detection device and machine learning method
CN111612726A (en) * 2019-02-26 2020-09-01 广州慧睿思通信息科技有限公司 Image data screening method and device, computer equipment and storage medium
CN112765550A (en) * 2021-01-20 2021-05-07 重庆邮电大学 Target behavior segmentation method based on Wi-Fi channel state information
CN112832960A (en) * 2020-12-23 2021-05-25 国电南瑞南京控制系统有限公司 Fan blade icing detection method based on deep learning and storage medium
CN114693110A (en) * 2022-03-29 2022-07-01 杭州安脉盛智能技术有限公司 Abnormity monitoring method and system of energy storage system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235115A1 (en) * 2005-08-01 2010-09-16 Thermal Wave Imaging, Inc. Automated Binary Processing of Thermographic Sequence Data
US20110051806A1 (en) * 2009-09-02 2011-03-03 Sony Computer Entertainment Inc. Picture-level rate control for video encoding
CN107463604A (en) * 2017-06-19 2017-12-12 天津科技大学 A kind of time series fixed segments algorithm based on vital point
JP2020086786A (en) * 2018-11-21 2020-06-04 ファナック株式会社 Detection device and machine learning method
CN109730678A (en) * 2019-01-28 2019-05-10 常州大学 A kind of multilayer cerebral function network module division methods
CN111612726A (en) * 2019-02-26 2020-09-01 广州慧睿思通信息科技有限公司 Image data screening method and device, computer equipment and storage medium
CN112832960A (en) * 2020-12-23 2021-05-25 国电南瑞南京控制系统有限公司 Fan blade icing detection method based on deep learning and storage medium
CN112765550A (en) * 2021-01-20 2021-05-07 重庆邮电大学 Target behavior segmentation method based on Wi-Fi channel state information
CN114693110A (en) * 2022-03-29 2022-07-01 杭州安脉盛智能技术有限公司 Abnormity monitoring method and system of energy storage system and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHUMEI ZHANG等: "Pseudo Time-Slice Construction Using a Variable Moving Window k Nearest Neighbor Rule for Sequential Uneven Phase Division", 《IND. ENG. CHEM. RES.》 *
孙志伟等: "一种基于重要点的时间序列分段算法", 《计算机工程与应用》 *
邓杰航 等: "复杂背景干扰下硅藻图像的深度网络识别与定位", 《J SOUTH MED UNIV》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116232935A (en) * 2023-02-07 2023-06-06 河南大学 Big data transmission method for monitoring Internet of things
CN116232935B (en) * 2023-02-07 2023-12-15 深圳市兴海物联科技有限公司 Big data transmission method for monitoring Internet of things
CN115792479A (en) * 2023-02-08 2023-03-14 东营市建筑设计研究院 Intelligent power consumption monitoring method and system for intelligent socket
CN115792479B (en) * 2023-02-08 2023-05-09 东营市建筑设计研究院 Intelligent power consumption monitoring method and system for intelligent socket
CN116414076A (en) * 2023-06-12 2023-07-11 济宁长兴塑料助剂有限公司 Intelligent monitoring system for recovered alcohol production data
CN116414076B (en) * 2023-06-12 2023-08-15 济宁长兴塑料助剂有限公司 Intelligent monitoring system for recovered alcohol production data
CN117856799A (en) * 2024-03-07 2024-04-09 山东博物馆 Efficient collection and analysis method for exhibition hall smoke detector data
CN117856799B (en) * 2024-03-07 2024-05-31 山东博物馆 Efficient collection and analysis method for exhibition hall smoke detector data

Also Published As

Publication number Publication date
CN115219067B (en) 2023-01-03

Similar Documents

Publication Publication Date Title
CN115219067B (en) Real-time state monitoring method for garlic storage
US7424409B2 (en) Stochastic modeling of time distributed sequences
CN115329910B (en) Intelligent processing method for enterprise production emission data
CN115766607A (en) Data compression transmission method based on 5G Internet of things
CN111782491B (en) Disk failure prediction method, device, equipment and storage medium
CN115333678B (en) Unmanned ship water quality monitoring data transmission method and system
CN116418882B (en) Memory data compression method based on HPLC dual-mode carrier communication
CN117540238A (en) Data security management method for industrial digital information acquisition device
CN117473351B (en) Power supply information remote transmission system based on Internet of things
CN117271987A (en) Intelligent acquisition and processing method for environmental state data of power distribution equipment
CN114817228A (en) Abnormal value removing method for long-time sequence monitoring data of lake water level
CN117291843B (en) Efficient management method for image database
Franchi et al. Statistical properties of the maximum Lyapunov exponent calculated via the divergence rate method
CN117172958B (en) Bean sprout growth real-time data management method
CN117376430B (en) Industrial data rapid transmission method and system based on DCS
CN117171157B (en) Clearing data acquisition and cleaning method based on data analysis
CN117764290A (en) BIM model data management method for hydraulic engineering construction
CN116878590B (en) Intelligent service collaborative operation management system
CN116631563B (en) Big data storage and intelligent matching method for pharmaceutical industry
CN117574307A (en) Security management system and method for data of Internet of things
CN116975503A (en) Soil erosion information management method and system
CN110874601A (en) Method for identifying running state of equipment, and state identification model training method and device
CN114925731A (en) Method for detecting abnormal value of monitoring data of flexible inclinometer
Boubekki et al. Clinically relevant features for predicting the severity of surgical site infections
CN117312255B (en) Electronic document splitting optimization management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A real-time condition monitoring method for garlic storage

Effective date of registration: 20230321

Granted publication date: 20230103

Pledgee: Shandong Jinxiang Lanhai Village Bank Co.,Ltd.

Pledgor: Jinxiang County Chengqi Warehousing Service Co.,Ltd.

Registration number: Y2023980035378