A rail transit monitoring data cleaning method and device based on Bayesian inference

By combining Bayesian inference models and multi-level data fusion strategies with digital twin technology and knowledge graphs, the dynamic adaptability and accuracy issues of rail transit monitoring data cleaning were solved, achieving efficient and intelligent data cleaning and analysis, and improving the overall efficiency and decision support capabilities of the system.

CN123178776APending Publication Date: 2026-11-27GUANGZHOU METRO ENGINEERING CONSULTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611291788.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for cleaning rail transit monitoring data cannot dynamically adapt to complex and ever-changing operating environments, nor can they effectively utilize the correlation between sensors and the characteristics of time-series data, resulting in inaccurate data cleaning results and a lack of in-depth analysis and optimization.

Method used

We employ a Bayesian inference model combined with a multi-level data fusion strategy, construct a time-series dataset using digital twin technology, dynamically update prior probabilities to identify noise and outliers, and clean the data in parallel on multiple data source nodes using a distributed control strategy. We also combine knowledge graphs for deep mining to construct an association graph and use machine learning algorithms to adjust the cleaning rules.

Benefits of technology

It improves the accuracy and efficiency of data cleaning, ensures data consistency and real-time performance, enhances in-depth analysis of monitoring data, supports equipment maintenance and fault prediction, and improves the intelligence level of rail transit systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178776A_ABST
    Figure CN123178776A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of rail transit monitoring, and discloses a rail transit monitoring data cleaning method and device based on Bayesian inference, which comprises the following steps: collecting monitoring data of rail transit facilities to construct a time series data set; constructing a Bayesian inference model based on the time series data set, identifying and marking noise and outliers in the monitoring data; performing a multi-level data fusion operation to obtain corrected monitoring data; adopting a distributed control strategy for the corrected monitoring data, applying the Bayesian inference model to multiple data source nodes in parallel, independently cleaning the monitoring data, and merging the cleaned monitoring data to a master node through a link; deeply mining the cleaned monitoring data to construct a correlation graph of rail transit monitoring data; and performing an adaptive data updating mechanism to correct parameters of the Bayesian inference model and adjust monitoring data cleaning rules in real time according to the parameters. The application can efficiently clean rail transit monitoring data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of rail transit monitoring technology, and in particular to a method and apparatus for cleaning rail transit monitoring data based on Bayesian inference. Background Technology

[0002] With the continuous development of rail transit systems, monitoring technology plays a crucial role in ensuring system safety and efficiency. Rail transit facilities, such as tunnels, tracks, trains, and power systems, use sensors to monitor and collect various data in real time, including temperature, humidity, pressure, and vibration. To effectively ensure the quality of monitoring data, it is usually necessary to clean the raw data collected by the sensors, identify noise and outliers, and supplement missing data, thereby providing accurate decision-making basis.

[0003] However, existing methods for cleaning rail transit monitoring data often rely on static thresholds or rules to identify outliers and noise. These traditional methods cannot dynamically adapt to the complex and ever-changing operating environment and system status of rail transit facilities. In multi-sensor environments, differences in data quality lead to a large error range in monitoring data, making it difficult for traditional data cleaning methods to adjust in a timely manner according to actual conditions, easily resulting in inaccurate cleaning results. Furthermore, existing technologies have failed to fully utilize the correlation between sensors and the characteristics of time-series data for effective data fusion and anomaly detection. To address these issues, Bayesian inference, as a probability-based inference method, can adaptively update prior probabilities based on the historical and current states of sensor data, thereby correcting data cleaning rules in real time and performing efficient data cleaning. However, existing Bayesian inference methods are mainly focused on data cleaning applications with single data sources or small scales, failing to fully consider the data cleaning needs in large-scale, multi-node sensor network environments. Furthermore, existing methods also fail to fully explore the potential relationships and patterns between different monitoring data while cleaning, lacking in-depth analysis and optimization of the monitoring data.

[0004] Therefore, how to efficiently and accurately clean rail transit monitoring data has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a method and apparatus for cleaning rail transit monitoring data based on Bayesian inference. Firstly, by combining a Bayesian inference model with a multi-level data fusion strategy, the accuracy of rail transit monitoring data cleaning is effectively improved. The Bayesian inference model can dynamically update prior probabilities and adaptively identify and repair noise and outliers in the monitoring data, thus solving the problem of inaccurate handling of noise and outliers in traditional data cleaning methods. Secondly, by introducing a distributed control strategy, the Bayesian inference model can be applied in parallel to multiple data source nodes, achieving efficient data cleaning and synchronization. Each data source node processes data independently locally, avoiding frequent data transmission and reducing latency. Simultaneously, a global synchronization mechanism ensures data consistency and real-time performance, improving the overall efficiency of the system. Finally, deep mining of the cleaned data using a knowledge graph constructs a correlation graph of the rail transit monitoring data. Based on graph analysis, potential relationships and patterns between various types of monitoring data are determined. This not only enhances the in-depth analysis of the monitoring data but also provides strong support for subsequent equipment maintenance, fault prediction, and operational optimization, further improving the intelligence level and decision support capabilities of the rail transit system.

