Bolt looseness detection method, device, equipment, medium, program product and train

By extracting and converting features of the image of the bolt's area of ​​interest, combined with the image acquisition device and edge computing equipment, the loosening status of the bolt is detected in real time, solving the problems of low manual inspection efficiency and high miss detection rate, and realizing efficient and accurate bolt detection. Looseness detection.

CN118570175APending Publication Date: 2024-08-30CRRC QINGDAO SIFANG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410720256.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing bolt loosening detection methods mainly rely on manual inspection or regular maintenance, resulting in low detection efficiency, long detection cycle, untimely detection, and high missed detection rate.

Method used

By obtaining the image of the bolt's area of ​​interest, extracting and converting visual features to classify and segment the identification line, determine the loosening status of the bolt, and use image acquisition devices and edge computing devices to achieve real-time detection.

Benefits of technology

The efficiency, precision and accuracy of bolt looseness detection are improved, the detection cycle is shortened, the missed detection rate is reduced, and real-time detection is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570175A
    Figure CN118570175A
Patent Text Reader

Abstract

The invention provides a bolt looseness detection method, device and equipment, a medium, a program product and a train, and can be applied to the technical fields of artificial intelligence, computer vision and fault detection. The bolt looseness detection method comprises the steps that a bolt region-of-interest image collected for a bolt is acquired, the bolt is provided with a marking line, and the bolt region-of-interest image comprises a sub-region representing the marking line; performing feature extraction on the bolt region-of-interest image to obtain visual features of the bolt region-of-interest; performing feature conversion on the visual features of the region of interest of the bolt to obtain a classification result representing the bolt loosening state of the bolt and a marking line segmentation result used for judging the bolt loosening state of the bolt; and determining the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of artificial intelligence, computer vision and fault detection technology, and more specifically, to a bolt loosening detection method, device, equipment, medium, program product and train. Background Art

[0002] In industrial production and equipment operation, the loosening of bolts may cause the preload force of the equipment structure connection to decrease, thus causing equipment failure or failure, or even safety accidents. In this regard, the loosening state of the bolts can be detected to avoid the adverse consequences that may be caused by loose bolts.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: the related bolt loosening detection method mainly relies on manual inspection or regular maintenance, resulting in low detection efficiency, long detection cycle, untimely detection and high missed detection rate. Summary of the invention

[0004] In view of this, the present disclosure provides a bolt loosening detection method, device, equipment, medium, program product and train.

[0005] One aspect of the present disclosure provides a bolt loosening detection method, comprising: acquiring a bolt region of interest image collected for a bolt, wherein an identification line is provided on the bolt, and the bolt region of interest image includes a sub-region representing the identification line; performing feature extraction on the bolt region of interest image to obtain visual features of the bolt region of interest; performing feature conversion on the visual features of the bolt region of interest to obtain a classification result representing a bolt loosening state of the bolt and an identification line segmentation result for judging the bolt loosening state of the bolt; and determining the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.

[0006] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt area of ​​interest to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt includes: binary classification of the visual features of the bolt area of ​​interest to obtain the bolt loosening state information and the confidence value corresponding to the bolt loosening state information; and determining the bolt loosening state information and the confidence value as the classification result.

[0007] According to an embodiment of the present disclosure, the above-mentioned determining the bolt loosening state of the bolt based on at least one of the classification result and the identification line segmentation result includes: when the bolt loosening state information is that the bolt is loose and the confidence value is greater than or equal to the confidence threshold, determining that the bolt loosening state is that the bolt is loose.

[0008] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt area of ​​interest to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt includes: according to the visual features of the bolt area of ​​interest, semantic segmentation of the pixel points in the image of the bolt area of ​​interest is performed to obtain a mask information set, wherein the mask information set includes first sub-mask information for characterizing the pixel points located on the bolt identification line; according to the first sub-mask information, determining the identification line area characterizing the identification line obtained by segmentation; and according to the identification line area, determining the identification line segmentation result.

[0009] According to an embodiment of the present disclosure, the mask information set also includes second sub-mask information for characterizing pixel points that are not located on the bolt identification line; the above-mentioned feature conversion of the visual features of the bolt interest area to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt also includes: determining the mask image according to the first sub-mask information and the second sub-mask information; scanning the mask image row by row from left to right to obtain the first first sub-mask information on the left side of each row of the mask image; scanning the mask image row by row from right to left to obtain the first first sub-mask information on the right side of each row of the mask image; calculating the average width of the segmented identification line according to the first first sub-mask information on the left side of each row of the mask image and the first first sub-mask information on the right side of each row of the mask image; and determining the average width as the identification line segmentation result.

[0010] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt interest area to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt also includes: scanning the mask image column by column from top to bottom to obtain the first first sub-mask information on the upper side of each column of the mask image; scanning the mask image column by column from bottom to top to obtain the first first sub-mask information on the lower side of each column of the mask image; calculating the average height of the identification lines obtained by segmentation based on the first first sub-mask information on the upper side of each column of the mask image and the first first sub-mask information on the lower side of each column of the mask image; and determining the average height as the identification line segmentation result.

[0011] According to an embodiment of the present disclosure, determining the loose bolt state of a bolt based on at least one of the classification result and the identification line segmentation result includes: when at least one of the conditions of determining that the average width is less than or equal to a width threshold and determining that the average height is less than or equal to a height threshold is met, determining that the loose bolt state is that the bolt is loose.

