Industrial computer self-checking control system and method

Through the method of successive iterations to obtain the undetermined length and fitting loss correction, a box plot suitable for industrial computer data is constructed, which solves the problem of inaccurate anomaly detection of the traditional box plot method under a fixed length and improves the accuracy and accuracy of anomaly detection. Self-checking control system efficiency.

CN118226791BActive Publication Date: 2024-08-27SUZHOU NUODAJIA AUTOMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410634248.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Due to the fixed length limitation of the traditional box plot method in industrial computer data anomaly detection, the anomaly detection results are not accurate enough, which affects the response efficiency and accuracy of the self-test control system.

Method used

It uses successive iterations to obtain multiple data intervals with undetermined lengths. Through the optimization degree of the data and the fitting loss correction, the final length is determined to construct a box plot for anomaly detection. Combined with the maximum inter-class variance criterion or cluster analysis, the data intervals are The first-order difference of the data is divided into two categories to improve the accuracy of anomaly detection.

Benefits of technology

By dynamically adjusting the length of the data interval, the accuracy and efficiency of anomaly detection are improved, false positives and false negatives are reduced, and the stable operation and production safety of the industrial computer are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226791B
    Figure CN118226791B
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and in particular to an industrial computer self-check control system and method. The method comprises: collecting industrial computer data, obtaining multiple pending lengths through iteration, sorting data in a data interval corresponding to each pending length, determining the preferred degree of the pending length corresponding to each data interval based on the first-order difference of adjacent data after sorting, correcting the preferred degree using the fitting loss of the data in each data interval, determining a final length based on the corrected preferred degrees of all pending lengths, establishing a box plot using the final length, performing anomaly detection on the collected industrial computer data, and performing self-check control on the industrial computer according to the anomaly detection result, thereby improving the accuracy of anomaly detection of industrial computer data, and further improving the efficiency and precision of the industrial computer self-check control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a self-checking control system and method for an industrial computer. Background Art

[0002] In the core link of industrial automation, industrial computers are the hub for monitoring and controlling various production processes and equipment, and their stability and reliability are crucial. In view of the increasingly complex architecture of industrial control systems and their wide application needs, it is particularly necessary to develop efficient self-checking control systems to enhance the overall stability and security of the system. The built-in self-checking mechanism of industrial computers can be activated by monitoring the parameter data during their own operation to ensure the continuous and reliable operation of the system.

[0003] Therefore, it is necessary to accurately collect and analyze the parameter data of the industrial computer and promptly discover and respond to abnormal conditions, which is the basis for ensuring the effectiveness of self-inspection. The box plot method, as a classic data analysis method, has the advantage of quickly identifying data outliers. For example, the patent application document with the existing publication number CN115375348A discloses a data outlier detection method based on box plot indicators. By separately processing different indicators of the box plot, the distribution indicators of the data are calculated in real time, so as to more quickly display the complete distribution of the data and detect outliers. For example, the patent application document with the publication number CN113626497A discloses a semiconductor problem machine positioning system based on box plots. By collecting the original yield data of each machine, making a box plot based on the original yield data, counting the yield outliers of each machine, and finding the machines with concentrated yield outliers, it can be seen that the box plot method is widely used in data anomaly detection related fields.

[0004] However, these traditional box plot methods perform anomaly detection on data of fixed length (fixed quantity). Due to the time series characteristics of industrial computer data and its complex and variability, it is difficult to determine the ideal data length for constructing box plots. The continuity and dynamic changes of time series data may cause conventional box plot analysis methods to detect normal fluctuations in data as abnormal phenomena. In particular, when the dynamic change range of parameter data and the correlation of time series are not fully considered, the traditional method of directly selecting a fixed length to construct a box plot and performing anomaly detection on industrial computer data will significantly affect the accuracy of anomaly detection, thereby weakening the response efficiency and accuracy of the self-checking control system. Summary of the invention

[0005] In order to solve the problem that the traditional method of constructing a box plot with a fixed length to perform anomaly detection on industrial computer data leads to inaccurate anomaly detection results, thereby affecting the efficiency and accuracy of industrial computer self-checking, the present invention adopts the following scheme:

[0006] In one aspect, the present invention provides an industrial computer self-check control method, comprising:

[0007] Collect data from the industrial computer, and iterate successively according to the preset length to obtain multiple to-be-determined lengths and the data interval corresponding to each to-be-determined length;

[0008] The data in the data interval are sorted from small to large, the first-order differences of the data in the data interval are divided into two categories according to a preset criterion, and the preferred degree of the to-be-determined length is calculated:

[0009]

[0010] in, for The preferred degree of the undetermined length, are the means of the first and second order differences, respectively. is the preset hyperparameter, is the permutation and combination symbol, is the serial number of the permutation and combination type, are the number of first-order differences of the first and second kind, , They are the first order differences of the first kind. The first and second data of the permutation and combination, and They are the first order differences of the second kind. The first and second data of the permutation and combination;

