A method and system for secure data backup of industrial control computers
Through segmented analysis and screening of motor speed data, combined with the complexity and abnormality of speed changes, adaptive backup of industrial computer data is realized, which solves the problem of redundant backup and improves the efficiency and reliability of data backup.
Patent Information
- Application Number
- CN202410993219.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The existing industrial computer data backup method produces redundant data backup during the motor speed data collection process, resulting in low data call and analysis efficiency and poor backup reliability.
By periodically acquiring the motor speed data, analyzing the data fluctuations in segments, the target data segments in the variable speed movement phase are screened out, the speed change complexity and abnormality of the data segments are determined based on extreme value distribution and abnormal data, and the backup attention and degree of backup are determined based on time characteristics. priority to achieve adaptive data backup.
It effectively reduces the memory usage of data backup, improves backup efficiency, avoids redundant data backup, and improves the reliability and analysis efficiency of data backup.
Smart Images

Figure CN118519833B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis and backup, and in particular to a method and system for securely backing up data of an industrial computer. Background Art
[0002] In industrial automation systems, industrial computers are responsible for real-time monitoring and processing of relevant status data. Timely backup of status data is essential to prevent production interruptions and equipment damage analysis. The motor speed data is the status data that is of particular concern during the operation of the motor. Therefore, industrial computers are required to back up the motor speed data.
[0003] In the related art, data is backed up regularly or started by triggering a threshold. In this way, since some data fluctuations will occur during the operation of the motor and erroneous data jumps will occur during the speed data acquisition process, whether it is scheduled backup or triggering a threshold to start backup, a large amount of redundant data backup will be caused. As a result, there is still a large amount of redundant data that needs to be analyzed in the event of equipment failure or abnormal conditions, which makes data call and analysis efficiency low and data backup reliability poor. Summary of the invention
[0004] In order to solve the technical problem that redundant data backup effects are generated in the related technology, so that there is still a large amount of redundant data to be analyzed when the equipment fails or is abnormal, thereby making the data call and analysis efficiency low and the data backup reliability poor, the present invention provides an industrial computer data security backup method and system, and the technical solution adopted is as follows:
[0005] The present invention proposes a method for securely backing up data of an industrial computer, the method comprising:
[0006] Periodically acquiring the motor speed data uploaded to the industrial computer; dividing the motor speed data into different initial data segments according to the time sequence according to the data fluctuation of the motor speed data;
[0007] Determine the data stability of each initial data segment according to the discrete degree of the motor speed data in each initial data segment; and select the target data segment of the motor performing variable speed motion from the initial data segment according to the data stability;
[0008] According to the extreme value distribution in the target data segment, the speed change complexity of the motor rotation corresponding to each target data segment is determined; according to the value of the motor speed data at each moment, abnormal data is screened and obtained, and according to the value and time distribution of the abnormal data in each target data segment, the abnormal degree of each target data segment is determined;
[0009] Determine the backup priority of each target data segment based on the abnormality level of the segment and the speed change complexity; determine the backup priority of the target data segment based on the backup priority and the time characteristics corresponding to each target data segment;
[0010] Data backup storage of motor speed data is achieved according to the backup priority of all target data segments.
[0011] Further, according to the data fluctuation of the motor speed data, the motor speed data is divided into different initial data segments according to the time sequence, including:
[0012] Based on the adaptive piecewise constant approximation algorithm, the motor speed data with similar data fluctuations and adjacent in time sequence are divided into an initial data segment.
[0013] Furthermore, determining the data stability of each initial data segment according to the discreteness of the motor speed data in each initial data segment includes:
[0014] The standard deviation of all motor speed data in each initial data segment is taken as the degree of dispersion;
[0015] Calculate the ratio of the discrete degree to the mean of all motor speed data in the corresponding initial data segment as the coefficient of variation;
[0016] The product of the coefficient of variation and the degree of dispersion is calculated, and the product is negatively correlated and normalized to obtain the data stability of the initial data segment.
[0017] Further, the target data segment of the motor performing variable speed motion is obtained by screening the initial data segment according to the data stability, including:
[0018] The initial data segment whose data stability is less than a preset stability threshold is used as the target data segment.
[0019] Furthermore, according to the extreme value distribution in the target data segment, determining the speed change complexity of the motor rotation corresponding to each target data segment includes:
[0020] Determine the numerical difference and time interval between the maximum value and the two nearest minimum values in each target data segment;
[0021] The ratio of the numerical difference between the maximum value and the same minimum value to the time interval is used as the speed change coefficient of the maximum value and the corresponding minimum value; the sum of the two speed change coefficients is used as the neighborhood fluctuation coefficient of the maximum value; the sum of the neighborhood fluctuation coefficients of all the maximum values is used as the first complex index;
[0022] The ratio of the number of maximum values in the target data segment to the total duration of the target data segment is used as a second complexity index;
[0023] The product of the first complexity index and the second complexity index is calculated, and normalized to obtain the speed change complexity.
[0024] Further, determining the abnormality degree of each target data segment according to the value and time distribution of the abnormal data in each target data segment includes:
[0025] Determine the ratio of the number of abnormal data to the total number of all motor speed data in the target data segment as the abnormality ratio;
[0026] Determine the time interval between two adjacent abnormal data, and take the mean of the time intervals between all two adjacent abnormal data in the target data segment as the abnormal interval difference, and perform negative correlation normalization processing on the abnormal interval difference to obtain an abnormal interval index;
[0027] Determine the standard deviation of all abnormal data in the target data segment as an abnormal fluctuation indicator;
[0028] The product of the abnormal proportion, the abnormal interval index and the abnormal fluctuation index is calculated, and normalized to obtain the segment abnormality degree of the target data segment.
[0029] Furthermore, the step of determining the backup attention level of each target data segment by combining the abnormality level of the segment and the speed change complexity level includes:
[0030] The product of the segment abnormality degree and the speed change complexity degree is calculated to obtain the backup attention degree of the target data segment.
[0031] Furthermore, the method for obtaining the backup priority of the target data segment includes:
[0032] Determine a time impact coefficient of the target data segment, wherein the time impact coefficient is smaller when the time interval between the target data segment and the current moment is larger;
[0033] The product of the backup concern and the time impact coefficient is calculated and normalized to obtain the backup priority.
[0034] Furthermore, the data backup storage of the motor speed data is implemented according to the backup priority of all target data segments, including:
[0035] The motor speed data of each target data segment is backed up and stored in descending order of the backup priority.
[0036] On the other hand, the present invention also provides an industrial computer data security backup system, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any of the aforementioned methods when executing the computer program.
[0037] The present invention has the following beneficial effects:
[0038] The embodiment of the present invention segments the data and obtains the target data segment of the motor in variable speed motion according to the data stability of each initial data segment, thereby avoiding backing up the normal operating conditions such as stable motion or uniform motion of the motor, reducing the memory usage of data backup, and improving the backup efficiency; by determining the speed change complexity by the extreme value distribution in each target data segment, determining the abnormality of the segment by the numerical value and time distribution of the abnormal data in each target data segment, and effectively analyzing the change of the motor speed for each target data segment, the backup attention of each target data segment is obtained, and the backup attention can effectively characterize the overall abnormal situation of the corresponding target data segment, and then combine the time characteristics of the target data segment to accurately analyze the importance of the target data segment, and then use the importance information as the backup priority, and realize data backup through the backup priority. The present invention can analyze the multiple stages contained in the motor speed, and realize adaptive data backup according to the rotation conditions in different stages, effectively improve the data backup efficiency of the industrial computer, avoid data redundancy, highlight important motor rotation data, facilitate data call and analysis, and improve the reliability of data backup. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flow chart of a method for securely backing up data on an industrial computer provided by an embodiment of the present invention;
[0041] Figure 2 A structural diagram of an industrial computer data security backup system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the industrial computer data security backup method and system proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0044] The specific scheme of the industrial computer data security backup method provided by the present invention is described in detail below with reference to the accompanying drawings.
[0045] See also Figure 1 , which shows a flow chart of a method for securely backing up data of an industrial computer provided by an embodiment of the present invention, the method comprising:
[0046] S101: periodically acquiring the motor speed data uploaded to the industrial computer; dividing the motor speed data into different initial data segments according to the time sequence according to the data fluctuation of the motor speed data.
[0047] One implementation scenario of the present invention is that the industrial computer backs up the motor speed data. It should be noted that the motor is designed to upload key operating parameters and status information to the industrial computer for backup at regular intervals. These data usually include but are not limited to the motor speed and motor load, etc. The present invention specifically analyzes the motor speed data.
[0048] In the prior art, data backup is usually performed in a time sequence. This backup situation will cause the industrial computer's running memory to be occupied at all times, and the efficiency of data call and data analysis is also poor. For this reason, the embodiment of the present invention periodically obtains the motor speed data uploaded to the industrial computer, and implements adaptive backup sequence adjustment through data analysis, thereby performing reasonable and orderly backup of data. The specific process is shown in the subsequent embodiments.
[0049] The periodicity may refer to that the motor speed data is counted once every 5 seconds and uploaded to the industrial computer every half an hour or every 10 minutes, and there is no restriction on this.
[0050] Among them, the data fluctuation of the motor speed data specifically characterizes the changes in the motor speed data at different times, because the motor speed includes multiple stages: such as the uniform speed operation stage and the variable speed stage. The uniform speed operation stage refers to the period when the motor runs at a stable speed, while the variable speed stage involves the situation where the motor needs to adjust the speed to meet specific needs, and multiple speed changes may occur in a short period of time. Therefore, the embodiment of the present invention segments the data according to different stages. In the process of data segmentation, it is necessary to divide it according to different stages.
[0051] Furthermore, in some embodiments of the present invention, based on an adaptive piecewise constant approximation algorithm, motor speed data with similar data fluctuations and adjacent in time sequence are divided into an initial data segment.
[0052] Among them, the Adaptive Piecewise Constant Approximation (APCA) algorithm is an algorithm well known to technical personnel in this field. Through this algorithm, the motor speed data in the time series can be segmented according to the change of the speed, that is, the motor speed data corresponding to the time series segments representing different speed states can be divided into an initial data segment.
[0053] Of course, in other embodiments of the present invention, the discreteness of the motor speed data at each moment and at other moments within its adjacent local range can also be directly calculated to determine the stability at each moment, and the data can be clustered and segmented according to the stability of all moments to obtain different initial data segments. These are all well-known technologies in the art and will not be described in detail.
[0054] The initial data segments obtained in the embodiment of the present invention represent that the motor speed fluctuation characteristics at the corresponding different segments are relatively consistent, that is, they are all stable fluctuations or they are all variable speed fluctuations. Therefore, data analysis of different data segments is implemented based on this. The specific analysis process can be found in the subsequent embodiments.
[0055] S102: determining the data stability of each initial data segment according to the discreteness of the motor speed data in each initial data segment; and obtaining the target data segment in which the motor is performing variable speed motion from the initial data segment according to the data stability.
[0056] The degree of dispersion is an indicator of the dispersion of numerical distribution. In the embodiment of the present invention, the degree of dispersion can be determined by using calculation methods such as variance and standard deviation, and there is no limitation on this.
[0057] Furthermore, in some embodiments of the present invention, the data stability of each initial data segment is determined according to the degree of discreteness of the motor speed data in each initial data segment, including: taking the standard deviation of all motor speed data in each initial data segment as the degree of discreteness; calculating the ratio of the degree of discreteness to the mean of all motor speed data in the corresponding initial data segment as the coefficient of variation; calculating the product of the coefficient of variation and the degree of discreteness, and performing negative correlation mapping and normalizing the product to obtain the data stability of the initial data segment.
[0058] That is to say, in one implementation of the embodiment of the present invention, the standard deviation is used as the degree of dispersion for specific analysis.
[0059] In the embodiment of the present invention, the ratio of the degree of dispersion to the mean of all motor speed data in the corresponding initial data segment, the ratio characterizes the coefficient of variation of the overall data, and the calculation formula of the coefficient of variation is well known to those skilled in the art, and no further description is given. Since the speed span of industrial motors is relatively large, usually between 0 and 3000 revolutions per second, in order to perform discrete analysis on motor speeds with a large span, it is necessary to unify the scale influence. Therefore, the embodiment of the present invention calculates the coefficient of variation as an index reference, and calculates the product of the coefficient of variation and the degree of dispersion to achieve discrete analysis of the motor speed data in the initial data segment. Since the larger the product of the coefficient of variation and the degree of dispersion, the larger the fluctuation of the corresponding data distribution and the more unstable the numerical change, the data stability of the initial data segment is obtained by negatively correlating and normalizing the product value in the embodiment of the present invention.
[0060] In one embodiment of the present invention, the normalization processing can be specifically, for example, maximum and minimum value normalization processing, and the normalization in subsequent steps can all adopt maximum and minimum value normalization processing. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of numerical values, which will not be described in detail.
[0061] It should be noted that a positive correlation indicates that there is a same-direction change relationship between the independent variable and the dependent variable, that is, the larger the independent variable is, the larger the dependent variable is; a negative correlation indicates that there is an opposite-direction change relationship between the independent variable and the dependent variable, that is, the smaller the independent variable is, the larger the dependent variable is; the specific manifestations of the positive correlation and the negative correlation are determined by actual applications and are not particularly limited in this application.
[0062] Therefore, a specific example of obtaining data stability is:
[0063]
[0064] In the formula, represents the data stability of the u-th initial data segment, represents the discrete degree of the u-th initial data segment, represents the mean value of all motor speed data in the u-th initial data segment, represents the coefficient of variation of the u-th initial data segment, Represents an exponential function with the natural constant e as the base.
[0065] pass Normalize the negative correlation so that The larger the value of The smaller the value.
[0066] In some other embodiments of the present invention, normalization can also be achieved by using the maximum and minimum values, and data negative correlation processing can be performed by taking the inverse. The corresponding calculation formula can be, for example:
[0067]
[0068] in, It represents the normalization of the maximum and minimum values. The explanation of other formula symbols is the same as the above formula and will not be repeated here.
[0069] It should be noted that in order to ensure that the calculation results are meaningful, when performing fractional operations, when the embodiment of the present invention encounters a situation where the denominator may be 0, a non-zero adjustment factor can be automatically added to the denominator for addition to prevent the denominator from being 0. The value of the adjustment factor is set by the implementer according to actual conditions, and this application does not impose any special restrictions.
[0070] Among them, the data stability represents the numerical stability of all motor speed data in the initial data segment. The larger the value, the higher the stability of the motor speed data, that is, the more likely the motor is in a stage of uniform rotation. The smaller the value, the lower the stability of the motor speed data, that is, the more likely the motor is in a stage of variable speed rotation. Therefore, in the embodiment of the present invention, the target data segment of variable speed motion can be obtained based on data stability.
[0071] Furthermore, in some embodiments of the present invention, a target data segment of the motor performing variable speed motion is obtained by screening the initial data segment according to data stability, including: taking the initial data segment whose data stability is less than a preset stability threshold as the target data segment.
[0072] Among them, the preset stability threshold is the threshold value of data stability. In the embodiment of the present invention, the preset stability threshold can be specifically 0.3, for example, that is, the initial data segment with a data stability less than 0.3 is used as the target data segment, and the initial data segment with a data stability greater than or equal to 0.3 is used as the stable data segment.
[0073] It can be understood that a stable data segment indicates that the data fluctuations therein are relatively stable and are in a uniform motion state. When backing up data therein, the mean and other features can be used to uniformly back up the stable data segments. Alternatively, since the uniform motion state has no analytical value, data backing may not even be performed on it, and only the target data segment with large data fluctuations may be backed up. Therefore, in the embodiment of the present invention, only the backup status of the target data segment is analyzed.
[0074] S103: Determine the speed change complexity of the motor rotation corresponding to each target data segment according to the extreme value distribution in the target data segment; filter out abnormal data according to the value of the motor speed data at each moment, and determine the segment abnormality degree of each target data segment according to the value and time distribution of the abnormal data in each target data segment.
[0075] Among them, since the speed change motion of the motor is a continuously changing process, the continuously changing process can be analyzed by extreme value characteristics in the embodiment of the present invention. The extreme values in the embodiment of the present invention specifically include maximum values and minimum values, and the method for obtaining the maximum values and minimum values will not be elaborated.
[0076] It should be noted that since the change in motor speed is a continuous process, that is, a maximum value includes at least one minimum value on both sides to form a waveform feature of the motor speed, therefore, in the embodiment of the present invention, all waveform features in each target data segment are specifically analyzed.
[0077] Furthermore, in some embodiments of the present invention, the speed change complexity of the motor rotation corresponding to each target data segment is determined according to the extreme value distribution in the target data segment, including: determining the numerical difference and time interval between the maximum value in each target data segment and its two nearest minimum values; taking the ratio of the numerical difference and time interval between the maximum value and the same minimum value as the speed change coefficient of the maximum value and the corresponding minimum value; taking the sum of the two speed change coefficients as the neighborhood fluctuation coefficient of the maximum value; taking the sum of the neighborhood fluctuation coefficients of all the maximum values as the first complexity index; taking the ratio of the number of maximum values in the target data segment to the total duration of the target data segment as the second complexity index; calculating the product of the first complexity index and the second complexity index, and normalizing them to obtain the speed change complexity.
[0078] Among them, since a maximum value includes at least one minimum value on both sides, in order to facilitate the analysis of the local fluctuation of the maximum value, the numerical difference and time interval between the maximum value and the two nearest minimum values can be calculated, that is, the two nearest minimum values to any maximum value can be set as the first minimum value and the second minimum value, and the corresponding ratio of the numerical difference and time interval between the maximum value and the first minimum value is used as the speed change coefficient of the maximum value and the first minimum value, and the sum of the speed change coefficients of the maximum value and the first minimum value, and the maximum value and the second minimum value is used as the neighborhood fluctuation coefficient of the maximum value. The corresponding calculation formula can be specifically, for example, as follows:
[0079]
[0080] In the formula, represents the neighborhood fluctuation coefficient of the i-th maximum value, represents the i-th maximum value, represents the first minimum value, represents the second minimum, represents the time interval corresponding to the i-th maximum value and the first minimum value, Represents the time interval corresponding to the i-th maximum value and the second minimum value.
[0081] That is to say, the greater the numerical difference between the maximum value and the adjacent minimum value, the greater the numerical variation range in the local range, and the smaller the time interval between the maximum value and the adjacent minimum value, the faster the corresponding numerical fluctuation, that is, the more drastic the fluctuation. Therefore, in the embodiment of the present invention, the speed variation coefficient is obtained by calculating the ratio of the numerical difference and the time interval. , and then the sum of the velocity variation coefficients is taken as the neighborhood fluctuation coefficient of the maximum value. That is, the larger the value of the neighborhood fluctuation coefficient is, the more drastic the fluctuation in the local range of the maximum value is.
[0082] In an embodiment of the present invention, each maximum value in the target data segment can be analyzed, and the sum of the neighborhood fluctuation coefficients of all maximum values can be used as the first complexity index. The larger the value of the first complexity index is, the more complex the data fluctuation in the target data segment is.
[0083] Among them, the more maximum values there are in the entire target data segment and the shorter the duration of the target data segment, the greater the fluctuation of the overall fan speed of the corresponding target data segment. Therefore, in an embodiment of the present invention, the ratio of the number of maximum values in the target data segment to the total duration of the target data segment can be used as the maximum value frequency, that is, the larger the maximum value frequency, the more complex the corresponding data, and the second complexity index is calculated.
[0084] The embodiment of the present invention can combine the first complexity index and the second complexity index to realize the analysis of the complexity of data fluctuation of the target data segment, that is, calculate the product of the first complexity index and the second complexity index, and perform normalization to obtain the speed change complexity. Among them, the larger the value of the speed change complexity, the more complex the fluctuation of the motor speed corresponding to the target data segment, and it is necessary to focus on analyzing it, that is, in order to facilitate subsequent data call and analysis, it is necessary to perform a more priority data backup.
[0085] Among them, the abnormal data refers to the abnormal situation of the motor speed. Since the motor speed will be within a certain range of values during normal operation of the motor, the motor speed data that does not belong to the range will be regarded as abnormal data, that is, the abnormal data is screened out according to the value of the motor speed data at each moment.
[0086] Among them, the numerical range interval can be specifically, for example, 200 revolutions per second to 1600 revolutions per second, that is, the motor speed data less than 200 revolutions per second or greater than 1600 revolutions per second is regarded as abnormal data. The specific numerical range interval is adjusted according to actual detection requirements. Due to different specific working conditions, there is no restriction on this.
[0087] In the embodiment of the present invention, after obtaining the abnormal data, the target data segment can be analyzed for abnormality according to the distribution and value of the abnormal data, so as to determine the abnormality degree of the target data segment, which is characterized by the abnormality degree of the segment in the embodiment of the present invention.
[0088] Furthermore, in some embodiments of the present invention, the segment abnormality degree of each target data segment is determined based on the numerical value and time distribution of the abnormal data in each target data segment, including: determining the ratio of the number of abnormal data to the total number of all motor speed data in the target data segment as the abnormality ratio; determining the time interval between two adjacent abnormal data, and taking the mean of the time intervals of all two adjacent abnormal data in the target data segment as the abnormal interval difference, performing negative correlation normalization processing on the abnormal interval difference to obtain an abnormal interval index; determining the standard deviation of all abnormal data in the target data segment as an abnormal fluctuation index; calculating the product of the abnormality ratio, the abnormal interval index and the abnormal fluctuation index, and performing normalization processing to obtain the segment abnormality degree of the target data segment.
[0089] Among them, the abnormal proportion is the ratio of the number of abnormal data to the total number of all motor speed data in the target data segment. The larger the value, the greater the proportion of abnormal data in the corresponding target data segment, that is, the higher the abnormality of the target data segment itself.
[0090] Among them, the abnormal interval difference is the mean of the time interval between two adjacent abnormal data. The smaller its value is, the greater the frequency of the two adjacent abnormalities is. The abnormal interval difference is negatively correlated and normalized to obtain the abnormal interval index. For example, the reciprocal of the abnormal interval difference is calculated and the reciprocal is normalized as the abnormal interval index, or the negative number of the abnormal interval difference can be calculated and the negative number is normalized as the abnormal interval index.
[0091] Among them, the abnormal fluctuation index is the standard deviation of all abnormal data in the target data segment. The larger the value is, the more discrete the numerical distribution of the abnormal data itself is, which means that the abnormal situation of the target data segment is more complex.
[0092] Therefore, in the embodiment of the present invention, the abnormal proportion, abnormal interval index and abnormal fluctuation index are combined to determine the segment abnormality degree of the target data segment, that is, the product of the abnormal proportion, abnormal interval index and abnormal fluctuation index is calculated, and the segment abnormality degree of the target data segment is obtained by normalization.
[0093] In the embodiment of the present invention, the greater the abnormality of the segment, the more distributions of the motor speed data in the abnormal state corresponding to the target data segment are and the more abnormal the values are, that is, the more abnormal the overall motor operating condition corresponding to the target data segment is.
[0094] S104: Determine the backup priority of each target data segment based on the abnormality level of the segment and the complexity of the speed change; determine the backup priority of the target data segment based on the backup priority and the time characteristics corresponding to each target data segment.
[0095] The backup concern level refers to the concern level of the target data segment for data backup. In the embodiment of the present invention, the target data segment is used as a backup unit for specific analysis to achieve data backup.
[0096] Furthermore, in some embodiments of the present invention, the backup concern of each target data segment is determined in combination with the segment abnormality level and the speed change complexity, including: calculating the product of the segment abnormality level and the speed change complexity to obtain the backup concern of the target data segment.
[0097] Because the greater the abnormality of the segment, the more distributions of the motor speed data in the abnormal state corresponding to the target data segment and the more abnormal the value, that is, the more abnormal the overall motor operating condition corresponding to the target data segment, the greater the value of the speed change complexity, the more complex the fluctuation of the motor speed corresponding to the target data segment, and it is necessary to focus on analyzing it. Therefore, in the embodiment of the present invention, the product of the segment abnormality and the speed change complexity can be calculated to obtain the backup attention. When the value of the backup attention is higher, it means that the operating condition of the motor corresponding to the target data segment is more complex, which means that the current situation that requires backup is more urgent.
[0098] In the embodiments of the present invention, the backup priority is used to characterize the urgency of backup, which can be combined with the backup attention and the time of the corresponding target data segment. Further, in some embodiments of the present invention, the method for obtaining the backup priority of the target data segment includes: determining the time impact coefficient of the target data segment, wherein the larger the time interval between the target data segment and the current moment, the smaller the time impact coefficient; calculating the product of the backup attention and the time impact coefficient, and normalizing it as the backup priority.
[0099] It should be noted that the larger the time interval between the target data segment and the current moment, the smaller the time impact coefficient. In other words, the farther the target data segment is from the current moment, the lower the importance of the corresponding data. Therefore, in the embodiment of the present invention, the time impact coefficient can be used as the timing importance of the target data segment for analysis.
[0100] Among them, the time interval between the end moment of the target data segment and the current moment can be calculated, and the negative number of the time interval can be normalized as the time impact coefficient; or, when the target data segment includes the current moment, the time impact coefficient of the target data segment can be set to 1, and when the target data segment does not include the current moment, the reciprocal of the time interval can be normalized as the time impact coefficient, and there is no restriction on this.
[0101] Of course, in other embodiments of the present invention, the midpoint time or the starting time of the target data segment may also be used as the analysis of the specific time interval, and there is no limitation to this.
[0102] Therefore, the product of the backup attention and the time influence coefficient is calculated and normalized as the backup priority. The larger the value of the backup priority, the more complex the motor rotation condition corresponding to the target data segment, and the closer the target data segment is to the current moment, the greater the research significance and urgency of the analysis.
[0103] S105: Implementing data backup storage of the motor speed data according to the backup priority of all target data segments.
[0104] In the embodiment of the present invention, after the backup priorities of all target data segments are determined, the motor speed data of each target data segment may be backed up and stored in descending order of the backup priorities.
[0105] That is, the target data segment with a higher backup priority has a higher priority for backup. At the same time, the backup process can also be a corresponding packaged encrypted backup, so that the data of the same target data segment can be packaged, which provides convenience for subsequent data analysis and anomaly detection.
[0106] Of course, in other embodiments of the present invention, different compression methods can also be used to achieve data backup. For example, when the backup priority is greater than a preset threshold, such as 0.5, the motor speed data in the corresponding target data segment will be compressed using a lossless method, while others will use a lossy compression method, etc. The setting of the preset threshold is analyzed in combination with actual conditions.
[0107] The embodiment of the present invention segments the data, and obtains the target data segment of the motor in variable speed motion according to the data stability of each initial data segment, thereby avoiding backing up the normal operating conditions such as stable motion or uniform motion of the motor, reducing the memory usage of data backup, and improving the backup efficiency; by determining the speed change complexity by the extreme value distribution in each target data segment, determining the abnormality of the segment by the numerical value and time distribution of the abnormal data in each target data segment, and thus effectively analyzing the change of the motor speed for each target data segment, obtaining the backup attention of each target data segment, the backup attention can effectively characterize the overall abnormality of the corresponding target data segment, and then accurately analyze the importance of the target data segment in combination with the time characteristics of the target data segment, and then use the importance information as the backup priority, and realize data backup through the backup priority. The present invention can analyze the multiple stages contained in the motor speed, and realize adaptive data backup according to the rotation conditions in different stages, effectively improve the data backup efficiency of the industrial computer, and avoid the loss of important data, facilitate data call and analysis, and improve the reliability of data backup.
[0108] Some other embodiments of the present invention also provide an industrial computer data security backup system, see Figure 2 , Figure 2 This is a structural diagram of an industrial computer data security backup system provided by an embodiment of the present invention. The system 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program 603, the steps of the aforementioned industrial computer data security backup method are implemented.
[0109] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a method for securely backing up data of an industrial computer provided in the above embodiment.
[0110] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a method for securely backing up data of an industrial computer provided in the above embodiment.
[0111] Among them, the system, computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0112] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0113] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for securely backing up data of an industrial computer, characterized in that: The method comprises: Periodically acquiring the motor speed data uploaded to the industrial computer; dividing the motor speed data into different initial data segments according to the time sequence according to the data fluctuation of the motor speed data; Determine the data stability of each initial data segment according to the discrete degree of the motor speed data in each initial data segment; and select the target data segment of the motor performing variable speed motion from the initial data segment according to the data stability; According to the extreme value distribution in the target data segment, the speed change complexity of the motor rotation corresponding to each target data segment is determined; according to the value of the motor speed data at each moment, abnormal data is screened and obtained, and according to the value and time distribution of the abnormal data in each target data segment, the abnormal degree of each target data segment is determined; Determine the backup priority of each target data segment based on the abnormality level of the segment and the speed change complexity; determine the backup priority of the target data segment based on the backup priority and the time characteristics corresponding to each target data segment; Data backup storage of motor speed data is realized according to the backup priority of all target data segments; Determining the data stability of each initial data segment according to the discreteness of the motor speed data in each initial data segment includes: The standard deviation of all motor speed data in each initial data segment is taken as the degree of dispersion; Calculate the ratio of the discrete degree to the mean of all motor speed data in the corresponding initial data segment as the coefficient of variation; Calculating the product of the coefficient of variation and the degree of dispersion, and performing negative correlation mapping and normalization on the product to obtain data stability of the initial data segment; Determining the speed change complexity of the motor rotation corresponding to each target data segment according to the extreme value distribution in the target data segment, including: Determine the numerical difference and time interval between the maximum value and the two nearest minimum values in each target data segment; The ratio of the numerical difference between the maximum value and the same minimum value to the time interval is used as the speed change coefficient of the maximum value and the corresponding minimum value; the sum of the two speed change coefficients is used as the neighborhood fluctuation coefficient of the maximum value; the sum of the neighborhood fluctuation coefficients of all the maximum values is used as the first complex index; The ratio of the number of maximum values in the target data segment to the total duration of the target data segment is used as a second complexity index; Calculating the product of the first complexity index and the second complexity index, and performing normalization processing to obtain a speed change complexity degree; Determining the abnormality level of each target data segment according to the value and time distribution of the abnormal data in each target data segment includes: Determine the ratio of the number of abnormal data to the total number of all motor speed data in the target data segment as the abnormality ratio; Determine the time interval between two adjacent abnormal data, and take the mean of the time intervals between all two adjacent abnormal data in the target data segment as the abnormal interval difference, and perform negative correlation normalization processing on the abnormal interval difference to obtain an abnormal interval index; Determine the standard deviation of all abnormal data in the target data segment as an abnormal fluctuation indicator; The product of the abnormal proportion, the abnormal interval index and the abnormal fluctuation index is calculated, and normalized to obtain the segment abnormality degree of the target data segment.
2. A method for securely backing up data of an industrial computer according to claim 1, characterized in that: According to the data fluctuation of the motor speed data, the motor speed data is divided into different initial data segments according to the time sequence, including: Based on the adaptive piecewise constant approximation algorithm, the motor speed data with similar data fluctuations and adjacent in time sequence are divided into an initial data segment.
3. The method for securely backing up data of an industrial computer according to claim 1, characterized in that: The target data segment of the motor performing variable speed motion is obtained by screening the initial data segment according to the data stability, including: The initial data segment whose data stability is less than a preset stability threshold is used as the target data segment.
4. The method for securely backing up data of an industrial computer according to claim 1, characterized in that: The step of determining the backup concern of each target data segment by combining the segment abnormality degree and the speed change complexity degree includes: The product of the segment abnormality degree and the speed change complexity degree is calculated to obtain the backup attention degree of the target data segment.
5. The method for securely backing up data of an industrial computer according to claim 1, characterized in that: The method for obtaining the backup priority of the target data segment includes: Determine a time impact coefficient of the target data segment, wherein the time impact coefficient is smaller when the time interval between the target data segment and the current moment is larger; The product of the backup concern and the time impact coefficient is calculated and normalized to obtain the backup priority.
6. The method for securely backing up data of an industrial computer according to claim 1, characterized in that: The method of implementing data backup storage of motor speed data according to the backup priority of all target data segments includes: The motor speed data of each target data segment is backed up and stored in descending order of the backup priority.
7. A data security backup system for an industrial computer, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Data storage method and device of wind-driven power generating set
CN108829544A
Data processing method and device, electronic equipment and storage medium
CN114359350A