[0012] Another aspect of the present disclosure provides a bolt loosening detection device, including: an acquisition module, used to acquire a bolt region of interest image collected for a bolt, wherein an identification line is provided on the bolt, and the bolt region of interest image includes a sub-region representing the identification line; an extraction module, used to perform feature extraction on the bolt region of interest image to obtain visual features of the bolt region of interest; a conversion module, used to perform feature conversion on the visual features of the bolt region of interest to obtain a classification result representing a bolt loosening state of the bolt and an identification line segmentation result for judging the bolt loosening state of the bolt; and a determination module, used to determine the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.

[0013] Another aspect of the present disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.

[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0015] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and when the instructions are executed, are used to implement the method as described above.

[0016] Another aspect of the present disclosure provides a train, comprising: a bogie covering, in which an image acquisition device is configured for collecting information inside the bogie covering; and an edge computing device, which is configured to have a communication connection with the image acquisition device, and a bolt loosening detection model is deployed on the edge computing device to implement the above method.

[0017] According to the embodiments of the present disclosure, through the above settings, a large number of bolt region of interest images can be quickly processed based on the bolt loosening detection model, and the bolt loosening state can be determined based on the classification results that characterize the bolt loosening state of the bolt and / or the identification line segmentation results used to judge the bolt loosening state of the bolt, thereby effectively improving the detection efficiency, detection accuracy, and detection accuracy and objectivity of bolt loosening detection. In addition, since the bolt region of interest images are real-time, the bolt loosening state is also real-time, which can effectively shorten the detection cycle of bolt loosening detection, thereby helping to reduce the missed detection rate. Therefore, the bolt loosening detection method provided by the embodiments of the present disclosure can at least partially overcome the technical problems that the related bolt loosening detection methods in the related art mainly rely on manual inspections or regular maintenance, resulting in low detection efficiency, long detection cycles, untimely detection, and high missed detection rates. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0019] Figure 1 An exemplary system architecture to which the bolt loosening detection method, apparatus, device, medium, and program product of the present disclosure can be applied is schematically shown;

[0020] Figure 2 A flowchart of a bolt loosening detection method according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 3A An initial image according to an embodiment of the present disclosure is exemplarily shown;

[0022] Figure 3B An image of a bolt region of interest according to an embodiment of the present disclosure is exemplarily shown;

[0023] Figure 3C The marking line area according to one embodiment of the present disclosure is exemplarily shown;

[0024] Figure 4 The feature conversion process according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 5 The bolt loosening detection process according to one embodiment of the present disclosure is schematically shown;

[0026] Figure 6 A structural block diagram of a bolt loosening detection device according to an embodiment of the present disclosure is schematically shown; and

[0027] Figure 7 A block diagram of an electronic device suitable for implementing a bolt loosening detection method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0030] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0031] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0032] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security, and national security.

[0033] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0034] In industrial production and equipment operation, the loosening of bolts may cause the preload force of the equipment structure connection to decrease, thus causing equipment failure or failure, or even safety accidents. In this regard, the loosening state of the bolts can be detected to avoid the adverse consequences that may be caused by loose bolts.

[0035] According to one embodiment of the present disclosure, during the operation of a train, the fixing bolts inside the train bogie sheathing are prone to loosening due to factors such as decreased friction between bolts and nuts, train vibration and impact, and defects in bolt manufacturing materials or processes, thereby affecting the safety of the train.

[0036] For example, the looseness of the bolts on the train bogie cladding can be manually inspected by human eyes or tools such as selfie sticks. However, due to the limited field of view at the bogie cladding, visual blind spots are prone to occur, and the large number and variety of bolts make manual inspection time-consuming and inefficient, and it is difficult to conduct timely and comprehensive inspections, which can easily lead to missed inspections. In addition, manual inspection is directly related to the experience of the inspectors, which leads to a high degree of subjectivity in the inspection results and a lack of objective evaluation criteria in the inspection process.

[0037] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: the related bolt loosening detection method mainly relies on manual inspection or regular maintenance, resulting in low detection efficiency, long detection cycle, untimely detection and high missed detection rate.

[0038] In order to at least partially solve the technical problems existing in the related art, the present disclosure provides a bolt loosening detection method, device, equipment, medium, program product and train. The bolt loosening detection method comprises: obtaining a bolt region of interest image collected for the bolt, wherein the bolt has an identification line, and the bolt region of interest image includes a sub-region representing the identification line; performing feature extraction on the bolt region of interest image to obtain visual features of the bolt region of interest; performing feature conversion on the visual features of the bolt region of interest to obtain a classification result representing the bolt loosening state of the bolt and an identification line segmentation result for judging the bolt loosening state of the bolt; and determining the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.

[0039] Figure 1 The following schematically illustrates an exemplary system architecture to which the bolt loosening detection method, apparatus, device, medium, and program product of the present disclosure can be applied. Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0040] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0041] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only for example).

[0042] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0043] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0044] It should be noted that the bolt loosening detection method provided in the embodiment of the present disclosure can generally be performed by the server 105. Accordingly, the bolt loosening detection device provided in the embodiment of the present disclosure can generally be arranged in the server 105. The bolt loosening detection method provided in the embodiment of the present disclosure can also be performed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the bolt loosening detection device provided in the embodiment of the present disclosure can also be arranged in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Alternatively, the bolt loosening detection method provided in the embodiment of the present disclosure can also be performed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or can also be performed by other terminal devices that are different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Correspondingly, the bolt loosening detection device provided in the embodiment of the present disclosure can also be set in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.