[0011] The preferred degree is corrected by using the fitting loss of the data in the data interval, the corrected preferred degree is negatively correlated with the fitting loss, and the undetermined length corresponding to the maximum preferred degree is selected as the final length;

[0012] Based on the comparison of the remaining length of the industrial computer data minus the final length, it is determined whether multiple final lengths can be iteratively obtained, a box plot is established for the industrial computer data based on the final length for anomaly detection, and a self-check is performed based on the anomaly detection result.

[0013] Preferably, the modified preference degree satisfies the following relationship:

[0014]

[0015] In the formula, For the The preferred degree of the undetermined length, For the The optimal degree after the undetermined length is corrected, For the The number of data in the data interval, is the hyperbolic tangent function, is the natural exponential function, is the sequence number of the data in the data interval, is the first The fitting loss of the data.

[0016] Preferably, the iterating successively according to the preset length to obtain a plurality of to-be-determined lengths and a data interval corresponding to each to-be-determined length comprises:

[0017] Preset the initial length and iteration step, take the last data of the industrial computer data as the starting point, and divide the initial data interval from the back to the front according to the initial length;

[0018] On the basis of the initial data interval, the data is expanded forward successively according to the iteration step length, and the length after each expansion is taken as a pending length; each pending length is equal to the sum of the previous pending length and the iteration step length; and the data interval corresponding to each pending length is obtained;

[0019] If the length of the remaining data in the industrial computer data is less than the initial length during a forward expansion, the remaining data is classified as the data interval corresponding to the last to-be-determined length, the expansion is stopped, and the last to-be-determined length is updated.

[0020] Preferably, the fitting loss of the data within the data interval is obtained by:

[0021] Performing curve fitting on the data in the data interval to obtain a fitting value corresponding to each data in the data interval;

[0022] The fitting loss is the difference between the fitted value and the actual value of each data.

[0023] Preferably, the first-order differences of the data in the data interval are divided into two categories according to a preset criterion, including:

[0024] According to the maximum inter-class variance criterion, the order difference is divided into a first-class first-order difference and a second-class first-order difference;

[0025] Or the number of clusters is preset to 2, and the first-order differences are divided into first-class first-order differences and second-class first-order differences by using K-means clustering.

[0026] Preferably, obtaining the remaining length of the remaining data except the data interval corresponding to the final length, and determining whether to continue iteration, includes:

[0027] If the remaining length is less than the initial length, no subsequent iteration is performed; otherwise, the last data in the data interval corresponding to the remaining length is taken as a new starting point, and from back to front, the next final length is continued to be obtained according to the iterative method. The remaining length is updated according to the next final length, and it is continued to be determined whether iteration is possible until the remaining length is less than the initial length.

[0028] Preferably, establishing a box plot of the industrial computer data based on the final length to perform anomaly detection includes:

[0029] Construct a box plot of the data interval according to the first quartile Q1 and the third quartile Q3 of the data interval corresponding to the final length, and the median Q2, and set a data anomaly threshold IQR=Q3-Q1 of the data interval;

[0030] The box plot is used to identify anomalies in the data interval. If it is identified that there is data less than or equal to Q1-1.5IQR in the data interval, or there is data greater than or equal to Q3+1.5IQR, there is a data anomaly in the data interval; otherwise, there is no data anomaly in the data interval.

[0031] Preferably, the performing of self-check according to the abnormality detection result includes: if there is data abnormality in the data interval, controlling the industrial computer to start a self-check program; otherwise, the industrial computer does not start the self-check program.

[0032] On the other hand, the present invention also provides an industrial computer self-check control system, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps in the self-check control method described above can be implemented.

[0033] The present invention has the following effects:

[0034] The present invention proposes a strategy for constructing the most suitable box plot through a final length and accurately detecting abnormal data on industrial computer data. The final length is determined based on the optimization degree of the pending length and its correction process. The optimization degree of the corrected pending length not only considers the distribution characteristics of the data, but also incorporates the consideration of the data change trend. If the non-normal distribution characteristics of the data in the data interval corresponding to the pending length are stronger, the anomaly can be detected more efficiently, and the pending length is more suitable for constructing the box plot. When the overall fitting loss of the data in the data interval is large, it indicates that the data changes violently and it is difficult to accurately reflect the real distribution characteristics of the data, so it is necessary to reduce the credibility of the optimization degree of the pending length. Therefore, the optimization degree is corrected by using the fitting loss, and the pending length that is most suitable for constructing the box plot is screened out, and the box plot is constructed as the final length. The truly abnormal data can be accurately identified, false positives and false negatives are reduced, and the accuracy of abnormality detection is improved, so that the industrial computer can more accurately execute the self-checking program, and then take corresponding measures, effectively avoid the potential risks of the industrial computer, and ensure the stable operation and production safety of the industrial computer.