[0006] In a first aspect, embodiments of this application provide a method for cleaning rail transit monitoring data based on Bayesian inference, the method comprising: Monitoring data of rail transit facilities are collected through sensor networks, and digital twin technology is used to timestamp and encode each monitoring data to construct a time-series dataset. A Bayesian inference model is built based on a time series dataset. Prior probabilities are adaptively updated through multi-level time windows, and the error range of the monitoring data is calculated to identify and label noise and outliers in the monitoring data. Multi-level data fusion is performed on the monitoring data that has been marked with noise and outliers. The monitoring data is corrected by a confidence-based weighting strategy to supplement missing monitoring data and repair outliers, resulting in corrected monitoring data. A distributed control strategy is adopted for the corrected monitoring data. The Bayesian inference model is applied in parallel to multiple data source nodes. The monitoring data is cleaned independently on each data source node, and the cleaned monitoring data is merged to the master control node through the link. By using knowledge graphs to deeply mine the cleaned monitoring data, a correlation graph of rail transit monitoring data is constructed. By combining the correlation map and the rail transit operation status, a machine learning algorithm is used to execute an adaptive data update mechanism, correct the parameters of the Bayesian inference model, and adjust the monitoring data cleaning rules in real time according to the parameters.

[0007] Furthermore, monitoring data of rail transit facilities are collected through sensor networks, and digital twin technology is used to timestamp and encode each piece of monitoring data to construct a time-series dataset, including: Monitoring data of rail transit facilities are collected through a sensor network; the sensor network includes temperature sensors, humidity sensors, pressure sensors, vibration sensors, speed sensors, and position sensors. Based on digital twin technology, a virtual model is established for the monitoring object corresponding to the monitoring data; the monitoring data is then integrated into the virtual model. Time synchronization is performed based on the real-time status of virtual models and physical facilities, and timestamps are added to each monitoring data point. Identifiers are assigned to each monitoring data point based on an encoding mechanism; The time-series dataset is constructed by arranging the identified and coded monitoring data in chronological order.

[0008] Furthermore, a Bayesian inference model is constructed based on the time-series dataset. Prior probabilities are adaptively updated through multi-level time windows, and the error range of the monitoring data is calculated. Noise and outliers in the monitoring data are identified and labeled, including: Historical data of each monitoring point is extracted based on the time series dataset. The historical data is classified according to the sensor type and monitoring target to obtain the monitoring data corresponding to each sensor type. A Bayesian inference model is constructed based on the monitoring data corresponding to each sensor type. The real-time collected monitoring data is processed based on the Bayesian inference model to obtain the credibility result and the anomaly result; Based on the confidence and anomaly results, the sliding window method and Bayes' theorem are used to calculate the prior probability of the real-time monitoring data. When new monitoring data is acquired, the posterior probability of the current window is updated, the prior probability is updated based on the probability value of the current monitoring data and the mean and standard deviation of the historical monitoring data, and the error range of the monitoring data is recalculated. Determine whether each monitoring data point exceeds the error range; if so, mark the monitoring data as noise or anomaly.

[0009] Furthermore, based on the monitoring data with noise and outlier labels, a multi-level data fusion operation is performed. The monitoring data is corrected using a confidence-based weighting strategy to supplement missing monitoring data and repair outliers, resulting in corrected monitoring data, including: Based on the monitoring data with completed noise and outlier labeling, the confidence level is calculated according to the Bayesian inference model; Weighted values ​​are assigned to the monitoring data based on confidence levels; Missing monitoring data were supplemented using time series interpolation, linear interpolation, and Bayesian inference models. Outliers were processed using a weighted average method to obtain corrected monitoring data.

[0010] Furthermore, a distributed control strategy is adopted for the corrected monitoring data. The Bayesian inference model is applied in parallel to multiple data source nodes. The monitoring data is independently cleaned on each data source node, and the cleaned monitoring data is then merged to the master control node via a link. This includes: A distributed control strategy is adopted for the corrected monitoring data. The corrected monitoring data is received at each data source node, and an independent Bayesian inference model is deployed at each data source node. Based on the corrected monitoring data, noise identification, secondary verification of missing values, outlier repair and data confidence calculation are performed locally to obtain the local cleaning results of each data source node. Based on the Kafka communication protocol, the local cleaning results are packaged into compressed data packets, and the data packets are sent to the master node through an encrypted connection; The master node receives data packets from all data source nodes, performs time alignment, cleaning result merging, and conflict consistency checks on the monitoring data in the data packets, and obtains the cleaned monitoring data.

[0011] Furthermore, deep mining of the cleaned monitoring data is conducted using knowledge graphs to construct a relational graph of rail transit monitoring data, including: The cleaned monitoring data is processed into nodes to obtain independent nodes containing attribute information; A correlation graph is constructed, which models the relationships between independent nodes using a relation-based graph structure. The graph is then subjected to deep learning through graph embedding technology. A Bayesian inference model is used to adjust edge weights and node weights. A community detection algorithm in graph computing is used to analyze the graph, identify key nodes, equipment failure modes, and operational anomalies, and obtain a correlation graph of rail transit monitoring data.

[0012] Furthermore, the machine learning algorithm uses random forest for feature selection and Bayesian inference model training, and classifies and predicts data through a voting mechanism of multiple decision trees. In the construction of each tree, the Gini index and information gain criterion are used to divide nodes, randomly select feature subsets and data subsets, and optimize the Bayesian inference model through cross-validation.