[0045] For example, the bolt region of interest image may be originally stored in any one of the first terminal device 101, the second terminal device 102, or the third terminal device 103 (for example, the first terminal device 101, but not limited thereto), or stored on an external storage device and may be imported into the first terminal device 101. Then, the first terminal device 101 may locally execute the bolt loosening detection method provided by the embodiment of the present disclosure, or send the bolt region of interest image to other terminal devices, servers, or server clusters, and the bolt loosening detection method provided by the embodiment of the present disclosure may be executed by other terminal devices, servers, or server clusters that receive the bolt region of interest image.

[0046] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0047] Figure 2 A flow chart of a bolt loosening detection method according to an embodiment of the present disclosure is schematically shown.

[0048] like Figure 2 As shown, the method includes operations S201 to S204.

[0049] In operation S201, an image of a bolt region of interest collected for a bolt is acquired, wherein an identification line is provided on the bolt, and the image of the bolt region of interest includes a sub-region representing the identification line.

[0050] In operation S202 , feature extraction is performed on the bolt region of interest image to obtain visual features of the bolt region of interest.

[0051] In operation S203, feature conversion is performed on the visual features of the bolt interest region to obtain a classification result representing the bolt loosening state of the bolt and a marking line segmentation result for judging the bolt loosening state of the bolt.

[0052] In operation S204, a bolt loosening state of the bolt is determined according to at least one of the classification result and the identification line segmentation result.

[0053] According to one embodiment of the present disclosure, the above-mentioned bolt loosening detection method can be applied to the bogie covering of the train. The bogie covering can be fixedly installed on the bogie of the train by bolts and fixings, so that the bogie covering can cover the bogie and protect the bogie from the influence of the external environment, etc. Among them, there is an identification line on each of the bolts and the fixings, and each identification line can be a straight line segment. When the bolt is in a tightened state, the two identification lines will be aligned on the bolt and the fixing, and can be presented as a straight line; once the bolt is loosened or displaced, the positional relationship between the two identification lines will change. Therefore, based on the bolt area of ​​interest image collected for the aforementioned bolt, the bolt can be detected for bolt loosening according to the shape of the identification line to determine the bolt loosening state of the bolt, for example, it can include loosening or not loosening.

[0054] According to an embodiment of the present disclosure, based on a bolt loosening detection model and according to an image of a bolt region of interest, bolt loosening detection may be performed on a bolt to determine the bolt loosening state of the bolt.

[0055] As an example, the model structure of the bolt loosening detection model can be configured according to actual business needs, which is not limited here. For example, the bolt loosening detection model may include at least one model structure. The model structure may include at least one model substructure and the connection relationship between each model substructure.

[0056] According to an embodiment of the present disclosure, an image acquisition device may be used to perform real-time acquisition on the bolts to obtain an initial image including an image of a region of interest of the bolts.

[0057] It should be noted that the image acquisition device can collect real-time video data or real-time image data for the bolt, which is not limited here. Exemplarily, the image acquisition device can include a monocular camera or a binocular camera. Further, the image acquisition device can also be selected to include a laser radar.

[0058] Figure 3A An initial image according to an embodiment of the present disclosure is exemplarily shown.

[0059] For example, the image acquisition device may include a monocular camera, and the frame rate of the monocular camera may be selected as 25 frames per second. A real-time video stream from the monocular camera may be received through a real-time streaming protocol (such as RTSP protocol, Real Time Streaming Protocol). Based on a preset timed task, the real-time video stream may be frame extracted and decoded to obtain an initial image (such as an image of the bolt region of interest) Figure 3A shown).

[0060] Figure 3BAn image of a bolt region of interest according to an embodiment of the present disclosure is exemplarily shown.

[0061] According to one embodiment of the present disclosure, the bolt loosening detection model may include a target detection model. Based on the target detection model, target detection may be performed on the initial image to obtain an image of the bolt region of interest collected for the bolt. Since the initial image is obtained based on the video data / image data collected in real time by the image acquisition device, the image of the bolt region of interest is also obtained based on the video data / image data collected in real time by the image acquisition device, and the image of the bolt region of interest is real-time.

[0062] As an example, the target detection model may include a target detection model based on a convolutional neural network (CNN). Exemplarily, the target detection model may include a YOLO (You Only Look Once) series model, such as a YOLOv8 model.

[0063] For example, the initial image can be input into the trained target detection model to obtain the above-mentioned bolt region of interest image (such as Figure 3B ). The bolt region of interest image includes a sub-region representing the identification line.

[0064] According to one embodiment of the present disclosure, a bolt loosening detection model may include a feature extraction model. Based on the feature extraction model, feature extraction may be performed on the bolt region of interest image to obtain visual features of the bolt region of interest. Among them, the visual features of the bolt region of interest may include general visual features and domain-related visual features. General visual features can be used to describe features common to all images, regardless of the specific type or content of the image, and may include features such as color, texture, and shape. Domain-related visual features may be based on certain prior knowledge of the image content being described, and may be closely related to specific applications. No limitation is made here.

[0065] As an example, the feature extraction model may include at least one of the following: a feature extraction model based on a transformer, a feature extraction model based on a convolutional neural network (CNN), a feature extraction model based on a recurrent neural network (RNN), and a feature extraction model based on an autoencoder. Exemplarily, the feature extraction model may include a DINO (DETR with Improved deNoising anchOr boxes) series of algorithms, such as a DINOv2 model.