[0035] The present invention dynamically adjusts the iterative segmentation strategy of the data interval, accurately divides the data interval from the tail of the industrial computer data to the front, gradually optimizes the granularity and positioning of data processing, improves the efficiency of industrial computer data analysis and the accuracy of anomaly detection, and especially shows good adaptability and flexibility in time series data processing.

[0036] The present invention intelligently controls the expansion of the data interval during the iterative amplification process, thereby ensuring the integrity of the industrial computer data while avoiding invalid or excessive segmentation and improving processing efficiency.

[0037] The present invention divides the first-order difference of data in the data interval into two categories through the maximum inter-class variance criterion or cluster analysis. The data within the class are compact and the gap between classes is significant, which accurately reflects the non-normal characteristics of data distribution. This characteristic improves the accuracy of abnormal data identification by box plots. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0039] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0041] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0042] Reference Figure 1 , a self-check control method for an industrial computer, comprising steps S1-S4, specifically as follows:

[0043] S1: Collect data from the industrial computer, and iterate successively according to the preset length to obtain multiple to-be-determined lengths and the data interval corresponding to each to-be-determined length.

[0044] Data detection of industrial computers is a multi-dimensional process. As the core equipment of industrial control, the data detection of the operating status of industrial computers is very comprehensive, involving multiple key parameters to ensure the stability and safety of the system. Temperature is only one of the important indicators. Data detection of industrial computers is not limited to temperature. In addition to temperature, it usually includes but is not limited to the following aspects: Detection of voltage data and current data: By detecting the input and output voltage and current of the power module, ensure the stability of power supply and prevent electrical overload or power supply abnormality; Detection of CPU and GPU load: By detecting the usage rate of the processor and graphics processor, avoid the problem of excessive load affecting performance ; Detection of storage space: by tracking the RAM usage and swap space, to prevent resource exhaustion from causing system slowness or crash; Detection of network traffic and communication status: by detecting the upload and download rates and packet loss rate of the network interface, to ensure smooth data communication; In summary, comprehensive detection will comprehensively consider the parameter data of multiple dimensions of the industrial computer to achieve all-round monitoring and maintenance of the operating status of the industrial computer. In this embodiment, only the temperature parameter data is taken as an example for subsequent analysis. For other parameter data, they can also be detected according to the method in this embodiment. Therefore, the industrial computer data involved in the text below refers to the industrial computer temperature data collected in this step.

[0045] First, in this step, according to the working environment and temperature range requirements of the industrial computer, select a temperature sensor with high precision, fast response speed and strong stability, such as a thermocouple, RTD (resistance temperature detector) or thermistor, and ensure that it is compatible with the interface standard of the industrial computer. Then install the temperature sensor at the key heating parts and environmental monitoring points of the industrial computer to ensure that it can fully reflect the temperature change of the industrial computer. At the same time, pay attention to the fixing method of the sensor to avoid measurement errors caused by factors such as vibration. Finally, set the data acquisition parameters: set the acquisition frequency of temperature data to 2 times per second, capture the details of temperature changes with high-density sampling, and set the acquisition period to half an hour, that is, continuously collect temperature data within half an hour.

[0046] Then, data preprocessing and denoising: the temperature data collected within half an hour is immediately stored in a local or cloud database for subsequent processing and analysis. The collected temperature data is filtered and denoised using a median filter algorithm to effectively remove random noise and sudden spike signals, so that the collected temperature data can reflect the actual temperature change trend of the industrial computer.

[0047] Finally, multiple pending lengths and the data interval corresponding to each pending length in the industrial computer data are obtained by successive iterations according to the preset length. The purpose is to explore and determine the length of the most suitable box plot through an iterative process to optimize the anomaly detection efficiency. In the specific operation, the preset initial length is 15 data, and the iteration step is 5 data. 15 and 5 are both empirical values. The empirical values ​​are based on practical observations. This embodiment believes that 15 data can appropriately preliminarily divide the data range, which not only avoids resource consumption caused by excessive subdivision, but also ensures sufficient data analysis granularity. During the iteration process, the iteration step is increased by 5 data each time, which takes into account both efficiency and accuracy. It aims to include more data while limiting the complexity growth caused by the surge in data volume, ensuring the balance between the robustness and efficiency of the analysis process.

