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

Real-time state monitoring method for garlic storage Download PDF

Info

Publication number
CN115219067B
CN115219067B CN202211140311.9A CN202211140311A CN115219067B CN 115219067 B CN115219067 B CN 115219067B CN 202211140311 A CN202211140311 A CN 202211140311A CN 115219067 B CN115219067 B CN 115219067B
Authority
CN
China
Prior art keywords
temperature
temperature value
value
data
sub
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.)
Active
Application number
CN202211140311.9A
Other languages
Chinese (zh)
Other versions
CN115219067A (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)
  • Feedback Control In General (AREA)
  • Control Of Temperature (AREA)

Abstract

The invention relates to a method for monitoring the real-time state of 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 sub-data 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 sub-data segment to obtain compressed data of each sub-data 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 storage of garlic, 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 is not rotten or damaged during delivery. 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 real-time state monitoring method for 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 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 subdata segment to obtain compressed data of each subdata 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.
Further, the step of establishing a sliding window with 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 includes:
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 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 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.
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 sub data segment into a linear fitting equation to obtain a fitting value of each temperature value in each sub data 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 invention has the beneficial effects that:
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 chamber, a plurality of sub-data sections are obtained by carrying out adaptive segmentation processing 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 sub-data section.
After a 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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art 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 invention relates to a method for monitoring the real-time status of garlic storage, as shown in fig. 1, the method comprises the following steps:
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 chamber, the temperature value of each detection position can be collected 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 collected, 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 relevance between 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 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.
The calculation formula of the importance degree of the target temperature value is as follows:
Figure DEST_PATH_IMAGE003
wherein, the first and the second end of the pipe are connected with each other,
Figure 52674DEST_PATH_IMAGE004
representing the second 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
indicating 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 the 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 content of the first and second substances,
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 (1).
Figure 606671DEST_PATH_IMAGE016
The significance of (a) is that a larger significance of a temperature value means that the temperature value is more significant, i.e. the allowable temperature variation interval thereof is smaller, and conversely a smaller significance of a temperature value means that the temperature value is less significant, i.e. the allowable temperature interval thereof is larger. 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 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.
The data are pre-segmented according to the temperature change interval of each temperature value, the acquired temperature data are time sequence data, so that the temperature change interval of the first temperature value is acquired by taking the first temperature value in the temperature time sequence data sequence as a reference point, 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 continuously searching 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 segment.
Continuing to search for 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 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.
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
is shown as
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 first and the second end of the pipe are connected with each other,
Figure 190044DEST_PATH_IMAGE026
denotes the first
Figure DEST_PATH_IMAGE027
Individual temperature value and
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 one class, namely
Figure 231622DEST_PATH_IMAGE028
The temperature values are subdivided into sub-data segments, each data segment is divided into a plurality of sub-data segments, and the temperature values in the sub-data segments areThe number 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 difference values is that the smaller the difference between two adjacent difference values is, the more similar the temperature values corresponding to the difference 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 one datum is required to be selected as a differential target for avoiding error propagation. Constructing a two-dimensional coordinate system by taking the position of each temperature value in each sub data segment in the sub data segment as an abscissa and the temperature value as an ordinate, and acquiring the coordinate value of each temperature value in each sub data segment in the two-dimensional coordinate system as a coordinate value
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 differentiated 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 sub data 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 an R-th temperature value in any one of the sub-data segments. Thus, a first differential value sequence corresponding to each sub-data segment is obtained:
Figure DEST_PATH_IMAGE039
wherein, in the step (A),
Figure 825415DEST_PATH_IMAGE040
the number of the differential values in the first differential value sequence corresponding to the sub data segment is shown.
S7, coding and compressing the first differential sequence corresponding to each sub data segment to obtain compressed data of each sub data 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 respectively:
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
The same compression mode is carried out on other subsections, and the header storage of the subsegment 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 normal temperature range, determining whether the temperature of each detection position is abnormal according to the deviation degree and the change 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 (6)