[0066] For example, the bolt region of interest image can be input into a trained feature extraction model to obtain the visual features of the bolt region of interest.

[0067] According to an embodiment of the present disclosure, the bolt loosening detection model may include a feature conversion model. Based on the feature conversion model, feature conversion may be performed on the visual features of the bolt interest region to obtain a classification result characterizing the bolt loosening state and a marking line segmentation result for determining the bolt loosening state of the bolt.

[0068] For example, the visual features of the bolt's region of interest can be input into the trained feature conversion sub-model to obtain the classification results and identification line segmentation results.

[0069] According to an embodiment of the present disclosure, the classification result may include that the bolt is loose or that the bolt is not loose. The identification line segmentation result may include a straight line segment, multiple straight line segments, or a curved line segment. Among them, a straight line segment may correspond to the situation where the bolt is not loose, and multiple straight line segments or curved line segments may correspond to the situation where the bolt is loose.

[0070] According to an embodiment of the present disclosure, the bolt loosening state of the bolt can be determined according to at least one of the classification result and the identification line segmentation result. As an example, the bolt loosening state of the bolt can be determined according to the classification result. As another example, the bolt loosening state of the bolt can be determined according to the identification line segmentation result. As another example, the bolt loosening state of the bolt can be determined according to the classification result and the identification line segmentation result.

[0071] According to one embodiment of the present disclosure, when the bolt loosening status indicates that the bolt is loose, the bolt loosening status and alarm information may also be sent so that the management personnel may tighten or repair the bolt after receiving the bolt loosening status and alarm information.

[0072] According to the embodiments of the present disclosure, through the above settings, a large number of bolt region of interest images can be quickly processed based on the bolt loosening detection model, and the bolt loosening state can be determined based on the classification results that characterize the bolt loosening state of the bolt and / or the identification line segmentation results used to judge the bolt loosening state of the bolt, thereby effectively improving the detection efficiency, detection accuracy, and detection accuracy and objectivity of bolt loosening detection. In addition, since the bolt region of interest images are real-time, the bolt loosening state is also real-time, which can effectively shorten the detection cycle of bolt loosening detection, thereby helping to reduce the missed detection rate. Therefore, the bolt loosening detection method provided by the embodiments of the present disclosure can at least partially overcome the technical problems that the related bolt loosening detection methods in the related art mainly rely on manual inspections or regular maintenance, resulting in low detection efficiency, long detection cycles, untimely detection, and high missed detection rates.

[0073] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt area of ​​interest to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt includes: binary classification of the visual features of the bolt area of ​​interest to obtain the bolt loosening state information and the confidence value corresponding to the bolt loosening state information; and determining the bolt loosening state information and the confidence value as the classification result.

[0074] According to an embodiment of the present disclosure, the model structure of the feature conversion model can be configured according to actual business needs, which is not limited here. For example, the feature conversion model may include at least one model structure. The model structure may include at least one model substructure and the connection relationship between each model substructure.

[0075] According to an embodiment of the present disclosure, the feature conversion model may include a first feature conversion sub-model. Based on the first feature conversion sub-model, the visual features of the bolt region of interest may be classified into two categories to obtain bolt loosening state information and a confidence value corresponding to the bolt loosening state information. Exemplarily, the bolt loosening state information may include loosened state information and non-loosened state information. On this basis, the bolt loosening state information and the confidence value may be determined as the classification result.

[0076] According to one embodiment of the present disclosure, the first feature conversion submodel may include a classification task head. Exemplarily, the classification task head may be selected as a linear classification head. The training method of the classification task head may be configured according to actual business needs and is not limited here. For example, the training method may include at least one of the following: unsupervised training, supervised training, and semi-supervised training.

[0077] For example, a sample image training set can be constructed based on sample images and label information. The sample images may include sample images of bolt interest regions in a loosened state and sample images of bolt interest regions in a loosened state. The label information may be a loosened label and a non-loosened label, respectively. The loosened label may be set to 1, and the non-loosened label may be set to 0. Based on a feature extraction model, feature extraction may be performed on the classified sample image training set to obtain a sample visual feature training set to train a binary classification task head.

[0078] For example, the model parameters of the classification task head can be trained according to the sample visual feature training set to obtain a trained classification task head. It should be noted that the network weights of the feature extraction model can be frozen during the training process, and only the classification task head can be trained.

[0079] For example, the visual features of the bolt region of interest can be input into the trained classification task head to obtain the bolt loosening state information (which can be recorded as cls) and the confidence value corresponding to the bolt loosening state information (which can be recorded as conf). On this basis, the bolt loosening state information cls and the confidence conf can be determined as the classification result.

[0080] According to an embodiment of the present disclosure, the above-mentioned determining the bolt loosening state of the bolt based on at least one of the classification result and the identification line segmentation result includes: when the bolt loosening state information is that the bolt is loose and the confidence value is greater than or equal to the confidence threshold, determining that the bolt loosening state is that the bolt is loose.

[0081] According to an embodiment of the present disclosure, the confidence threshold can be denoted as conf th Those skilled in the art can reasonably set the confidence threshold according to actual needs or application scenarios, and no limitation is made here.

[0082] As an example, when the bolt loosening state information is that the bolt is loose, and the confidence value is greater than or equal to a certain confidence threshold, it can be determined that the bolt loosening state is the bolt loose. That is, when the following formula (1) corresponds, it can be determined that the bolt loosening state is the bolt loose.