[0013] Secondly, embodiments of this application provide a rail transit monitoring data cleaning device based on Bayesian inference, the device comprising: The data acquisition module is used to collect monitoring data of rail transit facilities through a sensor network. It uses digital twin technology to timestamp and encode each piece of monitoring data to build a time-series dataset. The data modeling module is used to build Bayesian inference models based on time-series datasets, adaptively update prior probabilities through multi-level time windows, calculate the error range of monitoring data, and identify and label noise and outliers in the monitoring data. The data fusion module is used to perform multi-level data fusion operations based on the monitoring data that has been marked with noise and outliers. It corrects the monitoring data through a confidence-based weighting strategy, supplements missing monitoring data and repairs outliers, and obtains corrected monitoring data. The data cleaning module is used to apply a distributed control strategy to the corrected monitoring data. It applies the Bayesian inference model in parallel to multiple data source nodes, cleans the monitoring data independently on each data source node, and merges the cleaned monitoring data to the master control node through the link. The data association module is used to conduct in-depth mining of the cleaned monitoring data through knowledge graphs to construct an association graph of rail transit monitoring data; The data update module combines the correlation map and the rail transit operation status, uses machine learning algorithms to execute an adaptive data update mechanism, corrects the parameters of the Bayesian inference model, and adjusts the monitoring data cleaning rules in real time according to the parameters.

[0014] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the steps of a rail transit monitoring data cleaning method based on Bayesian inference as described in any of the above embodiments.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of a rail transit monitoring data cleaning method based on Bayesian inference as described in any of the above embodiments.

[0016] In summary, compared with the prior art, the beneficial effects of the technical solution provided in this application include at least the following: This application provides a Bayesian inference-based method for cleaning rail transit monitoring data. First, by combining a Bayesian inference model with a multi-level data fusion strategy, the accuracy of rail transit monitoring data cleaning is effectively improved. The Bayesian inference model can dynamically update prior probabilities and adaptively identify and repair noise and outliers in the monitoring data, thus solving the problem of inaccurate handling of noise and outliers in traditional data cleaning methods. Second, by introducing a distributed control strategy, the Bayesian inference model can be applied in parallel to multiple data source nodes, achieving efficient data cleaning and synchronization. Each data source node processes data independently locally, avoiding frequent data transmission and reducing latency. Simultaneously, a global synchronization mechanism ensures data consistency and real-time performance, improving the overall efficiency of the system. Finally, deep mining of the cleaned data using a knowledge graph constructs a correlation graph of the rail transit monitoring data. Based on graph analysis, potential relationships and patterns between various types of monitoring data are determined. This not only enhances the in-depth analysis of the monitoring data but also provides strong support for subsequent equipment maintenance, fault prediction, and operational optimization, further improving the intelligence level and decision support capabilities of the rail transit system. Attached Figure Description

[0017] Figure 1 A flowchart illustrating a Bayesian inference-based method for cleaning rail transit monitoring data, provided as an exemplary embodiment of this application.

[0018] Figure 2 This is a structural diagram of a rail transit monitoring data cleaning device based on Bayesian inference, provided as an exemplary embodiment of this application. Detailed Implementation

[0019] 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.

[0020] Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0021] Please see Figure 1 This application provides a method for cleaning rail transit monitoring data based on Bayesian inference, which specifically includes the following steps: Step S1: Collect monitoring data of rail transit facilities through sensor network, and use digital twin technology to timestamp and encode each monitoring data to construct a time-series dataset.

[0022] In some embodiments, monitoring data of rail transit facilities are collected through a sensor network, and each monitoring data point is timestamped and encoded using digital twin technology to construct a time-series dataset, including: Step S11: Collect monitoring data of rail transit facilities through a sensor network; the sensor network includes temperature sensors, humidity sensors, pressure sensors, vibration sensors, speed sensors and position sensors.

[0023] Each sensor collects monitoring data in real time according to a set sampling period and sends the monitoring data to the local data acquisition unit.

[0024] Step S12: Based on digital twin technology, establish a virtual model for the monitoring object corresponding to the monitoring data; integrate the monitoring data into the virtual model.

[0025] Digital twin technology establishes a virtual model by monitoring the object corresponding to the monitoring data. The virtual model integrates monitoring data collected by temperature sensors, humidity sensors, pressure sensors, vibration sensors, speed sensors and position sensors, realizing real-time mapping between monitoring data and the operating status of physical entities.

[0026] Step S13: Synchronize time based on the real-time status of the virtual model and physical facilities, and add timestamps to each monitoring data.

[0027] Step S14: Assign identifiers to each monitoring data based on the coding mechanism.

[0028] Among them, a coding mechanism is used to assign a unique identifier to each monitoring data. The coding mechanism can combine sensor type, data acquisition time and location attributes to make each monitoring data traceable and unique.

[0029] Step S15: Construct a time-series dataset by arranging the identified and coded monitoring data in chronological order.

[0030] In this process, all the identified and coded monitoring data are organized in chronological order to construct a time-series dataset containing timestamps, sensor information, location identifiers, and corresponding physical states.