[0048] The iteration strategy of this step is to take the last data of the collected industrial computer data as the starting point, and divide an initial data interval from back to front according to the length of the initial box plot. The initial data interval contains 15 data, and then based on the initial data interval, 5 data are successively expanded forward according to the iteration step. At this time, multiple pending lengths are obtained, each pending length is equal to the previous pending length plus the iteration step, and after each expansion, the last data of the collected industrial computer data is taken as the starting point, from back to front, and each pending length is used to divide the data interval corresponding to each pending length. If it is found that the number of remaining data is less than the initial length during a certain forward expansion, no subsequent expansion is performed, and the remaining data is classified as the data interval corresponding to the last pending length. At this time, the last pending length is equal to its original length plus the length of the remaining data, and the pending length division of all industrial computer data is completed, wherein "remaining data" refers to the data in the industrial computer data that has not been divided into data intervals during a certain forward expansion, that is, the data that is not in any data interval, and the length of the remaining data is the number of remaining data.

[0049] In a specific example, the collected industrial computer data is 1 to 40, the initial length is 15 data, and the iteration step is 5 data. Then the initial data interval divided is [26,40]. In the first iteration, 5 data are expanded forward to obtain a pending length of 20. The data interval corresponding to the pending length in the industrial computer data is [21,40]. In the second iteration, 5 data are expanded forward to obtain a pending length of 25. The data interval corresponding to the pending length in the industrial computer data is [16,40]. In the third iteration, 5 data are expanded forward to obtain The pending length is 30, and the data interval corresponding to the pending length in the industrial computer data is [11,40]. When expanding forward for the fourth time, it is found that the remaining length of the industrial computer data is 11, which is less than the initial length. The remaining 11 data are divided into the data interval corresponding to the third pending length, and the data interval corresponding to the third pending length becomes [1,40]. At the same time, the third pending length is updated to the original length plus the remaining length, that is, the third pending length becomes 41. At this time, the entire iterative process obtains a total of 3 pending lengths of 20, 25, and 41.

[0050] According to the method of this step, multiple pending lengths and the data interval corresponding to each pending length in the industrial computer data can be obtained, which is referred to as "the data interval corresponding to each pending length" for short.

[0051] In addition, in order to cope with the complexity and diversity of industrial computer temperature data and ensure the accuracy and efficiency of anomaly detection, this step iterates to obtain the operation of the pending length. Specifically, the following points are taken into consideration:

[0052] Adapt to data change characteristics: Industrial computer data is affected by many factors, such as environmental changes, load changes, etc. These factors may cause the data distribution to be non-normal, and the distribution characteristics change over time. By iterating to obtain different pending lengths, we can explore the most suitable conditions for abnormality detection of industrial computer data corresponding to different pending lengths, ensuring that abnormalities can be accurately identified under various data distribution forms;

[0053] Optimize anomaly detection performance: The length of the box plot directly affects the identification of outliers. A box plot that is too short may not accurately reflect the full picture of the data due to insufficient data volume, resulting in inaccurate outlier judgment; a box plot that is too long may contain too much noise or periodic changes, masking the real outliers. Therefore, through continuous iteration, the optimal length that can capture real anomalies and eliminate noise interference can be found. Determining the optimal length helps to find a balance in complex data and ensure the accuracy of detection results;

[0054] Improved adaptive capabilities: When industrial computers operate under different working conditions, the laws of parameter data changes and abnormal patterns may also be different. The iterative process allows the algorithm to make adaptive adjustments based on the characteristics of the current data, thereby improving the flexibility and robustness of anomaly detection;

[0055] Improve analysis efficiency and practicality: Through the iterative process, the optimal length can be quickly screened out, reducing the subjectivity and uncertainty of manually setting thresholds, making the data analysis process more systematic and automated, improving work efficiency, and also making it easy to promote and apply in different scenarios.

[0056] S2: Sort the data in the data interval from small to large, divide the first-order difference of the data in the data interval into two categories according to a preset criterion, and calculate the preference degree of the to-be-determined length.

[0057] Normal distribution is a symmetrical distribution, which is characterized by the equality of mean, median and mode, and the symmetry of the left and right sides of the distribution curve. This symmetry means that the probability of data appearing near the mean is higher, while the probability of data appearing far from the mean is lower. Non-normal distribution is just the opposite of normal distribution. Non-normal distribution means that the collected parameter data does not tend to be highly concentrated around the mean in distribution, but presents a wider dispersion state. If the box plot is constructed according to the ideal length, the real anomaly in this non-normal distribution data can be effectively identified, and the natural fluctuation of the data will not be misjudged as anomaly. When using the box plot for anomaly detection of industrial computer data, given the high efficiency of the box plot in processing non-normal distribution data, in the process of iteratively determining the length of the box plot, it is necessary to fully consider the non-normal distribution characteristics of the data. The stronger the non-normal distribution characteristics of the data in the data interval, the more suitable it is as a data set for constructing the box plot. Therefore, the optimal data interval can be determined according to the non-normal distribution characteristics of the data in the data interval, that is, the optimal box plot length can be determined.

