A data processing method and system for industrial computer
By constructing a character frequency accumulation table and performing predictive compression and encrypted transmission of industrial computer data, the problem in the existing technology of being unable to effectively compress industrial computer timing update data is solved, and the efficiency and security of data transmission are improved.
Patent Information
- Application Number
- CN202410902831.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing technology cannot calculate the frequency of occurrence of characters in the data set in advance in industrial computers, resulting in poor compression of device data for time series update, and cannot effectively alleviate network congestion problems.
By obtaining the historical data points of the industrial computer, the frequency of various characters is calculated, and a cumulative character frequency table is constructed to perform predictive compression of the data to be compressed and encrypted transmission of the compressed data.
It improves the transmission efficiency and security of industrial computer equipment data, can more accurately adapt to timing changes, and achieve more efficient data compression effects.
Smart Images

Figure CN118450011B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and more specifically, to a data processing method and system for an industrial computer. Background Art
[0002] In the field of industrial control, with the development of cloud computing technology, the application of remote control and monitoring of terminal devices based on the cloud is becoming more and more widespread. In this context, more and more terminal devices are added to the Internet of Things system. In the Internet of Things system, with the continuous update of the data of the terminal device, for example, when the terminal device is an industrial computer, it usually needs to process a large amount of real-time data, including sensor data, equipment status data, production process data, etc., which are huge and frequently updated; therefore, the amount of data transmission between the cloud and the terminal device is gradually increasing, and the actual data transmission bandwidth is limited, resulting in network congestion problems in data transmission. Therefore, the use of effective data compression methods can help industrial computers run more efficiently during data processing.
[0003] For example, a patent application document with application publication number CN111865493A and titled “Data processing method and related equipment” discloses obtaining a valid character segment for a target data frame corresponding to a terminal device; then, based on the obtained valid character segment, compressing and encoding the data segment in the target data frame to obtain an encoded character string; replacing the data segment in the target data frame with the encoded character string, and using the replaced target data frame as a data frame to be transmitted to the cloud. By performing compression encoding, the problem of network congestion during transmission can be effectively alleviated.
[0004] It should be noted that when compressing device data in the above scheme, it is only for a large amount of existing device data, and it does not take into account the compression of data that is updated in time. Therefore, when dealing with device data that is updated in time in industrial computers, the existing conventional arithmetic coding cannot pre-count the frequency of occurrence of each type of character in the updated data. Arithmetic coding compression based only on the frequency of occurrence of each type of character in the current data cannot achieve a good compression effect. Summary of the invention
[0005] The purpose of the present invention is to propose a data processing method and system for an industrial computer, so as to solve the problem in the prior art that the data in the industrial computer cannot be compressed in advance due to the inability to pre-count the frequency of occurrence of characters in the data set; to this end, the present invention provides solutions in the following two aspects.
[0006] In a first aspect, the present invention provides a data processing method for an industrial computer, comprising the following steps:
[0007] Collect the data of the equipment to be compressed from the industrial computer in real time;
[0008] Compressing the device data to be compressed according to the pre-acquired character frequency accumulation table to obtain compressed data, and encrypting the compressed data to complete the encrypted transmission of the compressed data;
[0009] The acquisition process of the character frequency accumulation table is as follows: obtaining data points of the industrial computer at multiple historical sampling moments, each data point includes data of at least two dimensions, and all data under each dimension constitute time series data; taking any dimension as the target dimension, obtaining all classes of characters in the time series data in the target dimension, and calculating the frequency of each class of characters;
[0010] The ratio of the local fluctuation degree to the fluctuation degree is used as the reference degree of the target dimension; the fluctuation degree represents the fluctuation change of the time series data of the target dimension; the local fluctuation degree represents the local fluctuation change of the time series segment intercepted from the time series data of the target dimension;
[0011] Calculate the predicted frequency of each character : ; Represents the number of character types for all data points. Indicates The reference degree of each dimension, Indicates The time series data of the dimension corresponds to the Frequency of class characters;
[0012] Construct a character frequency accumulation table based on the predicted frequencies of all character classes corresponding to all dimensions.
[0013] The beneficial effects are as follows: the present invention analyzes the operating status of the industrial computer, predicts the occurrence probability of each type of character in the data according to the operating status of the industrial computer, and adaptively obtains the encoded character frequency accumulation table according to the prediction result, and compresses the data in the current time period, thereby solving the problem that in the process of conventional arithmetic coding compressing the industrial computer timing data, it is impossible to obtain a character frequency accumulation table that is more accurate and conforms to the timing changes of the industrial computer, thereby improving the effect of dynamic compression and being able to more efficiently transmit the device data of the industrial computer.
[0014] In one embodiment, the fluctuation degree is:
[0015] ;in, Indicates The volatility of the time series data in each dimension. Indicates The total number of data in the time series data of dimensions, Indicates The first dimension of the time series data data, Indicates The average value of the time series data in the dimension, Indicates The range of the time series data in one dimension.
[0016] The beneficial effect is that the degree of fluctuation quantifies the changes in data during the historical time period of the collection.
[0017] In one embodiment, the local fluctuation degree is:
[0018] Select the last L data in the time series data of the target dimension to form a time series segment; where L is greater than 2;
[0019] Calculate the difference between any data in the time series segment and the average value of the time series data of the target dimension, take the ratio of the difference to the range as the difference degree of any data, and take the root mean square of the difference degrees of L data as the local fluctuation degree of the time series segment.
[0020] The beneficial effect is that the later data among the data corresponding to the multiple historical sampling points can be selected to be as close as possible to the data of the industrial computer in operation, so that the subsequent prediction of the character frequency of the data in operation is more accurate.
[0021] In one embodiment, the method further includes adjusting the reference degree of the target dimension, specifically:
[0022] Based on the preset normal frequency range, the frequencies of all class characters of the target dimension are divided to obtain characters with normal frequency, characters with strong frequency, and characters with weak frequency;
[0023] For characters with normal frequency, the reference degree is kept unchanged; for characters with strong frequency and weak frequency, the reference degree is adjusted to obtain the adjusted reference degree. , whose expression is: ; Indicates The time series data of the dimension corresponds to the The reference degree of the class character, Indicates The time series data of the dimension corresponds to the The frequency of the class character, For the normal frequency range, is the lower limit, is the upper limit value, Class characters are either high-frequency characters or low-frequency characters.
[0024] The beneficial effect is: characters of different frequencies are classified, characters with too high or too low frequencies are screened out, thereby distinguishing characters with high dependence or characters that are almost completely unnecessary, and increasing them on the original basis to improve the credibility of subsequent predicted frequencies.
[0025] In one embodiment, the specific process of constructing the character frequency accumulation table according to the predicted frequencies of all character classes corresponding to all dimensions is as follows:
[0026] The ratio of the predicted frequency of each type of character in each dimension to the sum of the predicted frequencies of all class characters in the corresponding dimension is taken as the new predicted frequency of the corresponding class character;
[0027] Sort the new predicted frequencies of all class characters in each dimension to obtain the new predicted frequencies of each character after sorting;
[0028] Based on the order of the characters from front to back after sorting and the corresponding new predicted frequencies, the size of the interval occupied by each type of character is determined;
[0029] The character frequency accumulation table is constructed by combining all the character classes and the corresponding character intervals in all the dimensions.
[0030] The beneficial effects are: the above normalization operation avoids the situation where the sum of the frequencies of all characters corresponding to each dimension is not one; and the interval is divided according to the new predicted frequency of each character, and the interval size of each sorted character is obtained to form an arithmetic coded character frequency accumulation table for subsequent device data compression.
[0031] In one embodiment, the dimensions include but are not limited to temperature, pressure, humidity, operating speed, raw material consumption, production speed, and output.
[0032] In one embodiment, the frequency is the ratio of the frequency of occurrence of each type of characters to the total number of occurrences of all characters.
[0033] In one embodiment, the compressed data is encrypted using an AES encryption algorithm or a DES encryption algorithm.
[0034] In a second aspect, the present invention provides a data processing system for an industrial computer, comprising:
[0035] processor;
[0036] The memory stores computer instructions for a data processing system of an industrial computer. When the computer instructions are executed by the processor, the system executes the above-mentioned data processing method for an industrial computer.
[0037] The beneficial effects of the present invention are:
[0038] The solution of the present invention can utilize data of various dimensions in historical device data to construct a character frequency accumulation table, so as to timely and effectively compress device data collected in the next time period, thereby improving the efficiency of subsequent transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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:
[0040] Figure 1 A flowchart schematically shows a data processing method for an industrial computer in this embodiment;
[0041] Figure 2 A flowchart schematically shows the steps of obtaining a character frequency accumulation table in a data processing method for an industrial computer in this embodiment;
[0042] Figure 3 A structural block diagram of a data processing system for an industrial computer in this embodiment is schematically shown. DETAILED DESCRIPTION
[0043] 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.
[0044] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0045] In order to obtain the operating status of the industrial computer and detect the operating status in the prior art, it is necessary to collect the device data of the industrial computer during operation in real time and transmit the device data for subsequent detection of the operating status of the industrial computer.
[0046] However, due to the problem that the device data occupies a large space and has low transmission security, the device data needs to be compressed and stored in a timely manner. However, when compressing the device data that is updated in real time, the existing arithmetic coding cannot pre-count the frequency of each type of character in the real-time updated device data, and can only compress the real-time updated device data based on the frequency of occurrence of the corresponding characters in a part of the existing data, which cannot achieve a good compression effect.
[0047] Based on the above technical problems, the present invention proposes a data processing method and system for an industrial computer, which obtains a character frequency accumulation table in advance to achieve timely and efficient compression of real-time updated device data, and encrypts the compressed data to make subsequent transmission more efficient and secure.
[0048] Specifically, taking an industrial computer for industrial control as an example, a data processing method for the industrial computer in this embodiment is introduced.
[0049] Specifically, Figure 1 As shown, a data processing method for an industrial computer in this embodiment includes the following steps:
[0050] At step S1, the device data to be compressed of the industrial computer is collected in real time. Specifically, the device data to be compressed of the industrial computer collected in real time in this embodiment includes the operation data of the industrial computer and the production data detected by the industrial computer; the dimensions of the operation data include but are not limited to: temperature, pressure, humidity, operation speed, raw material consumption, production speed, and output; the production data detected by the industrial computer includes equipment optical detection results, sound wave detection results, power consumption, water consumption, gas consumption, air quality, noise level, light intensity, etc.
[0051] The operation data is obtained through various sensors connected to the industrial computer, such as temperature sensors, pressure sensors, humidity sensors, etc., that is, the temperature, pressure, humidity and other operation data of the industrial computer are collected through these sensors. For the production data that the industrial computer needs to detect, the relevant data can be directly read from the operation process of the industrial computer. Among them, the equipment data of the industrial computer that needs to be recorded later only includes numbers, so only the digital data needs to be compressed.
[0052] In this embodiment, the frequency of collecting device data is 1 time / min Of course, as other implementation methods, the data collection frequency of the industrial computer is not limited in this embodiment, and the implementation personnel can set the collection frequency of the device data of the industrial computer according to the actual implementation situation.
[0053] At step S2, the device data to be compressed is compressed according to the pre-acquired character frequency accumulation table to obtain compressed data, and the compressed data is encrypted to complete the encrypted transmission of the compressed data.
[0054] In this embodiment, when compressing the device data to be compressed acquired in real time, it is necessary to obtain the character frequency accumulation table in advance, so that the data can be compressed in a timely and efficient manner, and the subsequent transmission is more efficient.
[0055] At the same time, in this embodiment, the compressed data is also encrypted, such as using the AES (Advanced Encryption Standard) encryption algorithm or the DES (Data Encryption Standard) encryption algorithm; of course, the key length can also be directly determined by the length of the compressed data, and the compressed data is encrypted to obtain encrypted data; specifically, the compressed data of each user is encrypted using the existing Blowfish block encryption algorithm, and the key length selected during encryption is the bit length of the compressed data to obtain encrypted data.
[0056] The acquisition process of the pre-acquired character frequency accumulation table in this embodiment is as follows: Figure 2 , including steps S21-S24, which are specifically as follows:
[0057] In step S21, a historical equipment data set of the industrial computer within a historical set time period is obtained; wherein the historical equipment data set includes data points at multiple historical sampling moments, each data point includes data of at least two dimensions, and all data under each dimension constitute time series data.
[0058] In which, taking the compression of device data at every set time interval as an example, the compressed device data can be a compression duration, therefore, the historical set time period in this embodiment is the device data of multiple compression durations that have been compressed; wherein the last moment of the historical set time period is a moment before the current data is to be compressed. For example, assuming that the set time interval is 30 minutes, and the moment when the current industrial computer is running is moment t, if moment t is the starting point of the compression duration, then the last moment of the historical set time period is moment t-1, and the data collected between moments t and t+29 needs to be compressed later.
[0059] It should be noted that the equipment data of the industrial computer is data of multiple dimensions collected during the operation of the industrial computer at different sampling times, and the data of multiple dimensions at the same sampling time constitute a data point.
[0060] In this embodiment, data points corresponding to multiple historical sampling moments are obtained to form a historical device data set corresponding to a historical set time period. Of the data points The dimension data is recorded as , the total number of data points collected is recorded as , then the total number of data in the time series data under each dimension is also , the total number of dimensions of each data point is recorded as .
[0061] In step S22, any dimension is taken as a target dimension, all class characters of the time series data in the target dimension are obtained, and the frequency of each class of characters is calculated.
[0062] In this embodiment, the frequency and total number of characters corresponding to all data in the time series data of each dimension in the historical device data set of the industrial computer are counted, and the ratio of the number of occurrences of each character and the total number of all characters is taken as the frequency of the corresponding character.
[0063] At the same time, the number of possible character types in all data points in the historical equipment data set of the industrial computer is recorded as .
[0064] In step S23, the reference degree of the target dimension is calculated.
[0065] The process of obtaining the reference degree is as follows:
[0066] Obtain the degree of fluctuation of the time series data corresponding to the target dimension in the historical device data set; intercept a time series segment from the time series data of the target dimension, and calculate the local degree of fluctuation of the time series segment. The intercepted time series segment is specifically: select the last L data in the time series data of the target dimension to form a time series segment; where L is greater than 2; and use the ratio of the local degree of fluctuation of any dimension to the corresponding degree of fluctuation as the reference degree of the frequency of the character.
[0067] Among them, the The dimension is the target dimension, and the reference degree of calculating the target dimension is:
[0068] ;in, Indicates The reference degree of each dimension, Indicates The local fluctuation degree of all data in the time series segment of the dimension, Indicates The volatility of the time series data in a dimension.
[0069] The degree of fluctuation in the above embodiment is:
[0070] ;in, Indicates The volatility of the time series data in each dimension. Indicates the total number of data in the time series data. Indicates The first dimension of the time series data data, Indicates The average value of all data in the time series data of dimensions. Indicates The range of the time series data in the dimension, where the range is The difference between the maximum and minimum values in the time series data of a dimension.
[0071] Among them Partially indicates The first dimension of the time series data The greater the value, the greater the fluctuation of the dimension data. The weight that represents the degree of fluctuation of each data. The earlier the data is collected, the lower its reference significance for the degree of fluctuation of the current data. Therefore, the weights of different data are adjusted according to the index value (that is, the number) of the data corresponding to each dimension, and the sum of the weights of all data is adjusted to one by dividing by the sum of all indexes.
[0072] The local fluctuation degree in the above embodiment is:
[0073] ;in, Indicates The local fluctuation degree of all data in the time series segment of the dimension, Indicates the total number of data in the time series segment. Indicates The first time segment in the dimension data, Indicates The average value of all data in the time series data of dimensions. Indicates The range of the time series data in one dimension.
[0074] The total number of data in the above time series segment In fact, it is the length of the time series segment, which is a preset recent local data range, that is, the last data collected by the industrial computer in the historical setting time period. data. Of course, the implementers can also set the local data range according to the actual implementation situation. The nearest local data range is not limited here.
[0075] It should be noted that for any dimension of data, when making subsequent character frequency predictions, the local fluctuation degree of the data in the recent local range is mainly considered, and based on the local fluctuation degree of the recent local data, it is judged whether the data of this dimension has changed dramatically during the recent operation of the industrial computer.
[0076] When calculating the reference degree of the frequency of characters in each dimension, the fluctuation degree and fluctuation range of the data of each dimension of the industrial computer are analyzed to obtain the reference degree of the corresponding dimension. The reason for analyzing each dimension separately is that the correlation between the data of different dimensions of the industrial computer is low, so it is necessary to analyze the data of different dimensions separately to obtain the fluctuation degree of the industrial computer in each dimension data to represent the operating status of the industrial computer in the corresponding dimension.
[0077] In this embodiment, the frequency of occurrence of characters in the subsequent operation of the industrial computer is predicted based on the reference degree of each dimension and the frequency of each type of character in the corresponding dimension.
[0078] It should be noted that the data of the industrial computer will be updated with the time series, so the time series segment will also change with time. For any dimension, the greater the degree of local fluctuation relative to the fluctuation of all data of the dimension, the greater the fluctuation of the data of the dimension in the recent period compared with the overall data, so more historical data should be considered, so the reference degree is greater.
[0079] Furthermore, since the referenceability in the above embodiment only considers the fluctuation degree of all data corresponding to each dimension and the fluctuation degree of data in the recent range, it does not take into account that some characters may be irrelevant to the local fluctuation degree of data in the local range. For example, for data of any dimension, the dimensional data may have two situations: one is completely dependent on one or more types of characters, or the other is completely unnecessary. The above two situations are more related to the frequency of the characters corresponding to the data in the historical device data set, that is, the former belongs to characters with too high frequency (strong frequency characters), and the latter belongs to characters with too low frequency (weak frequency characters). Strong frequency characters and weak frequency characters are often data that often appear or data that do not often appear in historical device data. The frequency credibility of the characters in the two situations is often large. Therefore, in this embodiment, special considerations need to be given to strong frequency characters and weak frequency characters, so it is necessary to screen out strong frequency characters and weak frequency characters and adjust their referenceability.
[0080] Specifically, the process of obtaining the adjusted reference degree is as follows:
[0081] The box plot method is used to detect the frequencies of all characters, and obtain characters with normal frequencies and characters with abnormal frequencies, where the characters with abnormal frequencies include strong frequency characters and / or weak frequency characters. Specifically, the box plot method is used to detect the frequencies of all characters corresponding to the time series data of each dimension, and obtain the characters in the target dimension that are in the normal frequency range [ ] characters with normal frequency, exceeding the upper limit The frequency is too high and the frequency is below the lower limit. Weak frequency characters with too small frequency when
[0082] For characters with normal frequency, the reference degree is kept unchanged; for characters with strong frequency and weak frequency, the reference degree is adjusted to obtain the adjusted reference degree. , whose expression is: ; Indicates The time series data of the dimension corresponds to the The reference degree of the class character, Indicates The time series data of the dimension corresponds to the The frequency of the class character, For the normal frequency range, is the lower limit, is the upper limit value, Class characters are either high-frequency characters or low-frequency characters.
[0083] In step S24, the predicted frequencies of each type of characters are calculated; and a character frequency accumulation table is constructed based on the predicted frequencies of all types of characters corresponding to all dimensions.
[0084] The predicted frequency in this embodiment is:
[0085] ;in, Indicates In the time series data of dimensions The predicted frequency of the class character, Represents the number of character types for all data points. Indicates The reference degree of each dimension, Indicates The time series data of the dimension corresponds to the The frequency of the class character.
[0086] Among them, the formula It indicates the frequency of characters in the data of all data points when the frequency of each character is evenly distributed. Partially indicates The dimension corresponding to The reference degree of a class character is the value after adjusting the frequency of the character.
[0087] It should be noted that the higher the reference degree, the higher the credibility of the frequency of characters in the historical device data. When predicting the frequency of subsequent characters, the frequency of characters in the historical device data should be considered more. For characters with lower reference degrees, when predicting the frequency of characters, directly take the product of the reference degree and the original frequency and the average of the average frequency. At this time, due to the low reference degree, the value of the product is also small, which means that the characters in the data are close to uniformly distributed, and the frequency of characters in the device data can be predicted based on this.
[0088] In this embodiment, the specific process of constructing the character frequency accumulation table is as follows:
[0089] The ratio of the predicted frequency of each type of character in each dimension to the sum of the predicted frequencies of all type characters in the corresponding dimension is taken as the new predicted frequency of the corresponding type of character; the new predicted frequencies of all type characters in each dimension are sorted to obtain the new predicted frequencies of each character after sorting; the size of the interval occupied by each type of character is determined based on the order of the characters from front to back after sorting and the corresponding new predicted frequencies; all type characters in all dimensions and the intervals of the corresponding characters are used to form a character frequency accumulation table.
[0090] The row characters in the character frequency table in this embodiment are listed as dimensions, wherein different dimensions under the same character correspond to different intervals.
[0091] It should be noted that the reason for the above normalization is that the first The sum of the frequencies of all characters in the time series data of a dimension may not be one, and the character frequency accumulation table of arithmetic coding requires that the sum of the frequencies of all types of characters is one, so the predicted frequency of each type of character is normalized and then the character frequency accumulation table is obtained.
[0092] For example, if a dimension has three characters, A, B, and C, and their new predicted frequencies are 0.5, 0.3, and 0.2, respectively, then the interval corresponding to A in the character frequency accumulation table is 0~0.5, the interval corresponding to B is 0.5~0.8, and the interval corresponding to C is 0.8~1; it should be noted that the order of the characters can be changed, but the correspondence between the characters and the corresponding intervals should be maintained. Since dividing the intervals of characters according to frequency is an existing method in arithmetic coding, it will not be described in detail here.
[0093] In this embodiment, when compressing the device data acquired in real time, a compression duration can be set, that is, the device data of the industrial computer acquired in real time within a period of time is compressed. Among them, the value of the set compression duration of the compressed data segment can be 30 minutes, that is, the data points corresponding to the current 30 acquisition moments are compressed. This embodiment does not limit the compression duration, and the implementation personnel can set the compression duration according to the actual implementation situation.
[0094] In addition, in the present embodiment, each time the device data of the industrial computer is compressed, the frequency of each type of character and the character frequency accumulation table need to be recalculated. This is because the historical device data is continuously updated in time series, so the frequency of the characters in the historical device data is also constantly changing. Therefore, based on the continuously updated historical device data, it is possible to keep up with the operating status data of the industrial computer, so that the predicted frequency obtained is more accurate, thereby obtaining a better compression effect, and at the same time reducing the data storage cost.
[0095] The scheme of the present invention can analyze the operating status of the industrial computer according to the historical equipment data of the industrial computer, predict the industrial computer data according to the different working states of the industrial computer, obtain the character frequency accumulation table according to the possible occurrence frequency of each type of character, and compress according to the character frequency accumulation table to achieve a better compression effect, and encrypt the compressed data, so as to make subsequent transmission more efficient and secure.
[0096] The present invention also provides a data processing system for an industrial computer. Figure 3 As shown, the system includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a data processing method for an industrial computer according to the present invention is implemented.
[0097] The system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface, whose configuration and functions are known in the art and thus will not be described in detail here.
[0098] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0099] In the description of this specification, "plurality" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0100] 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 data processing method for an industrial computer, characterized in that: The following steps are involved: Real-time collection of the equipment data to be compressed from the industrial computer; The device data to be compressed is compressed according to the pre-acquired character frequency accumulation table to obtain compressed data, and the compressed data is encrypted to complete the encrypted transmission of the compressed data; the acquisition process of the character frequency accumulation table is: obtaining data points of the industrial computer at multiple historical sampling moments, each data point includes data of at least two dimensions, and all data under each dimension constitute time series data; taking any dimension as the target dimension, obtaining all types of characters in the time series data in the target dimension, and calculating the frequency of each type of character; The ratio of the local fluctuation degree to the fluctuation degree is used as the reference degree of the target dimension; The fluctuation degree represents the fluctuation change of the time series data of the target dimension; the local fluctuation degree represents the local fluctuation change of the time series segment intercepted from the time series data of the target dimension; Calculate the predicted frequency of each character : ; Represents the number of character types for all data points. Indicates The reference degree of each dimension, Indicates The time series data of the dimension corresponds to the The frequency of the class character; Construct a character frequency accumulation table based on the predicted frequencies of all character classes corresponding to all dimensions; The degree of fluctuation is: ;in, Indicates The volatility of the time series data in each dimension. Indicates The total number of data in the time series data of dimensions, Indicates The first dimension of the time series data data, Indicates The average value of the time series data in the dimension, Indicates The range of the time series data in each dimension; The local fluctuation degree is: Select the last L data in the time series data of the target dimension to form a time series segment; where L is greater than 2; Calculate the difference between any data in the time series segment and the average value of the time series data of the target dimension, take the ratio of the difference to the range as the difference degree of any data, and take the root mean square of the difference degrees of L data as the local fluctuation degree of the time series segment.
2. A data processing method for an industrial computer according to claim 1, characterized in that: The method further includes adjusting the reference degree of the target dimension, specifically: The box plot method is used to perform anomaly detection on the frequencies of all classes of characters in the target dimension, and characters with normal frequencies and characters with abnormal frequencies are obtained, wherein characters with abnormal frequencies include strong frequency characters and weak frequency characters; For characters of normal frequency, keep the reference degree unchanged; For high-frequency characters and low-frequency characters, adjust the reference degree to obtain the adjusted reference degree , whose expression is: ; Indicates The time series data of the dimension corresponds to the The reference degree of the class character, Indicates The time series data of the dimension corresponds to the The frequency of the class character, For the normal frequency range, is the lower limit, is the upper limit value, Class characters are either high-frequency characters or low-frequency characters.
3. A data processing method for an industrial computer according to claim 1, characterized in that: The specific process of constructing the character frequency accumulation table based on the predicted frequencies of all types of characters corresponding to all dimensions is as follows: The ratio of the predicted frequency of each type of character in each dimension to the sum of the predicted frequencies of all class characters in the corresponding dimension is taken as the new predicted frequency of the corresponding class character; Sort the new predicted frequencies of all class characters in each dimension to obtain the new predicted frequencies of each character after sorting; Based on the order of the characters from front to back after sorting and the corresponding new predicted frequencies, the size of the interval occupied by each type of character is determined; The character frequency accumulation table is constructed by combining all the character classes and the corresponding character intervals in all the dimensions.
4. A data processing method for an industrial computer according to claim 1, characterized in that: The dimensions include, but are not limited to, temperature, pressure, humidity, operating speed, raw material consumption, production speed, and output.
5. A data processing method for an industrial computer according to claim 2, characterized in that: The frequency is the ratio of the frequency of occurrence of each type of characters in the target dimension to the total number of occurrences of all characters.
6. A data processing method for an industrial computer according to claim 1, characterized in that: The compressed data is encrypted using an AES encryption algorithm or a DES encryption algorithm.
7. A data processing system for an industrial computer, characterized in that: include: processor; A memory storing computer instructions for a data processing system of an industrial computer. When the computer instructions are executed by the processor, the system executes a data processing method for an industrial computer according to any one of claims 1 to 6.