1. A real-time status 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 the temperature values contained in the sliding window;
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 quantity of the temperature values in the target sliding window; calculating the importance degree of each temperature value according to the importance degree calculation method of the target temperature value;
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 subdata segment to obtain compressed data of each subdata 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 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.
3. The real-time state monitoring method for garlic storage according to claim 1, wherein the step of solving an intersection of temperature change intervals of all temperature values and dividing the temperature values corresponding to the temperature change 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 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.
4. The real-time garlic storage state monitoring method as claimed in 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.
5. 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:
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.
6. The method for monitoring the real-time status of garlic storage according to claim 5, 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 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.
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 CN115219067A (en) 2022-10-21
CN115219067B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116232935B (en) * 2023-02-07 2023-12-15 深圳市兴海物联科技有限公司 Big data transmission method for monitoring Internet of things
CN115792479B (en) * 2023-02-08 2023-05-09 东营市建筑设计研究院 Intelligent power consumption monitoring method and system for intelligent socket
CN116414076B (en) * 2023-06-12 2023-08-15 济宁长兴塑料助剂有限公司 Intelligent monitoring system for recovered alcohol production data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8449176B2 (en) * 2005-08-01 2013-05-28 Thermal Wave Imaging, Inc. Automated binary processing of thermographic sequence data
US8879623B2 (en) * 2009-09-02 2014-11-04 Sony Computer Entertainment Inc. Picture-level rate control for video encoding a scene-change I picture

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
Pseudo Time-Slice Construction Using a Variable Moving Window k Nearest Neighbor Rule for Sequential Uneven Phase Division;Shumei Zhang等;《Ind. Eng. Chem. Res.》;20161222;第56卷(第3期);全文 *
一种基于重要点的时间序列分段算法;孙志伟等;《计算机工程与应用》;20171127(第18期);全文 *
复杂背景干扰下硅藻图像的深度网络识别与定位;邓杰航 等;《J South Med Univ》;20200229;第40卷(第2期);全文 *

Also Published As

Publication number Publication date
CN115219067A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN115219067B (en) Real-time state monitoring method for garlic storage
CN115329910B (en) Intelligent processing method for enterprise production emission data
US20030061015A1 (en) Stochastic modeling of time distributed sequences
CN115577275A (en) Time sequence data anomaly monitoring system and method based on LOF and isolated forest
CN115766607A (en) Data compression transmission method based on 5G Internet of things
CN111782491B (en) Disk failure prediction method, device, equipment and storage medium
CN114817228A (en) Abnormal value removing method for long-time sequence monitoring data of lake water level
CN117540238A (en) Data security management method for industrial digital information acquisition device
CN117291843B (en) Efficient management method for image database
CN117271987B (en) Intelligent acquisition and processing method for environmental state data of power distribution equipment
CN117376430B (en) Industrial data rapid transmission method and system based on DCS
CN117171157B (en) Clearing data acquisition and cleaning method based on data analysis
CN116631563B (en) Big data storage and intelligent matching method for pharmaceutical industry
CN113869526A (en) Data processing model performance improving method and device, storage medium and electronic equipment
CN117473351B (en) Power supply information remote transmission system based on Internet of things
Boubekki et al. Clinically relevant features for predicting the severity of surgical site infections
CN117312255B (en) Electronic document splitting optimization management method and system
CN117764290B (en) BIM model data management method for hydraulic engineering construction
CN117172958B (en) Bean sprout growth real-time data management method
CN115359890B (en) Single disease resource consumption analysis method, system and terminal based on transfer learning
CN117831744B (en) Remote monitoring method and system for critically ill patients
CN116861204B (en) Intelligent manufacturing equipment data management system based on digital twinning
CN117951616B (en) Intelligent operation and maintenance analysis method for local ventilator
CN117789999B (en) Medical health big data optimization acquisition method
CN117294314B (en) Fruit and vegetable can production information data record management method

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

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

PE01 Entry into force of the registration of the contract for pledge of patent right