[0083] (cls==1)and(conf>conf th ) (1)

[0084] As another example, when the bolt loosening state information is that the bolt is not loose, and the confidence value is greater than or equal to a certain confidence threshold, it can be determined that the bolt loosening state is that the bolt is not loose.

[0085] As another example, when the bolt loosening status information indicates that the bolt is loose and the confidence value is less than a certain confidence threshold, the bolt loosening status can be determined to be uncertain. When the bolt loosening status information indicates that the bolt is not loose and the confidence value is less than a certain confidence threshold, the bolt loosening status can be determined to be uncertain. Optionally, when the bolt loosening status is uncertain, a notification message can be sent so that the manager can perform manual inspection after receiving the notification message.

[0086] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt area of ​​interest to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt includes: according to the visual features of the bolt area of ​​interest, semantic segmentation of the pixel points in the image of the bolt area of ​​interest is performed to obtain a mask information set, wherein the mask information set includes first sub-mask information for characterizing the pixel points located on the bolt identification line; according to the first sub-mask information, determining the identification line area characterizing the identification line obtained by segmentation; and according to the identification line area, determining the identification line segmentation result.

[0087] Figure 3C The figure exemplarily shows a marking line area according to an embodiment of the present disclosure.

[0088] According to an embodiment of the present disclosure, the feature conversion model may include a second feature conversion sub-model. Based on the second feature sub-model, the pixel points in the bolt interest region image may be semantically segmented according to the visual features of the bolt interest region to obtain a mask information set. The mask information set includes first sub-mask information for characterizing the pixel points located on the bolt identification line. Based on the first sub-mask information, the identification line area characterizing the segmented identification line may be determined, such as Figure 3C As shown in the middle area 310. On this basis, the identification line segmentation result can be determined according to the identification line area.

[0089] According to one embodiment of the present disclosure, the second feature conversion sub-model may include a segmentation task head. Exemplarily, the segmentation task head may be selected as a 1*1 convolution layer. The training method of the segmentation task head may be configured according to actual business needs and is not limited here. For example, the training method may include at least one of the following: unsupervised training, supervised training, and semi-supervised training.

[0090] For example, a sample image training set may be constructed based on sample images. The sample images may include sample images of bolt interest regions in a state where the bolts are loosened and sample images of bolt interest regions in a state where the bolts are not loosened. The contour line of the sub-region representing the identification line in the sample image may be marked. Based on a feature extraction model, feature extraction may be performed on the marked sample image training set to obtain a sample visual feature training set to train the segmentation task head.

[0091] For example, the model parameters of the segmentation task head can be trained according to the sample visual feature training set to obtain a trained segmentation task head. It should be noted that the network weights of the feature extraction model can be frozen during the training process, and only the segmentation task head can be trained.

[0092] For example, the visual features of the bolt's region of interest can be input into the trained segmentation task head to obtain a mask information set (which can be denoted as mask).

[0093] Exemplarily, for each pixel in the bolt region of interest image, the mask information corresponding to each pixel can be recorded as mask(i, j), mask(i, j) = 0 or 1. Among them, for the pixel located on the identification line, mask(i, j) = 1; for the pixel not located on the identification line, mask(i, j) = 0.

[0094] According to an embodiment of the present disclosure, the mask information set includes first sub-mask information for characterizing pixel points located on the bolt identification line, that is, mask(i, j)=1.

[0095] According to an embodiment of the present disclosure, a marking line region representing the marking line obtained by segmentation may be determined according to the first sub-mask information, such as Figure 3C As shown in the middle area 310. On this basis, the identification line segmentation result can be determined according to the identification line area.

[0096] Figure 4 The feature extraction and feature conversion process according to the embodiment of the present disclosure is schematically shown.

[0097] like Figure 4 As shown, the bolt region of interest image 401 can be input into a trained feature extraction model 402 to perform feature extraction on the bolt region of interest image 401 to obtain the bolt region of interest visual feature 403 .

[0098] According to an embodiment of the present disclosure, the bolt region of interest visual feature 403 may be input into a trained first feature conversion sub-model 404 , and the bolt region of interest visual feature 403 may be visually converted to obtain a classification result 406 .

[0099] According to an embodiment of the present disclosure, the bolt region of interest visual feature 403 may be input into a trained second feature conversion sub-model 405 , and the bolt region of interest visual feature 403 may be visually converted to obtain a marking line segmentation result 407 .

[0100] According to an embodiment of the present disclosure, the mask information set also includes second sub-mask information for characterizing pixel points that are not located on the bolt identification line; the above-mentioned feature conversion of the visual features of the bolt interest area to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt also includes: determining the mask image according to the first sub-mask information and the second sub-mask information; scanning the mask image row by row from left to right to obtain the first first sub-mask information on the left side of each row of the mask image; scanning the mask image row by row from right to left to obtain the first first sub-mask information on the right side of each row of the mask image; calculating the average width of the segmented identification line according to the first first sub-mask information on the left side of each row of the mask image and the first first sub-mask information on the right side of each row of the mask image; and determining the average width as the identification line segmentation result.

[0101] According to an embodiment of the present disclosure, the mask information set also includes second sub-mask information for characterizing pixel points that are not located on the bolt identification line, that is, mask(i, j)=0.

[0102] According to an embodiment of the present disclosure, a mask image may be determined according to the first sub-mask information and the second sub-mask information. For the mask image, there are:

[0103]

[0104] Among them, h and w are the width and height of the mask image respectively.

