Disclosure of Invention
In order to solve the technical problem that the collected temperature data deviate from the actual value and cannot be effectively controlled, the invention provides the following aspects.
In a first aspect, a remote monitoring method for a temperature controlled test chamber includes:
collecting the temperature of a temperature control test box, and arranging and constructing a temperature sequence according to a time sequence;
Processing the temperature sequence by utilizing an improved filtering algorithm, and transmitting the processed temperature sequence to a remote monitoring center;
the improved process comprises the following steps:
Initially identifying local maximum points or local minimum points in the temperature sequence, wherein when two continuous temperatures are judged to be extreme points of the same type, the two temperatures are taken as a group of temperature pairs and are classified into a first temperature point set;
calculating the authenticity of each temperature in the first temperature point set;
and eliminating the temperature with the minimum authenticity in each group of temperature pairs in the first temperature point set, combining the rest temperature in the first temperature point set and other temperatures which are not classified into the first temperature point set into a second temperature point set, wherein all extreme points in the second temperature point set are local maximum points or local minimum points finally determined in a temperature sequence.
According to the method, the local maximum value point and the local minimum value point in the temperature sequence are initially identified, when two continuous temperatures are judged to be extreme points of the same type, the two extreme points are treated as a group, the temperature point with the minimum authenticity in each group is removed based on calculation of the authenticity, so that abnormal values caused by measurement errors or equipment instability are reduced, after the abnormal values are removed, the residual extreme points can reflect real temperature changes, the temperature sequence after filtering treatment is smoother and more accurate, and unnecessary data transmission quantity is reduced. This means that for a remote monitoring center, data can be received and processed more efficiently, reducing the cost and delay of data transmission.
Preferably, the obtaining of the authenticity includes:
selecting any one temperature in the first temperature point set as a target temperature, and taking the target temperature as a center to intercept a set number of temperatures to construct an actual local range of the target temperature;
Respectively obtaining fitting curves of an actual local range and a reference local range; calculating the variation gap and fitting error of the two fitting curves;
And taking the negative exponent power of the product of the variation gap and the fitting error as the authenticity of the target temperature.
By constructing the actual local range of the target temperature, the system can capture the subtle characteristics of the temperature change around the target temperature, and by utilizing an interpolation algorithm to replace the target temperature, a reference local range is constructed, and the system can evaluate the influence degree of the target temperature on the whole temperature change mode by comparing the actual local range with a hypothetical temperature change scene.
The method combines the information of the variation difference and the fitting error, and simultaneously amplifies the influence of smaller difference and error in the form of the negative exponent, so that the authenticity assessment is more sensitive and accurate.
Preferably, the difference between the two fitted curves satisfies the relation:
In the formula (I), in the formula (II), Is the firstThe variation gap of the fitting curve of the actual local range of the individual target temperatures from the reference local range,Is the firstFitting curves for the actual local ranges of the individual target temperatures,Is the firstFitting curves of the reference local ranges of the individual target temperatures,Is the amount of temperature data within a local range of the target temperature.
And calculating the average value of the absolute difference value of the fitting curve of the actual local range and the fitting curve of the reference local range in the target temperature local range through integration, thereby quantifying the difference degree between the two.
Preferably, the fitting error of the two fitting curves satisfies the relation:
In the formula (I), in the formula (II), Is the firstFitting errors of the fitting curves of the actual local ranges of the individual target temperatures and the reference local ranges,Is the firstWithin the actual local range of the target temperatureThe corresponding values of the individual temperature values on the fitted curve,Is the firstWithin the actual local range of the target temperatureThe actual value of the respective temperature is calculated,Is the firstWithin a reference local range of the target temperatureThe corresponding values of the individual temperature values on the fitted curve,Is the firstWithin a reference local range of the target temperatureThe actual value of the respective temperature is calculated,Is the amount of temperature data within a local range of the target temperature.
The fact that the fitting error is large may mean that abnormal data exist or that the fitting curve cannot capture the characteristics of the temperature data well, so that the abnormal data can be recognized and processed, and the data quality is improved.
Preferably, after obtaining the authenticity of the temperature, further comprising correcting the authenticity of the temperature, wherein the corrected authenticity satisfies the relation:
In the formula (I), in the formula (II), Is the firstThe authenticity of the corrected individual target temperatures,Is the firstThe authenticity of the individual target temperatures is determined,Concentration of the third temperature pointTemperature and the firstPearson correlation coefficients for the actual local ranges corresponding to the individual target temperatures,The total number of the temperatures contained in the third temperature point set is the total number of the temperatures contained in the third temperature point set, and the temperature data in the third temperature point set are all other extreme points which are not classified into the first temperature point set.
The correction process considers the correlation between a plurality of temperature points and the target temperature local range, so that the robustness of the authenticity assessment is enhanced, and even if errors or anomalies exist in some temperature points, the whole authenticity assessment is not greatly influenced.
Preferably, the filtering algorithm is a CWF algorithm, and when the maximum error between the temperature sequences obtained by two adjacent iterations is smaller than a preset threshold value, the iteration is stopped.
Preferably, after the processed temperature sequence is transmitted to the remote monitoring center, when the monitoring center monitors abnormal conditions, the remote monitoring center issues a remote control instruction to adjust parameters of the temperature control test box.
In a second aspect, a remote monitoring system for a temperature controlled test chamber includes a processor and a memory storing computer program instructions that when executed by the processor implement the remote monitoring method for a temperature controlled test chamber described above.
The beneficial effects of the invention are as follows:
The temperature data of the temperature control test box are collected, the temperature sequence is constructed, and the temperature sequence is processed by utilizing an improved filtering algorithm, so that abnormal temperature data can be more effectively identified and removed, and the accuracy of temperature monitoring is improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The temperature control test box and the temperature control method have the application scene that the temperature data of the temperature control test box are filtered by using an improved CWF algorithm, so that the processed temperature data are more accurate.
The embodiment of the invention discloses a remote monitoring method for a temperature control test box, which comprises the following steps of S1-S2 with reference to FIG. 1:
S1, collecting the temperature of a temperature control test box, and arranging and constructing a temperature sequence according to a time sequence.
The temperature sensor is arranged in the temperature control test box, temperature data in the temperature control test box are collected in real time, the collection frequency can be set to be 5 Hz, and then the collected temperature data are arranged according to the time sequence to construct a temperature sequence.
S2, processing the temperature sequence by utilizing an improved filtering algorithm, and transmitting the processed temperature sequence to a remote monitoring center.
The variable weight filtering algorithm (CWF) is a filtering method capable of effectively maintaining the detail characteristics of the time sequence. In the temperature control test, the trend of temperature change is very important information. The CWF algorithm can keep the overall change trend of the temperature data in the filtering process, and remove unnecessary noise and fluctuation, so that the temperature data is smoother and easy to analyze. Compared with the traditional fixed weight filtering method, the CWF algorithm can process detail features in temperature data more accurately by dynamically adjusting weights. This allows the CWF algorithm to have higher accuracy and better effect in temperature data filtering of the temperature controlled test box.
The basic steps of the CWF algorithm (since the CWF algorithm is in the prior art, detailed steps are not described in detail) are as follows:
preprocessing NDVI time sequence data, and identifying local maximum or minimum value points in a data sequence;
Secondly, generating new NDVI time series data by a 3-point variable weight filtering method;
thirdly, replacing local maximum or minimum value points;
fourth, updating the NDVI value;
and fifthly, outputting the filtered NDVI time sequence data under the iteration termination condition.
It should be considered that, in the original CWF algorithm, when two consecutive points are encountered and are judged to be extreme points of the same type (such as two local maxima or two local minima), the algorithm directly selects the point with the larger value (or smaller value) as the extreme point, and the extreme points are not changed in the subsequent filtering process. However, if the point with a larger value is a noise point, the noise point is erroneously kept as an extreme point, and thus the filtering effect is poor, i.e. the condition of over-filtering or under-filtering occurs. To solve this problem, embodiments of the present invention calculate the authenticity of temperature data by modifying the original CWF algorithm, including analyzing the varying features of the temperature sequence, and when successive extreme points of the same type are encountered, determining the final local extreme point based on the authenticity of these points.
Specifically, referring to fig. 2, the process of improving the CMF algorithm includes steps S20-S22.
And S20, primarily identifying local maximum points or local minimum points in the temperature sequence, wherein when two continuous temperatures are judged to be extreme points of the same type, the two temperatures are taken as a group of temperature pairs and are classified into a first temperature point set.
And S21, calculating the authenticity of each temperature in the first temperature point set.
In the temperature acquisition process, the temperature sensor is easy to be interfered by various noise in the surrounding environment, such as electromagnetic interference, power supply fluctuation and other factors, abnormal values or mutation points appear in the acquired temperature sequence due to the influence of the noise, the abnormal values or the mutation points are discontinuous or inconsistent compared with the surrounding temperature data, and the abnormal values or the mutation points break the original change trend of the temperature sequence in a local range, so that the temperature data are not smooth or continuous.
To evaluate the authenticity of the temperature data, the degree of difference between each temperature data and its surrounding temperature data is further analyzed.
Specifically, any one temperature in a first temperature point set is selected as a target temperature, a set number of temperatures (10 temperature data can be acquired according to an empirical value) are intercepted altogether by taking the target temperature as a center to construct an actual local range of the target temperature, a temperature value after target temperature replacement is obtained by using a cubic spline interpolation method, a reference local range of the target temperature (the number of the reference local range is the same as that of the temperature data in the actual local range) is constructed by taking the temperature value after replacement as the center, the edge data points in a sequence are required to be abandoned, a coordinate system is established by taking a time sequence serial number in the actual local range as an abscissa and taking the temperature value as an ordinate, a fitting curve of the actual local range is acquired by using a least square method, a fitting curve of the reference local range can be acquired in the same way, a variation difference and a fitting error of the two fitting curves are calculated, and a negative exponent of the product of the variation difference and the fitting error is taken as the authenticity of the target temperature.
Illustratively, the authenticity of the target temperature satisfies the relationship:
In the formula, Is the firstThe authenticity of the individual target temperatures is determined,Is the firstThe variation gap of the fitting curve of the actual local range of the individual target temperatures from the reference local range,Is the firstFitting errors of the fitting curves of the actual local ranges of the individual target temperatures and the reference local ranges,Is an exponential function.
If the target temperature deviates from the local range, the curve may be far away from the abnormal point when curve fitting is performed, and after the reference local range obtained by interpolation is fitted, the fitted curve may be closer to the fitted curve of the actual local range, so that the larger the change of the fitting error, the larger the change difference of the two local ranges, namely the larger the destructiveness of the current data point.
Calculating absolute interpolation of the two fitting curves on the number of temperature data contained in the local range, integrating the absolute difference on the number of temperatures (namely, calculating the area under the absolute difference curve), dividing the integrated result by the number of the temperature data in the local range to obtain an average absolute error, and taking the average absolute error as the variation gap of the fitting curve of the actual local range of the target temperature and the reference local range, wherein the variation gap satisfies the relation:
In the formula, Is the firstThe variation gap of the fitting curve of the actual local range of the individual target temperatures from the reference local range,Is the firstFitting curves for the actual local ranges of the individual target temperatures,Is the firstFitting curves of the reference local ranges of the individual target temperatures,Is the amount of temperature data within a local range of the target temperature (i.e., the amount of temperature data within an actual or reference local range).
The variation gapCan be used to measure the degree of similarity between the fitted curve of the actual local range and the fitted curve of the reference local range,The smaller the value of (c) indicates that the closer the two fitting curves are, the better the fitting effect.
And for the temperature data in the actual local range, calculating the average difference value between all the temperature values on the corresponding fitting curve and the actual temperature values, and similarly calculating the average difference value between all the temperature values on the fitting curve corresponding to the reference local range and the actual temperature values, wherein the difference value between the average difference value corresponding to the actual local range and the average difference value corresponding to the reference local range is taken as the fitting error of the fitting curve between the actual local range of the target temperature and the reference local range, namely, the formula is as follows:
In the formula, Is the firstFitting errors of the fitting curves of the actual local ranges of the individual target temperatures and the reference local ranges,Is the firstWithin the actual local range of the target temperatureThe corresponding values of the individual temperature values on the fitted curve,Is the firstWithin the actual local range of the target temperatureThe actual value of the respective temperature is calculated,Is the firstWithin a reference local range of the target temperatureThe corresponding values of the individual temperature values on the fitted curve,Is the firstWithin a reference local range of the target temperatureThe actual value of the respective temperature is calculated,Is the amount of temperature data within a local range of the target temperature.
The smaller the average difference between the fitted curve and the actual data, the smaller the corresponding fitting error, within the actual local range and the reference local range.
According to the above calculationThe authenticity of each target temperature can be calculated by the same principle as the authenticity of all temperatures in the first temperature point set.
In addition, it should be noted that the extreme points, whether they occur due to an increase or decrease in temperature, represent temperature change trends that are similar in nature, all caused by the same temperature control mechanism.
In order to further improve the calculation reliability of the temperature in the first temperature point set, firstly classifying all other extreme points which are not classified into the first temperature point set into a third temperature point set, analyzing the similarity degree of the first temperature point set and the third temperature point set on the shape or the change trend, namely analyzing the similarity degree of corresponding temperature data in the first temperature point set and the third temperature point set in an actual local range, and correcting the calculated temperature authenticity by utilizing the similarity degree.
Illustratively, still in the above-mentioned firstThe target temperature is exemplified byThe authenticity after the correction of each target temperature satisfies the relation:
In the formula, Is the firstThe authenticity of the corrected individual target temperatures,Is the firstThe authenticity of the individual target temperatures is determined,Concentration of the third temperature pointTemperature and the firstPearson correlation coefficients for the actual local ranges corresponding to the individual target temperatures,The total number of temperatures contained in the third set of temperature points. Wherein the third temperature point is concentrated toActual local range of the respective temperature and the firstThe construction manner of the actual local range corresponding to each target temperature is the same and will not be described in detail here.
The average structural similarity between the target temperature and the third set of temperature points is reflected, the higher the value of which the higher the authenticity of the target temperature.
S22, eliminating the temperature with the minimum authenticity in each group of temperature pairs in the first temperature point set, combining the rest temperature in the first temperature point set and other temperatures which are not classified into the first temperature point set into a second temperature point set, wherein all extreme points in the second temperature point set are local maximum points or local minimum points which are finally determined in a temperature sequence.
After eliminating the temperature data with smaller authenticity, the influence of noise and abnormal values on the identification of extreme points can be reduced, the rest temperature in the first temperature point set and other temperatures which are not classified into the first temperature point set are combined into a second temperature point set, and all extreme points in the second temperature point set are the local maximum value points or the local minimum value points which are finally determined in the temperature sequence.
And finally, the second temperature point set is the extreme point for the CWF algorithm.
Thus, the improvement of the CWF algorithm is completed.
And (3) carrying out filtering treatment on the temperature control test box data by using an improved CWF algorithm, wherein in the operation process of the algorithm, when the maximum error between temperature sequences obtained by two adjacent iterations is smaller than a preset threshold (the threshold is set to 0.36 according to experience), the iteration is stopped.
And transmitting the filtered temperature data to a remote monitoring center through a communication network, and after the remote monitoring center receives the data, displaying and storing the data in real time, wherein a user can check the running state and the data of the test box in real time through an interface of the monitoring center, and when abnormality is found or the parameters of the test box need to be adjusted, the operations such as stopping the test in the test box, adjusting the power supply setting or calibrating the sensor are executed.
The embodiment of the invention also discloses a remote monitoring system for the temperature control test box, which comprises a processor and a memory, wherein the memory stores computer program instructions, and the computer program instructions are executed by the processor to realize the remote monitoring method for the temperature control test box.
The system further comprises other components known to those skilled in the art, such as communication buses and communication interfaces, the arrangement and function of which are known in the art and therefore will not be described in detail herein.
In the context of this patent, the foregoing memory may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, the computer-readable storage medium may be any suitable magnetic or magneto-optical storage medium, such as, for example, resistance change Memory RRAM (Resistive Random Access Memory), dynamic Random Access Memory DRAM (Dynamic Random Access Memory), static Random Access Memory SRAM (Static Random-Access Memory), enhanced dynamic Random Access Memory EDRAM (ENHANCED DYNAMIC Random Access Memory), high-Bandwidth Memory HBM (High-Bandwidth Memory), hybrid storage cube HMC (Hybrid Memory Cube), or the like, or any other medium that may be used to store the desired information and that may be accessed by an application, a module, or both. Any such computer storage media may be part of, or accessible by, or connectable to, the device.
In the description of the present specification, the meaning of "a plurality", "a number" or "a plurality" is at least two, for example, two, three or more, etc., unless explicitly defined otherwise.
While various embodiments of the present invention have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Many modifications, changes, and substitutions will now occur to those skilled in the art without departing from the spirit and scope of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in practicing the invention.