[0031] This process involves synchronously collecting monitoring data on temperature, humidity, pressure, vibration, speed, and location of rail transit facilities through a sensor network. Digital twin technology is used to construct a virtual model corresponding to the physical facilities. Multi-source data is integrated into the virtual model to achieve real-time mapping of the facility's operational status, helping managers to grasp overall facility changes. Each monitoring data point is time-synchronized and timestamped, and assigned an identifier based on sensor type, acquisition time, and location attributes, ensuring that the data corresponds to specific facilities and acquisition times in both time and spatial dimensions. The time-series dataset, organized chronologically, can be directly used for subsequent processing, reducing the processing burden caused by scattered data and improving data processing efficiency.

[0032] Step S2: Construct a Bayesian inference model based on the time series dataset, adaptively update the prior probability through multi-level time windows, calculate the error range of the monitoring data, and identify and label noise and outliers in the monitoring data.

[0033] In some embodiments, a Bayesian inference model is constructed based on a time-series dataset, prior probabilities are adaptively updated through multi-level time windows, the error range of the monitoring data is calculated, and noise and outliers in the monitoring data are identified and labeled, including: Step S21: Extract historical data from each monitoring point based on the time series dataset, classify the historical data according to sensor type and monitoring target, and obtain the monitoring data corresponding to each sensor type.

[0034] Step S22: Construct a Bayesian inference model based on the monitoring data corresponding to each sensor type.

[0035] In one feasible implementation, it further includes: Step S221: Collect historical monitoring data of the corresponding sensors from the time series dataset, divide the historical monitoring data according to the sampling frequency of the sensors, and divide it into training set and validation set according to the characteristics of the historical monitoring data.

[0036] Step S222: Use the Gaussian Naive Bayes algorithm to perform probabilistic modeling for each type of historical monitoring data.

[0037] Step S223: During the model building process, the historical monitoring data of each sensor is standardized to ensure that the historical monitoring data of different sensors can be compared under the same standard.

[0038] Step S224: Calculate the mean and standard deviation of the historical monitoring data for each sensor using the historical monitoring data in the training set, and use the mean and standard deviation as the distribution parameters of the Gaussian distribution of the historical monitoring data of the corresponding sensor.

[0039] In step S225, to avoid overfitting when building the model, the historical monitoring data is split into 80% training set and 20% validation set. The cross-validation method is used to evaluate the model performance, and the model parameters are adjusted according to the evaluation results.

[0040] Step S226: After completing the model training, the constructed Bayesian inference model is applied to the real-time collected monitoring data.

[0041] Step S23: Process the real-time collected monitoring data based on the Bayesian inference model to obtain the credibility result and the anomaly result.

[0042] Step S24: Based on the confidence and anomaly results, the sliding window method and Bayes' theorem are used to calculate the prior probability of the real-time monitoring data.

[0043] One approach is to use a sliding window method to set three time windows—1 minute, 5 minutes, and 15 minutes—for the real-time monitoring data. Within each time window, the prior probability of the real-time monitoring data is calculated using Bayes' theorem. This allows for effective time segmentation of the real-time monitoring data, ensuring uniform data processing.

[0044] Step S25: When new monitoring data is obtained, update the posterior probability of the current window, update the prior probability based on the probability value of the current monitoring data and the mean and standard deviation of the historical monitoring data, and recalculate the error range of the monitoring data.

[0045] The error range is obtained by calculating the 95% confidence interval.

[0046] Step S26: Determine whether each monitoring data exceeds the error range; if so, mark the monitoring data as noise or outlier.

[0047] In one feasible implementation, the method further includes: when the monitoring data exceeds the error range, using a chi-square test to further determine the anomaly of the monitoring data, and combining the standard deviation and bias within the time window to identify the mutation point.

[0048] In one feasible implementation, the method further includes: dynamically adjusting the hyperparameters in the Bayesian inference model based on real-time monitoring data in the time-series dataset to ensure that the model can be adaptively updated and corrected under different conditions.

[0049] Specifically, Gaussian distribution probability descriptions were constructed for various sensor monitoring data in the time-series dataset, and the prior probabilities were updated hierarchically using three sliding time windows. This ensures that anomaly detection is based on both historical statistical patterns and real-time fluctuations. Upon receiving new monitoring data, the model dynamically adjusts the error range corresponding to the posterior probability and the 95% confidence interval, avoiding missed or false positives caused by fixed thresholds. For data exceeding the error range, a chi-square test is used, and the standard deviation and bias within the time window are referenced to identify abrupt changes, helping to distinguish normal fluctuations from genuine noise or outliers. The model hyperparameters automatically adjust as the data changes, and the entire process continuously labels suspicious data without manual intervention, providing a reference for cleaning monitoring data of rail transit facilities.

[0050] Step S3: Perform multi-level data fusion operation based on the monitoring data with noise and outlier labels. Correct the monitoring data by using a confidence-based weighting strategy to supplement missing monitoring data and repair outliers, and obtain corrected monitoring data.

[0051] In some embodiments, a multi-level data fusion operation is performed based on monitoring data that has been labeled with noise and outliers. The monitoring data is corrected using a confidence-based weighting strategy to supplement missing monitoring data and repair outliers, resulting in corrected monitoring data, including: Step S31: Based on the monitoring data with completed noise and outlier labeling, calculate the confidence level according to the Bayesian inference model.