[0058] The non-normal distribution characteristics of data in the data interval are specifically manifested as the data is relatively uniformly distributed, and there is no obvious central aggregation phenomenon. When the difference between the data is large, the more significant the non-normal distribution characteristics of the data in the data interval are, the more suitable it is to use the box plot for anomaly detection. Therefore, performing non-normal distribution analysis on the data in the data interval during the iteration process is actually a strategic optimization, which aims to accurately adjust the length of the box plot by identifying and utilizing the distribution characteristics of the data itself, ensure the accuracy and effectiveness of anomaly detection, and avoid detection bias caused by the particularity of data distribution, thereby providing more scientific and reasonable data support for the stable operation and safety monitoring of industrial computers.

[0059] Therefore, in view of the above, this step performs the following operations on the data in each data interval:

[0060] (1) Sorting and calculating first-order differences: Sort the data in each data interval from small to large, and calculate the first-order differences of all the data in the data interval. The first-order difference refers to the difference between each data and its directly adjacent data in the data interval. The number of first-order differences is equal to the total number of data in the data interval minus 1.

[0061] In a specific example, if there is a data sequence of 1, 2, 3, 4, 5, then all the corresponding first-order differences are 1, 1, 1, 1. This difference operation is often used to analyze the rate of change, trend or fluctuation of data. Especially in time series analysis, it can help identify the increase and decrease pattern of data, and is one of the basic steps in time series data analysis. In this embodiment, by analyzing the first-order difference, the severity of data changes can be revealed, which helps to identify sudden changes or abnormal fluctuations in the data, which is particularly important for understanding the dynamic characteristics of industrial computer data.

[0062] (2) Divide the first-order differences into two categories according to the preset criteria: In the above steps, by calculating the first-order differences of all data in each data interval, the first-order differences of each data interval can be divided into two categories, including the first-order differences of the first order differences and the second-order differences, using the maximum inter-class variance criterion. If the means of the two types of first-order differences after division are small in their respective classes, it means that the data within the class are closely clustered. At the same time, if the inter-class variance of the two types of first-order differences is large, it indicates that the data distribution in this data interval is obviously uneven. In short, the data within the class is compact and the gap between classes is significant, reflecting the non-normal characteristics of the data distribution, which is conducive to accurately identifying the true outliers through the box plot. The number of clusters can also be preset to 2, and the first-order differences can be divided into the first-order differences and the second-order differences by using K-means clustering to achieve a similar effect.

[0063] (3) Calculate the degree of preference: Specifically, the degree of preference of the box plot length corresponding to each data interval is evaluated based on the non-normal distribution of the data.

[0064] In a specific example, Take the process of obtaining the optimal degree of a to-be-determined length as an example:

[0065] First, obtain the first The data intervals corresponding to the undetermined lengths. Since each undetermined length corresponds to a data interval, it can also be used Indicates A data interval, all the data in the data interval are sorted in ascending order;

[0066] Then, calculate the first-order difference of all data in the data interval, using Indicates that by finding the maximum between-class variance, the first-order difference is divided into two categories, using Denotes the first-order difference of the first kind, and uses 2 indicates the second kind of first-order difference;

[0067] Finally, according to the following formula, calculate the The preferred degree of the undetermined length:

[0068]

[0069] In the formula, Indicates The preferred degree of the undetermined length, represents the mean of the first-order differences of the first kind, represents the mean of the second-order differences, is the preset hyperparameter, Set to 0.001. The value of the hyperparameter is very small. It is only used to prevent the denominator from being 0 and will not have a significant impact on the calculation results. is the permutation and combination symbol, is the number of first-order differences contained in the first-order differences of the first kind, is the number of first-order differences contained in the second-order difference, It means to select any two first-order differences from the first-order differences of the first kind and arrange them in order to get There are permutations and combinations, each of which consists of two first-order differences. It means that two first-order differences are randomly selected from the second-order first-order differences for permutation and combination, and a total of kinds of permutations and combinations, The serial number indicating the type of permutation and combination, represents the first order difference of the first kind The first first-order difference in the permutations and combinations, Indicates the first order difference data of the first type The second first-order difference in the permutations and combinations, represents the first-order difference of the second kind The first first-order difference in the permutations and combinations, represents the first-order difference of the second kind The second first-order difference in the permutations and combinations.

[0070] In this formula, It reflects the inter-class difference between the first-order difference of the first type and the second-order difference of the second type, which indicates the degree of polarization of the data distribution. If the mean difference between the two types of first-order differences is large, it means that the data shows a more obvious separation in distribution, which is conducive to identifying outliers. Otherwise, it means that the data distribution is more concentrated.

[0071] In this formula, , By calculating the difference between any two first-order differences within each class of first-order differences, it can reflect the compactness between the two first-order differences of each combination. If the difference within the class is small, the compactness is high, indicating that the data within the class is more concentrated.

