Time series fault data analysis method and device based on complex network derived architecture
By using a time-series fault data analysis method based on a complex network-derived architecture, the problem of insufficient accuracy and real-time performance in early and weak fault diagnosis in existing technologies is solved, enabling high-precision and rapid fault identification and early warning for locomotives and rolling stock.
Patent Information
- Application Number
- CN202611331056.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing fault diagnosis methods are difficult to achieve high-precision and timely diagnosis of early and minor faults under complex and ever-changing operating conditions, and multi-source sensor data are difficult to couple effectively, failing to meet the real-time requirements of locomotives and rolling stock.
A time-series fault data analysis method based on complex network derivative architecture is adopted. By dynamically adapting multiple complex network skeletons, coupling node values and edge weights, using a two-layer edge-filling mechanism, and splicing full-information features, the method improves the accuracy of early weak fault identification and the ability to couple and analyze multi-source data.
It achieves high-precision and high-time-efficiency diagnosis of early faults in locomotives and rolling stock, and is applicable to fault diagnosis and maintenance scenarios of rail transit and various industrial equipment, meeting real-time requirements.
Smart Images

Figure CN123179069A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data analysis model construction, and specifically to a method and apparatus for analyzing time-series fault data based on a complex network-derived architecture. Background Technology
[0002] As the rail transit sector develops towards high-speed, heavy-load, and high-reliability operation and maintenance, the operational safety and maintenance efficiency of locomotives and rolling stock have become key factors determining the core competitiveness of products. Accurate analysis and fault early warning of the life-state data of critical components during continuous locomotive operation have become an essential industry requirement.
[0003] The commonly used fault diagnosis methods can be divided into three categories: the first category is time-domain or frequency-domain analysis methods based on statistical features; the second category is analysis methods based on signal processing algorithms such as envelope demodulation, wavelet transform, and empirical mode decomposition; and the third category is classification and diagnosis methods based on shallow machine learning such as support vector machines and random forests or deep neural networks such as convolutional neural networks and long short-term memory networks. The methods described above can achieve a certain degree of fault location under steady-state conditions, but they have significant limitations when faced with complex and ever-changing operating conditions: First, traditional statistical features can only characterize the first or second-order statistical properties of signals, and are less sensitive to nonlinear and non-stationary dynamic changes caused by early weak faults, making it difficult to achieve early warning; Second, existing signal processing methods are mostly designed for single-channel steady-state or quasi-steady-state signals, and the time consistency of multi-source sensors is difficult to effectively align and couple in high-frequency sampling scenarios, easily generating a large number of false alarms when operating conditions change or data fluctuates suddenly; Third, although deep learning methods have strong nonlinear fitting capabilities, they rely on a large number of labeled samples, and the network structure and hyperparameters are highly dependent on human experience, resulting in poor model interpretability, difficulty in locating the cause of faults and causal relationships, and inability to meet the engineering application requirements of interpretable mechanisms and traceable results.
[0004] In recent years, complex network theory has been widely applied in fields such as geophysics, finance, and bioinformatics, and the industrial sector has also begun to explore its application in fault diagnosis scenarios. Existing research typically uses visible graphs, recursive graphs, or phase space to reconstruct networks, mapping one-dimensional time series data into graph structures, and then using topological indicators such as degree distribution, clustering coefficients, and betweenness centrality as fault characteristics. However, existing technologies still have several shortcomings: First, they only process time series data with a single variable, failing to consider the coupling and correlation of multiple sensors and multiple physical fields in the locomotive system; second, the network construction process is static, ignoring temporal causality and network evolution characteristics, leading to early, weak fault information being easily obscured by statistical fluctuations; furthermore, the extracted macroscopic topological indicators are coarse-grained, lacking a correspondence with physical mechanisms, making it difficult to achieve fine-grained fault location and remaining life assessment; and fourth, large-scale model training and inference are time-consuming, failing to meet real-time requirements. Therefore, there is an urgent need for a time-series fault data analysis method that can simultaneously adapt to univariate and multivariate time-series data, explicitly preserve temporal causal characteristics, and generate highly discriminative and interpretable features in cyberspace, so as to achieve high-precision and timely diagnosis and prediction of early locomotive faults. Summary of the Invention
[0005] In view of the above problems, the present invention provides a method and apparatus for analyzing temporal fault data based on a complex network-derived architecture. By dynamically adapting multiple complex network skeletons, coupling node values and edge weights, using a two-layer edge-filling mechanism and splicing full-information features, the method improves the accuracy of early weak fault identification and the ability to couple and analyze multi-source data, providing a new technical path for fault diagnosis of industrial equipment.
[0006] In a first aspect, embodiments of the present invention provide a method for analyzing time-series fault data based on a complex network-derived architecture, the method comprising: Acquire timing fault data; A variety of complex network skeletons are generated as the underlying topology, including ER random graphs, small-world networks, and scale-free networks. The sampled values in the time-series fault data are mapped to the numerical attributes of network nodes, and the weights of each edge are calculated based on the node numerical attributes. For edges that do not exist in the skeleton adjacency matrix, a two-layer strategy combining physical association edge completion and probabilistic edge completion is adopted to complete the edges; Topological feature vectors are extracted from each type of complex network, and the topological feature vectors of each type of network are concatenated with the original statistical features to form a full-information feature vector. The full-information feature vector is input into a machine learning model to complete the classification and identification of fault data.
[0007] In some embodiments, generating multiple complex network skeletons as the underlying topology includes: The node size, the edge existence probability of the ER random graph, the number of nearest neighbors and the reconnection probability of the small-world network, and the initial number of nodes and the number of new edges added each time in the scale-free network are all set as independent adjustable hyperparameters. The corresponding adjacency matrix is generated in real time based on the current hyperparameter combination, so that the network topology can be dynamically adapted to the input data fragment.
[0008] In some embodiments, mapping the sampled values in the time-series fault data to numerical attributes of network nodes, and calculating the weight of each edge based on the node numerical attributes, includes: The length of the time series data is aligned to the network node scale by sliding window downsampling or linear interpolation; Each aligned sample value is directly assigned to the corresponding node's numerical attribute; The weight of a directed edge is calculated by subtracting the source node's value from twice the target node's value.
[0009] In some embodiments, the method of completing edges that do not exist in the skeleton adjacency matrix using a two-layer strategy combining physical association and probabilistic edge completion includes: Determine whether there is a prior physical association between two nodes; If there is a prior physical association, then directly add an edge between the two nodes and calculate the corresponding weight; If there is no prior physical association, a random number is generated and compared with a preset threshold. If the random number meets the threshold condition, an edge is added and the corresponding weight is calculated; otherwise, the edge-free state is maintained.
[0010] In some embodiments, the timing fault data is multi-dimensional timing data containing multiple synchronization channels, and mapping the sampled values in the timing fault data to the numerical attributes of network nodes includes: The multivariate time series data is expanded in two dimensions according to the channel number and time number. The t-th sample value of the m-th channel is mapped to a node whose number is determined by subtracting one from the time number, multiplying by the total number of channels, and then adding the channel number. The cross-channel edge weights between different channels and the same-channel edge weights are calculated in the same way.
[0011] In some embodiments, the extraction of topological feature vectors from each type of complex network includes: Extracting mean degree and degree variance from ER random graphs; Extract clustering coefficients and feature path lengths from small-world networks; Extracting the power exponent of degree distribution and the strength of hub nodes from scale-free networks; Simultaneously, node-level betweenness centrality, edge-level temporal causality strength, and subgraph motif concentration are extracted to jointly constitute the topological feature vector.
[0012] In some embodiments, the time-series fault data analysis method based on complex network-derived architecture further includes: During the training phase, a Bayesian optimization method is used to jointly search for the topological hyperparameters of various complex networks and the model hyperparameters of machine learning models. The optimal combination of hyperparameters is determined through end-to-end joint optimization.
[0013] Secondly, embodiments of the present invention provide a temporal fault data analysis device based on a complex network-derived architecture, the device comprising: The data acquisition module is used to acquire timing fault data; The network generation module is used to generate various complex network skeletons as the underlying topology, including ER random graphs, small-world networks, and scale-free networks. The node mapping module is used to map the sampled values in the time-series fault data to the numerical attributes of network nodes, and to calculate the weight of each edge based on the node numerical attributes. The edge completion module is used to complete edges that do not exist in the skeleton adjacency matrix by using a two-layer strategy that combines physical association edge completion and probabilistic edge completion. The feature extraction module is used to extract topological feature vectors from each type of complex network, and then concatenates the topological feature vectors of each type of network with the original statistical features to form a full-information feature vector. The classification module is used to input the full-information feature vector into the machine learning model to complete the classification and identification of fault data.
[0014] Thirdly, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory stores program code that can run on the processor, and when the program code is executed by the processor, it implements a method for analyzing time-series fault data based on a complex network-derived architecture as described in any embodiment of the first aspect.
[0015] Fourthly, embodiments of the present invention provide a computer storage medium storing one or more programs, which can be executed by an electronic device as described in the third aspect to implement a time-series fault data analysis method based on a complex network-derived architecture as described in any embodiment of the first aspect.
[0016] This invention provides a method and apparatus for analyzing temporal fault data based on a complex network-derived architecture. It achieves adaptive matching of topology and data fragments through three types of interchangeable complex network dynamic skeletons. Combined with a unified node value and edge weight coupling mechanism and a two-layer edge-filling strategy, it can generate physically interpretable fault features in the topological domain. Through two-dimensional expansion of multi-source data and splicing of full-information features, it achieves natural coupling and complete information preservation of multi-source temporal data. With end-to-end joint optimization of network hyperparameters and model hyperparameters, it can significantly improve the accuracy and timeliness of early warning of minor faults, making it suitable for fault diagnosis and maintenance scenarios in rail transit and various industrial equipment.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0018] The invention will now be described in more detail with reference to embodiments and the accompanying drawings.
[0019] Figure 1 The diagram illustrates an exemplary method for analyzing temporal fault data based on a complex network-derived architecture, as proposed in one embodiment of the present invention. Figure 2 This diagram illustrates an exemplary weight calculation and edge-filling decision-making process according to an embodiment of the present invention. Figure 3 This diagram illustrates an exemplary flowchart of an adjustable hyperparameter closed-loop optimization proposed in one embodiment of the present invention. Figure 4 The following is an overall flowchart of an exemplary implementation scheme proposed in one embodiment of the present invention; Figure 5 The diagram illustrates a structural block diagram of an exemplary temporal fault data analysis device based on a complex network-derived architecture, as proposed in one embodiment of the present invention. Figure 6 A structural block diagram of an electronic device for performing a method for analyzing temporal fault data based on a complex network-derived architecture, according to an embodiment of the present invention, is shown. Figure 7 The diagram illustrates a computer-readable storage medium for storing or carrying a method for analyzing temporal fault data based on a complex network-derived architecture, as proposed in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.
[0021] The temporal fault data analysis method based on complex network-derived architecture provided in this embodiment can be applied to fault diagnosis and early warning scenarios for key components of locomotives and rolling stock, as well as to temporal fault data analysis scenarios for other industrial equipment. This method maps temporal fault data to multiple complex network spaces, extracts topological fault features, and fuses them with statistical features to achieve high-precision fault classification and identification.
[0022] The following is combined with Figure 1 The overall process of the method in this embodiment will be described in detail. The method specifically includes the following steps.
[0023] S110: Obtain timing fault data.
[0024] In this embodiment, the timing fault data comes from multi-source sensor data collected from key locomotive components. The sampling frequency is 10kHz, and 600,000 sampling points can be obtained by continuous recording for 60 seconds. The original long time-series data is divided into 293 data segments using a 2048-point non-overlapping sliding window. Each data segment is a univariate time-series segment S={x_0,x_1,…,x_L} of length L=2048. When there are M synchronously acquired sensor channels, M synchronous time-series data of length L are acquired, forming multivariate timing fault data.
[0025] S120: Generates various complex network skeletons as the underlying topology.
[0026] In this embodiment, three types of classic complex networks are generated in parallel as the underlying topology skeleton: ER random graph, Watts–Strogatz small-world network, and Barabási–Albert scale-free network. The node size |V| of the three types of networks is an independently adjustable hyperparameter, ranging from 32 to 4096. In this embodiment, |V| is set to 2048, which is aligned with the length of a single time series data segment.
[0027] For an ER random graph, the topology is determined by the node size |V| and the edge existence probability p. The value of p ranges from 0.01 to 0.5, and the adjustment step size is 0.01. In this embodiment, p=0.15 is set to simulate a random fault propagation scenario.
[0028] For small-world networks, based on a fixed node size |V| and the number of nearest neighbors k, the randomization of the network is controlled by the reconnection probability β, with β ranging from 0 to 1. The number of nearest neighbors k is usually an even number between 2 and 20. In this embodiment, k=8 and β=0.3 are set so that the network has both short path and high clustering characteristics.
[0029] For scale-free networks, a topology with power-law degree distribution is generated by using the initial number of nodes m_0 and the number of newly added edges m each time. In this embodiment, m_0=4 and m=2 are set to characterize the fault propagation mode with hub nodes.
[0030] Before each inference or training iteration, the system generates the corresponding adjacency matrix in real time based on the currently set hyperparameter combination, so that the network topology can be dynamically adapted to the current input data segment without the need to pre-fix the network structure.
[0031] In this application, in the locomotive fault diagnosis scenario, ER random graph, Watts–Strogatz small-world network, and Barabási–Albert scale-free network are used in parallel as dynamically generated underlying topologies, and all of |V|, p, β, k, m_0, and m are set as independent hyperparameters. Through Bayesian optimization and other methods, they are jointly searched with model parameters during the training phase to achieve end-to-end optimization of the "network-model".
[0032] For example, this invention selects ER random graph, Watts–Strogatz small-world network, and Barabási–Albert scale-free network as three interchangeable underlying skeletons. The ER network is completely determined by the number of nodes |V| and the edge existence probability p, which can be continuously adjusted in steps of 0.01 to 0.5 to simulate a completely random fault propagation scenario; the Small-World network, after fixing |V| and the number of nearest neighbors k (usually an even number 2–20), controls the "short path + high clustering" characteristics through the reconnection probability β∈[0,1], and the larger β is, the stronger the randomness; the Scale-Free network generates a power-law distribution through two integer hyperparameters, the initial node m_0 and the number of newly added edges m, to adjust the number of hub nodes.
[0033] The node size |V| of the three types of networks is itself a hyperparameter, which can be arbitrarily selected between 32 and 4096 based on the length of a single input data L or the number of multi-channels M. Before each inference or training, the system generates an adjacency matrix in real time based on the current hyperparameter combination, ensuring dynamic adaptation of the network topology to the data fragments.
[0034] S130: Map the sampled values in the time-series fault data to the numerical attributes of network nodes, and calculate the weight of each edge based on the node numerical attributes.
[0035] First, the input time-series data is length-aligned: when the time-series data length L is greater than the network node size |V|, dimensionality reduction is performed by taking the mean value using a non-overlapping sliding window; when L is less than |V|, linear interpolation is used to supplement sampling points. In this embodiment, both L and |V| are 2048, so no additional alignment is required.
[0036] After alignment, the i-th sampled value is directly assigned as the numerical attribute of the i-th node. For node pairs (i, j) connected by edges, the weight of the directed edge is calculated using a unified formula: the weight is equal to twice the target node's value minus the source node's value. This weight calculation method preserves both the absolute value of the target node and the difference between the two nodes, amplifying the local variation characteristics of the time series data. The specific process for weight calculation and edge completion decision-making is as follows: Figure 2 As shown.
[0037] Specifically, the weight calculation formula is: w_{i→j}=2x_j x_i enables the edge weights to carry both the "absolute value of the current node" and the "difference between nodes" information; this formula is applicable to univariate and multivariate data and is independent of network type.
[0038] For example, for a univariate time series segment S={x_0,x_1,…,x_L}, the length is first aligned to |V| using a sliding window or interpolation; if L>|V|, a non-overlapping sliding window is used to take the mean and reduce the dimension; if L<|V|, linear interpolation is used to fill in the points.
[0039] After alignment, the "numerical attribute" of the i-th node is directly equal to x_i. The edge weight formula is uniformly w_{i→j}=2x_j. x_i retains the current node value while amplifying the difference information.
[0040] When the skeleton adjacency matrix A_{ij}=0, the system checks whether there is a prior physical association between two nodes (the default is "physical association" at different times in the same channel). If there is, an edge is added unconditionally; if there is no prior association, a random number r∈[0,1) is generated. If r≥0.5, an edge is added and the weight is calculated; otherwise, no edge is added. This probabilistic edge-adding mechanism enables the network to have controllable random perturbation capabilities, avoiding feature failure caused by excessive topological sparsity.
[0041] For multi-dimensional time-series data scenarios, a two-dimensional channel-time expansion approach is adopted for node mapping. For M synchronous channels, each with a length of L, the t-th sample value of the m-th channel is mapped to a node numbered n. Here, n is calculated by subtracting one from the time sequence number t, multiplying by the total number of channels M, and then adding the channel sequence number m. The total node size can be set to L. M, or adjusted to the set size using the alignment rules described above. The edge weight calculation method for cross-channel node pairs is completely consistent with that for same-channel node pairs, ensuring uniformity of dimensions and facilitating subsequent feature fusion.
[0042] Specifically, the M-ary synchronization data is expanded using a two-dimensional "channel-time" approach, with node number n = (t... 1)·M+m, so that simultaneous points in different channels naturally share the node space; the cross-channel weight still uses w=2x_{n_2} x_{n_1} does not require additional normalization.
[0043] S140: For edges that do not exist in the skeleton adjacency matrix, a two-layer strategy combining physical association and probabilistic edge completion is used to complete the edges.
[0044] When there is no edge between two nodes in the adjacency matrix generated by the skeleton, a double-layer edge-filling judgment process is executed.
[0045] First, determine whether there is a prior physical association between the two nodes. For nodes in adjacent time intervals within the same channel, they are assumed to have a physical temporal association. For nodes in different channels, if there is a known coupling relationship between the corresponding physical quantities, such as motor current and torque, bearing temperature and vibration energy, then it is determined that there is a prior physical association.
[0046] If two nodes have a prior physical association, then an edge is added unconditionally and the corresponding edge weight is calculated according to the aforementioned weight formula; if there is no prior physical association, then a random number r with a value range of [0,1) is generated, and r is compared with a preset threshold of 0.5. When r≥0.5, an edge is added and the weight is calculated; otherwise, the state of having no edge is maintained.
[0047] This two-layer edge-filling strategy ensures the connectivity of physically related nodes while increasing the richness of the network topology through controllable random edge-filling, thus avoiding the failure of topological features due to excessive network sparsity.
[0048] For example, in a multi-channel scenario, the input consists of M synchronous channels, each with a length of L. The system maps the t-th sample value of the m-th channel to a node number n = (t-1)·M + m, and the total number of nodes |V| can be set to L·M or follow the same alignment rules.
[0049] For any pair of nodes (n_1, n_2), if the skeleton has given edges, the weight is still w = 2 x {n_1} x_{n_2}; If the skeleton does not provide edges, but n_1 and n_2 correspond to different channels and have physical correlations (such as motor current and torque, bearing temperature and vibration energy), then edges are directly added; if there are neither skeleton edges nor physical correlations, then edges are added again with a probability of r≥0.5. The cross-channel weight formula is consistent with that of the univariate formula to ensure uniform numerical dimensions and facilitate subsequent feature fusion. Three types of networks (ER, Small-World, Scale-Free) are generated in parallel, each outputting K-dimensional network features, ultimately forming an M·L+3K-dimensional full information vector.
[0050] S150: Extract topological feature vectors from each type of complex network, and concatenate the topological feature vectors of each type of network with the original statistical features to form a full-information feature vector.
[0051] For each type of generated weighted complex network, the corresponding topological features are extracted. In this embodiment, 7-dimensional topological features are extracted for each type of network, specifically including: For ER random graphs, extract the mean degree and degree variance; For small-world networks, clustering coefficients and feature path lengths are extracted. For scale-free networks, extract the power exponent of degree distribution and the strength of hub nodes; Meanwhile, for the three types of networks, the maximum value of node-level betweenness centrality, edge-level temporal causality strength, and subgraph motif concentration are uniformly extracted. Combined with the aforementioned network-specific features, they together constitute a K-dimensional topological feature vector for each type of network. In this embodiment, K=7.
[0052] In addition, statistical features were extracted from the original time-series data segments, including the mean, variance, kurtosis, peak factor, and root mean square value, totaling five statistical features.
[0053] The 5-dimensional original statistical features are directly concatenated with the 7-dimensional topological features of each of the three types of networks to obtain a 26-dimensional full-information feature vector (5 + 3 × 7). No prior weights are applied during the concatenation process, nor is any dimensionality reduction performed, thus completely preserving all information from the original data and topological domain.
[0054] S160: Input the full-information feature vector into the machine learning model to complete the classification and identification of fault data.
[0055] In this embodiment, the full-information feature vector is used as the sole input to the machine learning model. The appropriate machine learning algorithm can be selected according to the deployment scenario: a random forest or XGBoost classifier is used for lightweight edge deployment scenarios; a deep neural network classifier can be used for high-precision scenarios.
[0056] In this embodiment, the XGBoost classifier is used, and the model with the best AUC index is selected as the final classifier through 5-fold cross-validation, and the fault type identification result is output.
[0057] Furthermore, during the model training phase, Bayesian optimization is employed for end-to-end joint optimization, the optimization process as follows: Figure 3 As shown, the hyperparameters for joint optimization fall into two categories: one category consists of topological hyperparameters for complex networks, such as node size |V|, edge probability p in ER networks, nearest neighbor number k and reconnection probability β in small-world networks, and initial node number m_0 and number of newly added edges m in scale-free networks; the other category consists of hyperparameters for machine learning models, such as learning rate, tree depth, and regularization coefficient. By jointly searching these hyperparameters using a Bayesian optimization algorithm, the globally optimal hyperparameter combination is obtained, achieving end-to-end synergistic optimization of the network topology and classification model, further improving fault diagnosis accuracy.
[0058] For example, network feature extraction, dimensionality expansion, and end-to-end joint optimization: For each generated network, the system extracts the following features: ER networks focus on the average degree <k> and degree variance σ²_k; Small-World networks extract the clustering coefficient C and feature path length. ; Scale-Free network extracts the power exponent γ and the hub node strength S_h.
[0059] In addition, node-level betweenness centrality, edge-level temporal causality strength, and subgraph motif concentration are calculated and uniformly encapsulated as a K-dimensional vector.
[0060] The original L-dimensional statistical features (mean, variance, kurtosis, peak factor, etc.) are concatenated with 3K-dimensional network features to obtain an L+3K-dimensional "full information vector".
[0061] This vector can be input into any machine learning algorithm: for lightweight scenarios, random forest or XGBoost is used. During the training phase, Bayesian optimization is used to jointly search for "network hyperparameters |V|,p,k,β,m_0,m" and "model hyperparameters learning rate, number of layers, and regularization coefficients" to achieve end-to-end optimization of "network-model", thereby significantly improving the accuracy of fault diagnosis and the timeliness of early warning.
[0062] In terms of engineering deployment, this method can be deployed in vehicle-mounted edge computing units. This embodiment is applied to the corresponding computing unit, with a total power consumption of less than 30W, meeting the power consumption and computing power requirements of vehicle-mounted edge devices. The network generation module is implemented using C++ / CUDA, with a single network construction time of less than 3ms; the feature extraction module can be accelerated using the cuGraph library, with feature extraction time of less than 5ms for a single 5120-node network segment; the inference module uses a machine learning model optimized by the cuML library, with inference efficiency improved by more than 10 times compared to conventional implementations.
[0063] This application supports online incremental updates. The edge device aggregates unlabeled data every 24 hours and uploads it to the cloud. The cloud uses federated learning to update network hyperparameters and model weights, generating incremental update packages smaller than 2MB. The edge device can directly hot-update the incremental packages without downtime and restart, ensuring operational continuity.
[0064] In the specific implementation method, see Figure 4 As shown, it includes the following steps: S1. Data Acquisition: Obtain the fault data acquisition path and dependencies. The data sampling frequency is 10kHz, and 600,000 points are obtained by continuous recording for 60s. The data is divided into 293 segments according to the 2048-point non-overlapping sliding window. Each segment is an S with a length of L=2048.
[0065] S2. Network Generation: Set |V|=2048, construct the network as follows: ER: edge probability p=0.15; Small-World: nearest neighbor number k=8, reconnection probability β=0.3; Scale-Free: initial node m_0=4, each time adding edge m=2. Use w_{i→j}=2x_j The weight of x_i is calculated, and missing edges are filled with a probability of r≥0.5.
[0066] S3. Feature Extraction: Each of the three types of networks outputs K=7-dimensional features (mean degree, degree variance, clustering coefficient, feature path length, power exponent or core degree, maximum betweenness centrality, degree distribution entropy). The original statistical features are taken as the mean, variance, kurtosis, peak factor, and RMS, totaling 5 dimensions. This forms a 5 + 3 × 7 = 26-dimensional full information vector.
[0067] S4. Model Training and Results: The model with the best AUC under 5-fold cross-validation is selected as the final classifier.
[0068] S5. Vehicle-mounted edge deployment and online updates: The power consumption of the vehicle-mounted edge computing unit is <30W, which meets the needs and requirements of vehicle-mounted edge devices.
[0069] S6. Software configuration: Network generation module: C++ / CUDA implementation, single network construction <3ms; Feature extraction module: cuGraph acceleration, single segment 5120 node network feature extraction <5ms; Inference module: scikit-learn machine learning model optimized from cuML library, with efficiency improved by more than 10 times.
[0070] S7. Online Update: Unlabeled data is aggregated at the edge and uploaded to the cloud every 24 hours; the cloud uses federated learning to update the weights of the network's hyperparticipation model, with incremental packages <2MB; hot updates at the edge do not require downtime.
[0071] The above embodiments demonstrate that, without adding additional sensors, the present invention can significantly improve the detection rate and positioning accuracy of early faults in key locomotive components by using only a flexible network skeleton, a unified weight formula, and a two-layer edge-filling strategy, and has the value for large-scale engineering promotion.
[0072] Please see Figure 5 , Figure 5 A structural block diagram of a temporal fault data analysis device 300 based on a complex network-derived architecture provided by the present invention includes: a data acquisition module 310, a network generation module 320, a node mapping module 330, an edge completion module 340, a feature extraction module 350, and a classification module 360, wherein: Data acquisition module 310 is used to acquire timing fault data; The network generation module 320 is used to generate various complex network skeletons as the underlying topology, including ER random graphs, small-world networks and scale-free networks. The node mapping module 330 is used to map the sampled values in the time-series fault data to the numerical attributes of the network nodes, and to calculate the weight of each edge based on the node numerical attributes. The edge completion module 340 is used to complete edges that do not exist in the skeleton adjacency matrix by using a two-layer strategy that combines physical association edge completion and probabilistic edge completion. The feature extraction module 350 is used to extract topological feature vectors from each type of complex network, and to concatenate the topological feature vectors of each type of network with the original statistical features to form a full-information feature vector. The classification module 360 is used to input the full-information feature vector into the machine learning model to complete the classification and identification of fault data.
[0073] It should be noted that the present invention may also include other modules. The device embodiments in the present invention correspond to the foregoing method embodiments. The specific principles of the module embodiments in the device can be found in the foregoing method embodiments, and will not be repeated here.
[0074] In the several embodiments provided in this example, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0075] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0076] Please see Figure 6 , Figure 6 The present invention provides a structural block diagram of an electronic device 200 capable of executing the above-described multi-round jailbreak defense assessment method for Text-to-SQL systems. The electronic device 200 may be a tablet computer, a computer, or a portable computer.
[0077] The electronic device 200 also includes a processor 202 and a memory 204. The memory 204 stores programs that can execute the contents of the foregoing embodiments, and the processor 202 can execute the programs stored in the memory 204.
[0078] The processor 202 may include one or more cores for data processing and message matrix units. The processor 202 connects to various parts within the electronic device 200 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 204, and by calling data stored in the memory 204. Optionally, the processor 202 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 202 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem / decoder. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem / decoder handles wireless communication. It is understood that the modem / decoder may also be implemented separately as a communication chip, without being integrated into the processor.
[0079] Memory 204 may include random access memory (RAM) or read-only memory (ROM). Memory 204 can be used to store instructions, programs, code, code sets, or instruction sets. Memory 204 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., instructions for a user to obtain random numbers), instructions for implementing the various method embodiments described below, etc. The data storage area may also store data (e.g., random numbers) created by the terminal during use.
[0080] Electronic device 200 may also include a network module and a screen. The network module is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals, thereby enabling communication with communication networks or other devices, such as audio playback devices. The network module may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, SIM cards, memory, etc. The network module can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen can display interface content and facilitate data interaction.
[0081] Please refer to Figure 7 , Figure 7 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present invention is shown. The computer-readable storage medium 400 stores program code 410, which can be called by a processor to execute the methods described in the above method embodiments.
[0082] The computer-readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program code 410 that performs any of the method steps described above. This program code 410 can be read from or written to one or more computer program products. The program code 410 may be compressed, for example, in a suitable form.
[0083] This invention also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform a time-series fault data analysis method based on a complex network-derived architecture as described in the various optional implementations above.
[0084] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for analyzing temporal fault data based on a complex network-derived architecture, characterized in that, The method includes: Acquire timing fault data; A variety of complex network skeletons are generated as the underlying topology, including ER random graphs, small-world networks, and scale-free networks. The sampled values in the time-series fault data are mapped to the numerical attributes of network nodes, and the weights of each edge are calculated based on the node numerical attributes. For edges that do not exist in the skeleton adjacency matrix, a two-layer strategy combining physical association and probabilistic edge completion is used to complete the edges. Topological feature vectors are extracted from each type of complex network, and the topological feature vectors of each type of network are concatenated with the original statistical features to form a full-information feature vector. The full-information feature vector is input into a machine learning model to complete the classification and identification of fault data.
2. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 1, characterized in that, The generation of various complex network skeletons as underlying topologies includes: The node size, the edge existence probability of the ER random graph, the number of nearest neighbors and the reconnection probability of the small-world network, and the initial number of nodes and the number of new edges added each time in the scale-free network are all set as independent adjustable hyperparameters. The corresponding adjacency matrix is generated in real time based on the current hyperparameter combination, so that the network topology can be dynamically adapted to the input data fragment.
3. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 1, characterized in that, The step of mapping the sampled values in the time-series fault data to the numerical attributes of network nodes, and calculating the weight of each edge based on the node numerical attributes, includes: The length of the time series data is aligned to the network node scale by sliding window downsampling or linear interpolation; Each aligned sample value is directly assigned to the corresponding node's numerical attribute; The weight of a directed edge is calculated by subtracting the source node's value from twice the target node's value.
4. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 1, characterized in that, For edges that are not present in the skeleton adjacency matrix, a two-layer strategy combining physical association and probabilistic edge completion is used for edge completion, including: Determine whether there is a prior physical association between two nodes; If there is a prior physical association, then directly add an edge between the two nodes and calculate the corresponding weight; If there is no prior physical association, a random number is generated and compared with a preset threshold. If the random number meets the threshold condition, an edge is added and the corresponding weight is calculated; otherwise, the edge-free state is maintained.
5. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 1, characterized in that, The timing fault data is multi-dimensional timing data containing multiple synchronization channels. Mapping the sampled values in the timing fault data to the numerical attributes of network nodes includes: The multivariate time series data is expanded in two dimensions according to the channel number and time number. The t-th sample value of the m-th channel is mapped to a node whose number is determined by subtracting one from the time number, multiplying by the total number of channels, and then adding the channel number. The cross-channel edge weights between different channels and the same-channel edge weights are calculated in the same way.
6. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 1, characterized in that, The extraction of topological feature vectors from each type of complex network includes: Extracting mean degree and degree variance from ER random graphs; Extract clustering coefficients and feature path lengths from small-world networks; Extracting the power exponent of degree distribution and the strength of hub nodes from scale-free networks; Simultaneously, node-level betweenness centrality, edge-level temporal causality strength, and subgraph motif concentration are extracted to jointly constitute the topological feature vector.
7. The method for analyzing temporal fault data based on a complex network-derived architecture according to claim 2, characterized in that, The method further includes: During the training phase, a Bayesian optimization method is used to jointly search for the topological hyperparameters of various complex networks and the model hyperparameters of machine learning models. The optimal combination of hyperparameters is determined through end-to-end joint optimization.
8. A temporal fault data analysis device based on a complex network-derived architecture, characterized in that, include: The data acquisition module is used to acquire timing fault data; The network generation module is used to generate various complex network skeletons as the underlying topology, including ER random graphs, small-world networks, and scale-free networks. The node mapping module is used to map the sampled values in the time-series fault data to the numerical attributes of network nodes, and to calculate the weight of each edge based on the node numerical attributes. The edge completion module is used to complete edges that do not exist in the skeleton adjacency matrix by using a two-layer strategy that combines physical association edge completion and probabilistic edge completion. The feature extraction module is used to extract topological feature vectors from each type of complex network, and then concatenates the topological feature vectors of each type of network with the original statistical features to form a full-information feature vector. The classification module is used to input the full-information feature vector into the machine learning model to complete the classification and identification of fault data.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores program code that can run on the processor. When the program code is executed by the processor, it implements a time-series fault data analysis method based on a complex network-derived architecture as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by one or more processors to execute a time-series fault data analysis method based on a complex network-derived architecture as described in any one of claims 1-7.