[0105] According to an embodiment of the present disclosure, the mask image can be scanned row by row from left to right to obtain the first sub-mask information on the left side of each row of the mask image (which can be recorded as mask i,left The mask image can be scanned row by row from right to left to obtain the first sub-mask information on the right side of each row of the mask image (which can be recorded as mask i,right ).

[0106] For example, for the mask image, scan from left to right row by row, and get the first non-zero point on the left, which is recorded as mask i,left ; Scan from right to left row by row, and get the first non-zero point on the right, which is recorded as mask i,right , where i represents the row number. Based on this, the average width of the segmented identification line can be calculated as shown in the following formula (3). On this basis, the average width can be determined as the identification line segmentation result.

[0107]

[0108] Among them, h c To calculate the number of rows whose width is not 0.

[0109] According to an embodiment of the present disclosure, the above-mentioned feature conversion of the visual features of the bolt interest area to obtain the classification result characterizing the bolt loosening state of the bolt and the identification line segmentation result for judging the bolt loosening state of the bolt also includes: scanning the mask image column by column from top to bottom to obtain the first first sub-mask information on the upper side of each column of the mask image; scanning the mask image column by column from bottom to top to obtain the first first sub-mask information on the lower side of each column of the mask image; calculating the average height of the identification lines obtained by segmentation based on the first first sub-mask information on the upper side of each column of the mask image and the first first sub-mask information on the lower side of each column of the mask image; and determining the average height as the identification line segmentation result.

[0110] According to an embodiment of the present disclosure, the mask image can be scanned from top to bottom column by column to obtain the first sub-mask information (which can be recorded as mask) on the upper side of each column of the mask image. top,j The mask image can be scanned column by column from bottom to top to obtain the first sub-mask information at the bottom of each column of the mask image (which can be recorded as mask bottom,j ).

[0111] For example, for the mask image, scan from top to bottom column by column to get the first non-zero point on the upper side, which is recorded as mask top,j ; Scan from bottom to top column by column to get the first non-zero point on the bottom side, recorded as mask bottom,j , where j represents the column number. Based on this, the average height of the segmented identification line can be calculated as shown in the following formula (4). On this basis, the average height can be determined as the identification line segmentation result.

[0112]

[0113] Among them, w c To calculate the number of columns whose height is not 0.

[0114] According to an embodiment of the present disclosure, the above-mentioned determining the loose state of the bolt based on at least one of the classification result and the identification line segmentation result includes: when at least one of the conditions of determining that the average width is less than or equal to the width threshold and determining that the average height is less than or equal to the height threshold is met, determining that the loose state of the bolt is that the bolt is loose.

[0115] According to the embodiments of the present disclosure, when the bolt becomes loose, the shape formed by the two marking lines will change accordingly, which may be manifested as an abnormality in the width or height of the marking line (the average value becomes smaller).

[0116] According to an embodiment of the present disclosure, the width threshold may be denoted as w th , the height threshold can be recorded as h thThose skilled in the art can reasonably set the height threshold and the width threshold according to actual needs or application scenarios, etc., and no limitation is made here.

[0117] As an example, when at least one of the conditions that the average width is less than or equal to the width threshold and the average height is less than or equal to the height threshold is satisfied, the bolt loosening state can be determined as the bolt is loose. That is, when the following formula (5) corresponds, the bolt loosening state can be determined as the bolt is loose.

[0118] (mask w_avg <w th )or(mask h_avg <h th ) (5)

[0119] Figure 5 The figure schematically shows a bolt loosening detection process according to an embodiment of the present disclosure.

[0120] like Figure 5 As shown, for the real-time video data 501 collected for the bolt, frame extraction and decoding processing can be performed to obtain an initial image 502. Target detection can be performed on the initial image 502 to obtain an image 503 of a bolt region of interest collected for the bolt.

[0121] According to an embodiment of the present disclosure, feature extraction may be performed on the bolt region of interest image 503 to obtain the bolt region of interest visual feature 504 .

[0122] According to an embodiment of the present disclosure, the bolt interest region visual feature 504 may be binary classified to obtain bolt loosening state information 505 and a confidence value 506 corresponding to the bolt loosening state. The bolt loosening state information 505 and the confidence value 506 may be determined as a classification result 507.

[0123] According to an embodiment of the present disclosure, semantic segmentation may be performed on the bolt region of interest image 503 to obtain a mask information set 508 .

[0124] As an example, the mask information set 508 includes first sub-mask information 508_1 for characterizing pixel points located on the bolt identification line. According to the first sub-mask information 508_1, a marking line area 509 for characterizing the segmented marking line can be determined. According to the marking line area 509, a marking line segmentation result 513 can be determined.

[0125] As another example, the mask information set 508 further includes second sub-mask information 508_2 for characterizing pixel points that are not located on the bolt identification line. The mask image 510 may be determined according to the first sub-mask information 508_1 and the second sub-mask information 508_2.

[0126] For example, the average width 511 of the segmented identification lines may be calculated by scanning the mask image 510 row by row from left to right, and scanning the mask image 510 row by row from right to left. The average width 511 may be determined as the identification line segmentation result 513 .

[0127] For example, the average height 512 of the segmented identification lines may be calculated by scanning the mask image 510 from top to bottom column by column, and scanning the mask image 510 from bottom to top column by column. The average height 512 may be determined as the identification line segmentation result 513.

[0128] According to an embodiment of the present disclosure, the bolt loose state 514 may be determined according to at least one of the classification result 507 and the identification line segmentation result 513. As an example, the bolt loose state 514 may be determined according to the classification result 507. As another example, the bolt loose state 514 may be determined according to the identification line segmentation result 513. As another example, the bolt loose state 514 may be determined according to the classification result 507 and the identification line segmentation result 513.

[0129] Based on the above bolt loosening detection method, an embodiment of the present disclosure further provides a train. The train may include a bogie covering and an edge computing device.

[0130] The bogie covering is provided with an image acquisition device therein for acquiring information inside the bogie covering.

[0131] An edge computing device is configured to have a communication connection with the image acquisition device, and a bolt loosening detection model is deployed on the edge computing device to implement the bolt loosening detection method as described above.

[0132] According to the embodiments of the present disclosure, based on the above settings, online bolt loosening detection can be achieved, and the detection results (such as notification information, or bolt loosening status and alarm information) can be reported to the monitoring platform in real time, thereby effectively avoiding adverse consequences that may be caused by bolt loosening.

[0133] Figure 6 The structural block diagram of the bolt loosening detection device according to an embodiment of the present disclosure is schematically shown.

[0134] like Figure 6 As shown, the bolt loosening detection device 600 of the embodiment of the present disclosure includes an acquisition module 610 , an extraction module 620 , a conversion module 630 and a determination module 640 .

[0135] The acquisition module 610 is used to acquire an image of a bolt region of interest collected from a bolt, wherein the bolt has an identification line, and the image of the bolt region of interest includes a sub-region representing the identification line.

[0136] The extraction module 620 is used to extract features from the bolt region of interest image to obtain visual features of the bolt region of interest.

[0137] The conversion module 630 is used to perform feature conversion on the visual features of the bolt interest region to obtain a classification result representing the bolt loosening state of the bolt and a marking line segmentation result for judging the bolt loosening state of the bolt.

[0138] The determination module 640 is used to determine the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.

[0139] According to an embodiment of the present disclosure, the conversion module 630 may include a classification submodule and a classification result determination submodule.

[0140] The classification submodule is used to perform binary classification on the visual features of the bolt interest area to obtain the bolt loosening state information and the confidence value corresponding to the bolt loosening state information.

[0141] The classification result determination submodule is used to determine the bolt loosening state information and the confidence value as the classification result.

[0142] According to an embodiment of the present disclosure, the determination module 640 may include a first determination submodule.

[0143] The first determination submodule is used to determine that the bolt loosening state is that the bolt is loosened when the bolt loosening state information is that the bolt is loosened and the confidence value is greater than or equal to the confidence threshold.

[0144] According to an embodiment of the present disclosure, the conversion module 630 may further include a segmentation submodule, a marking line region determination submodule, and a first segmentation result determination submodule.

[0145] The segmentation submodule is used to perform semantic segmentation on the pixel points in the bolt interest area image according to the visual features of the bolt interest area to obtain a mask information set, wherein the mask information set includes the first sub-mask information for characterizing the pixel points located on the bolt identification line.

[0146] The marker line region determination submodule is used to determine a marker line region representing a marker line obtained by segmentation according to the first sub-mask information.

[0147] The first segmentation result determination submodule is used to determine the marker line segmentation result according to the marker line area.

[0148] According to an embodiment of the present disclosure, the conversion module 630 may further include a mask image determination submodule, a first scanning submodule, a second scanning submodule, an average width determination submodule, and a second segmentation result determination submodule.

[0149] The mask image determination submodule is used to determine the mask image according to the first sub-mask information and the second sub-mask information.

[0150] The first scanning submodule is used to scan the mask image row by row from left to right to obtain the first sub-mask information on the left side of each row of the mask image.

[0151] The second scanning submodule is used to scan the mask image row by row from right to left to obtain the first sub-mask information on the right side of each row of the mask image.

[0152] The average width determination submodule is used to calculate the average width of the identification line obtained by segmentation according to the first first sub-mask information on the left side of each row of the mask image and the first first sub-mask information on the right side of each row of the mask image.

[0153] The second segmentation result determination submodule is used to determine the average width as the identification line segmentation result.

[0154] According to an embodiment of the present disclosure, the conversion module 630 may further include a third scanning submodule, a fourth scanning submodule, an average height determination submodule, and a third segmentation result determination submodule.

[0155] The third scanning submodule is used to scan the mask image column by column from top to bottom to obtain the first sub-mask information on the upper side of each column of the mask image.

[0156] The fourth scanning submodule is used to scan the mask image column by column from bottom to top to obtain the first sub-mask information at the bottom of each column of the mask image.

[0157] The average height determination submodule is used to calculate the average height of the segmented identification lines according to the first first sub-mask information on the upper side of each column of the mask image and the first first sub-mask information on the lower side of each column of the mask image.

[0158] The third segmentation result determination submodule is used to determine the average height as the identification line segmentation result.

[0159] According to an embodiment of the present disclosure, the determination module 640 may include a second determination submodule.

[0160] The second determination submodule is used to determine that the bolt loosening state is that the bolt is loose when at least one of the conditions of determining that the average width is less than or equal to the width threshold and determining that the average height is less than or equal to the height threshold is met.

[0161] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0162] For example, any multiple of the acquisition module 610, the extraction module 620, the conversion module 630, and the determination module 640 can be combined in one module / unit / subunit for implementation, or any one of the modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functions of one or more modules / units / subunits in these modules / units / subunits can be combined with at least part of the functions of other modules / units / subunits and implemented in one module / unit / subunit. According to an embodiment of the present disclosure, at least one of the acquisition module 610, the extraction module 620, the conversion module 630, and the determination module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 610 , the extraction module 620 , the conversion module 630 , and the determination module 640 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0163] It should be noted that the bolt loosening detection device part in the embodiment of the present disclosure corresponds to the bolt loosening detection method part in the embodiment of the present disclosure. The description of the bolt loosening detection device part specifically refers to the bolt loosening detection method part, which will not be repeated here.