[0052] In one feasible implementation, the confidence score is calculated based on the posterior probability. The confidence score of each monitoring data point is generated by weighting the probability value of the corresponding monitoring data with the mean and standard deviation of the corresponding historical monitoring data, and the fused monitoring data with confidence score weights is output.

[0053] Step S32: Assign weighted values ​​to the monitoring data based on the confidence level.

[0054] Among them, monitoring data with higher weights are considered more reliable, while monitoring data with lower weights indicate higher uncertainty.

[0055] Step S33: Supplement the missing monitoring data based on time series interpolation, linear interpolation and Bayesian inference model, and process outliers based on weighted average method to obtain corrected monitoring data.

[0056] In one feasible implementation, missing monitoring data is supplemented by time series interpolation. Linear interpolation is used to estimate the data based on monitoring data from consecutive time points before and after the missing data to ensure a smooth transition of the monitoring data. Furthermore, a Bayesian inference model is used to correct the posterior probability of the missing monitoring data.

[0057] Specifically, missing monitoring points are identified and marked as areas requiring interpolation; For each missing point, a preliminary estimate of the missing monitoring point is calculated using the known monitoring points before and after it through linear interpolation. The interpolation formula is as follows: ; Among them, the time difference and total time difference are calculated based on the timestamps of known monitoring points; The interpolation results are input into the Bayesian inference model, and the posterior probability of the missing data is calculated by combining the probability distribution of the known monitoring data. The interpolation results are then corrected based on the posterior probability. The correction process adjusts the interpolation by updating the mean and standard deviation of the prior distribution, so that the corrected monitoring data is more consistent with the statistical regularity of actual observation. The corrected missing monitoring data is weighted and averaged with the adjacent valid monitoring data to ensure that its value is consistent with the surrounding monitoring data and conforms to the overall data trend.

[0058] In one feasible implementation, for outliers, a weighted average method combined with a weighted repair strategy based on neighboring data is used to reduce the weight of the outlier monitoring data and perform smooth repair based on the trend of neighboring monitoring points.

[0059] In one feasible implementation, during the fusion process, all corrected monitoring data are recalculated for their error range, and the reasonableness of the monitoring data is verified using a 95% confidence interval. If the corrected monitoring data exceeds the preset error range, it is corrected again or marked as an outlier.

[0060] In one feasible implementation, the entire monitoring data fusion process is completed within each time window.

[0061] In this process, each monitoring data point is weighted based on the confidence level calculated using a Bayesian inference model. This weighting reflects the degree of agreement between the data and historical statistical patterns, resulting in a fusion result that favors high-confidence data. Missing monitoring data is first estimated using linear interpolation, then corrected by inputting it into the Bayesian inference model and applying probability distribution. The corrected data is then weighted and averaged with adjacent valid data to ensure the completed value more closely reflects the overall trend. Outliers are smoothed by reducing their weight and referencing the trends of neighboring monitoring points, avoiding time series breaks caused by direct removal. After correction, the data is validated again using the error range corresponding to the 95% confidence interval. Data exceeding this range is further corrected or re-marked, ensuring that the fused monitoring data undergoes multiple layers of screening.

[0062] Step S4: A distributed control strategy is adopted for the corrected monitoring data. The Bayesian inference model is applied in parallel to multiple data source nodes. The monitoring data is cleaned independently on each data source node, and the cleaned monitoring data is merged to the master control node through the link.

[0063] In some embodiments, a distributed control strategy is adopted for the corrected monitoring data, applying the Bayesian inference model in parallel to multiple data source nodes, independently cleaning the monitoring data on each data source node, and merging the cleaned monitoring data to the master control node via a link, including: Step S41: A distributed control strategy is adopted for the corrected monitoring data. The corrected monitoring data is received at each data source node, and an independent Bayesian inference model is deployed at each data source node. Based on the corrected monitoring data, noise identification, secondary verification of missing values, outlier repair and data confidence calculation are performed locally to obtain the local cleaning results of each data source node.

[0064] All processing steps are completed on the local node; the Bayesian inference model of each node uses the same training set and parameter settings, but is dynamically adjusted according to the characteristics of the local monitoring data.

[0065] Step S42: Based on the Kafka communication protocol, the local cleaning results are packaged into a compressed data packet, and the data packet is sent to the master node through an encrypted connection.

[0066] The compressed data packet includes a timestamp, sensor type, processed monitoring data, and confidence value.

[0067] The data packet transmission adopts a segmented method, with each node sending the processing results in batches within a specified time window.

[0068] In step S43, the master node receives data packets from all data source nodes, performs time alignment, cleaning result merging, and conflict consistency checks on the monitoring data in the data packets, and obtains the cleaned monitoring data.

[0069] The master control node synchronizes the monitoring data of each data source node through timestamps and delay compensation algorithms to ensure the time sequence consistency between the monitoring data.

[0070] In one feasible implementation, the master node merges the cleaning results of all nodes and uses the Paxos algorithm to perform consistency checks and processing on duplicate or conflicting data. If data inconsistency occurs, the merged data value is recalculated using the posterior probability of the Bayesian inference model.

