Fastener leak detection method and device based on mobile terminal and electronic equipment
Through deep learning technology based on mobile terminals, using target recognition neural network models and multi-scale feature fusion computing modules, we solve the problems of low efficiency and high cost of traditional fastener detection, achieve rapid identification and counting of fasteners, and meet the needs of Efficient and low-cost detection needs.
Patent Information
- Application Number
- CN202410899497.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-11
AI Technical Summary
Traditional fastener missing and missing detection methods are inefficient and costly. They rely on manual visual counting inspection, making it difficult to achieve efficient and low-cost detection.
Using mobile-based deep learning technology, the target recognition neural network model (such as YOLOv5m) is combined with the multi-scale feature fusion operation module to identify and count fastener images, and generate a mobile application for detection.
It realizes rapid identification and counting of fasteners, provides mobility and portability, meets the requirements for high-efficiency, high-quality, and low-cost missing assembly detection, and is suitable for quality control in different scenarios and environments.
Smart Images

Figure CN118761986A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of aviation digital detection, and in particular relates to a mobile-based aircraft surface fastener leak detection method, device and electronic equipment. Background Art
[0002] Fasteners are a vital component in the assembly of aviation parts, and their assembly quality is directly related to the safety and reliability of aviation products.
[0003] In the process of fastener assembly, due to the complexity and tediousness of the process and the complexity of the assembly environment, some defects or poor assembly are inevitable. Traditional fastener missing detection methods often rely on manual visual counting inspection, which has the problems of low statistical efficiency and high labor cost.
[0004] Therefore, it is desired to have a technical solution to overcome or at least alleviate at least one of the above-mentioned defects of the prior art. Summary of the invention
[0005] The purpose of this application is to provide a mobile-based aircraft surface fastener leak detection method, device and electronic equipment to solve the problems of low efficiency and high cost of fastener missing detection methods in the prior art.
[0006] The technical solution of this application is:
[0007] The first aspect of the present application provides a mobile terminal-based aircraft surface fastener leak detection method, comprising:
[0008] Acquiring a component surface image through a mobile device, wherein the component surface includes surfaces of all components for assembly of the aircraft;
[0009] Performing data cleaning on the acquired surface image of the component to obtain an effective image library;
[0010] Acquire the fastener category and location information contained in each image in the image library and form a fastener recognition data set, and divide the recognition data set into a training set and a test set;
[0011] Build a target recognition neural network model based on the fastener recognition dataset;
[0012] The target recognition neural network model is trained using the training set until the training loss value of the neural network model is reduced and converged within a set threshold range, the neural network model is tested using the training set, and the detection accuracy is stable, thereby obtaining a fastener recognition model;
[0013] A mobile application based on the fastener identification model is generated, and the fastener leak detection is performed using the mobile application.
[0014] Preferably, the fastener recognition model adopts the target recognition neural network YOLOv5m architecture, and a multi-scale feature fusion operation module is provided in the fastener recognition model. The design method of the multi-scale feature fusion operation module is:
[0015] The component surface image is input into the target recognition neural network model. The multi-scale feature fusion operation module aggregates the output features of different network layers of the target recognition neural network model, fully integrates the target information of different scale features in the component surface image, and enhances the generalization performance and recognition accuracy of target detection. Given the shallow feature F1∈R C×H×W , deep features F2∈R C×H×W , the fusion feature F3 is calculated as follows:
[0016] F3=W3*(Concat((F1*W1+F2*W2),F1,F2))
[0017] In the formula, * represents the convolution operation, ⊕ represents the point-by-point element addition, and Concat represents the cascade function.
[0018] Preferably, the data cleaning includes removing invalid images such as blurred imaging, large angle deviation, and light interference.
[0019] Preferably, when the fastener category and location information contained in each image in the image library is obtained, a label document is generated, wherein each image corresponds to a label document;
[0020] Preferably, the training set is sample expanded by an image enhancement algorithm, and the image enhancement algorithm includes space transformation, random cropping and noise addition.
[0021] The second aspect of the present application provides a fastener leak detection device based on a mobile terminal, characterized in that it includes:
[0022] An image acquisition module is used to acquire a surface image of a component based on a mobile terminal device, wherein the surface of the component includes surfaces of all components for assembly of the aircraft;
[0023] A data cleaning module, used for screening and acquiring a valid image library from the acquired surface images of the component;
[0024] A data set building module, used to label each image in the image library with fastener category and location information, and divide the data set into a training set and a test set;
[0025] A model building module is used to build a target recognition neural network model for the fastener recognition dataset;
[0026] A model training module, used to train the neural network model on a training set and test the neural network model on a test set;
[0027] The application generation module is used to generate a mobile application based on the fastener identification model.
[0028] The third aspect of the present application provides an electronic device, characterized in that it includes a processor and a memory, the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the above-mentioned mobile-based fastener leak detection method is implemented.
[0029] The invention has at least the following beneficial technical effects:
[0030] The mobile-based aircraft surface fastener leak detection method of the present application adopts visual inspection technology based on a mobile deep learning framework to quickly identify and count fasteners in component surface images, provides mobility and portability, can be flexibly applied to different scenarios and environments, and realizes efficient quality control in the component assembly environment, meeting the requirements of high-efficiency, high-quality, and low-cost fastener missing assembly detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flow chart of a fastener leak detection method based on a mobile terminal according to an embodiment of the present application;
[0032] Figure 2 This is a schematic diagram of a multi-scale feature fusion operation module flow chart of an implementation method of the present application;
[0033] Figure 3 It is a schematic diagram of a fastener leak detection device based on a mobile terminal according to an embodiment of the present application;
[0034] Figure 4 It is a structural schematic diagram of an electronic device suitable for implementing the implementation mode of the present application.
[0035] Figure 5 is a schematic diagram of a mobile application program according to one embodiment of the present application; DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] The first aspect of the present application provides a mobile terminal-based aircraft surface fastener leak detection method, such as Figure 1 As shown, the following steps are included:
[0038] Step 101, acquiring a component surface image through a mobile terminal device, wherein the component surface includes surfaces of all components for assembly of the aircraft;
[0039] Hold a mobile device and open the camera to collect quantitative images of the surface of aviation parts. The camera of the mobile device is shooting and collecting images of the surface of aviation parts. The shooting distance is within one meter, and the collection range covers the surfaces of various types of parts.
[0040] Step 102, performing data cleaning on the acquired component surface image to obtain a valid image library;
[0041] Data cleaning is performed on the collected surface images to obtain an effective image library. Data cleaning includes removing invalid images such as blurred images, large angle deviations, and light interference.
[0042] Step 103, obtaining the fastener category and position information contained in each image in the image library and forming a fastener recognition data set, and dividing the recognition data set into a training set and a test set;
[0043] The various types of fasteners in the image library are classified and positioned to obtain a label library, and the image library and the label library are combined to obtain a fastener recognition dataset;
[0044] Specifically, the types of fasteners commonly included in aircraft parts are rivets and high-lock bolts. This embodiment marks three types of information, namely, rivets, high-lock bolts, and connection holes.
[0045] When classifying and locating each type of fastener in each image in the image library, a corresponding label document in XML format is generated to record the type and coordinate position information of the fastener in the image. The coordinate position information is the relative coordinate of the fastener or connection hole in the captured image area, rather than the coordinate of the entire machine. The fastener recognition dataset includes the image library and the corresponding label library for subsequent model training.
[0046] Step 104, building a target recognition neural network model based on the fastener recognition data set;
[0047] A neural network model for fastener target recognition is built based on the fastener recognition dataset. The neural network model can extract features and classify and locate fasteners in the surface image of components.
[0048] The fastener recognition model adopts the target recognition neural network YOLOv5m architecture. The target recognition neural network YOLOv5m adopts a lightweight model architecture that can provide a high inference speed while maintaining accuracy. It is suitable for deployment on mobile and embedded devices and is more suitable for the situation of this application.
[0049] Since the distance and angle of images taken by mobile device cameras may vary in actual shooting, in order to enable the model to accurately identify fastener features, a multi-scale feature fusion operation module is set in the fastener recognition model. The design method of the multi-scale feature fusion operation module is as follows:
[0050] The component surface image is input into the target recognition neural network model. The multi-scale feature fusion operation module aggregates the output features of different network layers of the target recognition neural network model, fully integrates the target information of different scale features in the component surface image, and enhances the generalization performance and recognition accuracy of target detection.
[0051] like Figure 2 As shown, given the shallow feature F1∈R C×H×W , deep features F2∈R C×H×W , the fusion feature F3 is calculated as follows:
[0052] F3=W3*(Concat((F1*W1+F2*W2),F1,F2))
[0053] In the formula, * represents the convolution operation, ⊕ represents the point-by-point element addition, and Concat represents the cascade function.
[0054] Step 105, training the target recognition neural network model with the training set until the training loss value of the neural network model is reduced and converged to a set threshold range, testing the neural network model with the training set, and obtaining a fastener recognition model when the detection accuracy is stable;
[0055] During training, the training set is expanded with samples by an image enhancement algorithm, which includes spatial transformation, random cropping and noise addition. The image enhancement algorithm introduces data diversity and complexity, so that the model is exposed to more scenarios and changes during the training process, thereby improving the generalization ability of the model and making it more stable and reliable on the test set. During training, the training loss value of the neural network model is reduced and converged to a certain value and the test accuracy is stable, so as to obtain a fastener recognition model;
[0056] Step 106: Generate a mobile application based on the fastener identification model, and use the mobile application to perform fastener leak detection.
[0057] Specifically, in this embodiment, the fastener identification model is converted into a TorchScript lite format model, the generated TorchScript Lite model file is embedded in an Android mobile application, and the PyTorch Lite library is used to load and run the model on the mobile device, the Andriod mobile deep learning inference library is used to compile and optimize the fastener identification model, and an Andriod mobile fastener intelligent detection and statistics mobile application is generated;
[0058] Open the fastener intelligent detection and statistics mobile application, use the mobile device camera to take pictures of the surface to be detected, and detect the photos. The identification and statistical results of various types of fasteners are displayed in real time in the mobile application, and the detection results are stored at the same time.
[0059] When inspecting and counting fasteners on the surface of parts, the camera of the mobile device is photographing and analyzing the surface of aviation parts. The analyzed and processed inspection result images are saved to the mobile phone storage. If the surface size of the part is large, multiple photographs and analyses can be performed until the surface of the inspected part is covered.
[0060] Based on the above-mentioned aircraft surface fastener leak detection method based on a mobile terminal, the second aspect of the present application provides a fastener leak detection device 300 based on a mobile terminal, such as Figure 3 As shown, it is characterized by comprising:
[0061] An image acquisition module 301 is used to acquire a component surface image based on a mobile terminal device, wherein the component surface includes the surfaces of all components for assembly of the aircraft;
[0062] A data cleaning module 302 is used to filter and obtain a valid image library from the obtained component surface images;
[0063] A data set building module 303 is used to label each image in the image library with fastener category and location information, and divide the data set into a training set and a test set;
[0064] A model building module 304 is used to build a target recognition neural network model for a fastener recognition data set;
[0065] A model training module 305, used to train the neural network model on a training set and test the neural network model on a test set;
[0066] The application generation module 306 is used to generate a mobile application based on the fastener identification model.
[0067] In the embodiment of the present application, the fastener leak detection device based on the mobile terminal can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0068] The third aspect of the present application provides an electronic device 400, the structural diagram of which is shown in FIG. Figure 4 As shown, the components include but are not limited to: a processor 410, a memory 420, a display 430, an image processor 440, an interface unit 450, a battery 460, a sensor 470, and other hardware modules 480. The memory 420 stores programs or instructions that can be run on the processor 410. When the programs or instructions are executed by the processor 410, the above-mentioned fastener leakage detection method based on the mobile terminal is implemented.
[0069] As a specific implementation, the fourth aspect of the present application provides a mobile application, such as Figure 5 As shown, in the embodiment of the present application, the Android operating system mobile device is used as the hardware platform, which provides mobility and portability, so that the detection method can be flexibly applied to different scenarios and environments. The functions of the fastener intelligent detection and statistics mobile application include: "Sample detection", "Photo collection", "Select picture", "Start detection", and "View results". The application can input images in three ways: "Sample detection", "Photo collection", and "Select picture". Click the "Sample detection" button to select an existing sample image; click the "Photo collection" button to call the mobile device camera to collect images of the surface of the component; click the "Select picture" button to select the local album image of the mobile device; click the "Start detection" button to quickly identify and count fasteners in the sample image; click the "View results" button to view the fastener identification and counting results, including the processed surface image and text information.
[0070] In an embodiment of the present application, an Andriod mobile device camera is first used to capture images of the surface of aviation parts, fasteners in the images are annotated, an aviation fastener image database is established, a convolutional neural network model for intelligent fastener identification is built, and then the fastener image database is used to train the convolutional neural network model to obtain a fastener intelligent identification model; during use, the surface images of parts are captured in real time, and the fastener intelligent identification model is used to quickly identify and count fasteners on the surface of the shooting area, and the number of fasteners in each area is accumulated to quickly complete the missing or uninstalled inspection of aviation parts fasteners; efficient quality control is achieved in the parts assembly environment, meeting the requirements for efficient, high-quality, and low-cost missing or uninstalled fastener detection.
[0071] Finally, a few points should be explained: First, in the description of this application, it should be noted that, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, which may refer to mechanical connection or electrical connection, or internal communication between two components, or direct connection. "upper", "lower", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may change;
[0072] Secondly: In the drawings of the embodiments disclosed in the present invention, only the structures related to the embodiments disclosed in the present invention are involved, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other;
[0073] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A fastener leak detection method based on a mobile terminal, characterized in that: include: Acquiring a component surface image through a mobile device, wherein the component surface includes surfaces of all components for assembly of the aircraft; Performing data cleaning on the acquired surface image of the component to obtain an effective image library; Acquire the fastener category and location information contained in each image in the image library and form a fastener recognition data set, and divide the recognition data set into a training set and a test set; Building a target recognition neural network model based on the fastener recognition data set; The target recognition neural network model is trained using the training set until the training loss value of the neural network model is reduced and converged within a set threshold range, the neural network model is tested using the training set, and the detection accuracy is stable, thereby obtaining a fastener recognition model; A mobile application based on the fastener identification model is generated, and the fastener leak detection is performed using the mobile application.
2. A fastener leak detection method based on a mobile terminal according to claim 1, characterized in that: The fastener recognition model adopts the target recognition neural network YOLOv5m architecture, and a multi-scale feature fusion operation module is provided in the fastener recognition model. The design method of the multi-scale feature fusion operation module is as follows: The component surface image is input into the target recognition neural network model. The multi-scale feature fusion operation module aggregates the output features of different network layers of the target recognition neural network model, fully integrates the target information of different scale features in the component surface image, and enhances the generalization performance and recognition accuracy of target detection. Given the shallow feature F1∈R C×H×W , deep features F2∈R C×H×W , the fusion feature F3 is calculated as follows: F3=W3*(Concat((F1*W1+F2*W2),F1,F2)) In the formula, * represents the convolution operation, It stands for point-by-point element addition and Concat stands for the concatenation function.
3. A fastener leak detection method based on a mobile terminal according to claim 1, characterized in that: The data cleaning includes removing invalid images with blurred imaging, large angle deviation and light interference.
4. A fastener leak detection method based on a mobile terminal according to claim 1, characterized in that: When the fastener category and location information contained in each image in the image library is obtained, a label document is generated, wherein each image corresponds to a label document.
5. The mobile terminal-based fastener leak detection method according to claim 1, characterized in that: The training set is sampled and expanded by an image enhancement algorithm, wherein the image enhancement algorithm includes space transformation, random cropping and noise addition.
6. A fastener leak detection device based on a mobile terminal, characterized in that: include: An image acquisition module is used to acquire a surface image of a component based on a mobile terminal device, wherein the surface of the component includes surfaces of all components for assembly of the aircraft; A data cleaning module, used for screening and acquiring a valid image library from the acquired surface images of the component; A data set building module, used to label each image in the image library with fastener category and location information, and divide the data set into a training set and a test set; A model building module is used to build a target recognition neural network model for the fastener recognition dataset; A model training module, used to train the neural network model on a training set and test the neural network model on a test set; The application generation module is used to generate a mobile application based on the fastener identification model.
7. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the fastener leak detection method based on the mobile terminal as described in any one of claims 1 to 5.
Citation Information
Cited By
Aviation equipment quality inspection method based on deep learning algorithm
CN121032974A
