Intelligent device early warning method and system based on digital twinning
By configuring data nodes in the hardware and software architecture of terminal devices to form a directed topology, and combining static hardware baselines and dynamic operating data, risk status early warning is achieved by using time series prediction and neural network models. This solves the problem of inaccurate and untimely risk status monitoring in traditional equipment operation and maintenance, and realizes efficient location and timely early warning of equipment failures.
Patent Information
- Application Number
- CN202611437243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-16
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional equipment operation and maintenance cannot provide timely and accurate risk status warnings, resulting in low accuracy and poor timeliness in equipment risk status monitoring.
The intelligent device early warning method based on digital twins configures data nodes in the hardware and software architecture of terminal devices to form a directed topology. It combines static hardware baseline data and dynamic operation data, and uses time-series prediction algorithms, multi-source data joint filtering algorithms and neural network models to perform early warning and location of risk status.
It improves the accuracy and response efficiency of equipment fault location, enables timely early warning and rapid location of fault root causes, supports pre-simulation of change scenarios, solves the problem of misjudging the root cause of complex coupled faults, builds a virtual and physical dual-path data closed-loop calibration mechanism, and adapts to cloud-native heterogeneous IT scenarios.
Smart Images

Figure CN123185097A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of operation and maintenance monitoring technology, and in particular to an intelligent device early warning method and system based on digital twins. Background Technology
[0002] Equipment operation and maintenance (O&M) refers to a series of operations for the routine maintenance, monitoring, and management of equipment, aiming to ensure the stable, efficient, and secure operation of equipment throughout its lifecycle. Specifically, O&M involves multiple technical fields such as information technology (IT) intelligent O&M, smart O&M, digital twins, artificial intelligence, large-scale models, intelligent agent decision-making, and intelligent network fault analysis. It covers multiple aspects including condition monitoring, fault diagnosis, performance optimization, and preventative maintenance, and is a key support for ensuring the continuity and reliability of information systems.
[0003] Currently, equipment operation and maintenance typically relies on data correlation for risk estimation, but cannot combine hardware capabilities for risk warning. As a result, there are issues with untimely and inaccurate warnings of equipment risk status. Summary of the Invention
[0004] This application provides a digital twin-based intelligent device early warning method and system to solve the problem of the inability to provide timely and accurate early warning of the risk status of equipment in the traditional equipment operation and maintenance process.
[0005] In a first aspect, embodiments of this application provide a smart device early warning method based on digital twins, applied to a terminal device. The method includes: configuring corresponding data nodes at at least one level in the hardware and software architecture of the terminal device, wherein data nodes at different levels are associated to form a directed topology, and each data node is associated with static hardware baseline data and dynamic operation data of the corresponding level. The static hardware baseline data is used to characterize the physical attributes of objects in the level, and the dynamic operation data is used to characterize the real-time operation status of objects in the level; and providing early warning of the risk status of the target device based on the hardware and software architecture configured with data nodes.
[0006] In one implementation, a risk status warning for a target device is issued based on a hardware and software architecture configured with data nodes. This includes: predicting historical business data of the target service using a time-series prediction algorithm to obtain predicted business data for the target service in a future preset time period, wherein the business data includes at least one of memory data, traffic data, and load data; determining the total resource amount corresponding to static hardware baseline data based on the data nodes in the hardware and software architecture, and obtaining a first idle resource reserve for the terminal device based on the total resource amount and the predicted business data; determining a first available resource reserve within the first idle resource reserve based on a first weighting coefficient corresponding to the target service in the static hardware baseline data; determining whether a first risk event exists for the target device using the first available resource reserve, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic running data, wherein the first risk event includes a first backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the first available resource reserve; and determining that the target device is in a first risk state if a first risk event exists, and issuing a warning based on the first risk state, wherein the first risk state characterizes a potential risk.
[0007] In one implementation, a risk status warning for the target device is issued based on a hardware and software architecture configured with data nodes. This includes: constructing a simulation hardware and software architecture based on the hardware and software architecture; loading and updating data nodes in the simulation hardware and software architecture, and replacing the simulated data nodes based on the updated data nodes; associating the updated data nodes with the first business simulation data of the operation and maintenance change scenario, where the first business simulation data includes instantaneous change data under the operation and maintenance change scenario, and the instantaneous change data is used to characterize the sudden change characteristics of at least one of memory, traffic, and load at the moment of the operation and maintenance change, which includes at least one of version update, service launch, resource expansion, and link switching; determining the total resource amount corresponding to the static hardware baseline data of the simulation associated with the updated data nodes, and then determining the total resource amount and simulation... The simulated second idle resource reserve of the terminal device is obtained by using the current resource occupancy corresponding to the dynamic operation data; the simulated second available resource reserve in the second idle resource reserve is obtained based on the difference between the second idle resource reserve and the instantaneous resource occupancy corresponding to the instantaneous change data; the second available resource reserve, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic operation data are used to determine whether the target device has a second risk event. The second risk event includes the second backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the second available resource reserve; if the second risk event exists, the target device is determined to be in a second risk state, and an early warning is issued based on the second risk state, which is used to characterize the risk to be occurred.
[0008] In one implementation, a risk status warning for a target device is issued based on a hardware and software architecture configured with data nodes. This includes: comparing static hardware baseline data and dynamic operational data corresponding to the data nodes in the hardware and software architecture to identify alarm nodes; traversing the topology using the alarm node as the root node to obtain at least one candidate node associated with the alarm node; filtering the candidate nodes using a multi-source data joint filtering algorithm to obtain at least one abnormal node among the candidate nodes, wherein the multi-source data joint filtering algorithm is used to judge the candidate nodes by using data from at least one dimension associated with each candidate node to determine whether the candidate node is related to the alarm node; determining an abnormal node set based on the abnormal nodes, and converging and locating the abnormal node set to determine that the target device has a third risk event, where the third risk event characterizes the fault event in the smallest fault impact domain corresponding to the abnormal node set; and, in the presence of a third risk event, determining that the target device is in a third risk state, and issuing a warning based on the third risk state, where the third risk state characterizes the risk that has occurred.
[0009] In one implementation, an abnormal node set is determined based on abnormal nodes, and the abnormal node set is converged and located to determine that a third risk event exists in the target device. This includes: extracting semantic features from the abnormal nodes in the abnormal node set based on a neural network model to obtain the effective fault features corresponding to the abnormal nodes; in a simulation hardware and software architecture built based on the hardware and software architecture, the effective fault features are transformed into second business simulation data, and the positive causal relationship between the simulated abnormal nodes and the third risk event is verified based on the second business simulation data. The positive causal relationship is used to characterize the generation of the third risk event based on the second business simulation data; after the positive causal relationship is verified, the second business simulation data is withdrawn to verify the reverse causal relationship between the simulated abnormal nodes and the third risk event. The reverse causal relationship is used to characterize whether the third risk event disappears after the second business simulation data is withdrawn; after the reverse causal relationship is verified, the simulated abnormal nodes are determined as the root cause nodes of the third risk event to determine that a third risk event exists in the target device, wherein all root cause nodes are used to constitute the smallest fault impact domain.
[0010] In one implementation, the method further includes: obtaining truth data based on objects in the first hardware layer of the software and hardware architecture, and obtaining simulation data based on objects in the second hardware layer of the simulation software and hardware architecture corresponding to the software and hardware architecture; performing time-series alignment and dimension normalization processing on the truth data and simulation data to generate a calibration dataset based on the processed truth data and processed simulation data; and calculating the error between the truth data and simulation data in the calibration dataset.
[0011] When the error exceeds a preset error threshold, the target model in the terminal device is calibrated and iteratively trained. The target model includes at least one of a prediction model, a simulation model, and a coupling mechanism model. The prediction model is used to execute the time series prediction algorithm, the simulation model is used to configure the simulation hardware and software architecture, and the coupling mechanism model is used to configure the hardware and software architecture.
[0012] In one implementation, calculating the error between the true data and the simulation data in the calibration dataset includes: calculating the error between the true data and the simulation data based on an error calculation formula in the calibration dataset; wherein the error calculation formula is: ; The error between true data and simulation data, For the true value data corresponding to the i-th sampling point, Let N be the simulation data corresponding to the i-th sampling point, and N be the number of sampling points within the statistical time period.
[0013] In one implementation, the method further includes: clustering the training data of the target model based on the neural network model to obtain at least one sample group, the sample group including at least one of memory fault sample group, hardware fault sample group, input / output fault sample group, hardware aging sample group, instantaneous disturbance sample group due to operation and maintenance changes, baseline operating condition sample group, and noise invalid sample group; removing the noise invalid sample group from the sample group to obtain at least one remaining sample group; labeling each remaining sample group with a corresponding label, the label being used to characterize the category of the remaining sample group; constructing a structured training dataset based on the labeled remaining sample groups; selecting a training subset from the training dataset that matches the current operating condition data of the target device; and calibrating and iteratively training the target model based on the training subset.
[0014] In one implementation, calibrating and iteratively training the target model based on a training subset includes: when iteratively training the prediction model based on the training subset, using hardware data from the training data as input and ground truth data as supervision labels, updating the weight parameters and bias parameters of the prediction model based on the backpropagation algorithm, and minimizing the prediction error loss, to iteratively train the prediction model; when iteratively calibrating the coupled mechanism model based on the training subset, calibrating the mechanism parameters in the coupled mechanism model based on the calibration dataset and the training subset, wherein the static hardware baseline data includes the mechanism parameters.
[0015] Secondly, embodiments of this application provide a digital twin-based intelligent device early warning system applied to a terminal device. The system includes: a configuration module, which configures corresponding data nodes based on at least one level of the terminal device's hardware and software architecture, wherein data nodes at different levels are associated to form a directed topology, and each data node is associated with static hardware baseline data and dynamic operating data of the corresponding level. The static hardware baseline data is used to characterize the physical attributes of objects in the level, and the dynamic operating data is used to characterize the real-time operating status of objects in the level; and an early warning module, which provides early warnings about the risk status of the target device based on the hardware and software architecture configured with data nodes.
[0016] As described above, this application provides a method and system for early warning of intelligent devices based on digital twins. The method includes: configuring corresponding data nodes at at least one level of the hardware and software architecture of a terminal device. Data nodes at different levels are associated to form a directed topology. Each data node is associated with static hardware baseline data and dynamic operational data of its corresponding level. The static hardware baseline data characterizes the physical attributes of objects within the level, and the dynamic operational data characterizes the real-time operational status of objects within the level. Based on the hardware and software architecture configured with data nodes, an early warning is issued for the risk status of the target device. Therefore, this method, by forming a directed topology with the configured data nodes at different levels of the terminal device's hardware and software architecture, enables cross-layer tracing to monitor objects at each level, obtain the risk status of the target device, and issue early warnings, thereby improving the accuracy and response efficiency of device fault location. This method can be applied to multiple technical fields such as IT intelligent operation and maintenance, smart operation and maintenance, digital twins, artificial intelligence, large models, intelligent agent decision-making, and intelligent network fault analysis. Based on the integration of artificial intelligence algorithms, large model semantic understanding and operation and maintenance intelligent agents, and based on a four-layer logical digital twin entity model, it combines hardware mechanism simulation and virtual-real dual-path verification technologies for IT infrastructure fault early warning, fault delimitation and location, and causal verification. It achieves the following effects: hardware-level causal inference capability, support for pre-simulation of change scenarios, resolution of root cause misjudgment problems of complex coupled faults through bidirectional causal verification, construction of virtual-real dual-path data closed-loop calibration mechanism, formation of a four-layer integrated scalable architecture to adapt to cloud-native heterogeneous IT scenarios, introduction of large model semantic understanding and intelligent agent autonomous decision-making capabilities, and improvement of the ability to discover and generalize the judgment of hidden faults in complex scenarios. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the first process of the intelligent device early warning method based on digital twin provided in this application embodiment; Figure 2 This is a schematic diagram of the hardware and software architecture of the terminal device provided in the embodiments of this application; Figure 3 This is a second flowchart illustrating the intelligent device early warning method based on digital twin provided in this application embodiment; Figure 4 This is the third flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application; Figure 5 This is the fourth flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application; Figure 6 This is the fifth flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application; Figure 7 This is a schematic diagram of the structure of the intelligent device early warning system based on digital twin provided in the embodiments of this application. Detailed Implementation
[0018] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of this application.
[0019] Equipment operation and maintenance (O&M) refers to a series of operations for the routine maintenance, monitoring, and management of equipment, aiming to ensure the stable, efficient, and safe operation of equipment throughout its lifecycle. O&M encompasses multiple aspects such as condition monitoring, fault diagnosis, performance optimization, and preventative maintenance, and is a key support for ensuring the continuity and reliability of information systems.
[0020] To address the issues of low accuracy and poor timeliness in monitoring equipment operating status during traditional equipment operation and maintenance, this application provides a digital twin-based intelligent device early warning method and system. This solution can be deployed on terminal devices, such as servers. The terminal devices can monitor device operating status based on their hardware and software architecture, improving the accuracy and timeliness of monitoring.
[0021] Figure 1 This is the first flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application.
[0022] like Figure 1 As shown, in some embodiments, the intelligent device early warning method based on digital twins includes the following steps S100-S200.
[0023] Step S100: Configure corresponding data nodes based on at least one level of the hardware and software architecture of the terminal device. The data nodes of different levels are associated to form a directed topology. Each data node is associated with the static hardware baseline data and dynamic running data of the corresponding level. The static hardware baseline data is used to characterize the physical attributes of objects in the level, and the dynamic running data is used to characterize the real-time running status of objects in the level.
[0024] The following section will first explain the hardware and software architecture of the terminal device.
[0025] Figure 2 This is a schematic diagram of the hardware and software architecture of the terminal device provided in the embodiments of this application.
[0026] like Figure 2 As shown, the digital twin-based intelligent device early warning method provided in this application embodiment can be applied to terminal device 100. Terminal device 100 is, for example, a server, server cluster, or cloud computing platform; in this application embodiment, terminal device 100 is, for example, a cloud computing platform. This application embodiment does not limit the specific type of terminal device 100.
[0027] The hardware and software architecture of the terminal device 100, from top to bottom, includes a business service layer 110, a network link layer 120, a virtual resource layer 130, and a physical hardware layer 140.
[0028] The business service layer 110 is used to support various business applications and provides interfaces for monitoring the operational status of business applications. The business service layer 110 includes microservices 111, data synchronization services 112, interface services 113, etc.
[0029] Microservice 111 is an independent service unit used to carry business logic, supporting elastic scaling and independent deployment. Data synchronization service 112 is used to realize cross-system and cross-level data flow and consistency maintenance. Interface service 113 is used to provide a standardized application programming interface (API) call entry point, supporting upper-layer applications to uniformly access and query the status of resources at various underlying layers.
[0030] The network link layer 120 is used to manage network topology and link status. The network link layer 120 includes physical links 121, virtual local area networks (VLANs) 122, leased links 123, etc.
[0031] Physical link 121 is used to carry data transmission between underlying physical devices. VLAN 122 is used to divide logically isolated subnets through software configuration on the basis of the physical network, realizing security isolation and traffic management between different service domains. Leased link 123 is used to carry data transmission of cross-regional, high-priority services.
[0032] The virtual resource layer 130 is used to manage the virtualization resource pool. The virtual resource layer 130 includes virtual machines 131, containers 132, virtual network cards 133, and other virtualization resources 134.
[0033] Virtual machine 131 is used to abstract physical hardware resources into an independent computing environment through virtualization technology, supporting operating system isolation and independent resource allocation. Container 132 is used to provide a lightweight application runtime environment, sharing the host kernel, enabling rapid deployment and efficient resource utilization. Virtual network interface card 133 is used to provide virtualized network access capabilities for virtual machine 131 or container 132, supporting network traffic transmission, reception, and isolation. Other virtualization resources 134 include auxiliary virtualization components such as virtual storage and virtual switches.
[0034] The physical hardware layer 140 is used to manage physical device entities. The physical hardware layer 140 includes servers 141, switches 142, network interface cards 143, and other hardware entities 144, etc.
[0035] Server 141 provides core physical resources such as computing and storage, supporting the operation of the virtualization layer and upper-layer business applications. Switch 142 provides network data exchange and forwarding capabilities, supporting data communication and topology connections between physical links. Network interface card 143 provides physical network access capabilities, supporting data transmission between the server and the switch, including data frame encapsulation and decapsulation, MAC address identification, and flow control. Other hardware entities 144 include physical devices such as storage arrays, load balancers, and firewalls, used to supplement computing, storage, and network security capabilities, supporting the complete operation of the overall infrastructure.
[0036] The aforementioned layers can interact bidirectionally through standardized data interfaces, forming a four-layer integrated data architecture.
[0037] Based on this four-layer integrated architecture, the terminal device 100 configures corresponding data nodes for at least one object in each layer.
[0038] The objects in each layer of the terminal device 100 can also be referred to as heterogeneous IT devices in that layer. Heterogeneous IT devices refer to hardware and software devices of different types, manufacturers, architectures, and communication protocols.
[0039] For example, the objects (i.e., heterogeneous IT devices) of terminal device 100 in the service layer 110 include microservices 111, data synchronization services 112, interface services 113, etc. The objects (i.e., heterogeneous IT devices) of terminal device 100 in the network link layer 120 include physical links 121, VLANs 122, leased links 123, etc. The objects (i.e., heterogeneous IT devices) of terminal device 100 in the virtual resource layer 130 include virtual machines 131, containers 132, virtual network interface cards 133, etc. The objects (i.e., heterogeneous IT devices) of terminal device 100 in the physical hardware layer 140 include servers 141, switches 142, network interface cards 143, and other hardware entities 144, etc.
[0040] In one implementation, the terminal device 100 configures corresponding data nodes for at least one object in at least one level, based on a normalized entity modeling method.
[0041] Normalized entity modeling refers to the process of abstracting heterogeneous IT devices of different types, manufacturers, architectures, and communication protocols into entity nodes with a standard data structure.
[0042] Each data node has a unique identifier and is permanently stored. Each data node is bound to an object in its corresponding layer to store the object's static hardware baseline data and dynamic operational data. Static hardware baseline data includes, for example, at least one of the following inherent hardware parameters: total device memory, maximum network interface card bandwidth, disk input / output (IO) bandwidth, and link rated bandwidth. Dynamic operational data includes, for example, at least one of the following real-time collected data: central processing unit (CPU) utilization, memory usage, disk IO, inbound and outbound traffic, packet queue length, packet loss rate, service concurrency, alarm events, and maintenance logs. This application does not limit the specific data types of static hardware baseline data and dynamic operational data; they can be flexibly expanded according to actual monitoring needs.
[0043] It should be noted that both static hardware baseline data and dynamic operational data can exist as replicas within data nodes. Static hardware baseline data can be used as a benchmark to determine whether dynamic operational data is abnormal.
[0044] Because each data node is bound to an object in its corresponding layer, achieving real-time synchronized state mapping, a data node can also be called a twin node. A four-layer hardware and software architecture configured with twin nodes can also be called a digital twin entity model.
[0045] In one implementation, the terminal device 100 updates the static hardware baseline data and dynamic operating data associated with the configured data node in real time through a streaming mechanism for at least one object in each level, so as to achieve state synchronization between the data node and the object (i.e., heterogeneous IT devices).
[0046] The streaming transmission mechanism refers to a continuous, low-latency, real-time push method for data from the acquisition end to the data nodes, rather than batch polling or timed retrieval. Specifically, the terminal device 100 can continuously collect dynamic operating data of physical devices at millisecond or second granularity through a data acquisition agent deployed on the object (i.e., heterogeneous IT devices), and push it to the corresponding level of data nodes in real time through message queues or data pipelines. Upon receiving updated data, the data nodes at this level immediately update the locally stored dynamic operating data (i.e., dynamic operating data copies) and trigger a status refresh at the associated level. Through this mechanism, data nodes can reflect the actual operating status of physical devices at near real-time speed, thus providing a highly timely data foundation for subsequent fault diagnosis, performance analysis, and predictive simulation. Meanwhile, static hardware baseline data is permanently bound when the device is first connected and is only updated when the device configuration changes (such as hardware upgrades, expansions, or replacements), thereby ensuring the accuracy and stability of the static hardware baseline data.
[0047] In one implementation, the terminal device 100 configures corresponding data nodes for at least one object in at least one level based on a differentiated modeling approach.
[0048] Among them, differentiated modeling refers to configuring differentiated data structures, storage strategies and update frequencies for data nodes at different levels based on the hierarchical type of the object and its operational characteristics.
[0049] For example, in the business service layer 110, terminal device 100 configures corresponding data nodes for microservice 111, data synchronization business 112, and interface service 113 based on a differentiated modeling approach.
[0050] Specifically, for each object, the terminal device 100 stores the object's static hardware baseline data in the corresponding data node and dynamically collects the object's dynamic runtime status data. The static hardware baseline data includes, for example, at least one of the following: service resource dependency list, interface design threshold, concurrency limit, and timeout threshold. The dynamic runtime status data includes, for example, at least one of the following: business concurrency, interface round trip time (RTT), error rate, request backlog, and business traffic characteristics. Simultaneously, the data node also binds hierarchical association pointers to the containers, virtual machines, physical servers, and network links that the business depends on.
[0051] In this way, through differentiated modeling, terminal device 100 constructs a complete fault propagation path from the business service layer 110 to the physical hardware layer 140. Specifically, the business load generated by terminal device 100 at the business service layer 110 can serve as a dynamic operational characteristic of the business service, reflecting the real-time operational pressure of the business. The business service layer 110 is associated and bound with the physical hardware layer 140, allowing for precise tracing of the underlying resource source of business anomalies. Therefore, through differentiated modeling, terminal device 100 can achieve the linkage localization and simulation verification of upper-layer business faults and lower-layer resource congestion problems.
[0052] For example, at the network link layer 120, terminal device 100 configures corresponding data nodes for physical link 121, virtual local area network 122, and leased link 123 based on a differentiated modeling method.
[0053] Specifically, for each object, terminal device 100 stores the static hardware baseline data of that object in the corresponding data node and dynamically collects the dynamic operating status data of that object. The static hardware baseline data corresponding to the data node of physical link 121 includes, for example, at least one of contracted bandwidth, maximum transmission latency, link jitter threshold, and link fault tolerance level. The dynamic operating status data corresponding to the data node of physical link 121 includes, for example, at least one of real-time bandwidth utilization, link latency, jitter, packet loss rate, and link layer abnormal events. The static hardware baseline data corresponding to the data node of virtual LAN 122 includes, for example, at least one of network segment isolation rules, forwarding routing policies, and port binding relationships. The dynamic operating status data corresponding to the data node of virtual LAN 122 includes, for example, at least one of logical link traffic distribution, cross-virtual LAN access anomalies, and policy interception records. The static hardware baseline data corresponding to the data node of leased link 123 includes, for example, at least one of contracted bandwidth, maximum transmission latency, link jitter threshold, and link fault tolerance level. The dynamic operating status data corresponding to the data nodes of dedicated link 123 includes, for example, at least one of the following: real-time bandwidth utilization, link latency, jitter, packet loss rate, and link layer abnormal events.
[0054] In this way, terminal device 100 achieves layered modeling and joint computation of physical and logical links at network link layer 120 through differentiated modeling. Specifically, terminal device 100 performs link constraints at network link layer 120 based on inherent static thresholds of the links, and limits the bandwidth, latency, and jitter limits of physical links and leased links to achieve static hardware baseline data modeling. Furthermore, terminal device 100 achieves dynamic operation data modeling based on the dynamic operation rules of the links. Among them, the dynamic operation rules of the links can reflect real-time traffic transmission, congestion, and abnormal fluctuation characteristics. Therefore, terminal device 100 can achieve layered modeling and joint computation of physical and logical links through differentiated modeling, supporting the simulation and deduction of forwarding performance degradation caused by link resource bottlenecks.
[0055] For example, in the virtual resource layer 130, terminal device 100 configures corresponding data nodes for virtual machines 131, containers 132, virtual network cards 133, and other virtualized resources 134 based on a differentiated modeling approach.
[0056] Specifically, for each object, terminal device 100 stores the static hardware baseline data of that object in the corresponding data node and dynamically collects the dynamic running status data of that object. The static hardware baseline data corresponding to the data node of virtual machine 131 includes, for example, at least one of memory quota, CPU quota, disk I / O quota, and network permission quota. The dynamic running status data corresponding to the data node of virtual machine 131 includes, for example, at least one of virtual resource real-time occupancy, resource throttling records, scheduling jitter, and resource preemption time. The static hardware baseline data corresponding to the data node of container 132 includes, for example, at least one of memory quota, CPU quota, disk I / O quota, and network permission quota. The dynamic running status data corresponding to the data node of container 132 includes, for example, at least one of virtual resource real-time occupancy, resource throttling records, scheduling jitter, and resource preemption time. The static hardware baseline data corresponding to the data node of virtual network interface card 133 includes, for example, at least one of virtual bandwidth limit and virtual buffer size. The dynamic running status data corresponding to the data node of virtual network interface card 133 includes, for example, at least one of virtual network interface card transmit / receive traffic, virtual network interface card queue overflow, and virtualization layer forwarding loss.
[0057] In this way, through differentiated modeling, terminal device 100 realizes the quantitative transmission calculation of virtual layer load fluctuations to physical layer resource consumption changes, providing core support for the fault mechanism inference of virtual resources crowding out physical hardware and thus affecting network forwarding performance.
[0058] For example, at the physical hardware layer 140, terminal device 100 configures corresponding data nodes for server 141, switch 142, network card 143, and other hardware entities 144 based on a differentiated modeling approach.
[0059] Specifically, for each object, terminal device 100 stores the static hardware baseline data of that object in the corresponding data node and dynamically collects the dynamic operating status data of that object. The static hardware baseline data corresponding to the data node of server 141 includes, for example, at least one of the following: maximum physical memory limit, number of CPU cores, rated disk read / write speed, and hardware interrupt threshold. The dynamic operating status data corresponding to the data node of server 141 includes, for example, at least one of the following: total memory usage, total disk I / O usage, memory usage of high-load applications at the process level, disk I / O usage of high-load applications at the process level, CPU soft interrupts of high-load applications at the process level, disk throughput, and timing load. The static hardware baseline data corresponding to the data node of switch 142 includes, for example, at least one of the following: port bandwidth specifications, buffer capacity, and forwarding priority policy. The dynamic operating status data corresponding to the data node of switch 142 includes, for example, at least one of the following: port traffic load, port congestion status, cyclic redundancy check (CRC) error packets, and link negotiation status. The static hardware baseline data corresponding to the data node of network interface card 143 includes, for example, at least one of the following: rated bandwidth, transmit / receive (TX / RX) buffer queue capacity, and maximum packet processing capacity. The dynamic operating status data corresponding to the data node of NIC 143 includes at least one of the following: inbound and outbound traffic, queue backlog length, packet loss and error, and packet forwarding latency.
[0060] In this way, through differentiated modeling, terminal device 100 can realize the underlying mechanism calculation of physical hardware resources crowding out network forwarding.
[0061] By adopting the implementation method described in this step, the hardware and software architecture provided by the terminal device 100 can integrate physical hardware resources and virtualized resources into the same digital twin model framework, realizing real-time mapping and quantitative association of resource states across levels. This architecture has good versatility, scalability, and scenario adaptability.
[0062] Step S200: Based on the hardware and software architecture configured with data nodes, a risk status warning is issued for the target device.
[0063] The target device can be any device monitored by the terminal device, such as a business server. This application embodiment does not limit the type of target device.
[0064] The risk status of the target equipment includes the state of potential risk and the state of risk that has already occurred.
[0065] Terminal device 100 can output early warning information when the state of impending risk corresponds to a high risk level, thereby achieving proactive fault warning. Terminal device 100 can also quickly locate the root cause of the fault and output handling suggestions when the risk has already occurred, in order to shorten the fault recovery time.
[0066] In this embodiment, the terminal device 100 forms a directed topology structure by configuring data nodes in different layers of the software and hardware architecture, which enables cross-layer tracing to monitor objects in each layer, obtain the risk status of the target device, and issue early warnings, thereby improving the accuracy and response efficiency of device fault location.
[0067] Figure 3 This is the second flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application.
[0068] like Figure 3 As shown, in some embodiments, step S200, based on the hardware and software architecture configured with data nodes, provides an early warning of the risk status of the target device, including the following steps S201 to S205.
[0069] Step S201: Based on the time-series prediction algorithm, predict the historical business data of the target business to obtain the predicted business data of the target business in the future preset time period. The business data includes at least one of memory data, traffic data, and load data.
[0070] Among them, time series forecasting algorithms are algorithms that predict future data trends based on historical time series data. Time series forecasting algorithms include at least one of the following: Long Short-Term Memory (LSTM) network algorithm and Autoregressive Integrated Moving Average (ARIMA) model. This application does not limit the specific type of time series forecasting algorithm; it can be flexibly selected according to the computing resources and data characteristics of the actual scenario.
[0071] Time series prediction algorithms can be based on prediction model configurations, for example.
[0072] Business data refers to data generated during the operation of a business, including at least one of memory data, traffic data, and load data.
[0073] Predictive business data can be used to characterize the trends of memory, traffic, and device load changes within a preset future time period.
[0074] The following example illustrates the implementation of step S201, using the target service as a memory resource preemption service.
[0075] For example, the terminal device 100 inputs historical business data (e.g., a historical long-term server memory time-series dataset) and business load time-series features into a prediction model (e.g., corresponding to the LSTM algorithm) so that the prediction model fits the historical load change pattern based on the historical business data and predicts the predicted business data (e.g., business memory usage) for the target business in the future preset period. In other words, the prediction model outputs the business memory usage.
[0076] In this way, the terminal device 100 can obtain future resource load trends in advance, providing predictive pre-input data for subsequent hardware mechanism simulation.
[0077] Step S202: Determine the total amount of resources corresponding to the static hardware baseline data based on the data nodes in the software and hardware architecture, and obtain the first idle resource balance of the terminal device based on the total amount of resources and the predicted business data.
[0078] Further based on the aforementioned example, in the hardware and software architecture, the terminal device 100 obtains the corresponding total resource amount (e.g., the total memory capacity of the whole machine) based on the static hardware baseline data in the data node of the server 141, and obtains the first idle resource reserve of the terminal device (e.g., the remaining idle schedulable physical memory of the whole machine) based on the total resource amount and the predicted business data (e.g., the business memory usage).
[0079] In other words, the terminal device 100 inputs the total amount of resources corresponding to the predicted business data and the static hardware baseline data into the prediction model, and can obtain the first idle resource balance output by the prediction model.
[0080] It should be noted that steps S201 and S202 can be implemented based on different hierarchical structures of the prediction model, or, based on step S201 being implemented based on the prediction model, step S202 can be implemented based on an algorithm associated with the prediction model. Subsequent steps S203-S205 in this embodiment can all be implemented in any way, and this embodiment does not limit them.
[0081] Step S202 is implemented, for example, based on Formula 1.
[0082] Formula 1: .
[0083] in, This refers to the first available free resource (e.g., the remaining free schedulable physical memory of the entire machine). This refers to the total amount of resources corresponding to the static hardware baseline data (e.g., the total memory capacity of the entire machine). To predict business data (e.g., business memory usage).
[0084] In this way, the terminal device 100 can determine whether the first idle resource reserve is sufficient, and then determine whether there is a risk of network buffer squeeze, so as to determine whether the target device is operating normally.
[0085] Step S203: Based on the first weight coefficient corresponding to the target service in the static hardware baseline data, determine the first available resource balance in the first idle resource balance.
[0086] Further based on the aforementioned example, the terminal device 100 determines the first available resource reserve (e.g., dynamically limited kernel network buffer available capacity) within the first idle resource reserve based on the first weight coefficient corresponding to the target service in the static hardware baseline data (e.g., a weight coefficient allocated to the system kernel network buffer). The dynamically limited kernel network buffer available capacity is used to characterize the available buffer resources reserved by the system kernel for network forwarding under the current service memory usage level.
[0087] The first weighting coefficient can be α, and 0 < α < 1. The first weighting coefficient can be a static hardware baseline constant determined by the server hardware specifications and operating system kernel parameters in the static hardware baseline data corresponding to the data nodes of server 141, which is used to characterize the proportion of memory resources allocated by the system kernel for the network buffer.
[0088] In other words, the terminal device 100 inputs the first idle resource balance and the first weight coefficient into the prediction model to obtain the first available resource balance output by the prediction model.
[0089] Step S203 is implemented, for example, based on Formula 2.
[0090] Formula 2: .
[0091] in, α is the first available resource margin (e.g., the available capacity of the dynamically limited kernel network buffer), and α is the first weighting coefficient (e.g., the weighting coefficient assigned to the system kernel network buffer). This refers to the first available free resource (e.g., the remaining free schedulable physical memory of the entire machine).
[0092] In this way, terminal device 100 achieves a precise quantitative mapping from changes in service resource usage to changes in available network buffer capacity, providing key input for subsequent deduction of network forwarding performance mechanisms.
[0093] Step S204: Using the first available resource balance, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic running data, determine whether the target device has a first risk event. The first risk event includes the first backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the first available resource balance.
[0094] Further based on the aforementioned example, terminal device 100 utilizes the first available resource margin (e.g., the dynamically limited kernel network buffer available capacity), the service processing rate corresponding to static hardware baseline data (e.g., the network interface card's inherent packet processing rate), and the service arrival rate corresponding to dynamic running data (e.g., the real-time service inbound packet arrival rate) to determine the service forwarding rate (e.g., the network interface card's theoretical maximum effective forwarding rate) and the queue overflow probability. Furthermore, based on the service forwarding rate and the queue overflow probability, terminal device 100 determines whether the target device experiences a first risk event.
[0095] In other words, the terminal device 100 inputs the first available resource balance, service processing rate, and service arrival rate into the prediction model to obtain the service forwarding rate and queue overflow probability output by the prediction model.
[0096] This process is implemented, for example, based on formulas 3, 4, and 5.
[0097] Formula 3: = λ / μ.
[0098] Where λ is the service arrival rate (e.g., the real-time service inbound message arrival rate), and μ is the service processing rate (e.g., the network card's inherent message processing rate). The service load rate (e.g., the system steady-state load rate) is used to characterize the busyness of the network forwarding system.
[0099] Formula 4: .
[0100] in, The service forwarding rate (e.g., the theoretical maximum effective forwarding rate of the network card) can be used to characterize the maximum packet forwarding capacity that the network card can stably handle under current resource congestion and load conditions. This represents the first available resource margin (e.g., the available capacity of a dynamically limited kernel network buffer). This refers to the business load rate (e.g., the system steady-state load rate).
[0101] Formula 5: .
[0102] in, This is the queue overflow probability, used to characterize the risk of a message being dropped due to insufficient first available resource.
[0103] In this way, the terminal device 100, based on the M / M / 1 queuing model, realizes the quantitative mechanism deduction from resource crowding to network forwarding performance degradation, providing an accurate quantitative basis for subsequent business failure risk assessment.
[0104] Furthermore, based on the service forwarding rate and queue overflow probability, combined with the service forwarding threshold (e.g., the baseline forwarding threshold for normal service operation) and the packet overflow risk threshold, the terminal device 100 determines whether the target device has a first risk event.
[0105] In this embodiment, terminal device 100 configures service forwarding thresholds and packet overflow risk thresholds based on static hardware baseline data. The service forwarding threshold can be determined empirically or obtained through clustering learning fitting of historical health data (e.g., data from a target service operating under historically stable, fault-free, and timeout-free health conditions). The packet overflow risk threshold can be set according to the service's tolerance for packet loss and latency. This application embodiment does not limit the specific methods for determining the service forwarding threshold and the packet overflow risk threshold.
[0106] In one implementation, the terminal device 100 compares the service forwarding rate with the service forwarding threshold, and compares the queue overflow probability with the packet overflow risk threshold, to determine whether a first risk event exists.
[0107] The first risk event includes a backlog of pending resources exceeding the first available resource margin, calculated based on the service arrival rate and service processing rate. In other words, the first risk event includes the service forwarding rate (e.g., the network interface card's theoretical maximum effective forwarding rate V). max The threshold is less than the service forwarding threshold (e.g., the baseline forwarding threshold V for normal service operation). std And the probability of queue overflow (e.g., P) overflow Events that exceed the message overflow risk threshold.
[0108] In this way, the first risk event can be used to characterize the network forwarding bottleneck caused by memory resource squeezing. Based on this, it can be predicted that a chain of failures such as packet loss, increased interface latency, and service timeout will occur.
[0109] Step S205: In the event of a first risk event, determine that the target device is in a first risk state, and issue an early warning based on the first risk state, which is used to characterize the risk to be occurred.
[0110] Further based on the aforementioned example, the terminal device 100 inputs the service forwarding rate, queue overflow probability, service forwarding threshold, and packet overflow risk threshold into the prediction model to obtain the first risk state corresponding to the first risk event output by the prediction model. The first risk state can be used to characterize at least one of the quantified forwarding attenuation magnitude, queue overflow risk level, and service timeout warning conclusion. If the quantified forwarding attenuation magnitude characterized by the first risk state is high, the queue overflow risk level is large, and the service timeout warning conclusion is that timeout is imminent, then the terminal device 100 can determine the risk to be triggered through the first risk state and thus issue a warning.
[0111] It should be noted that the above steps S201-S205 are illustrated with memory resource preemption as the target service. In actual applications, the terminal device 100 also supports executing steps S201-S205 in various service scenarios where local resources are squeezed out for network forwarding, such as disk I / O preemption and CPU soft interrupt full-load service.
[0112] In this embodiment, the terminal device 100 combines the prediction model with the hardware and software architecture to form a dual-driven causal early warning mechanism that combines the time-series prediction algorithm with the hardware resource crowding mechanism. The complete causal link of service load change, idle resource compression, network buffer reduction, forwarding performance degradation, and service timeout failure is quantified by multi-level quantification calculation formulas to obtain an early warning result with interpretability of hardware physical mechanism and the ability to quantify the degree of failure degradation and the scope of service impact, thereby significantly reducing the false alarm rate and the missed alarm rate.
[0113] Figure 4 This is the third flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application.
[0114] like Figure 4 As shown, in some embodiments, step S200, based on the hardware and software architecture configured with data nodes, provides an early warning of the risk status of the target device, including the following steps S211 to S217.
[0115] Step S211: Construct a simulation software and hardware architecture based on the software and hardware architecture.
[0116] In one implementation, terminal device 100 constructs a corresponding simulated hardware and software architecture within an isolated twin simulation sandbox, based on the target device's hardware and software architecture. The simulated hardware and software architecture maintains the same hardware resource limits and underlying forwarding mechanisms as the target device, and possesses an independent virtualization resource layer to simulate the impact of various operational and maintenance changes on the device's operating status.
[0117] Step S212: In the simulation hardware and software architecture, load the updated data node and replace the simulation data node based on the updated data node.
[0118] The update data nodes of the terminal device 100 include the update data node corresponding to the virtual machine 131 and the update data node corresponding to the container 132.
[0119] The static hardware baseline data in the update data node corresponding to virtual machine 131 includes, for example, at least one of the updated memory quota, CPU quota, disk I / O quota, network bandwidth quota, and resident process and thread limits. The static hardware baseline data in the update data node corresponding to container 132 also includes at least one of the updated memory quota, CPU quota, disk I / O quota, network bandwidth quota, and resident process and thread limits.
[0120] The static hardware baseline data in the updated data nodes of terminal device 100 may include at least one of the following: updated service forwarding threshold (e.g., a new version service baseline forwarding threshold), updated service processing rate (e.g., the inherent processing rate of the network card), and updated total resources (e.g., the upper limit of the server's total hardware resources).
[0121] By using this method, terminal device 100 can simulate the complete alternation process of old service destruction, new service restart, and resource preheating.
[0122] Step S213: Associate the updated data node with the first business simulation data of the operation and maintenance change business. The first business simulation data includes instantaneous change data under the operation and maintenance change scenario. The instantaneous change data is used to characterize the sudden change characteristics of at least one of memory, traffic, and load at the moment of operation and maintenance change. Operation and maintenance change includes at least one of version update, service launch, resource expansion, and link switching.
[0123] Specifically, terminal device 100 will update data nodes and associate them with the first business simulation data of the operation and maintenance change business. For example, the first business simulation data includes instantaneous change data (e.g., instantaneous disturbance parameters of version startup) under the operation and maintenance change scenario (e.g., version update scenario). The instantaneous change data includes at least one of the following: service start-up memory warm-up peak, sudden disk IO peak during version decompression and replacement, instantaneous CPU preemption rate during process restart, temporary concurrent traffic and network handshake overhead during the alternation of old and new instances.
[0124] In one implementation, the terminal device 100 will also update the data nodes and associate them with historical service simulation data, which may include, for example, sample data of historical version launch failures and jitter conditions.
[0125] By adopting this implementation method, the terminal device 100 can reproduce dynamic operating conditions such as sudden increases in memory, sudden disk I / O, CPU preemption, and traffic jitter by injecting instantaneous load disturbance data unique to version updates into the data nodes, thus providing high-fidelity simulation input conditions for subsequent mechanism quantification calculations.
[0126] Step S214: Determine the total amount of resources corresponding to the static hardware baseline data of the simulation associated with the updated data node, and obtain the second idle resource reserve of the terminal device based on the total amount of resources and the current resource occupancy corresponding to the dynamic running data of the simulation.
[0127] By using this method, terminal device 100 can quantify the process by which the instantaneous resource consumption of the new version squeezes out idle hardware resources on the server.
[0128] Step S215: Based on the difference between the second idle resource reserve and the instantaneous resource occupancy corresponding to the instantaneous change data, obtain the simulated second available resource reserve in the second idle resource reserve.
[0129] Using this method, terminal device 100 can quantitatively calculate the compression process of kernel network buffer capacity by the instantaneous resource consumption of the new version.
[0130] Step S216: Using the second available resource margin, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic operation data, determine whether the target device has a second risk event. The second risk event includes the second backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the second available resource margin.
[0131] By employing this implementation method, terminal device 100 can quantitatively calculate the cascading process that triggers network interface card (NIC) queue congestion and forwarding rate attenuation. Furthermore, terminal device 100 can use the M / M / 1 queuing model to solve for packet overflow probability and service forwarding rate under version conditions, providing accurate quantitative basis for subsequent service failure risk assessment.
[0132] Step S217: In the event of a second risk event, determine that the target device is in a second risk state, and issue an early warning based on the second risk state, which is used to characterize the risk that is about to occur.
[0133] Terminal device 100 inputs service forwarding rate, queue overflow probability, service forwarding threshold, and packet overflow risk threshold into the prediction model to obtain the second risk state corresponding to the second risk event output by the prediction model. The second risk state can be used to characterize at least one of the following: quantitative risk indicators, risk classification conclusions, and hidden risk discovery. Quantitative risk indicators include, for example, instantaneous memory occupancy rate upon version launch, peak disk I / O load, network forwarding attenuation difference, and queue overflow risk probability. Risk classification conclusions include, for example, at least one of the following classification conclusions determined based on service forwarding thresholds and historical service simulation data: no risk, low jitter risk, and high-risk service interruption risk. Hidden risk discovery includes, for example, at least one of the following hidden problems identified based on semantic feature comparison of neural network models: long-term resource offset occupation caused by version updates, progressive increase in network card error packets, and accelerated disk degradation. If the quantitative risk indicators characterized by the second risk state indicate a high level of risk, the risk classification conclusion indicates a high-risk service interruption risk, and the hidden risk discovery indicates a significant hidden problem, then terminal device 100 can determine the potential risk through the second risk state and thus issue an early warning.
[0134] Furthermore, the terminal device 100 can output preprocessing optimization suggestions during the early warning process. These suggestions may include targeted solutions such as phased gray-scale rollout of versions, expansion of resource quotas, implementation of peak-shaving and traffic limiting, and optimization of network buffer parameters.
[0135] It should be noted that the specific implementation of steps S214-S217 in this embodiment can be adaptively derived based on steps S201-S205 in the aforementioned embodiment, and will not be elaborated upon in this embodiment.
[0136] In this embodiment, the terminal device 100 constructs a corresponding simulation hardware and software architecture within an isolated twin simulation sandbox to simulate the complete online process of service transition, process restart, and resource preheating. It reproduces the unique load characteristics of version launch, such as instantaneous memory surge, sudden disk I / O, process resource contention, and traffic reconstruction jitter. It simulates the hidden risks caused by version changes, such as memory squeeze, bandwidth congestion, queue overflow, and forwarding attenuation, across the entire chain. This allows for early warning of risks during operation and maintenance changes, proactive avoidance of online failures, and a significant improvement in the security and stability of the operation and maintenance change process.
[0137] Figure 5 This is the fourth flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application.
[0138] like Figure 5As shown, in some embodiments, step S200, based on the hardware and software architecture configured with data nodes, provides an early warning of the risk status of the target device, including the following steps S221 to S225.
[0139] Step S221: Based on comparing the static hardware baseline data and dynamic operation data corresponding to the data nodes of the software and hardware architecture, the alarm nodes in the data nodes are determined.
[0140] Step S222: Using the alarm node as the root node, traverse the topology to obtain at least one candidate node associated with the alarm node.
[0141] In one implementation, the terminal device 100 uses a depth-wise reverse traversal algorithm of the topological directed graph to traverse along a preset hierarchical link in the hardware and software architecture to obtain at least one candidate node associated with the alarm node.
[0142] The preset hierarchical links can be configured in the following order: service layer, network link layer, virtual resource layer, and physical hardware layer, or in the following order: service layer, virtual resource layer, physical hardware layer, and network link layer. This application does not restrict the hierarchical order of the preset hierarchical links.
[0143] Using this approach, terminal device 100 can traverse all upstream and downstream related nodes at all levels in one go, fully screen all potential fault-related objects, and complete the selection of candidate nodes across the entire domain, thus preventing fault omissions and hierarchical breaks caused by layered traversal.
[0144] Step S223: Based on the multi-source data joint filtering algorithm, candidate nodes are screened to obtain at least one abnormal node among the candidate nodes. The multi-source data joint filtering algorithm is used to judge the candidate nodes by using data of at least one dimension associated with each candidate node to determine whether the candidate node is related to the alarm node.
[0145] In one implementation, the terminal device 100 performs Boolean verification on the candidate nodes based on a multi-source data joint filtering algorithm to obtain at least one abnormal node among the candidate nodes.
[0146] Specifically, the terminal device 100 acquires multi-source data (such as real-time performance metrics, static baseline thresholds, alarm time-series data, and kernel runtime logs) corresponding to the candidate nodes, along with preset weights for each data source. Real-time performance metrics and kernel runtime logs can be preset with higher weights, while alarm time-series data and static baseline thresholds can be preset with lower weights. Further, the terminal device 100 performs weighted fusion judgment on the multi-source data based on the preset weights. If high-weight data (such as real-time performance metrics and kernel runtime logs) shows anomalies, the candidate node is determined to be a suspicious node and retained. If low-weight data (such as alarm time-series data and static baseline thresholds) is partially abnormal, while high-weight data is all normal, the candidate node is determined to be interference noise and filtered out. If all dimensions of data are normal, the candidate node is determined to be a completely irrelevant node and filtered out.
[0147] In this way, the terminal device 100 accurately distinguishes between real fault nodes and interference nodes by weighted fusion of complex judgment logic, and automatically filters out candidate nodes that are not associated with faults, thereby obtaining a set of abnormal nodes that are highly related to alarm nodes, providing accurate candidate objects for subsequent fault location.
[0148] Step S224: Determine the set of abnormal nodes based on the abnormal nodes, and perform convergence and localization on the set of abnormal nodes to determine that the target device has a third risk event. The third risk event is used to characterize the fault event in the smallest fault influence domain corresponding to the set of abnormal nodes.
[0149] In some embodiments, step S224 includes steps S2241-S2244.
[0150] Step S2241: Based on the neural network model, semantic features are extracted from the abnormal nodes in the abnormal node set to obtain the effective fault features corresponding to the abnormal nodes.
[0151] In one implementation, the terminal device 100 extracts semantic features from the multi-source data (e.g., device error logs, kernel error information, and service stack error data) corresponding to each abnormal node in the abnormal node set to obtain the effective fault features corresponding to the abnormal node.
[0152] In other words, the terminal device 100 can filter out duplicate, false alarms, and delayed invalid interference alarms, and extract effective fault characteristics that are strongly correlated with the fault, thereby improving the accuracy and efficiency of subsequent fault location.
[0153] Step S2242: In the simulation software and hardware architecture built on the software and hardware architecture, the effective fault features are transformed into second business simulation data, and the positive causal relationship between the abnormal nodes of the simulation and the third risk event is verified based on the second business simulation data. The positive causal relationship is used to characterize the generation of the third risk event based on the second business simulation data.
[0154] In one implementation, the terminal device 100 converts effective fault characteristics into second business simulation data in an isolated twin simulation sandbox to reproduce the fault under the scenario of hardware resource overload.
[0155] The second type of business simulation data is used to simulate various fault conditions such as high memory usage, memory congestion under specific inbound traffic, high disk I / O load, and CPU soft interrupt preemption, which may cause packet loss, forwarding stagnation, and business timeouts.
[0156] In this way, the terminal device 100 can verify the positive causal relationship between the simulated abnormal node and the third risk event based on the second business simulation data. That is, the terminal device 100 can determine that the third risk event was caused by the abnormal node.
[0157] Step S2243: After the positive causal relationship verification is passed, the second business simulation data is withdrawn to verify the reverse causal relationship between the abnormal node in the simulation and the third risk event. The reverse causal relationship is used to characterize whether the third risk event disappears after the second business simulation data is withdrawn.
[0158] In one implementation, the terminal device 100 cancels the second business simulation data to relieve the hardware resource congestion state, thereby verifying the reverse causal relationship between the abnormal node in the simulation and the third risk event.
[0159] Step S2244: After the reverse causal relationship verification is passed, the abnormal node in the simulation is determined as the root cause node of the third risk event, so as to determine that the target device has a third risk event. All the root cause nodes are used to form the smallest fault impact domain.
[0160] Based on the aforementioned example, if the service forwarding rate and service status in the simulation scenario return to normal, and the fault phenomenon disappears synchronously with the repair of the root cause parameter, then the terminal device 100 can determine that the abnormal node in the simulation is the root cause node, thereby completing the verification of the reverse causal relationship between the abnormal node in the simulation and the third risk event.
[0161] Using this approach, terminal device 100 can distinguish between data correlation alarms and actual fault causation, which traditional maintenance methods cannot identify. It autonomously completes the entire fault assessment, simulation scheduling, and conclusion summarization process without manual intervention. Through bidirectional verification logic of forward simulation reproduction and reverse parameter backoff, terminal device 100 rigorously distinguishes between data correlation and actual fault causation, determines the actual level of the fault, the specific device, and the corresponding data node, achieving accurate initial fault location without omissions or interference, and clearly defining the minimum impact domain of the fault.
[0162] Step S225: In the event of a third risk event, determine that the target device is in a third risk state, and issue an early warning based on the third risk state, which is used to characterize the risk that has occurred.
[0163] In one implementation, the terminal device 100 generates corresponding early warning information based on the root cause node failure indicated by the third risk status and pushes it to the maintenance personnel's terminal. The early warning information includes the root cause node identifier, the failure type, the scope of the failure's impact, and recommended handling operations.
[0164] In this embodiment, the terminal device 100 breaks through the technical limitations of traditional layered independent tracing and fault link breakage, and creates a two-dimensional fault tracing mechanism of topology cross-layer traversal and node layered attribute classification, so as to realize cross-level global fault retrieval and accurate level delimitation.
[0165] Figure 6 This is the fifth flowchart of the intelligent device early warning method based on digital twin provided in the embodiments of this application.
[0166] like Figure 6 As shown, in some embodiments, the method further includes steps S301-S304.
[0167] Step S301: Obtain truth data from objects in the first hardware layer of the software and hardware architecture, and obtain simulation data from objects in the second hardware layer of the simulation software and hardware architecture corresponding to the software and hardware architecture.
[0168] In one implementation, terminal device 100 collects true data and simulation data in parallel to facilitate temporal alignment and dimensional normalization of the data.
[0169] In one implementation, the true data includes at least one of the following real-world performance metrics across all dimensions: server memory usage, CPU load, disk I / O throughput, number of hardware interrupts, network card forwarding rate, and queue overflow.
[0170] In one implementation, the simulation data includes at least one of the following: the simulation theoretical values output by the digital twin hardware mechanism model (i.e., the model corresponding to the software and hardware architecture) and the future operating condition prediction values output by the prediction model (e.g., LSTM).
[0171] Step S302: Perform time-series alignment and dimension normalization on the ground truth data and simulation data to generate a calibration dataset based on the processed ground truth data and processed simulation data.
[0172] Step S303: In the calibration dataset, calculate the error between the true data and the simulation data.
[0173] In one implementation, in the calibration dataset, the terminal device 100 calculates the error between the true data and the simulation data based on the error calculation formula (i.e., Formula 6).
[0174] Formula 6: .
[0175] in, The time-varying error between true and simulated data. For the true value data corresponding to the i-th sampling point, Let N be the simulation data corresponding to the i-th sampling point, and N be the number of sampling points within the statistical time period.
[0176] It should be noted that the error calculation method in Formula 6 is the time-period average absolute error, which can be used to quantitatively evaluate the model's prediction accuracy. This formula is actually based on the single-time absolute error formula (i.e., Formula 7).
[0177] Formula 7: .
[0178] in, The error at a single moment between the true data and the simulated data. For true data at a single moment, This is simulation data for a single moment.
[0179] Step S304: If the error is greater than a preset error threshold, the target model in the terminal device is calibrated and iteratively trained. The target model includes at least one of a prediction model, a simulation model, and a coupling mechanism model. The prediction model is used to execute the time series prediction algorithm, the simulation model is used to configure the simulation software and hardware architecture, and the coupling mechanism model is used to configure the software and hardware architecture.
[0180] In one implementation, the terminal device 100 is in error (i.e. The error is greater than the preset error threshold. In the case of identifying potential issues such as parameter mismatch, simulation distortion, and prediction drift in the target model, a calibration and iterative training process is triggered.
[0181] In one implementation, the terminal device 100 is in error (i.e. The error threshold is less than or equal to the preset error threshold. In the case of [condition], the target model is determined to be of acceptable accuracy and without drift, and no calibration is required.
[0182] In some embodiments, the method further includes steps S305-S310.
[0183] Step S305: Cluster the training data of the target model based on the neural network model to obtain at least one sample group. The sample group includes at least one of the following: memory fault sample group, hardware fault sample group, input / output fault sample group, hardware aging sample group, instantaneous disturbance sample group due to operation and maintenance changes, baseline operating condition sample group, and noise invalid sample group.
[0184] In one implementation, the terminal device 100 acquires training data, which includes, for example, at least one type of heterogeneous data such as historical operation and maintenance condition time series, equipment hardware aging indicators, historical full-sample fault data, and virtual-real prediction error time series.
[0185] In one implementation, the terminal device 100 inputs prompt words into a neural network model based on few-shot technology to drive the neural network model to cluster the training data and obtain at least one sample group.
[0186] The prompts include hierarchical mechanism constraint prompts, which are used to constrain the neural network model to cluster and group according to 7 preset working conditions, and prohibit custom classification.
[0187] The prompt words for the hierarchical mechanism constraint prompt words are as follows: You are an IT hardware operations and maintenance analysis expert, strictly adhering to the network forwarding mechanisms that consume server hardware resources to complete data analysis. Inputs consist of paired data: numerical time-series metrics (historical operations and maintenance time-series, hardware aging metrics, fault time-series samples, and virtual / real prediction error time-series), and corresponding kernel logs, service alarms, and process stack texts for the relevant time periods.
[0188] Implementation requirements: 1. The sample type is determined by combining the characteristics of numerical curve changes with the accompanying text error information.
[0189] 2. Classification principles are illustrated below, including but not limited to the classifications shown in the examples. Classification is based on data samples, and grouping rules are illustrated below: ① Memory congestion fault sample group: continuous high usage of service memory, decrease of free memory, compression of kernel network buffer, and increase of forwarding latency.
[0190] ②CPU / Hardware Interrupt Preemption Sample Group: CPU soft interrupt full load, computing power contention, network card packet processing delay.
[0191] ③ Disk I / O bottleneck failure sample group: disk bandwidth is fully utilized, I / O waiting time is high, business is blocked, and network sending queue is backlogged.
[0192] ④ Sample group of long-term hardware aging and gradual deterioration: disk bad sectors increase slowly, network card packet errors continue to rise slightly, and hardware performance declines year by year.
[0193] ⑤ Sample group of instantaneous disturbances caused by version / expansion changes: service release, sudden load surge during resource expansion, temporary resource throttling, and short-term queue overflow.
[0194] ⑥ Normal and stable benchmark operating condition sample group: no resource preemption, long-term stable indicators, minimal virtual and real prediction errors, and no error logs.
[0195] ⑦ Invalid sample group with noise: instantaneous index spikes, empty values, random brief jitters, and no corresponding fault logs or business anomalies.
[0196] 3. Output the group number corresponding to each sample. Fuzzy classification and mixed classification are prohibited.
[0197] The embodiments of this application do not limit the specific content of the prompt words.
[0198] In one implementation, the resulting sample set includes, for example: ① Memory squeeze fault sample group, such as time-series samples including business process memory usage being too high, kernel network buffer compression caused by reduction of free memory, and increased forwarding latency.
[0199] ② CPU / hardware interrupt preemption sample group, such as samples of CPU soft interrupt full load, scheduling delay caused by business processes competing for computing power, and network card packet processing obstruction.
[0200] ③ Disk I / O bottleneck failure sample group, including samples of disk read / write bandwidth being fully utilized, increased I / O waiting dragging down business threads, and network sending queue accumulation.
[0201] ④ Long-term hardware aging and gradual degradation sample group, such as long-term time-series samples including increasing bad sectors on disk, slowly increasing network card packet errors year by year, and memory hardware performance degradation.
[0202] ⑤ Sample group of instantaneous disturbances caused by version / expansion changes, such as service release, sudden load increase during resource expansion, short-term resource throttling, and temporary queue overflow samples.
[0203] ⑥ Normal and stable benchmark operating condition sample group, such as healthy baseline samples with no resource preemption, long-term stable hardware indicators, and minimal virtual and real prediction errors.
[0204] ⑦ Noise-prone invalid sample groups, such as invalid data groups including instantaneous indicator spikes, network disconnection null values, and brief random jitters without corresponding service failures.
[0205] This application does not limit the attributes, types, or sample content of the sample group.
[0206] Step S306: Remove noisy and invalid sample groups from the sample group to obtain at least one remaining sample group.
[0207] In one implementation, terminal device 100 performs batch filtering on group labels to remove data marked as "⑦ Noise Invalid Sample Group". Further, terminal device 100 simultaneously removes data containing only instantaneous extreme value spikes, data without accompanying error text, and data fragments with disconnected null values. Further, terminal device 100 retains "① Memory Expansion Failure Sample Group", "② CPU / Hardware Interruption Preemption Sample Group", "③ Disk I / O Bottleneck Failure Sample Group", "④ Long-Term Hardware Aging Gradual Deterioration Sample Group", "⑤ Version / Expansion Change Instantaneous Disturbance Sample Group", and "⑥ Normal Stable Baseline Operating Condition Sample Group" as valid sample groups, obtaining at least one remaining sample group.
[0208] At least one remaining sample group can be output as a valid quasi-structured sample set for use in subsequent steps.
[0209] Step S307: Label each remaining sample group with a corresponding label. The label is used to characterize the category of the remaining sample group.
[0210] Among these, the labels are, for example, secondary fault labels. Secondary fault labels refer to further subdividing the fault mechanism or operating condition attributes of each remaining sample group to enhance the semantic granularity of the training data.
[0211] Step S308: Construct a structured training dataset based on the remaining sample groups with labeled data.
[0212] In one implementation, the terminal device 100 inputs prompt words into a neural network model to drive the neural network model to construct a structured training dataset from the remaining labeled sample groups.
[0213] The prompts also include structured output constraint prompts, which are used to constrain the neural network model to output standardized labels according to a preset field format and prohibit free-format output.
[0214] The prompts for structured output constraint prompts are, for example: Based on the extracted hardware and load structured fields and first-level clustering, secondary fault mechanism labels are used to label the retained valid samples. Only the following four types of labels are allowed, and custom labels are not allowed: Label 1: Hardware aging; Label 2: Business load iteration; Label 3: Long-term resource offset occupation; Label 4: Multi-resource coupling resource crowding.
[0215] Labeling rules: 1. The samples in Group ④ with long-term hardware aging are uniformly labeled "hardware aging".
[0216] 2. The instantaneous disturbance samples of version / expansion in Group ⑤ are uniformly labeled as "business load iteration".
[0217] 3. Groups ①②③ with long-term stable high occupancy and no instantaneous sudden changes are marked with "long-term resource offset occupancy".
[0218] 4. Mixed time-series samples with simultaneous preemption of multiple resources such as memory, CPU, and disk are labeled as "multi-resource coupling and resource crowding".
[0219] Output complete information for each sample: structured key fields + first-level cluster grouping + second-level mechanism label.
[0220] The embodiments of this application do not limit the specific content of the prompt words.
[0221] In this way, a labeled quasi-structured training dataset is generated in terminal device 100.
[0222] Step S309: Select a training subset from the training dataset that matches the current operating condition data of the target device.
[0223] In one implementation, the terminal device 100 inputs key feature fields (such as hardware baseline fields, real-time load ranges, and full-sample structured hardware and load key fields extracted and output by the large language model) from the current operating condition data into a built-in numerical subroutine. Further, the terminal device 100 performs similarity matching between the key feature fields and sample features in the training dataset (such as historical hardware specifications and historical load ranges) to select training subsets that highly match the current operating condition data. Specifically, the terminal device 100 compares the current operating condition data with each sample in the training dataset sample-by-sample and calculates the difference. Further, if the terminal device 100 determines that the difference exceeds a preset threshold, it classifies the sample as expired and mismatched, and directly removes the sample; if the terminal device 100 determines that the difference is within the threshold range, it retains the sample. Thus, the terminal device 100 forms a training subset that matches the current operating condition data based on the retained samples.
[0224] By adopting this approach, terminal device 100 can effectively eliminate expired samples caused by factors such as hardware upgrades and load changes, ensuring that the training subset is highly consistent with the current online working conditions, thereby improving the accuracy and timeliness of subsequent model training.
[0225] Step S310: Calibrate and iteratively train the target model based on the training subset dataset.
[0226] In some embodiments, step S310 includes steps S311-S312.
[0227] Step S311: When iteratively training the prediction model based on the training subset dataset, the hardware data in the training data is used as input, the ground truth data is used as supervision labels, and the weight parameters and bias parameters of the prediction model are updated based on the backpropagation algorithm, while minimizing the prediction error loss, so as to iteratively train the prediction model.
[0228] By adopting this approach, terminal device 100 can perform targeted retraining of the LSTM time series prediction model based on a high-quality training subset matched with the current operating conditions, thus solving the problem that traditional static models cannot adapt to business iterations and changes in operating conditions.
[0229] Step S312: In the case of iterative calibration of the coupled mechanism model based on the training subset dataset, the mechanism parameters in the coupled mechanism model are calibrated based on the calibration dataset and the training subset dataset, wherein the static hardware baseline data includes the mechanism parameters.
[0230] Among them, the mechanism parameters include at least one of the following: kernel network buffer allocation weight, network card queuing response coefficient, and resource crowding correlation coefficient.
[0231] By adopting this approach, terminal device 100 can dynamically correct cross-resource coupling quantization coefficients, reconstruct multi-resource collaborative modeling logic, and adapt to mechanism deviations caused by long-term hardware aging and system kernel parameter fine-tuning.
[0232] Furthermore, after completing calibration and iterative training, the terminal device 100 automatically replaces the old and new model parameters without requiring manual reset or manual training and deployment. The terminal device 100 continuously and cyclically executes the closed-loop process of data acquisition, error calculation, drift determination, and model iteration, effectively adapting to complex scenarios such as aging equipment hardware, iterative business loads, and dynamic changes in operating conditions. This completely solves the technical problems of model drift, prediction accuracy decay, and simulation distortion, continuously ensuring the long-term high-precision and high-stability operation of the entire early warning, simulation, and inference system.
[0233] As described above, this application provides a method and system for early warning of intelligent devices based on digital twins. The method includes: configuring corresponding data nodes at at least one level of the hardware and software architecture of a terminal device. Data nodes at different levels are associated to form a directed topology. Each data node is associated with static hardware baseline data and dynamic operational data of its corresponding level. The static hardware baseline data characterizes the physical attributes of objects within the level, and the dynamic operational data characterizes the real-time operational status of objects within the level. Based on the hardware and software architecture configured with data nodes, an early warning is issued for the risk status of the target device. Therefore, this method, by forming a directed topology with the configured data nodes at different levels of the terminal device's hardware and software architecture, enables cross-layer tracing to monitor objects at each level, obtain the risk status of the target device, and issue early warnings, thereby improving the accuracy and response efficiency of device fault location.
[0234] The above primarily describes the solutions provided in the embodiments of this application from the perspective of the terminal device. It is understood that, in order to achieve the above functions, the terminal device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that the steps of the digital twin-based intelligent device early warning method described in conjunction with the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed through hardware or by the terminal device software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0235] This application embodiment can divide the terminal device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0236] Figure 7 This is a schematic diagram of the structure of the intelligent device early warning system based on digital twin provided in the embodiments of this application.
[0237] like Figure 7 As shown, some embodiments of this application provide a digital twin-based intelligent device early warning system 200, which can realize the functions of the aforementioned terminal device.
[0238] The system may include a configuration module 210, which is used to configure data nodes corresponding to at least one level in the hardware and software architecture of the terminal device. The data nodes of different levels are associated to form a directed topology. Each data node is associated with the static hardware baseline data and dynamic running data of the corresponding level. The static hardware baseline data is used to characterize the physical attributes of objects in the level, and the dynamic running data is used to characterize the real-time running status of objects in the level.
[0239] The early warning module 220 is used to provide early warning of the risk status of the target device based on a hardware and software architecture configured with data nodes.
[0240] In one implementation, the early warning module 220 is further configured to predict the historical business data of the target service based on a time-series prediction algorithm to obtain the predicted business data of the target service for a future preset period, wherein the business data includes at least one of memory data, traffic data, and load data; determine the total amount of resources corresponding to the static hardware baseline data based on the data nodes in the hardware and software architecture, and obtain the first idle resource reserve of the terminal device based on the total resource amount and the predicted business data; determine the first available resource reserve in the first idle resource reserve based on the first weight coefficient corresponding to the target service in the static hardware baseline data; determine whether the target device has a first risk event using the first available resource reserve, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic running data, wherein the first risk event includes the first backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the first available resource reserve; and determine that the target device is in a first risk state if a first risk event exists, and issue an early warning based on the first risk state, wherein the first risk state is used to characterize the risk to be occurred.
[0241] In one implementation, the early warning module 220 is further used to construct a simulation hardware and software architecture based on the hardware and software architecture; in the simulation hardware and software architecture, an update data node is loaded, and the simulation data node is replaced based on the update data node; the update data node is associated with the first business simulation data of the operation and maintenance change business, the first business simulation data includes instantaneous change data under the operation and maintenance change scenario, the instantaneous change data is used to characterize the sudden change characteristics of at least one of memory, traffic, and load at the moment of operation and maintenance change, the operation and maintenance change includes at least one of version update, service launch, resource expansion, and link switching; based on the update data node, the total amount of resources corresponding to the static hardware baseline data of the simulation associated with it is determined, and based on the total amount of resources and the current dynamic running data of the simulation, the total amount of resources is determined, and the current dynamic running data of the simulation is determined. Resource occupancy is used to obtain the simulated second idle resource reserve of the terminal device; based on the difference between the second idle resource reserve and the instantaneous resource occupancy corresponding to the instantaneous change data, the simulated second available resource reserve in the second idle resource reserve is obtained; using the second available resource reserve, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic running data, it is determined whether the target device has a second risk event. The second risk event includes the second backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the second available resource reserve; if a second risk event exists, the target device is determined to be in a second risk state, and an early warning is issued based on the second risk state, which is used to characterize the risk to be occurred.
[0242] In one implementation, the early warning module 220 is further configured to: determine alarm nodes among the data nodes by comparing the static hardware baseline data and dynamic operating data corresponding to the data nodes of the software and hardware architecture; traverse the topology based on the alarm node as the root node to obtain at least one candidate node associated with the alarm node; filter the candidate nodes based on a multi-source data joint filtering algorithm to obtain at least one abnormal node among the candidate nodes, wherein the multi-source data joint filtering algorithm is used to judge the candidate nodes by using data of at least one dimension associated with each candidate node to determine whether the candidate node is related to the alarm node; determine an abnormal node set based on the abnormal nodes, and converge and locate the abnormal node set to determine that the target device has a third risk event, the third risk event being used to characterize the fault event in the smallest fault impact domain corresponding to the abnormal node set; in the case of the existence of a third risk event, determine that the target device is in a third risk state, and issue an early warning based on the third risk state, the third risk state being used to characterize the risk that has occurred.
[0243] In one implementation, the early warning module 220 is further used to extract semantic features from the abnormal nodes in the abnormal node set based on a neural network model to obtain the effective fault features corresponding to the abnormal nodes; in the simulation hardware and software architecture built based on the hardware and software architecture, the effective fault features are transformed into second business simulation data, and the positive causal relationship between the simulated abnormal nodes and the third risk event is verified based on the second business simulation data. The positive causal relationship is used to characterize the generation of the third risk event based on the second business simulation data; after the positive causal relationship is verified, the second business simulation data is withdrawn to verify the reverse causal relationship between the simulated abnormal nodes and the third risk event. The reverse causal relationship is used to characterize whether the third risk event disappears after the second business simulation data is withdrawn; after the reverse causal relationship is verified, the simulated abnormal nodes are determined as the root cause nodes of the third risk event to determine that the target device has a third risk event, wherein all the root cause nodes are used to form the smallest fault influence domain.
[0244] In one implementation, the system also includes: The acquisition module 230 is used to acquire truth data from objects in the first hardware layer of the software and hardware architecture, and to acquire simulation data from objects in the second hardware layer of the simulation software and hardware architecture corresponding to the software and hardware architecture.
[0245] The generation module 240 is used to perform time-series alignment and dimension normalization processing on the true data and simulation data to generate a calibration dataset based on the processed true data and simulation data. The calculation module 250 is used to calculate the error between the true data and the simulation data in the calibration dataset.
[0246] The training module 260 is used to calibrate and iteratively train the target model in the terminal device when the error is greater than a preset error threshold. The target model includes at least one of a prediction model, a simulation model, and a coupling mechanism model. The prediction model is used to execute the time series prediction algorithm, the simulation model is used to configure the simulation software and hardware architecture, and the coupling mechanism model is used to configure the software and hardware architecture.
[0247] In one implementation, the calculation module 250 is further configured to calculate the error between the true data and the simulation data in the calibration dataset based on an error calculation formula; wherein the error calculation formula is: ; The error between true data and simulation data, For the true value data corresponding to the i-th sampling point, Let N be the simulation data corresponding to the i-th sampling point, and N be the number of sampling points within the statistical time period.
[0248] In one implementation, the system further includes: a data processing module 270, which is used to cluster the training data of the target model based on the neural network model to obtain at least one sample group, the sample group including at least one of memory fault sample group, hardware fault sample group, input / output fault sample group, hardware aging sample group, instantaneous disturbance sample group of operation and maintenance change, baseline operating condition sample group, and noise invalid sample group; remove the noise invalid sample group from the sample group to obtain at least one remaining sample group; label each remaining sample group with a corresponding label, the label being used to characterize the category of the remaining sample group; construct a structured training dataset based on the labeled remaining sample groups; filter the training dataset to select a training subset that matches the current operating condition data of the target device; and calibrate and iteratively train the target model based on the training subset.
[0249] In one implementation, the training module 260 is further configured to, when iteratively training the prediction model based on a training subset, use hardware data from the training data as input, ground truth data as supervision labels, and update the weight parameters and bias parameters of the prediction model based on the backpropagation algorithm, while minimizing the prediction error loss, to iteratively train the prediction model; and when iteratively calibrating the coupled mechanism model based on the training subset, calibrate the mechanism parameters in the coupled mechanism model based on the calibration dataset and the training subset, wherein the static hardware baseline data includes the mechanism parameters.
[0250] This application also provides a computer-readable storage medium including computer instructions that, when executed on the terminal device, cause the terminal device to perform various functions or steps in the above method embodiments.
[0251] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps described in the above method embodiments.
[0252] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0253] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0254] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0255] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0256] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0257] It is readily understood that, based on the several embodiments provided in this application, those skilled in the art can combine, split, or reorganize the embodiments of this application to obtain other embodiments, none of which exceed the protection scope of this application.
[0258] The above detailed embodiments further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. A method for early warning of intelligent devices based on digital twins, characterized in that, Applied to a terminal device, the method includes: Based on at least one layer of the hardware and software architecture of the terminal device, corresponding data nodes are configured, wherein the data nodes of different layers are associated to form a directed topology, and each data node is associated with the static hardware baseline data and dynamic running data of the corresponding layer. The static hardware baseline data is used to characterize the physical attributes of the objects in the layer, and the dynamic running data is used to characterize the real-time running status of the objects in the layer. Based on the hardware and software architecture configured with the data nodes, an early warning is issued regarding the risk status of the target device.
2. The intelligent device early warning method based on digital twin according to claim 1, characterized in that, The method of providing early warning of the risk status of the target device based on the hardware and software architecture configured with the data nodes includes: Based on the time-series prediction algorithm, the historical business data of the target business is predicted to obtain the predicted business data of the target business in the future preset time period, wherein the business data includes at least one of memory data, traffic data, and load data. Based on the data nodes in the hardware and software architecture, the total amount of resources corresponding to the static hardware baseline data is determined, and the first idle resource balance of the terminal device is obtained according to the total amount of resources and the predicted service data. Based on the first weight coefficient corresponding to the target service in the static hardware baseline data, determine the first available resource reserve in the first idle resource reserve; Using the first available resource balance, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic operation data, it is determined whether the target device has a first risk event. The first risk event includes the first backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the first available resource balance. In the event of the first risk event, the target device is determined to be in a first risk state, and an early warning is issued based on the first risk state, which is used to characterize the risk to be caused.
3. The intelligent device early warning method based on digital twin according to claim 1, characterized in that, The method of providing early warning of the risk status of the target device based on the hardware and software architecture configured with the data nodes includes: Construct a simulation hardware and software architecture based on the aforementioned hardware and software architecture; In the simulation hardware and software architecture, the updated data node is loaded, and the simulated data node is replaced based on the updated data node; The updated data node is associated with the first business simulation data of the operation and maintenance change business. The first business simulation data includes instantaneous change data under the operation and maintenance change scenario. The instantaneous change data is used to characterize the sudden change characteristics of at least one of memory, traffic, and load at the moment of operation and maintenance change. The operation and maintenance change includes at least one of version update, service launch, resource expansion, and link switching. Based on the updated data node, the total amount of resources corresponding to the static hardware baseline data of the simulation associated with it is determined, and based on the total amount of resources and the current resource occupancy corresponding to the dynamic running data of the simulation, the second idle resource reserve of the terminal device is obtained. Based on the difference between the second idle resource reserve and the instantaneous resource occupancy corresponding to the instantaneous change data, the simulated second available resource reserve in the second idle resource reserve is obtained; Using the second available resource margin, the service processing rate corresponding to the static hardware baseline data, and the service arrival rate corresponding to the dynamic operation data, it is determined whether the target device has a second risk event. The second risk event includes the second backlog of unprocessed resources calculated based on the service arrival rate and the service processing rate exceeding the second available resource margin. In the event of the second risk event, the target device is determined to be in a second risk state, and an early warning is issued based on the second risk state, which is used to characterize the risk to be caused.
4. The intelligent device early warning method based on digital twin according to claim 1, characterized in that, The method of providing early warning of the risk status of the target device based on the hardware and software architecture configured with the data nodes includes: Based on comparing the static hardware baseline data and the dynamic operation data corresponding to the data nodes of the software and hardware architecture, the alarm nodes in the data nodes are determined. Using the alarm node as the root node, traverse the topology to obtain at least one candidate node associated with the alarm node; The candidate nodes are screened based on a multi-source data joint filtering algorithm to obtain at least one abnormal node among the candidate nodes. The multi-source data joint filtering algorithm is used to determine the candidate nodes by using data of at least one dimension associated with each candidate node to determine whether the candidate node is related to the alarm node. Based on the abnormal nodes, an abnormal node set is determined, and the abnormal node set is converged and located to determine that the target device has a third risk event. The third risk event is used to characterize the fault event in the smallest fault impact domain corresponding to the abnormal node set. In the event of the third risk event, the target device is determined to be in a third risk state, and an early warning is issued based on the third risk state, which is used to characterize the risk that has occurred.
5. The intelligent device early warning method based on digital twin according to claim 4, characterized in that, The step of determining the set of abnormal nodes based on the abnormal nodes, and converging and locating the set of abnormal nodes to determine that the target device has a third risk event includes: Based on a neural network model, semantic features are extracted from the abnormal nodes in the abnormal node set to obtain the effective fault features corresponding to the abnormal nodes. In the simulation software and hardware architecture built based on the aforementioned software and hardware architecture, the effective fault characteristics are transformed into second business simulation data, and the positive causal relationship between the simulated abnormal node and the third risk event is verified based on the second business simulation data. The positive causal relationship is used to characterize the generation of the third risk event based on the second business simulation data. After the positive causal relationship is verified, the second business simulation data is withdrawn to verify the reverse causal relationship between the abnormal node in the simulation and the third risk event. The reverse causal relationship is used to characterize whether the third risk event disappears after the second business simulation data is withdrawn. After the reverse causal relationship verification is passed, the abnormal node in the simulation is determined to be the root cause node of the third risk event, so as to determine that the target device has the third risk event, wherein all the root cause nodes are used to constitute the minimum fault impact domain.
6. The intelligent device early warning method based on digital twin according to claim 1, characterized in that, The method further includes: Truth data is obtained from objects in the first hardware layer of the software and hardware architecture, and simulation data is obtained from objects in the second hardware layer of the simulation software and hardware architecture corresponding to the software and hardware architecture. The true data and the simulation data are subjected to time-series alignment and dimension normalization to generate a calibration dataset based on the processed true data and the processed simulation data. In the calibration dataset, the error between the true data and the simulation data is calculated; When the error exceeds a preset error threshold, the target model in the terminal device is calibrated and iteratively trained. The target model includes at least one of a prediction model, a simulation model, and a coupling mechanism model. The prediction model is used to execute a time-series prediction algorithm, the simulation model is used to configure the simulation hardware and software architecture, and the coupling mechanism model is used to configure the hardware and software architecture.
7. The intelligent device early warning method based on digital twin according to claim 6, characterized in that, The step of calculating the error between the true data and the simulation data in the calibration dataset includes: In the calibration dataset, the error between the true data and the simulation data is calculated based on the error calculation formula; The error calculation formula is as follows: ; The error between the true data and the simulation data. The true value data corresponding to the i-th sampling point. The simulation data corresponds to the i-th sampling point, and N is the number of sampling points within the statistical time period.
8. The intelligent device early warning method based on digital twin according to claim 6, characterized in that, The method further includes: Clustering is performed on the training data of the target model based on the neural network model to obtain at least one sample group. The sample group includes at least one of the following: memory fault sample group, hardware fault sample group, input / output fault sample group, hardware aging sample group, instantaneous disturbance sample group due to operation and maintenance changes, baseline operating condition sample group, and noise invalid sample group. By removing the noisy and invalid sample groups from the sample groups, at least one remaining sample group is obtained; Each of the remaining sample groups is labeled with a corresponding tag, which is used to characterize the category of the remaining sample group; A structured training dataset is constructed based on the remaining sample groups with labeled data. Filter the training dataset to find a training subset that matches the current operating condition data of the target device; The target model is calibrated and iteratively trained based on the training subset dataset.
9. The intelligent device early warning method based on digital twin according to claim 8, characterized in that, The calibration and iterative training of the target model based on the training subset dataset includes: When iteratively training the prediction model based on the training subset dataset, the hardware data in the training data is used as input, the ground truth data is used as supervision labels, and the weight parameters and bias parameters of the prediction model are updated based on the backpropagation algorithm, while minimizing the prediction error loss, so as to iteratively train the prediction model. In the case of iteratively calibrating the coupled mechanism model based on the training subset dataset, the mechanism parameters in the coupled mechanism model are calibrated based on the calibration dataset and the training subset dataset, wherein the static hardware baseline data includes the mechanism parameters.
10. A digital twin-based intelligent device early warning system, characterized in that, The system, applied to terminal devices, includes: The configuration module is used to configure corresponding data nodes based on at least one level in the hardware and software architecture of the terminal device. The data nodes of different levels are associated to form a directed topology. Each data node is associated with static hardware baseline data and dynamic running data of the corresponding level. The static hardware baseline data is used to characterize the physical attributes of objects in the level, and the dynamic running data is used to characterize the real-time running status of objects in the level. An early warning module is used to provide early warnings about the risk status of a target device based on the hardware and software architecture configured with the data nodes.