[0071] In one feasible implementation, the master node stores the synchronized monitoring data in a distributed database HDFS or Cassandra, and ensures the uniform distribution of the monitoring data through a consistent hashing algorithm.

[0072] The Bayesian inference model is deployed locally on each data source node. Each node independently performs noise identification, secondary verification of missing values, outlier repair, and confidence calculation, distributing the computational burden of centralized processing and reducing the amount of raw monitoring data transmitted to the master node. Nodes communicate with each other via the Kafka protocol, uploading compressed and encrypted data packets in batches, which shortens transmission time and ensures data security on the link. The master node uses timestamps and latency compensation algorithms to align data across nodes, maintaining temporal consistency across multiple data sources. Then, the Paxos algorithm and Bayesian posterior probability are used to process duplicate or conflicting cleaning results, preventing contradictory data after merging. The cleaned monitoring data is stored in HDFS or Cassandra, and consistent hashing is used to achieve uniform distribution, facilitating subsequent querying and storage expansion.

[0073] Step S5: Deeply mine the cleaned monitoring data using a knowledge graph to construct a correlation graph of the rail transit monitoring data.

[0074] In some embodiments, deep mining of the cleaned monitoring data is performed using knowledge graphs to construct a correlation graph of the rail transit monitoring data, including: Step S51: Perform node-based processing on the cleaned monitoring data to obtain independent nodes containing attribute information.

[0075] The master control node processes the cleaned rail transit monitoring data into nodes, converting each device, sensor, fault record, and operating status into independent nodes in a knowledge graph. Each node contains relevant attribute information, including device type, sensor type, operating status, and fault type.

[0076] Step S52: Construct an association graph. Use a relation-based graph structure to model the associations between independent nodes. Perform deep learning on the graph using graph embedding technology. Use a Bayesian inference model to adjust edge weights and node weights. Use a community detection algorithm in graph computing to analyze the graph, identify key nodes, equipment failure modes and operational anomalies, and obtain an association graph of rail transit monitoring data.

[0077] In one feasible implementation, an association graph is constructed, and a relationship-based graph structure is used to model the associations between nodes. Edges between different nodes are defined, and the weights of the edges are calculated based on the relevance of historical data, sampling frequency, and frequency of outliers. The weight values ​​are dynamically adjusted with time and data type.

[0078] Furthermore, the graph is subjected to deep learning through the graph embedding technology GraphSAGE. By utilizing the temporal characteristics of sensor data and device status, nodes and their relationships are vectorized, and potential associations between different nodes are identified in the vector space.

[0079] Furthermore, to enhance the accuracy of the association graph analysis, a Bayesian inference model is used to adjust the edge weights and node weights, reflecting the uncertainty and dynamic changes in the data.

[0080] Furthermore, during the mining process, community detection algorithms in graph computing are used to analyze the graph, identify key nodes, equipment failure modes and operational anomalies, discover potential dependencies and anomaly patterns between various equipment and states, and output the association graph.

[0081] The cleaned monitoring data is transformed into independent nodes containing attributes such as equipment type, sensor type, operating status, and fault type. A relation-based graph structure connects equipment, sensors, fault records, and operating status into a unified association graph, facilitating the overall organization of multi-source monitoring data. Graph embedding technology performs vectorized learning on nodes and relationships, enabling the discovery of hidden associations between different devices and states, rather than being limited to direct connections. A Bayesian inference model dynamically adjusts edge and node weights based on historical relevance and anomaly frequency, adapting the graph to data fluctuations and uncertainties. Community detection algorithms are used to identify key nodes and equipment fault modes, helping to analyze the propagation relationships and dependency paths of anomalies among devices, providing a deeper basis for association mining of rail transit monitoring data.

[0082] Step S6: Combining the correlation map and the rail transit operation status, an adaptive data update mechanism is executed using a machine learning algorithm to correct the parameters of the Bayesian inference model and adjust the monitoring data cleaning rules in real time according to the parameters.

[0083] In some embodiments, the machine learning algorithm uses random forest for feature selection and Bayesian inference model training, and classifies and predicts data through a voting mechanism of multiple decision trees. During the construction of each tree, the Gini index and information gain criterion are used to divide nodes, feature subsets and data subsets are randomly selected, and the Bayesian inference model is tuned through cross-validation.

[0084] This approach combines correlation maps and rail transit operation status as update bases. Random forests are used to filter and classify monitoring data features for prediction. Multiple decision trees are used in a voting mechanism to comprehensively assess the data, reducing the probability of bias in a single model. During decision tree construction, Gini index and information gain criteria are employed for node partitioning, and feature and data subsets are randomly selected to enhance the model's ability to handle complex monitoring data. Cross-validation is used to fine-tune the Bayesian inference model parameters, enabling the model to adaptively update as the operational status changes. The corrected parameters are used to adjust the monitoring data cleaning rules in real time, ensuring the cleaning strategy more closely reflects the current equipment status and data distribution, reducing missed and false judgments caused by outdated parameters, and providing a more reliable data foundation for correlation maps and data analysis.

