A data storage management method and system for digital twin production line
By designing a data storage management system in the digital twin production line, dynamically adjusting the backup mode and time interval, and optimizing the backup strategy with historical call characteristics, the problem of untimely and costly data backup in distributed storage is solved, and the flexibility of backup is improved and reliability reduces the burden on the central processor and ensures data security.
Patent Information
- Application Number
- CN202411249193.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-09-06
AI Technical Summary
The distributed storage method in the digital twin production line leads to the problem of untimely backup or high cost of data backup. Traditional periodic backup methods have the risk of untimely backup or data loss, and incremental backup increases the operating pressure and maintenance cost of the central processor.
A data storage management system is designed, including a storage unit, an exception identification unit and a central processor. By collecting the storage status of the sub-memory, calculating the usage score, dynamically determine the backup mode, and backing up immediately when data is abnormal, adjusting the backup time interval , optimize the backup strategy based on historical call features.
It improves the flexibility and reliability of data backup, reduces the operating burden of the central processor, optimizes the system resource utilization rate, ensures the security and integrity of data, and avoids the limitations of traditional backup methods.
Smart Images

Figure CN118760551B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage management technology, and in particular to a data storage management method and system for a digital twin production line. Background Art
[0002] In modern manufacturing, the degree of automation of copper pillar crimping production lines is increasing, and the operating status of equipment directly affects production efficiency and product quality. In order to ensure the efficient and stable operation of the production line, real-time monitoring of equipment status becomes particularly important. The digital twin production line maps the production line and can monitor the operation of the production line in real time. However, due to the wide variety of production line equipment, the amount of data in the digital twin production line is huge, which increases the difficulty of data storage and backup. For this reason, distributed storage is often used to solve the problem of data storage difficulties.
[0003] However, in distributed storage, due to the dispersion of sub-storage, in order to ensure data security, the data backup capability needs to be enhanced. However, the current method of regular backup is adopted. The traditional periodic backup method often uses fixed time intervals to back up data. Although it is simple and easy, there is a risk of untimely backup or data loss. Especially in the production process, if data anomalies occur and the backup mechanism cannot respond in time, it may lead to the loss of key data, affect the normal operation of the production line, and increase the complexity of maintenance and data recovery. If the incremental backup method is adopted, the operating pressure of the central processor will be increased, and the equipment and maintenance costs will be increased.
[0004] Therefore, it is necessary to design a data storage management method and system for digital twin production lines to solve the problems existing in current technologies. Summary of the invention
[0005] In view of this, the present invention proposes a data storage management method and system for a digital twin production line, aiming to solve the problem that the current digital twin production line adopts unreasonable data backup method after distributed storage, which easily leads to data loss or high backup cost.
[0006] In one aspect, the present invention provides a data storage management system for a digital twin production line, comprising:
[0007] A storage unit, including a plurality of sub-memories;
[0008] A plurality of abnormality identification units are provided, each of which is provided corresponding to the sub-memory and is used to identify abnormal states of data in the sub-memory;
[0009] A central processing unit is used to manage the backup mode of the storage unit, and the central processing unit includes a collection unit, an adjustment unit and a judgment unit; wherein,
[0010] The collecting unit is configured to collect a storage state of each sub-storage, wherein the storage state includes a total amount of data and a change per unit time, obtain a usage score of each sub-storage according to the storage state, and determine a backup mode of each sub-storage according to the usage score;
[0011] When the acquisition unit determines that the backup mode of the sub-storage is periodic backup, the adjustment unit is configured to determine an initial backup interval according to the usage score, and the adjustment unit is further configured to analyze historical call features of data in the sub-storage, determine whether to adjust the initial backup interval according to the historical call features, and determine the backup time interval;
[0012] The judgment unit is configured to collect the abnormal signal of each abnormality identification unit in real time after the adjustment unit determines the backup time interval of the sub-memory. When an abnormality occurs in the data in the sub-memory, the judgment unit determines to immediately back up the sub-memory data and reset the backup time interval.
[0013] Furthermore, when the acquisition unit obtains the usage score of each sub-storage according to the storage state, the usage score is calculated by the following formula:
[0014] ;
[0015] Among them, S represents the usage score, D represents the total amount of data, Dmax represents the maximum capacity of the sub-memory, Dv represents the change per unit time, Dvmax represents the maximum read and write speed of the sub-memory, a and b represent weight coefficients, and a+b=1.
[0016] Further, when determining the backup mode of each sub-storage according to the usage score, it includes:
[0017] Comparing the usage score with a score threshold, and determining a backup mode of each of the sub-storages according to the comparison result;
[0018] When the usage score is greater than a score threshold, the acquisition unit determines that the backup mode of the sub-storage is incremental backup;
[0019] When the usage score is less than or equal to a score threshold, the acquisition unit determines that the backup mode of the sub-storage is periodic backup.
[0020] Further, the adjustment unit is configured to determine the initial backup interval according to the usage score, including:
[0021] The adjustment unit determines a score difference according to the usage score and a score threshold, the score difference being the difference between the score threshold and the usage score, and determines an initial backup interval according to the score difference, the initial backup interval being proportional to the score difference.
[0022] Furthermore, when the adjustment unit analyzes the historical call characteristics of the data in the sub-memory, it includes:
[0023] The historical call features include historical access frequency, historical access duration, data access level and historical access time distribution;
[0024] The adjustment unit calculates a historical call feature value according to the historical call feature, and the historical call feature value is obtained by calculating the following formula:
[0025] ;
[0026] Among them, T represents the historical call feature value, F represents the historical access frequency, Fmin represents the minimum access frequency, and Fmax represents the maximum access frequency. represents the average value of historical access duration, tmin represents the minimum value of historical access duration, and tmax represents the maximum value of historical access duration. represents the standard deviation of historical visit duration, It represents the average value of data access level, Lmin represents the minimum value of data access level, and Lmax represents the maximum value of data access level.
[0027] Further, when the adjustment unit determines whether to adjust the initial backup interval according to the historical call feature, it includes:
[0028] The adjustment unit compares the historical call characteristic value with the characteristic value threshold, and determines whether to adjust the initial backup interval according to the comparison result;
[0029] When the historical call characteristic value is greater than the characteristic value threshold, the adjustment unit determines to adjust the initial backup interval;
[0030] When the historical call characteristic value is less than or equal to the characteristic value threshold, the adjustment unit determines not to adjust the initial backup interval, and uses the initial backup interval as the backup time interval.
[0031] Further, when the adjustment unit determines to adjust the initial backup interval, it includes:
[0032] The adjustment unit adjusts the initial backup interval by the following formula to determine the backup time interval;
[0033] ;
[0034] Among them, G represents the backup time interval, G0 represents the initial backup interval, represents the adjustment factor, The value is [0.05-0.2], and T represents the historical call feature value.
[0035] Furthermore, when the judgment unit collects the abnormal signal of each abnormal identification unit, it includes:
[0036] The abnormality identification unit is configured to:
[0037] S301: Collect historical normal operation data, and classify the historical normal operation data to establish several data sets to be aggregated;
[0038] S302: For each of the data sets to be aggregated, randomly select k initial center points;
[0039] S303: Calculate the distance between the remaining data points and the center point, and assign the remaining data points to the nearest cluster according to the distance;
[0040] S304: recalculating the center point of the cluster;
[0041] S305: Repeat S403 and S404 until the center point no longer changes.
[0042] Furthermore, when the judgment unit collects the abnormal signal of each abnormal identification unit, it also includes:
[0043] The anomaly identification unit collects real-time data, and classifies the real-time data to determine the data set to be aggregated to which the real-time data belongs;
[0044] The distance between the real-time data and the center point of any category in the clustering result is calculated. When the distance between the real-time data and the center point of any category is greater than a distance threshold, the abnormality identification unit determines that the data in the sub-memory is abnormal.
[0045] Compared with the prior art, the beneficial effect of the present invention is that by introducing a data management mechanism, the limitations of the traditional periodic backup method are overcome. The acquisition unit in the central processing unit can dynamically acquire the storage status of each sub-memory, and calculate the usage score based on the total amount of data and the change per unit time, so as to reasonably determine the backup mode. The utilization efficiency of the memory is ensured, and when the backup mode is periodic backup, the adjustment unit intelligently adjusts the backup time interval by analyzing the historical call characteristics, avoiding the problem of untimely or excessive backup that may be caused by fixed time intervals. The judgment unit realizes a rapid response to abnormal data by real-time acquisition of the signal of the abnormal identification unit, immediately triggers the backup when the data is abnormal, and resets the backup time interval, thereby ensuring the security and integrity of the data. The present application improves the flexibility and reliability of backup, effectively reduces the operating burden of the central processing unit, and optimizes the utilization of system resources.
[0046] On the other hand, the present application also provides a data storage management method for a digital twin production line, which is applied to the above-mentioned data storage management system for a digital twin production line, including:
[0047] Collecting the storage status of each sub-storage, the storage status including the total amount of data and the amount of change per unit time, obtaining a usage score of each sub-storage according to the storage status, and determining a backup mode of each sub-storage according to the usage score;
[0048] When it is determined that the backup mode of the sub-storage is periodic backup, determining an initial backup interval according to the usage score, analyzing historical call characteristics of data in the sub-storage, judging whether to adjust the initial backup interval according to the historical call characteristics, and determining a backup time interval;
[0049] After determining the backup time interval of the sub-storage, the abnormal signal of each abnormality identification unit is collected in real time. When an abnormality occurs in the data in the sub-storage, the data in the sub-storage is immediately backed up and the backup time interval is reset.
[0050] It can be understood that the above-mentioned data storage management method and system for the digital twin production line have the same beneficial effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0052] Figure 1A structural block diagram of a data storage management system for a digital twin production line provided by an embodiment of the present invention;
[0053] Figure 2 A flowchart of a data storage management method for a digital twin production line provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0055] In modern manufacturing, the automation level of copper pillar crimping production lines is constantly improving, and the operating status of equipment directly affects production efficiency and product quality. To ensure the efficient and stable operation of the production line, real-time monitoring of equipment status becomes the key. The introduction of digital twin technology enables the production line to map and monitor its operating status in real time in virtual space. Although digital twin technology has greatly improved the visual management capabilities of the production line, the amount of data generated is extremely large due to the wide variety and complexity of production line equipment, which brings huge challenges to data storage and backup.
[0056] In order to meet this challenge, distributed storage has become a common solution. Data is stored in multiple sub-memory devices in a dispersed manner, reducing the load pressure of a single memory device. However, distributed storage also raises new problems, namely how to perform efficient backup management while ensuring data security. Most of the current backup mechanisms use periodic backup methods with fixed time intervals. Although the implementation is relatively simple, its disadvantages are gradually emerging: fixed intervals may not be able to respond to data changes in a timely manner, resulting in the loss of key data, especially when an abnormality occurs in the production line, the backup mechanism fails to start quickly, further exacerbating the risk of data loss. In addition, if an incremental backup method is used, although real-time backup can be achieved, it will significantly increase the computing and management burden of the central processor, resulting in a decrease in equipment operating efficiency and an increase in maintenance costs. Therefore, it is necessary to design a data storage management method and system for digital twin production lines to solve the problems existing in current technologies.
[0057] In some embodiments of the present application, see Figure 1 As shown, a data storage management system for a digital twin production line includes: a storage unit, an abnormality identification unit and a central processing unit.
[0058] The storage unit includes several sub-memories.
[0059] There are several abnormality identification units, each of which is arranged corresponding to a sub-memory, and the abnormality identification unit is used to identify abnormal states of data in the sub-memory.
[0060] The central processing unit is used to manage the backup mode of the storage unit, and the central processing unit includes a collection unit, an adjustment unit and a judgment unit.
[0061] The collection unit is configured to collect the storage status of each sub-storage, the storage status including the total amount of data and the change per unit time, obtain the usage score of each sub-storage according to the storage status, and determine the backup mode of each sub-storage according to the usage score.
[0062] When the acquisition unit determines that the backup mode of the sub-storage is periodic backup, the adjustment unit is configured to determine an initial backup interval based on the usage score. The adjustment unit is also configured to analyze the historical call characteristics of the data in the sub-storage, determine whether to adjust the initial backup interval based on the historical call characteristics, and determine the backup time interval.
[0063] The judgment unit is configured to collect the abnormal signal of each abnormality identification unit in real time after the adjustment unit determines the backup time interval of the sub-memory. When an abnormality occurs in the data in the sub-memory, the judgment unit determines to back up the sub-memory data immediately and reset the backup time interval.
[0064] Specifically, the storage unit includes several sub-memories. These sub-memories are used to store various data generated during the operation of the production line. Since the digital twin technology maps the entire production line, the amount of data generated is very large. Distributed storage can disperse this data into different sub-memories, thereby reducing the load pressure of a single memory and improving storage efficiency. Each sub-memory is set up with an abnormality recognition unit. The function of the abnormality recognition unit is to monitor the data status in the sub-memory in real time and identify whether the data is abnormal. In this way, potential equipment failures or data anomalies can be discovered in time to ensure the security and integrity of the data. The central processing unit is the core of the system and is used to manage the backup mode of the entire storage unit. The central processing unit consists of an acquisition unit, an adjustment unit, and a judgment unit, each of which has its own specific functions. The acquisition unit is responsible for collecting the storage status information of each sub-memory. The storage status includes two key parameters: the total amount of data and the amount of data change per unit time. These two parameters can reflect the usage of the sub-memory. Based on this information, the acquisition unit calculates the usage score of each sub-memory. The usage score is a quantitative indicator of the current usage status of the sub-memory, which is used to determine the appropriate backup mode. When the acquisition unit determines that the backup mode of a sub-storage is periodic backup, the adjustment unit determines the initial backup interval based on the usage score. This initial backup interval is the initial time interval for the backup operation, but in order to optimize the backup efficiency, the adjustment unit will also analyze the historical data call characteristics in the storage. The historical call characteristics reflect the usage patterns of the data. By analyzing these patterns, the adjustment unit can determine whether the initial backup interval needs to be adjusted, thereby determining the final backup time interval. This process ensures that the backup frequency is neither too high, resulting in a waste of resources, nor too low, resulting in the risk of data loss. The role of the judgment unit is to monitor the signal of the abnormality identification unit in real time after the adjustment unit determines the backup time interval. When an abnormality is detected in the data in the sub-storage, the judgment unit will immediately trigger the backup operation and reset the backup time interval. Ensure that data is protected in time to prevent loss in abnormal situations.
[0065] It is understandable that by introducing the backup management mechanism, efficient storage and security protection of data in the digital twin production line are achieved. Compared with the traditional fixed time interval backup method, the backup interval is dynamically adjusted according to the actual usage of the sub-memory and the historical data call characteristics, avoiding the problem of excessive backup or untimely backup. Through the real-time monitoring of the abnormality recognition unit and the rapid response of the judgment unit, the data can be backed up immediately when an abnormality occurs, thereby effectively preventing data loss and improving the reliability and security of data management. It optimizes the utilization of storage resources, reduces the burden on the central processor, and improves the overall operation efficiency of the digital twin production line.
[0066] In some embodiments of the present application, when the acquisition unit obtains the usage score of each sub-memory according to the storage state, the usage score is calculated by the following formula:
[0067] ;
[0068] Among them, S represents the usage score, D represents the total amount of data, Dmax represents the maximum capacity of the sub-memory, Dv represents the change per unit time, Dvmax represents the maximum read and write speed of the sub-memory, a and b represent weight coefficients, and a+b=1.
[0069] In some embodiments of the present application, when determining the backup mode of each sub-storage according to the usage score, it includes: comparing the usage score with the score threshold, and determining the backup mode of each sub-storage according to the comparison result.
[0070] Specifically, when the usage score is greater than the score threshold, the collection unit determines the backup mode of the sub-storage to be incremental backup. When the usage score is less than or equal to the score threshold, the collection unit determines the backup mode of the sub-storage to be periodic backup.
[0071] Specifically, for scenarios where the total amount of data is the main factor, a is preferably 0.7 and b is preferably 0.3. For scenarios where the change per unit time is the main factor, a is preferably 0.3 and b is preferably 0.7. For balanced scenarios, a and b are preferably 0.5.
[0072] It can be understood that by comprehensively considering the usage score calculation of the total amount of data and the amount of change, a dynamic backup mode selection basis is provided for each sub-storage. By setting the score threshold, the backup strategy can be intelligently adjusted according to the actual storage and access conditions to achieve efficient backup management. Compared with fixed-cycle backup or simple incremental backup strategies, it can respond more flexibly to the usage requirements of different storages, optimize the utilization of backup resources, and reduce the maintenance cost and burden of the system. It improves the intelligence level of data storage management, and improves the overall performance and response speed of the system while ensuring data security.
[0073] In some embodiments of the present application, when the adjustment unit is configured to determine the initial backup interval based on the usage score, it includes: the adjustment unit determines a score difference based on the usage score and the score threshold, the score difference is the difference between the score threshold and the usage score, and the initial backup interval is determined based on the score difference, and the initial backup interval is proportional to the score difference.
[0074] Specifically, the adjustment unit compares the score difference with a first preset score difference and a second preset score difference, respectively, and determines the initial backup interval according to the comparison result, and the first preset score difference is less than the second preset score difference. When the score difference is less than or equal to the first preset score difference, the initial backup interval is determined to be the first preset initial backup interval, when the score difference is greater than the first preset score difference and less than or equal to the second preset score difference, the initial backup interval is determined to be the second preset initial backup interval, when the score difference is greater than the second preset score difference, the initial backup interval is determined to be the third preset initial backup interval, the first preset initial backup interval is less than the second preset initial backup interval, and the second preset initial backup interval is less than the third preset initial backup interval.
[0075] It is understandable that by comparing the score difference with the preset score difference, the initial backup interval can be accurately determined, and the backup frequency can be automatically adjusted according to the changes in data storage needs, avoiding the data loss or excessive backup problems that may be caused by traditional fixed-cycle backup. In addition, the grading strategy can effectively control the backup frequency, balance the backup frequency and system burden, reduce maintenance costs, and improve data security and system stability. It ensures the optimization of backup management and makes the data storage of the production line more efficient and reliable.
[0076] In some embodiments of the present application, when the adjustment unit analyzes the historical call characteristics of the data in the sub-memory, the historical call characteristics include the historical access frequency, the historical access duration, the data access level and the historical access time distribution. The adjustment unit calculates the historical call characteristic value according to the historical call characteristics, and the historical call characteristic value is obtained by the following calculation formula:
[0077] ;
[0078] Among them, T represents the historical call feature value, F represents the historical access frequency, Fmin represents the minimum access frequency, and Fmax represents the maximum access frequency. represents the average value of historical access duration, tmin represents the minimum value of historical access duration, and tmax represents the maximum value of historical access duration. represents the standard deviation of historical visit duration, It represents the average value of data access level, Lmin represents the minimum value of data access level, and Lmax represents the maximum value of data access level.
[0079] Specifically, the historical access frequency indicates the number of times the data is accessed within a certain period of time. A high frequency may indicate that the data is frequently used. The historical access duration indicates the duration of each access. It includes the average, minimum, maximum, and standard deviation of the access duration. The data access level indicates the level of permission corresponding to accessing the data. It includes the average, minimum, and maximum values of the access level, which helps reflect the importance of the data. The historical access time distribution indicates the quotient of the standard deviation of the historical access duration and the average value of the duration. The distribution pattern of the access time can reflect the regularity and peak period of the access.
[0080] It is understandable that by analyzing and calculating the historical call feature values, the data usage pattern can be analyzed. Standardization ensures the fairness of each feature in the calculation and avoids deviations caused by scale differences. Comprehensive consideration of historical access frequency, access duration, and data access level enables the backup strategy to be accurately adjusted according to the actual use of the data. Reasonable backup optimization is carried out according to the usage pattern of historical data to ensure the timeliness and effectiveness of data backup, thereby improving the timeliness of system backup.
[0081] In some embodiments of the present application, when the adjustment unit determines whether to adjust the initial backup interval based on the historical call characteristics, it includes: the adjustment unit compares the historical call characteristic value with the characteristic value threshold, and determines whether to adjust the initial backup interval based on the comparison result.
[0082] Specifically, when the historical call feature value is greater than the feature value threshold, the adjustment unit determines to adjust the initial backup interval. When the historical call feature value is less than or equal to the feature value threshold, the adjustment unit determines not to adjust the initial backup interval and uses the initial backup interval as the backup time interval.
[0083] In some embodiments of the present application, when the adjustment unit determines to adjust the initial backup interval, it includes: the adjustment unit adjusts the initial backup interval by the following formula to determine the backup time interval;
[0084] ;
[0085] Among them, G represents the backup time interval, G0 represents the initial backup interval, represents the adjustment factor, The value is [0.05-0.2], and T represents the historical call feature value.
[0086] Specifically, by comparing historical call feature values with preset thresholds, the adjustment unit can monitor the changing trend of data usage in real time. Dynamically adjusting the backup interval based on these changes can effectively cope with fluctuations in data usage patterns and improve the adaptability of the backup strategy. The setting range of the adjustment coefficient allows the system to be flexible in dealing with different degrees of data changes. The appropriate coefficient can be selected according to specific application needs and system performance requirements to ensure the rationality and effectiveness of the backup strategy.
[0087] It is understandable that by comparing the historical call feature values with the feature value threshold, changes in data usage patterns can be effectively identified, thereby dynamically adjusting the backup interval. This ensures that the backup strategy can adapt to changes in data usage in real time, avoiding the risk of data loss that may be caused by fixed-cycle backup. At the same time, by setting the adjustment coefficient, the adjustment range of the backup interval can be optimized according to actual needs, enhancing the flexibility and responsiveness of the system. This improves the timeliness of data backup and reduces the maintenance cost and data recovery complexity of the system caused by improper backup strategies.
[0088] In some embodiments of the present application, when the judgment unit collects the abnormal signal of each abnormal identification unit, the abnormal identification unit is configured to:
[0089] S301: Collect historical normal operation data, and classify the historical normal operation data to establish a number of data sets to be aggregated.
[0090] S302: For each data set to be aggregated, k initial center points are randomly selected.
[0091] S303: Calculate the distance between the remaining data points and the center point, and assign the remaining data points to the nearest cluster according to the distance.
[0092] S304: Recalculate the center point of the cluster.
[0093] S305: Repeat S403 and S404 until the center point no longer changes.
[0094] In some embodiments of the present application, when the judgment unit collects the abnormal signal of each abnormal identification unit, it also includes: the abnormal identification unit collects real-time data, and classifies the real-time data to determine the data set to be aggregated to which the real-time data belongs. Calculate the distance between the real-time data and the center point of any class in the clustering result, and when the distance between the real-time data and the center point of any class is greater than the distance threshold, the abnormal identification unit determines that the data in the sub-memory is abnormal.
[0095] Specifically, S301, the abnormal identification unit collects historical normal operation data. These data reflect the operating status of the system under normal circumstances. The historical data is classified into several data sets to be aggregated. Each data set represents a data pattern or category, which is helpful for subsequent clustering analysis. S302: For each data set to be aggregated, k random initial center points are selected. These center points are used as representatives of the initial clusters for subsequent clustering calculations. S303 calculates the distance between each data point in the data set and the k center points. The Euclidean distance metric is usually used. The data point is assigned to the cluster (center point) closest to it. This is the core step of the clustering algorithm, through which the data points are grouped. S304 Recalculates the center point of the cluster based on the mean of all data points in each cluster. This reflects the latest position of the cluster. S305 Repeat S303 and S304 until the center point no longer changes or changes very little. This indicates that the clustering process has converged and a stable clustering result is obtained. Collect real-time data and classify it into the corresponding data set to be aggregated according to the characteristics of the real-time data. Calculate the distance between the real-time data and the center point of each cluster in the clustering result. If the distance between the real-time data and the center points of all clusters is greater than the set distance threshold, the data is determined to be abnormal. This means that the pattern of the real-time data is quite different from that of the normal data, which may indicate that the system is abnormal. The distance threshold can be determined based on the maximum distance value in the stable clustering results obtained in S304.
[0096] It is understandable that the data patterns and distance thresholds established through clustering can identify those anomalies that significantly deviate from the normal data patterns. Instead of relying on fixed thresholds or simple rules, judgments are made based on the statistical characteristics of the data itself, which improves the accuracy and robustness of anomaly detection. In addition, through dynamic updates and real-time monitoring, potential problems can be discovered in a timely manner, ensuring the reliability and stability of data storage management.
[0097] In the above embodiments, the limitations of the traditional periodic backup method are overcome by introducing a data management mechanism. The acquisition unit in the central processing unit can dynamically acquire the storage status of each sub-memory, and calculate the usage score based on the total amount of data and the change per unit time, so as to reasonably determine the backup mode. The use efficiency of the memory is ensured, and when the backup mode is periodic backup, the adjustment unit intelligently adjusts the backup time interval by analyzing the historical call characteristics, avoiding the problem of untimely backup or excessive backup that may be caused by fixed time intervals. The judgment unit realizes a rapid response to abnormal data by real-time acquisition of the signal of the abnormal identification unit, immediately triggers the backup when the data is abnormal, and resets the backup time interval, thereby ensuring the security and integrity of the data. The present application improves the flexibility and reliability of backup, effectively reduces the operating burden of the central processing unit, and optimizes the utilization of system resources.
[0098] In another preferred embodiment based on the above embodiment, refer to Figure 2 As shown, this embodiment provides a data storage management method for a digital twin production line, which is applied to the above-mentioned data storage management system for a digital twin production line, including:
[0099] S100: collecting the storage status of each sub-storage, the storage status including the total amount of data and the amount of change per unit time, obtaining the usage score of each sub-storage according to the storage status, and determining the backup mode of each sub-storage according to the usage score;
[0100] S200: when it is determined that the backup mode of the sub-storage is periodic backup, an initial backup interval is determined according to the usage score, historical call characteristics of data in the sub-storage are analyzed, and whether to adjust the initial backup interval is determined according to the historical call characteristics, so as to determine the backup time interval;
[0101] S300: After determining the backup time interval of the sub-storage, collect the abnormal signal of each abnormality identification unit in real time, and when the data in the sub-storage is abnormal, immediately back up the data in the sub-storage and reset the backup time interval.
[0102] It is understandable that by introducing a data management mechanism, the limitations of the traditional periodic backup method are overcome. The acquisition unit in the central processing unit can dynamically collect the storage status of each sub-memory, and calculate the usage score based on the total amount of data and the change per unit time, so as to reasonably determine the backup mode. The efficiency of the memory usage is ensured, and when the backup mode is periodic backup, the adjustment unit intelligently adjusts the backup time interval by analyzing the historical call characteristics, avoiding the problem of untimely or excessive backup that may be caused by fixed time intervals. The judgment unit realizes a rapid response to abnormal data by collecting the signal of the abnormal identification unit in real time, immediately triggers the backup when the data is abnormal, and resets the backup time interval, thereby ensuring the security and integrity of the data. The present application improves the flexibility and reliability of backup, effectively reduces the operating burden of the central processing unit, and optimizes the utilization of system resources.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A data storage management system for digital twin production lines, It is characterized in that include: A storage unit, including a plurality of sub-memories; A plurality of abnormality identification units are provided, each of which is provided corresponding to the sub-memory and is used to identify abnormal states of data in the sub-memory; A central processing unit is used to manage the backup mode of the storage unit, and the central processing unit includes a collection unit, an adjustment unit and a judgment unit; wherein, The collecting unit is configured to collect a storage state of each sub-storage, wherein the storage state includes a total amount of data and a change per unit time, obtain a usage score of each sub-storage according to the storage state, and determine a backup mode of each sub-storage according to the usage score; When the acquisition unit determines that the backup mode of the sub-storage is periodic backup, the adjustment unit is configured to determine an initial backup interval according to the usage score, and the adjustment unit is further configured to analyze historical call features of data in the sub-storage, determine whether to adjust the initial backup interval according to the historical call features, and determine the backup time interval; The judgment unit is configured to collect abnormal signals from each abnormality identification unit in real time after the adjustment unit determines the backup time interval of the sub-storage, and when an abnormality occurs in the data in the sub-storage, the judgment unit determines to immediately back up the data in the sub-storage and reset the backup time interval; When determining the backup mode of each sub-storage according to the usage score, the method includes: Comparing the usage score with a score threshold, and determining a backup mode of each of the sub-storages according to the comparison result; When the usage score is greater than a score threshold, the acquisition unit determines that the backup mode of the sub-storage is incremental backup; When the usage score is less than or equal to a score threshold, the acquisition unit determines that the backup mode of the sub-storage is periodic backup; When the adjustment unit is configured to determine the initial backup interval according to the usage score, the adjustment unit includes: The adjustment unit determines a score difference according to the usage score and the score threshold, the score difference being the difference between the score threshold and the usage score, and determines an initial backup interval according to the score difference, the initial backup interval being proportional to the score difference; When the adjustment unit analyzes the historical call characteristics of the data in the sub-memory, it includes: The historical call features include historical access frequency, historical access duration, data access level and historical access time distribution; The adjustment unit calculates a historical call feature value according to the historical call feature, and the historical call feature value is obtained by calculating the following formula: ; Among them, T represents the historical call feature value, F represents the historical access frequency, Fmin represents the minimum access frequency, and Fmax represents the maximum access frequency. represents the average value of historical access duration, tmin represents the minimum value of historical access duration, and tmax represents the maximum value of historical access duration. represents the standard deviation of historical visit duration, It represents the average value of data access level, Lmin represents the minimum value of data access level, and Lmax represents the maximum value of data access level.
2. The data storage management system for a digital twin production line according to claim 1, It is characterized in that When the acquisition unit obtains the usage score of each sub-storage according to the storage state, the usage score is obtained by calculating the following formula: ; Among them, S represents the usage score, D represents the total amount of data, Dmax represents the maximum capacity of the sub-memory, Dv represents the change per unit time, Dvmax represents the maximum read and write speed of the sub-memory, a and b represent weight coefficients, and a+b=1.
3. The data storage and management system for a digital twin production line according to claim 1, It is characterized in that When the adjustment unit determines whether to adjust the initial backup interval according to the historical call feature, it includes: The adjustment unit compares the historical call characteristic value with the characteristic value threshold, and determines whether to adjust the initial backup interval according to the comparison result; When the historical call characteristic value is greater than the characteristic value threshold, the adjustment unit determines to adjust the initial backup interval; When the historical call characteristic value is less than or equal to the characteristic value threshold, the adjustment unit determines not to adjust the initial backup interval, and uses the initial backup interval as the backup time interval.
4. The data storage management system for a digital twin production line according to claim 3, It is characterized in that When the adjustment unit determines to adjust the initial backup interval, it includes: The adjustment unit adjusts the initial backup interval by the following formula to determine the backup time interval; ; Among them, G represents the backup time interval, G0 represents the initial backup interval, represents the adjustment factor, The value is [0.05-0.2], and T represents the historical call feature value.
5. The data storage management system for a digital twin production line according to claim 1, It is characterized in that When the judgment unit collects the abnormal signal of each abnormal identification unit, it includes: The abnormality identification unit is configured to: S301: Collect historical normal operation data, and classify the historical normal operation data to establish several data sets to be aggregated; S302: For each of the data sets to be aggregated, randomly select k initial center points; S303: Calculate the distance between the remaining data points and the center point, and assign the remaining data points to the nearest cluster according to the distance; S304: recalculating the center point of the cluster; S305: Repeat S303 and S304 until the center point no longer changes.
6. The data storage management system for a digital twin production line according to claim 5, It is characterized in that When the judgment unit collects the abnormal signal of each abnormal identification unit, it also includes: The anomaly identification unit collects real-time data, and classifies the real-time data to determine the data set to be aggregated to which the real-time data belongs; The distance between the real-time data and the center point of any category in the clustering result is calculated. When the distance between the real-time data and the center point of any category is greater than a distance threshold, the abnormality identification unit determines that the data in the sub-memory is abnormal.
7. A data storage management method for a digital twin production line, applied to the data storage management system for a digital twin production line as claimed in any one of claims 1 to 6, It is characterized in that include: Collecting the storage status of each sub-storage, the storage status including the total amount of data and the amount of change per unit time, obtaining a usage score of each sub-storage according to the storage status, and determining a backup mode of each sub-storage according to the usage score; When it is determined that the backup mode of the sub-storage is periodic backup, determining an initial backup interval according to the usage score, analyzing historical call characteristics of data in the sub-storage, judging whether to adjust the initial backup interval according to the historical call characteristics, and determining a backup time interval; After determining the backup time interval of the sub-storage, the abnormal signal of each abnormality identification unit is collected in real time. When an abnormality occurs in the data in the sub-storage, the data in the sub-storage is immediately backed up and the backup time interval is reset.
Citation Information
Patent Citations
Data backup method and device for distributed system
CN112732479A
Distributed storage system based on cloud computing and file backup method thereof
CN117971789A
Power system data backup management method and system based on machine learning
CN118227375A