[0072] The design of this formula takes each first-order difference as a data and considers all possible pairing situations between data through the number of permutations and combinations. This can more comprehensively reflect the relative distance and distribution characteristics of the data than simply calculating the intra-class mean, increases the precision of the evaluation, and can measure the degree of non-normal distribution of data in the data interval corresponding to each undetermined length. The higher the value of the formula, the more the data distribution in the data interval deviates from normal, that is, the more uneven the distribution is. Based on the non-normal distribution of the data in the data interval, the most appropriate box plot length can be selected for anomaly detection.

[0073] S3: using the fitting loss of the data in the data interval to correct the degree of preference, the corrected degree of preference is negatively correlated with the fitting loss, and selecting the undetermined length corresponding to the maximum degree of preference as the final length.

[0074] In the above steps, by analyzing the non-normal distribution characteristics of the data in the data interval, it is helpful to reveal the relative differences between the data, but it can still be further optimized. The reason is that if the data changes relatively smoothly, even after multiple iterative processing, the data distribution characteristics remain consistent. In this case, the degree of preference calculated based on the sorting can still better reflect the actual data distribution. This method has a higher credibility when the data distribution is relatively stable. However, in scenarios with dense data and complex changes, the simple between-class variance partitioning or cluster analysis in the above steps may be difficult to accurately distinguish between natural fluctuations in the data and real anomalies.

[0075] Therefore, in order to enhance the accuracy of the degree of optimization, it is necessary to take into account the time series and comprehensively consider the data within the data interval. This step can effectively verify and improve the accuracy of the degree of optimization by combining the distribution characteristics of the data in the time series, ensuring that anomalies can be accurately identified even in complex time series data.

[0076] This step specifically performs the following operations:

[0077] (1) Data fitting: The strategy adopted in this step is to perform curve fitting on the data within the data interval to evaluate the smoothness or fluctuation of the data over time. In this process, the deviation between the fitted value and the actual value (i.e., the fitting loss) can be calculated to indirectly reflect the severity of the data fluctuation within the data interval. When the fitting loss is large, it indicates that the data changes drastically. Frequent fluctuations or mutations may make it difficult for the analysis method based on the first-order difference and preset criteria to accurately characterize the true distribution characteristics of the data, thereby reducing the credibility of the preferred degree of each undetermined length.

[0078] In a specific example, The data in the data interval are used for curve fitting. Specifically, the time is used as the horizontal axis and each data is used as the vertical axis. The fitting method uses the least square method to obtain the fitting value of each data and obtain the first The fitting loss of all data in a data interval. The fitting loss is the difference between the fitting value and the actual value of each data. The larger the difference, the greater the fitting loss, and vice versa.

[0079] (2) Using fitting loss to correct the preference: In a specific example, Taking the modification process of the optimization degree of the undetermined length as an example, according to the following relationship, The preferred degree of the undetermined length is corrected to obtain the corrected preferred degree:

[0080]

[0081] In the formula, For the The preferred degree of the undetermined length, For the The optimal degree after the undetermined length is corrected, Indicates The number of data contained in the data interval, that is, The number of data contained in the data interval corresponding to the undetermined length, () represents the hyperbolic tangent function, which is used here to normalize the degree of preference. represents the natural exponential function, that is, the natural constant The exponential function with base , Indicates the sequence number of the data in the data interval. The first The fitting loss of data, and , represents the fitted value of the zth data, Represents the actual value of the zth data.

[0082] In this formula, all data in the data interval are calculated. The mean value represents the The overall fitting loss of the data within a data interval is corrected by correcting the preference degree of the pending length to obtain the corrected preference degree, so as to better reflect the actual applicability and accuracy of the pending length after considering the data fitting quality. The core idea is to associate the original preference degree with the data fitting loss. The formula aims to evaluate the closeness of data fitting and the difference between the actual value and the predicted value (fitting value) of the data point at each pending length. This helps to identify those box plot lengths that can better fit the data set through the model while maintaining the data distribution characteristics. The hyperbolic tangent function plays a normalization role here, converting the loss consideration into a value between -1 and 1, so that the corrected preference degree is kept within a reasonable range for easy comparison. The natural exponential function enhances the sensitivity to high fitting losses (i.e., larger )’s severity of punishment.

[0083] This design, by comprehensively considering the non-normal distribution characteristics of the data and the quality of model fitting, comprehensively evaluates and adjusts the preference degree of the to-be-determined length. When the data fits well (small loss), the modified preference degree is close to the preference degree before correction, and the two change little. If the fitting loss is large, it indicates that the data changes are complex or the model fits poorly, and the preference degree of the to-be-determined length needs to be lowered, reflecting that the applicability of the to-be-determined length is reduced. The greater the fitting loss, the lower the modified preference degree, and the less suitable the to-be-determined length is for constructing a box plot. Conversely, the smaller the fitting loss, the higher the modified preference degree, and the more suitable the to-be-determined length is for constructing a box plot. In this way, it is helpful to screen out the optimal to-be-determined length that can better match the actual change trend of the data while maintaining the data distribution characteristics, thereby improving the accuracy of anomaly detection and the efficiency of the self-checking control system.