[0164] Figure 7A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0165] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0166] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0167] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The system 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0168] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0169] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0170] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0171] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or the RAM 703 described above and / or one or more memories other than the ROM 702 and the RAM 703 .

[0172] The embodiments of the present disclosure also include a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiments of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the method provided by the embodiments of the present disclosure.

[0173] When the computer program is executed by the processor 701, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0174] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0175] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0176] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0177] The embodiments of the present disclosure are described above. However, these embodiments are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for detecting loose bolts, include: Acquire a bolt region of interest image collected for the bolt, wherein the bolt has an identification line, and the bolt region of interest image includes a sub-region representing the identification line; Extracting features from the bolt region of interest image to obtain visual features of the bolt region of interest; Performing feature conversion on the visual features of the bolt interest region to obtain a classification result representing the bolt loosening state of the bolt and a marking line segmentation result for judging the bolt loosening state of the bolt; and The bolt loosening state of the bolt is determined according to at least one of the classification result and the identification line segmentation result.

2. The method according to claim 1, in, The step of performing feature conversion on the visual features of the bolt region of interest to obtain a classification result representing the bolt loosening state of the bolt and a segmentation result of a marking line for determining the bolt loosening state of the bolt includes: Performing binary classification on the visual features of the bolt region of interest to obtain bolt loosening state information and a confidence value corresponding to the bolt loosening state information; and The bolt loosening state information and the confidence value are determined as the classification result.