[0085] The above embodiments provide a Bayesian inference-based method for cleaning rail transit monitoring data. Firstly, by combining a Bayesian inference model with a multi-level data fusion strategy, the accuracy of rail transit monitoring data cleaning is effectively improved. The Bayesian inference model can dynamically update prior probabilities and adaptively identify and repair noise and outliers in the monitoring data, thus solving the problem of inaccurate handling of noise and outliers in traditional data cleaning methods. Secondly, by introducing a distributed control strategy, the Bayesian inference model can be applied in parallel to multiple data source nodes, achieving efficient data cleaning and synchronization. Each data source node processes data independently locally, avoiding frequent data transmission and reducing latency. Simultaneously, a global synchronization mechanism ensures data consistency and real-time performance, improving the overall efficiency of the system. Finally, deep mining of the cleaned data using a knowledge graph constructs a correlation graph of the rail transit monitoring data. Based on graph analysis, potential relationships and patterns between various types of monitoring data are determined. This not only enhances the in-depth analysis of the monitoring data but also provides strong support for subsequent equipment maintenance, fault prediction, and operational optimization, further improving the intelligence level and decision support capabilities of the rail transit system.

[0086] Please see Figure 2 Another embodiment of this application provides a rail transit monitoring data cleaning device based on Bayesian inference, the device comprising: The data acquisition module 101 is used to collect monitoring data of rail transit facilities through a sensor network, and to use digital twin technology to timestamp and encode each piece of monitoring data to construct a time-series dataset.

[0087] The data modeling module 102 is used to build a Bayesian inference model based on a time series dataset, adaptively update the prior probability through a multi-level time window, calculate the error range of the monitoring data, and identify and label noise and outliers in the monitoring data.

[0088] The data fusion module 103 is used to perform multi-level data fusion operations based on the monitoring data that has been marked with noise and outliers. It corrects the monitoring data by using a confidence-based weighting strategy, supplements missing monitoring data and repairs outliers, and obtains corrected monitoring data.

[0089] The data cleaning module 104 is used to apply a distributed control strategy to the corrected monitoring data, apply the Bayesian inference model in parallel to multiple data source nodes, clean the monitoring data independently on each data source node, and merge the cleaned monitoring data to the master control node through the link.

[0090] The data association module 105 is used to perform in-depth mining of the cleaned monitoring data through knowledge graphs and construct an association graph of rail transit monitoring data.

[0091] The data update module 106 is used to combine the correlation map and the rail transit operation status, and to use machine learning algorithms to execute an adaptive data update mechanism to correct the parameters of the Bayesian inference model and adjust the monitoring data cleaning rules in real time according to the parameters.

[0092] The specific limitations of the rail transit monitoring data cleaning device based on Bayesian inference provided in this embodiment can be found in the embodiment of the rail transit monitoring data cleaning method based on Bayesian inference described above, and will not be repeated here. Each module in the above-described rail transit monitoring data cleaning device based on Bayesian inference can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0093] This application provides a computer device that may include a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it causes the processor to perform the steps of a Bayesian inference-based rail transit monitoring data cleaning method as described in any of the above embodiments.

[0094] The working process, working details, and technical effects of the computer equipment provided in this embodiment can be found in the above embodiment of a method for cleaning rail transit monitoring data based on Bayesian inference, and will not be repeated here.

[0095] This application provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the steps of a Bayesian inference-based rail transit monitoring data cleaning method as described in any of the above embodiments. The computer-readable storage medium refers to a data storage medium, which may include, but is not limited to, floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or memory sticks. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0096] The working process, working details and technical effects of the computer-readable storage medium provided in this embodiment can be found in the embodiment of a rail transit monitoring data cleaning method based on Bayesian inference described above, and will not be repeated here.

[0097] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0098] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0099] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for cleaning rail transit monitoring data based on Bayesian inference, characterized in that, The method includes: Monitoring data of rail transit facilities are collected through sensor networks, and digital twin technology is used to timestamp and encode each monitoring data to construct a time-series dataset. A Bayesian inference model is constructed based on the time series dataset. Prior probabilities are adaptively updated through multi-level time windows, and the error range of the monitoring data is calculated. Noise and outliers in the monitoring data are identified and labeled. Based on the monitoring data with noise and outlier labels, a multi-level data fusion operation is performed. The monitoring data is corrected by a confidence-based weighting strategy to supplement missing monitoring data and repair the outliers, resulting in corrected monitoring data. A distributed control strategy is adopted for the corrected monitoring data. The Bayesian inference model is applied in parallel to multiple data source nodes. The monitoring data is cleaned independently on each data source node, and the cleaned monitoring data is merged to the master control node through the link. The cleaned monitoring data is deeply mined using a knowledge graph to construct a correlation graph of rail transit monitoring data; Combining the aforementioned correlation map and the rail transit operation status, a machine learning algorithm is used to execute an adaptive data update mechanism to correct the parameters of the Bayesian inference model, and the monitoring data cleaning rules are adjusted in real time based on the parameters.

2. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The monitoring data of rail transit facilities collected through sensor networks are timestamped and encoded for each monitoring data point using digital twin technology to construct a time-series dataset, including: Monitoring data of rail transit facilities are collected through a sensor network; the sensor network includes temperature sensors, humidity sensors, pressure sensors, vibration sensors, speed sensors, and position sensors. Based on digital twin technology, a virtual model is established for the monitoring object corresponding to the monitoring data; the monitoring data is then integrated into the virtual model. Time synchronization is performed based on the real-time status of virtual models and physical facilities, and timestamps are added to each monitoring data point. Identifiers are assigned to each monitoring data point based on an encoding mechanism; The time-series dataset is constructed by arranging the identified and coded monitoring data in chronological order.

3. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The step of constructing a Bayesian inference model based on the time-series dataset, adaptively updating prior probabilities through multi-level time windows, calculating the error range of the monitoring data, and identifying and labeling noise and outliers in the monitoring data includes: Historical data of each monitoring point is extracted based on the time series dataset. The historical data is then classified according to the sensor type and monitoring target to obtain the monitoring data corresponding to each sensor type. A Bayesian inference model is constructed based on the monitoring data corresponding to each of the aforementioned sensor types; The real-time collected monitoring data is processed based on the Bayesian inference model to obtain credibility results and anomaly results. Based on the confidence results and the anomaly results, the sliding window method and Bayes' theorem are used to calculate the prior probability of the real-time monitoring data. When new monitoring data is acquired, the posterior probability of the current window is updated, the prior probability is updated based on the probability value of the current monitoring data and the mean and standard deviation of the historical monitoring data, and the error range of the monitoring data is recalculated. Determine whether each monitoring data point exceeds the stated error range; if so, mark the monitoring data as noise or anomaly.

4. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The monitoring data, based on the completed noise and outlier labeling, undergoes a multi-level data fusion operation. A confidence-based weighting strategy is used to correct the monitoring data, supplementing missing data and repairing outliers, resulting in corrected monitoring data, including: Based on the monitoring data with completed noise and outlier labeling, the confidence level is calculated according to a Bayesian inference model; The monitoring data is assigned a weighted value based on the confidence level. Missing monitoring data are supplemented using time series interpolation, linear interpolation, and Bayesian inference models. Outliers are processed using a weighted average method to obtain corrected monitoring data.

5. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The modified monitoring data employs a distributed control strategy, applying a Bayesian inference model in parallel to multiple data source nodes. At each data source node, the monitoring data is independently cleaned, and the cleaned monitoring data is then merged into the master control node via a link. This includes: A distributed control strategy is adopted for the corrected monitoring data. The corrected monitoring data is received at each data source node, and an independent Bayesian inference model is deployed at each data source node. Based on the corrected monitoring data, noise identification, secondary verification of missing values, outlier repair and data confidence calculation are performed locally to obtain the local cleaning results of each data source node. Based on the Kafka communication protocol, the local cleaning results are packaged into a compressed data packet, and the data packet is sent to the master node through an encrypted connection; The master control node receives data packets from all data source nodes, performs time alignment, cleaning result merging, and conflict consistency checks on the monitoring data in the data packets, and obtains the cleaned monitoring data.

6. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The step of performing deep mining of the cleaned monitoring data using a knowledge graph to construct a relational graph of the rail transit monitoring data includes: The cleaned monitoring data is processed into nodes to obtain independent nodes containing attribute information; A correlation graph is constructed, and the relationships between the independent nodes are modeled using a relation-based graph structure. The graph is then subjected to deep learning through graph embedding technology. A Bayesian inference model is used to adjust the edge weights and node weights. A community detection algorithm in graph computing is used to analyze the graph, identify key nodes, equipment failure modes, and operational anomalies, and obtain a correlation graph of rail transit monitoring data.

7. The method for cleaning rail transit monitoring data based on Bayesian inference according to claim 1, characterized in that, The machine learning algorithm uses random forest for feature selection and Bayesian inference model training, and classifies and predicts data through a voting mechanism of multiple decision trees. In the construction of each tree, the Gini index and information gain criterion are used to divide nodes, randomly select feature subsets and data subsets, and optimize the Bayesian inference model through cross-validation.

8. A data cleaning device for rail transit monitoring based on Bayesian inference, characterized in that, The device includes: The data acquisition module is used to collect monitoring data of rail transit facilities through a sensor network. It uses digital twin technology to timestamp and encode each piece of monitoring data to build a time-series dataset. The data modeling module is used to construct a Bayesian inference model based on the time series dataset, adaptively update the prior probability through multi-level time windows, calculate the error range of the monitoring data, and identify and label noise and outliers in the monitoring data. The data fusion module is used to perform multi-level data fusion operations based on the monitoring data after noise and outlier labeling, correct the monitoring data through a confidence-based weighting strategy, supplement missing monitoring data and repair the outliers, and obtain corrected monitoring data. The data cleaning module is used to apply a distributed control strategy to the corrected monitoring data, apply the Bayesian inference model in parallel to multiple data source nodes, clean the monitoring data independently on each data source node, and merge the cleaned monitoring data to the master control node through the link. The data association module is used to perform in-depth mining of the cleaned monitoring data through knowledge graphs to construct an association graph of rail transit monitoring data; The data update module is used to combine the correlation map and the rail transit operation status, and to use machine learning algorithms to execute an adaptive data update mechanism to correct the parameters of the Bayesian inference model and adjust the monitoring data cleaning rules in real time according to the parameters.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the rail transit monitoring data cleaning method based on Bayesian inference as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the rail transit monitoring data cleaning method based on Bayesian inference as described in any one of claims 1 to 7.