[0084] (3) Determine the final length: Because the modified optimization degree of all the pending lengths can accurately reflect the data distribution characteristics of their corresponding data intervals, the higher the optimization degree of the pending length, the more suitable it is for constructing a box plot and performing accurate anomaly detection. Therefore, this step analyzes the changing trend of the modified optimization degree of all the pending lengths during the iteration process, and takes the pending length corresponding to the maximum optimization degree as the final length, providing a basis for the subsequent box plot establishment.

[0085] S4: Obtain the remaining length of the remaining data except the data interval corresponding to the final length, and determine whether to continue iterating to obtain multiple final lengths, establish a box plot for the industrial computer data based on the final length to perform anomaly detection, and perform self-checking according to the anomaly detection result.

[0086] In the above steps, a final length is determined. This length is divided from the back to the front to obtain the corresponding data interval, which is equivalent to dividing a data interval forward from the end of the collected industrial computer data, and the length of the data interval is equal to the final box plot length. Due to the large amount of collected data, it is necessary to further determine whether it is necessary to continue to divide the next final data length when a final length has been determined. The specific method is:

[0087] The industrial computer data is taken from back to front to obtain the remaining length except the final length. If the remaining length is less than the initial length, no subsequent iteration is performed. At this time, the industrial computer data has only one final length. According to this final length, a box plot is established from back to front to detect abnormal data. On the contrary, if the remaining length is greater than or equal to the initial length, the previous data of the data interval corresponding to the final length in the industrial computer data is taken as the new starting point, that is, the last data of the data interval corresponding to the remaining length is taken as the new starting point. From back to front, according to the method in S1, continue to iterate successively according to the preset length to obtain multiple pending lengths and the data interval corresponding to each pending length, and then calculate the preferred degree of each pending length according to the method in S2, and according to the method in S3. Correct the degree of optimization and obtain the next final length. Update the remaining length according to the next final length, and the remaining length becomes shorter and shorter. Finally, for the next final length, follow the same judgment method in this step until the remaining length is less than the initial length. Since a large amount of data is collected and the data change characteristics are not completely consistent, there is basically not only one final length, but multiple final lengths are obtained, and the multiple final lengths correspond to multiple final data intervals on the industrial computer data. Each final data interval is independent of each other and there is no data overlap. Therefore, the data contained in each final data interval can be used as a data set to construct a box plot. Finally, multiple box plots are constructed for the collected industrial computer data for anomaly detection.

[0088] The process of detecting abnormal data of the industrial computer to perform self-checking control includes:

[0089] Construct a box plot of the data interval according to the first quartile Q1 and the third quartile Q3 of the data interval corresponding to the final length, and the median Q2, and set a data anomaly threshold IQR=Q3-Q1 of the data interval;

[0090] A box plot is used to identify anomalies in the data within the data interval. If data less than or equal to Q1-1.5IQR is found in the data interval, or data greater than or equal to Q3+1.5IQR is found, data anomalies exist in the data interval, and these data are marked as abnormal data. Otherwise, there is no data anomaly.

[0091] When there is abnormal data, the industrial computer is controlled to start a self-check program. The self-check program integrates advanced fault diagnosis algorithms to quickly identify the root cause of abnormal temperature. By analyzing the temperature change trend, correlating sensor data (such as current, fan speed, etc.) and past fault case libraries, the system can preliminarily determine whether the abnormality is caused by the decline in the performance of the cooling system (such as reduced fan efficiency, heat sink blockage), processor overload or other hardware failures. Based on the diagnosis results, the system implements a series of adaptive control measures to immediately mitigate risks. These measures include but are not limited to dynamically adjusting the fan speed to enhance the cooling effect, timely reducing the CPU usage or core frequency, suspending non-critical task processes, and optimizing resource allocation strategies. For serious abnormal situations that the system cannot resolve independently, the alarm system is immediately activated to immediately notify maintenance personnel through multiple channels (such as SMS, email, monitoring interface prompts). The alarm information must include abnormal details (time, temperature value, preliminary diagnosis), recommended countermeasures and an overview of the current system status to facilitate quick decision-making and intervention. At the same time, the system should automatically enter safe mode to limit further load increases and protect hardware from damage.

[0092] When there is no abnormal data, the system does not start self-checking and continues to operate normally. Furthermore, each abnormal detection and processing process must be recorded in detail, including key information such as abnormal data, triggered self-checking process, control measures taken, system response time and final status. This data will be used to generate detailed abnormality reports, which will not only help with traceability analysis, but also provide valuable data support for future optimization of self-checking control algorithms, improved hardware design and preventive maintenance strategies.

