A deep learning-based railway foreign object intrusion detection method and system
By using an attention-based semantic segmentation network trained with a pre-built dataset and an adaptive correction algorithm, the complexity of detecting unknown foreign objects in existing technologies is solved, achieving efficient, accurate, and lightweight foreign object detection in railway scenarios.
Patent Information
- Application Number
- CN202410176289.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-08
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-02-08
AI Technical Summary
Existing methods for detecting foreign objects in railways require the construction of image datasets for unknown foreign objects, and are difficult to apply to different lighting conditions and scenes, which increases the complexity of detection and makes it difficult to effectively detect unknown foreign objects.
An attention-based semantic segmentation network was trained using a pre-built dataset. Combined with an adaptive correction algorithm and an attention mechanism, it indirectly detected unknown foreign objects by recognizing the inherent content of the railway scene and performed real-time detection using visual sensing devices.
It simplifies the process of building the training dataset, improves the generalization ability and accuracy of detection, reduces storage requirements, and can effectively detect unknown foreign objects in different scenarios.
Smart Images

Figure CN118053098B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of railway inspection technology, and in particular to a method and system for detecting foreign object intrusion in railways based on deep learning. Background Technology
[0002] Railways play a vital role in transportation, offering advantages such as punctuality, comfort, and energy efficiency. However, given the nature of railway transport, any person or object encroaching on the railway clearance can pose risks such as train derailment and emergency stops. This risk is known as foreign object intrusion, and timely detection and handling are fundamental to ensuring the safe and efficient operation of trains. However, with the continuous expansion of the railway network and the dramatic increase in transport volume, addressing the randomness of foreign objects and improving the reliability of detection has become an even more challenging problem.
[0003] Currently, foreign object intrusion detection technologies in railway systems can be broadly categorized into three types: The first type is passive protection, including fence-like systems such as electronic fences and radiation detectors. This method uses sensor technology to determine whether a foreign object has come into contact with the sensor. This physical contact detection method is greatly affected by external factors, and is costly and requires extensive maintenance, making it unsuitable for large-scale use. The second type relies on inspection vehicles, but their operating hours limit their ability to guarantee 24 / 7 detection. The last type involves manually checking the data collected by cameras to provide reliable and continuous monitoring, but this is time-consuming and labor-intensive.
[0004] To overcome these limitations, AI-driven active detection methods have been extensively studied. Research on foreign object intrusion can be divided into traditional machine learning algorithms and deep learning-based object detection algorithms. Traditional methods typically involve extracting tracks to identify regions of interest (ROIs), followed by object detection and recognition. The inherent geometric properties of the tracks (including track spacing and track parallelism) are often key features in track extraction. Foreign objects based on pixel variations are detected using background subtraction and optical flow through the extracted ROIs. Subsequently, machine learning algorithms (such as support vector machines) use manually designed features to identify the detected objects. However, these algorithms face challenges in handling complex dynamic scenes, and distributed processing is not conducive to optimizing storage space. Deep learning methods primarily employ object detection algorithms, which need to learn the targets of interest from the training set. Therefore, current research mainly focuses on detecting common foreign objects such as trains, pedestrians, and animals. To detect different foreign objects, corresponding datasets need to be built. However, foreign objects occur relatively infrequently, and to improve the model's generalization ability, different lighting conditions and scenes need to be covered. This makes constructing datasets for images of unknown foreign objects more complex and difficult to apply to the detection of unknown foreign objects. Furthermore, most methods are validated using test sets with ideal distributions, and general methods for practical deployment in different scenarios are still lacking.
[0005] Given the complex, diverse, and unpredictable nature of train operation scenarios, building a comprehensive, integrated prevention and control system encompassing both onboard and ground components is fundamental to achieving reliable foreign object intrusion detection. Therefore, lightweight intelligent detection methods suitable for different scenarios and unknown foreign objects are indispensable. Summary of the Invention
[0006] (a) Technical problems to be solved
[0007] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a railway foreign object intrusion detection method and system based on deep learning, which solves the following technical problems of the prior art: the existing foreign object intrusion detection methods are basically target detection architectures. In order to detect different foreign objects, corresponding datasets need to be established. However, the frequency of foreign objects is relatively low, and in order to improve the generalization ability of the model, different lighting conditions and scenes need to be covered. This makes the process of constructing a dataset for unknown foreign object images more complicated and difficult to apply to the detection of unknown foreign objects.
[0008] (II) Technical Solution
[0009] To achieve the above objectives, the main technical solutions adopted by the present invention include:
[0010] In a first aspect, embodiments of the present invention provide a railway foreign object intrusion detection method based on deep learning, comprising:
[0011] S10. Acquire the image data to be detected;
[0012] S20. Input the image data to be detected into the trained second attention semantic segmentation network to obtain the foreign object detection result;
[0013] The trained second attention semantic segmentation network is obtained by retraining the first attention semantic segmentation network using specified image data captured by a visual sensing device and an adaptive correction algorithm.
[0014] The first attention semantic segmentation network is obtained by training a pre-prepared attention semantic segmentation network architecture using a pre-made dataset;
[0015] The pre-made dataset was obtained by extracting data related to railway scenarios from the COCO-Stuff dataset;
[0016] The attention-based semantic segmentation network architecture includes a backbone network architecture and a dual-branch decoder;
[0017] The backbone network architecture is obtained by inserting a specified attention mechanism at a specified position in a pre-selected residual neural network and using three parallel extended convolutions as the initial convolutional layers in the residual neural network; the dual-branch decoder is a dual-branch decoder that combines an edge recognition branch and a semantic segmentation branch.
[0018] Optionally, the following is included before S10:
[0019] S01. Extract data related to railway scenarios from the COCO-Stuff dataset to obtain a prefabricated dataset;
[0020] S02. Using the pre-made dataset, train the attention semantic segmentation network architecture to obtain the first attention semantic segmentation network;
[0021] S03. Using the specified image data captured by the visual sensing device, and employing an adaptive correction algorithm, the first attention semantic segmentation network is retrained to obtain the second attention semantic segmentation network.
[0022] Optionally, the designated position is after each of the five stages in the residual neural network;
[0023] The attention mechanism described is a dual attention mechanism of spatial and channel attention.
[0024] Optionally, the kernel sizes of the three parallel extended convolutions are 3, 5, and 7, respectively.
[0025] Optionally, the backbone network architecture has 5 stages, and the output data resolution of each stage is 1 / 2, 1 / 4, 1 / 8, 1 / 8 and 1 / 8 of the input data, respectively.
[0026] Optionally, S02 includes:
[0027] S021. Input the data in the pre-made dataset into the attention semantic segmentation network architecture to obtain the output results of the semantic segmentation branch and the edge recognition branch respectively;
[0028] S022. Based on the true labels of the input data and the output results, calculate the total loss of the two branches of the attention semantic segmentation network architecture using the two-branch total loss expression;
[0029] The expression for the total loss of the bi-branch is:
[0030] L Z =L v(x) +L ζ(x) +L b(x) ,
[0031] Among them, L ZL represents the total loss of the two branches. b(x) L represents the cross-entropy loss, which is the weighted average of class and positive / negative samples. ζ(x) For edge-assisted loss, L b(x) For edge recognition branch loss;
[0032] The edge-assisted loss is calculated using the edge-assisted loss expression;
[0033] The edge-assisted loss expression is:
[0034]
[0035] Among them, L ζ(x) For edge recognition branch loss, These represent the output results of the semantic segmentation branch and the edge branch, respectively. These represent semantic tags and edge tags, respectively. Same as L v(x) The class balance weights are the same, N represents the number of samples, and n represents the sample index;
[0036] S023. Repeat S021 and S022 until the total loss of the two branches converges, and the trained first attention semantic segmentation network is obtained.
[0037] Optionally, the adaptive correction algorithm is a domain adaptive correction algorithm based on multi-kernel maximum mean square deviation, and is connected after each attention mechanism;
[0038] The adaptive correction algorithm includes an unsupervised domain adaptive algorithm and a post-correction algorithm.
[0039] Optionally, S03 includes:
[0040] S031. Input the source domain and target domain into the first attention semantic segmentation network to obtain the generated result;
[0041] Wherein, the source domain is the pre-made dataset, and the target domain is the specified image data captured by the visual sensing device;
[0042] S032. The distribution difference between the source domain and the target domain is calculated using the distribution difference calculation expression, which is the loss that guides the network to adapt to the target domain;
[0043] The expression for calculating the distribution difference is:
[0044]
[0045] Among them, L Φ(s,t) This represents the distribution difference between the source and target domains, where s and t represent samples from the source and target domains, respectively, using different kernel functions G.k (·) is mapped to Hilbert space to compute the expected gap; K represents the number of kernel functions used, and k represents the kernel function index; P represents the number of source domain samples, and p represents the source domain sample index; Q represents the number of target domain samples, and q represents the target domain sample index; P and Q are equal.
[0046] S033. Based on the calculated distribution difference, the generated result is corrected using a post-correction algorithm to obtain the correction result, and the correction result is compared with the corresponding target domain sample to obtain the correction loss;
[0047] S034. Repeat S031-S033 until the correction loss is less than the preset threshold to obtain the trained second attention semantic segmentation network.
[0048] Optionally, the method further includes:
[0049] S30. If the foreign object detection result is a foreign object, an alarm is sent to the driver and the alarm is fed back to the backend management personnel for verification.
[0050] Secondly, embodiments of the present invention provide a railway foreign object intrusion detection system based on deep learning, comprising:
[0051] At least one processor, and at least one memory communicatively connected to the processor; wherein the memory stores program instructions executable by the processor, and the processor invokes the program instructions to execute the deep learning-based railway foreign object intrusion detection method as described in any of the first aspects.
[0052] (III) Beneficial Effects
[0053] The present invention provides a railway foreign object intrusion detection method and system based on deep learning. By using a pre-trained attention semantic segmentation network based on a pre-made dataset, it indirectly detects unknown foreign objects by recognizing the inherent content of the railway scene. Compared with the prior art, it does not require the construction of an image dataset for unknown foreign objects, making the process of obtaining the training dataset simpler.
[0054] Because of the adoption of an adaptive correction algorithm, the attention semantic segmentation network can be applied to a variety of different scenarios, effectively avoiding the problem of insufficient generalization of the network model caused by limited datasets;
[0055] Because of the attention mechanism, the storage difficulties caused by excessively large parameters can be avoided, and high detection accuracy is guaranteed.
[0056] Because it employs an unsupervised approach, the target domain can utilize raw sensor data without any preprocessing, thus avoiding the need for manual labeling of data required for retraining. Attached Figure Description
[0057] Figure 1 This is a flowchart illustrating a deep learning-based method for detecting foreign object intrusion in railways, as provided in an embodiment of the present invention.
[0058] Figure 2 This is a schematic diagram of the structure of a boundary-assisted dual-branch attention semantic segmentation network according to an embodiment of the present invention;
[0059] Figure 3 This is a schematic diagram of an attention mechanism provided in an embodiment of the present invention. Detailed Implementation
[0060] To better explain and facilitate understanding of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] This invention proposes a deep learning-based method for detecting foreign objects intrusion on railway tracks. Using a pre-built dataset, an attention-based semantic segmentation network is trained to identify inherent elements within the railway scene, thereby indirectly detecting unknown foreign objects. An attention mechanism is introduced into the network to capture global contextual information and extract representative features, achieving a lightweight architecture without sacrificing accuracy. Furthermore, an adaptive correction algorithm is employed to improve the network's generalization ability across different scenarios, enabling easy deployment in various environments.
[0062] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention can be understood more clearly and thoroughly, and that the scope of the present invention can be fully conveyed to those skilled in the art.
[0063] like Figure 1 As shown in the figure, this embodiment provides a deep learning-based method for detecting foreign object intrusion in railways. The method includes:
[0064] S10. Acquire the image data to be detected.
[0065] Alternatively, visual sensors can be used to acquire the data. These sensors can be mounted on the track or deployed next to the track where foreign objects frequently occur.
[0066] S20. Input the image data to be detected into the trained second attention semantic segmentation network to obtain the foreign object detection result.
[0067] The trained second attention semantic segmentation network is obtained by retraining the first attention semantic segmentation network using specified image data captured by a visual sensing device and an adaptive correction algorithm.
[0068] The first attention semantic segmentation network is obtained by training a pre-prepared attention semantic segmentation network architecture using a pre-made dataset.
[0069] The prefabricated dataset is obtained by extracting data related to railway scenes from the COCO-Stuff dataset, and is denoted as Coco-stuff-Rail.
[0070] like Figure 2 As shown, the attention-based semantic segmentation network architecture includes a backbone network architecture and a dual-branch decoder. To incorporate sufficient contextual information into semantic segmentation, a GLAM (Global-local attention module) is inserted after each stage of the ResNet (Residual Neural Network). This allows the network to extract global context from the original image at the beginning, avoiding storage difficulties caused by excessively large parameters and maintaining high detection accuracy. Specifically, a global attention mechanism, called GAM (global attention module), is introduced after each stage of ResNet. This allows the network to extract global context from the original image in an early stage, fusing local and global features through residual connections; three parallel extended convolutions with kernel sizes of 3, 5, and 7 are used as initial convolutions, and the output of this layer is obtained by element-wise summing the results of these extended convolutions. Finally, the backbone network has five stages, each with a resolution of 1 / 2, 1 / 4, 1 / 8, 1 / 8, and 1 / 8 relative to the input, respectively, to minimize spatial information loss caused by downsampling.
[0071] The accuracy of segmentation largely depends on precise edge recognition. Considering the simple structure and fixed elements of the railway scene, this embodiment employs a dual-branch decoder that combines edge recognition and semantic segmentation branches. The learned edge information is used to assist the segmentation task through a multi-task architecture. Edge labels can be easily obtained based on known semantic labels. This embodiment designates boundary points as pixels different from surrounding labels, allowing the acquisition of boundary information for each material, rather than being limited to the boundary between two materials.
[0072] The structure of the attention mechanism is as follows: Figure 3As shown, GAM plays a crucial role in capturing any dependencies between pixels, effectively expanding the receptive field. Specifically, a dual spatial and channel attention mechanism is introduced, with positional and channel attention obtained through convolution to obtain Q, K, and V vectors. This process involves quadratic computations of the input dimension and convolutional channels, leading to significant computational and storage overhead, making direct processing of the original image challenging. This embodiment improves the computation of the spatial attention matrix by selecting the top M most relevant values in vector K and their corresponding positions in vector V, thus allowing the weight matrix to be derived from... Convert to This effectively reduces the number of parameters. For channel attention, it can be observed that ResNet's channel output above 50 layers increases fourfold compared to below 50 layers. Therefore, the convolutional blocks connecting the two levels were modified to maintain the channel output of each level at 64, 128, 256, and 512. This modification reduces computation and storage consumption by 16 times, thus enabling the use of deeper ResNets to extract higher-quality features.
[0073] The adaptive correction algorithm consists of an unsupervised domain adaptive module and a post-correction algorithm. The unsupervised domain adaptive module uses MK-MMD because it is simple and easy to use, requiring no additional parameters or a new model. In the practical application of this embodiment, the following is also included before S1:
[0074] S01. Extract data related to the railway scene from the COCO-Stuff dataset to obtain a pre-made dataset, denoted as Coco-Stuff-Rail.
[0075] S02. Using the pre-made dataset, train the attention semantic segmentation network architecture to obtain the first attention semantic segmentation network.
[0076] Specifically, the data in the pre-made dataset is first input into the attention semantic segmentation network architecture to obtain the output results of the semantic segmentation branch and the edge recognition branch respectively; then, based on the true label of the input data and the output results, the total loss of the two branches of the attention semantic segmentation network architecture is calculated using the two-branch total loss expression.
[0077] The expression for the total loss of the bi-branch is:
[0078] L Z =L v(x) +L ζ(x) +L b(x) ,
[0079] Among them, L Z L represents the total loss of the two branches. b(x) L represents the cross-entropy loss, which is the weighted average of class and positive / negative samples. ζ(x)For edge-assisted loss, L b(x) For edge recognition branch loss;
[0080] The edge-assisted loss is calculated using the edge-assisted loss expression;
[0081] The edge-assisted loss expression is:
[0082]
[0083] Among them, L ζ(x) For edge recognition branch loss, These represent the output results of the semantic segmentation branch and the edge branch, respectively. These represent semantic tags and edge tags, respectively. Same as L v(x) The class balance weights are the same, N represents the number of samples, and n represents the sample index;
[0084] Repeat steps S021 and S022 until the total loss of the two branches converges, thus obtaining the trained first attention semantic segmentation network.
[0085] S03. Using the specified image data captured by the visual sensing device, and employing an adaptive correction algorithm, the first attention semantic segmentation network is retrained to obtain the second attention semantic segmentation network.
[0086] Specifically, the source domain and target domain are first input into the first attention semantic segmentation network to obtain the generated result;
[0087] Wherein, the source domain is the pre-made dataset, and the target domain is the specified image data captured by the visual sensing device;
[0088] The distribution difference between the source domain and the target domain is then calculated using the distribution difference calculation expression, which is the loss that guides the network to adapt to the target domain.
[0089] The expression for calculating the distribution difference is:
[0090]
[0091] Among them, L Φ(s,t) This represents the distribution difference between the source and target domains, where s and t represent samples from the source and target domains, respectively, using different kernel functions G. k (·) is mapped to Hilbert space to compute the expected gap; K represents the number of kernel functions used, and k represents the kernel function index; P represents the number of source domain samples, and p represents the source domain sample index; Q represents the number of target domain samples, and q represents the target domain sample index; P and Q are equal.
[0092] Then, based on the calculated distribution difference, the generated result is corrected using a post-correction algorithm to obtain the correction result, and the correction result is compared with the corresponding target domain sample to obtain the correction loss;
[0093] Repeat steps S031-S033 until the correction loss is less than a preset threshold to obtain the trained second attention semantic segmentation network.
[0094] On the other hand, this embodiment also provides a railway foreign object intrusion detection system based on deep learning, characterized in that the system includes:
[0095] At least one processor, and at least one memory communicatively connected to the processor; wherein the memory stores program instructions executable by the processor, and the processor can execute any of the deep learning-based railway foreign object intrusion detection methods described above in the embodiments by invoking the program instructions.
[0096] In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0097] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0098] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first and second features are in direct contact, or that they are in indirect contact through an intermediate medium. Furthermore, "above," "over," or "on top" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," or "beneath" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0099] In the description of this specification, the terms "one embodiment," "some embodiments," "embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0100] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make modifications, alterations, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for detecting foreign object intrusion in railways based on deep learning, characterized in that, The method includes: S10. Acquire the image data to be detected; S20. Input the image data to be detected into the trained second attention semantic segmentation network to obtain the foreign object detection result; The trained second attention semantic segmentation network is obtained by retraining the first attention semantic segmentation network using specified image data captured by a visual sensing device and an adaptive correction algorithm. The first attention semantic segmentation network is obtained by training a pre-prepared attention semantic segmentation network architecture using a pre-made dataset; The pre-made dataset was obtained by extracting data related to railway scenarios from the COCO-Stuff dataset; The attention-based semantic segmentation network architecture includes a backbone network architecture and a dual-branch decoder; The backbone network architecture is obtained by inserting a global and local fusion attention mechanism after each of the five stages in the pre-selected residual neural network, and using three parallel extended convolutions with kernel sizes of 3, 5 and 7 as the initial convolutional layers in the residual neural network. The data resolution of the output of the five stages is 1 / 2, 1 / 4, 1 / 8, 1 / 8 and 1 / 8 of the input data, respectively. The dual-branch decoder is a dual-branch decoder that combines an edge recognition branch and a semantic segmentation branch.
2. The railway foreign object intrusion detection method based on deep learning according to claim 1, characterized in that, Before S10, the following is also included: S01. Extract data related to railway scenarios from the COCO-Stuff dataset to obtain a prefabricated dataset; S02. Using the pre-made dataset, train the attention semantic segmentation network architecture to obtain the first attention semantic segmentation network; S03. Using the specified image data captured by the visual sensing device, and employing an adaptive correction algorithm, the first attention semantic segmentation network is retrained to obtain the second attention semantic segmentation network.
3. The railway foreign object intrusion detection method based on deep learning according to claim 2, characterized in that, S02 includes: S021. Input the data in the pre-made dataset into the attention semantic segmentation network architecture to obtain the output results of the semantic segmentation branch and the edge recognition branch respectively; S022. Based on the true labels of the input data and the output results, calculate the total loss of the two branches of the attention semantic segmentation network architecture using the two-branch total loss expression; The expression for the total loss of the bi-branch is: , in, This represents the total loss of the two branches. The cross-entropy loss represents the class balancing weights and the positive / negative sample balancing weights. For edge auxiliary loss, For edge recognition branch loss; The edge-assisted loss is calculated using the edge-assisted loss expression; The edge-assisted loss expression is: , in, For edge auxiliary loss, , These represent the output results of the semantic segmentation branch and the edge branch, respectively. , These represent semantic tags and edge tags, respectively. same The class balance weights are the same, N represents the number of samples, and n represents the sample index; S023. Repeat S021 and S022 until the total loss of the two branches converges, and the trained first attention semantic segmentation network is obtained.
4. The railway foreign object intrusion detection method based on deep learning according to claim 2, characterized in that, The adaptive correction algorithm is a domain adaptive correction algorithm based on multi-kernel maximum mean square deviation, and it is connected after each attention mechanism; The adaptive correction algorithm includes an unsupervised domain adaptive algorithm and a post-correction algorithm.
5. The railway foreign object intrusion detection method based on deep learning according to claim 4, characterized in that, S03 includes: S031. Input the source domain and target domain into the first attention semantic segmentation network to obtain the generated result; Wherein, the source domain is the pre-made dataset, and the target domain is the specified image data captured by the visual sensing device; S032. The distribution difference between the source domain and the target domain is calculated using the distribution difference calculation expression, which is the loss that guides the network to adapt to the target domain; The expression for calculating the distribution difference is: , in, This represents the distributional difference between the source and target domains, where s and t represent samples from the source and target domains, respectively, using different kernel functions. Mapping to Hilbert space to compute the expected gap; K represents the number of kernel functions used, k represents the kernel function index; P represents the number of source domain samples, p represents the source domain sample index; Q represents the number of target domain samples, q represents the target domain sample index; P and Q are equal; S033. Based on the calculated distribution difference, the generated result is corrected using a post-correction algorithm to obtain the correction result, and the correction result is compared with the corresponding target domain sample to obtain the correction loss; S034. Repeat S031-S033 until the correction loss is less than the preset threshold to obtain the trained second attention semantic segmentation network.
6. The railway foreign object intrusion detection method based on deep learning according to claim 1, characterized in that, The method further includes: S30. If the foreign object detection result is a foreign object, an alarm is sent to the driver and the alarm is fed back to the backend management personnel for verification.
7. A railway foreign object intrusion detection system based on deep learning, characterized in that, The system includes: At least one processor, and at least one memory communicatively connected to the processor; wherein the memory stores program instructions executable by the processor, and the processor invokes the program instructions to execute the deep learning-based railway foreign object intrusion detection method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for detecting tiny foreign matters between railway double tracks based on machine vision
CN112508893A
Urban road semantic segmentation method based on double attention and dense connection
CN115457498A