3. The method according to claim 2, in, Determining the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result includes: When the bolt loosening state information indicates that the bolt is loose, and the confidence value is greater than or equal to a confidence threshold, it is determined that the bolt loosening state is that the bolt is loose.

4. The method according to claim 1, in, The step of performing feature conversion on the visual features of the bolt region of interest to obtain a classification result representing the bolt loosening state of the bolt and a segmentation result of a marking line for determining the bolt loosening state of the bolt includes: According to the visual features of the bolt region of interest, semantic segmentation is performed on the pixel points in the image of the bolt region of interest to obtain a mask information set, wherein the mask information set includes first sub-mask information for characterizing the pixel points located on the bolt identification line; Determining, according to the first sub-mask information, a marking line region representing the marking line obtained by segmentation; and The identification line segmentation result is determined according to the identification line area.

5. The method according to claim 4, in, The mask information set also includes second sub-mask information for characterizing pixel points not located on the bolt identification line; the feature conversion of the visual features of the bolt interest region to obtain a classification result characterizing the bolt loosening state of the bolt and an identification line segmentation result for judging the bolt loosening state of the bolt also includes: Determine a mask image according to the first sub-mask information and the second sub-mask information; Scanning the mask image row by row from left to right to obtain the first sub-mask information on the left side of each row of the mask image; Scanning the mask image row by row from right to left to obtain the first sub-mask information on the right side of each row of the mask image; Calculating an average width of the identification lines obtained by segmentation according to the first first sub-mask information on the left side of each row of the mask image and the first first sub-mask information on the right side of each row of the mask image; and The average width is determined as the identification line segmentation result.

6. The method according to claim 5, in, The step of performing feature conversion on the visual features of the bolt region of interest to obtain a classification result representing the bolt loosening state of the bolt and a segmentation result of a marking line for determining the bolt loosening state of the bolt further includes: Scanning the mask image from top to bottom column by column to obtain the first sub-mask information on the upper side of each column of the mask image; Scanning the mask image column by column from bottom to top to obtain the first sub-mask information at the bottom of each column of the mask image; Calculating an average height of the identification lines obtained by segmentation according to the first sub-mask information at the upper side of each column of the mask image and the first sub-mask information at the lower side of each column of the mask image; and The average height is determined as the identification line segmentation result.

7. The method according to claim 6, in, Determining the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result includes: When at least one of the conditions that the average width is less than or equal to a width threshold and the average height is less than or equal to a height threshold is satisfied, the bolt loosening state is determined to be that the bolt is loose.

8. A bolt loosening detection device, include: An acquisition module, used for acquiring an image of a bolt region of interest collected from a bolt, wherein the bolt has an identification line, and the image of the bolt region of interest includes a sub-region representing the identification line; An extraction module, used for performing feature extraction on the bolt region of interest image to obtain visual features of the bolt region of interest; a conversion module, used to perform feature conversion on the visual features of the bolt interest region to obtain a classification result representing the bolt loosening state of the bolt and a marking line segmentation result for judging the bolt loosening state of the bolt; and A determination module is used to determine the bolt loosening state of the bolt according to at least one of the classification result and the identification line segmentation result.

9. A train, include: A bogie covering, in which an image acquisition device is disposed for acquiring information inside the bogie covering; as well as An edge computing device is configured to have a communication connection with the image acquisition device, and a bolt loosening detection model is deployed on the edge computing device to implement the method as described in any one of claims 1 to 7.

10. An electronic device, include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

11. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.

12. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.