[0093] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0094] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. A self-check control method for an industrial computer, It is characterized in that include: Collect data from the industrial computer, and iterate successively according to the preset length to obtain multiple to-be-determined lengths and the data interval corresponding to each to-be-determined length; The data in the data interval are sorted from small to large, the first-order differences of the data in the data interval are divided into two categories according to a preset criterion, and the preferred degree of the to-be-determined length is calculated: in, for The preferred degree of the undetermined length, are the means of the first and second order differences, respectively. is the preset hyperparameter, is the permutation and combination symbol, is the serial number of the permutation and combination type, are the number of first-order differences of the first and second kind, , They are the first order differences of the first kind. The first and second data of the permutation and combination, and They are the first order differences of the second kind. The first and second data of the permutation and combination; The preferred degree is corrected by using the fitting loss of the data in the data interval, the corrected preferred degree is negatively correlated with the fitting loss, and the undetermined length corresponding to the maximum preferred degree is selected as the final length; Obtain the remaining length of the remaining data except the data interval corresponding to the final length, and determine whether to continue iterating to obtain multiple final lengths, establish a box plot for the industrial computer data based on the final length to perform anomaly detection, and perform self-checking according to the anomaly detection result.

2. The self-check control method for an industrial computer according to claim 1, It is characterized in that The modified preference degree satisfies the following relationship: ; In the formula, For the The preferred degree of the undetermined length, For the The optimal degree after the undetermined length is corrected, For the The number of data in the data interval, is the hyperbolic tangent function, is the natural exponential function, is the sequence number of the data in the data interval, is the first The fitting loss of the data.

3. The self-check control method for an industrial computer according to claim 1, It is characterized in that The method of iterating successively according to the preset length to obtain a plurality of to-be-determined lengths and a data interval corresponding to each to-be-determined length comprises: The initial length and iteration step are preset, and the initial data interval is divided from the back to the front according to the initial length, starting from the last data of the industrial computer data; On the basis of the initial data interval, the data is expanded forward successively according to the iteration step length, and the length after each expansion is taken as a pending length; each pending length is equal to the sum of the previous pending length and the iteration step length; and the data interval corresponding to each pending length is obtained; If the length of the remaining data in the industrial computer data is less than the initial length during a forward expansion, the remaining data is classified as the data interval corresponding to the last to-be-determined length, the expansion is stopped, and the last to-be-determined length is updated.

4. The self-check control method for an industrial computer according to claim 2, It is characterized in that The fitting loss of the data within the data interval, and the method for obtaining the fitting loss includes: Performing curve fitting on the data in the data interval to obtain a fitting value corresponding to each data in the data interval; The fitting loss is the difference between the fitted value and the actual value of each data.

5. The self-check control method for an industrial computer according to claim 2, It is characterized in that According to the preset criteria, the first-order difference of the data in the data interval is divided into two categories, including: According to the maximum inter-class variance criterion, the first-order differences are divided into first-class first-order differences and second-class first-order differences; Or the number of clusters is preset to 2, and the first-order differences are divided into first-class first-order differences and second-class first-order differences by using K-means clustering.

6. The self-check control method for an industrial computer according to claim 3, It is characterized in that Get the remaining length of the remaining data except the data interval corresponding to the final length, and determine whether to continue iterating, including: If the remaining length is less than the initial length, no subsequent iteration is performed; otherwise, the last data in the data interval corresponding to the remaining length is taken as a new starting point, and the next final length is obtained from back to front according to the iterative method. The remaining length is updated according to the next final length, and it is determined whether to continue iterating until the remaining length is less than the initial length.

7. The self-check control method for an industrial computer according to claim 6, It is characterized in that A box plot is established for the industrial computer data based on the final length to perform anomaly detection, including: Construct a box plot of the data interval according to the first quartile Q1 and the third quartile Q3 of the data interval corresponding to the final length, and the median Q2, and set a data anomaly threshold IQR=Q3-Q1 of the data interval; The box plot is used to identify anomalies in the data interval. If it is identified that there is data less than or equal to Q1-1.5IQR in the data interval, or there is data greater than or equal to Q3+1.5IQR, there is a data anomaly in the data interval; otherwise, there is no data anomaly in the data interval.

8. The self-check control method for an industrial computer according to claim 7, It is characterized in that The performing of self-check according to the abnormality detection result includes: if there is data abnormality in the data interval, controlling the industrial computer to start a self-check program; otherwise, the industrial computer does not start the self-check program.

9. An industrial computer self-checking control system, It is characterized in that The self-check control system includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps in the self-check control method according to any one of claims 1 to 8 can be implemented.