Method for detecting limb fractures of children based on yov8

By using the YOLOv8 detection algorithm in the detection of children's limb fractures, combined with the small target detection layer and the CBAM attention mechanism, the problem of missed detection and misdetection caused by the small and concealed fracture area in children has been solved, and high accuracy and real-time detection of children's fractures have been achieved. detection.

CN118735907AInactive Publication Date: 2024-10-01GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411131477.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-18
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to the small and hidden fracture area in the detection of children's limb fractures, traditional methods are prone to missed detections and false detections, and traditional target detection algorithms are prone to losing details or producing false detections when dealing with small targets, leading to inaccurate diagnosis.

Method used

Using the YOLOv8 detection algorithm, through data preprocessing, label preparation, model selection and training, model evaluation and optimization and other steps, combined with the small target detection layer and CBAM attention mechanism, the model's detection ability of micro-fracture areas is improved, achieving automation and intelligence ized fracture detection.

Benefits of technology

It improves the accuracy of detection of children's limb fractures, reduces missed detections and false detections, is suitable for real-time detection needs, and reduces costs and computational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735907A_ABST
    Figure CN118735907A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of detection of limb fractures of children, and discloses a method for detecting limb fractures of children based on yov8, and the method comprises the following steps: preprocessing data; preparing a label; selecting and training a model; evaluating and optimizing the model; and deploying the application. According to the method for detecting the limb fractures of the children based on the yov8, image training is carried out through a single channel, the image training is consistent with the fact that medical image X-line data is a grayscale image, the image is pre-trained through a yov8s.pt lightweight weight model, the method better conforms to practical application, the cost is reduced in practical application, and the method is suitable for popularization and application. A small-size feature map and an attention mechanism are added into a network structure layer, so that the detection speed is increased, small target detection is fused, and the accuracy of child limb fracture detection is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of detecting fractures of children's limbs, and in particular to a method for detecting fractures of children's limbs based on yolov8. Background Art

[0002] In the field of medical imaging, especially for the key diagnostic task of fracture detection, traditional methods rely on the doctor's experience and naked eye observation, which is not only time-consuming but also easily affected by subjective factors, leading to an increased risk of misdiagnosis or missed diagnosis. With the rapid development of computer vision and machine learning technology, especially the breakthrough of deep learning in the field of image recognition, automated and high-precision fracture detection has become possible.

[0003] As one of the core tasks of computer vision, object detection aims to identify objects of a specific category in an image and determine their position and size. In the fracture detection scenario, the object detection algorithm can locate and identify the fracture area, providing doctors with intuitive reference information.

[0004] Fractures are a common type of injury in orthopedics, and their accurate and rapid diagnosis is crucial to the treatment and rehabilitation of patients. However, due to the variety of fracture types and complex morphology, especially in children, where bones are not fully developed, fracture manifestations may be more hidden, increasing the difficulty of detection.

[0005] In the detection of pediatric limb fractures, the fracture area is often small and rich in details, which places higher requirements on the target detection algorithm. Traditional target detection algorithms are prone to losing details or making false detections when dealing with small targets. At the same time, X-ray images are the most commonly used imaging data in fracture detection, and they are characterized by grayscale images. Compared with color images, grayscale images contain less information, but retain sufficient structural information for fracture identification.

[0006] Based on the above problems, a method for detecting children's limb fractures based on YOLOv8 was proposed. Summary of the invention

[0007] In view of the shortcomings of the prior art, the present invention provides a method for detecting fractures of children's limbs based on YOLOv8, which has the advantages of effectively combining fracture detection and small target detection to further improve the accuracy of fracture detection of children's limbs, and solves the problems that children's limbs are thinner and smaller than those of adults, the degree of fracture in children is lighter than that of adults, the fracture area is small and not easy to be found, and missed detection and false detection are prone to occur.

[0008] In order to achieve the above-mentioned purpose of effectively combining fracture detection and small target detection and further improving the accuracy of children's limb fracture detection, the present invention provides the following technical solutions: a method for detecting children's limb fractures based on yolov8, comprising: Data preprocessing; Label preparation; Model selection and training; Model evaluation and optimization; Application deployment.

[0009] As a preferred technical solution of the present invention, the data preprocessing includes: 1200 children's fracture X-ray images were divided into training set and test set at a ratio of 7:1; All images were converted to single-channel grayscale images and local histogram equalization was applied to enhance image quality.

[0010] As a preferred technical solution of the present invention, the label preparation includes: ensuring that the label of each image correctly marks the fracture area and unifying the format.

[0011] As a preferred technical solution of the present invention, the model selection and training includes: Use YOLOv8s.pt as the initial model and load the pre-trained weights; During the training process, the model parameters, including learning rate, optimizer, regularization, etc., are gradually adjusted to optimize the training effect; A small target detection layer and a CBAM attention mechanism module are added, and the model's ability to detect tiny fracture areas is gradually improved through multiple iterative training.

[0012] As a preferred technical solution of the present invention, the model evaluation and optimization includes: Use the test set to evaluate the trained model and calculate indicators such as accuracy and recall; Based on the evaluation results, the model is further optimized and adjusted, such as adjusting the network structure and increasing the number of training rounds.

[0013] As a preferred technical solution of the present invention, the application deployment includes: Integrate the trained model into the medical imaging diagnosis system to achieve automated and intelligent fracture detection functions; In practical applications, model performance is continuously optimized through user feedback and continuous data collection.

[0014] Compared with the prior art, the present invention provides a method for detecting limb fractures in children based on yolov8, which has the following beneficial effects: This method for detecting children's limb fractures based on yolov8 uses a single channel for image training, which is consistent with the grayscale image of medical image X-ray data. The yolov8s.pt lightweight weight model is used to pre-train the image, which is more in line with practical applications and reduces costs in practical applications. Small-size feature maps are added to the network structure layer and the attention mechanism is added to improve the detection speed. At the same time, small target detection is integrated to further improve the accuracy of children's limb fracture detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of the implementation steps of the present invention; Figure 2 It is a schematic diagram of the technical highlights of the present invention. DETAILED DESCRIPTION

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

[0017] In the description of the present invention, it is necessary to understand that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0018] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0019] See also Figure 1-2 The method for detecting pediatric limb fractures based on YOLOv8 is designed to help doctors quickly diagnose the fracture area of ​​pediatric patients, reduce the possibility of missed detection, and improve the accuracy of fracture detection. By optimizing data processing, model training, evaluation, and deployment processes, efficient and accurate fracture detection is achieved. The method includes the following steps: S1 data preprocessing mainly includes data set collection and division, image conversion and enhancement.

[0020] In this embodiment, data set collection and division: by collecting a data set of 1,200 X-ray images of children's limb fractures, these images come from multiple medical institutions and cover different types of fractures, ensuring the diversity and representativeness of the data. Subsequently, these images are divided into a training set (840 images) and a test set (160 images) in a ratio of 7:1 to ensure the effectiveness of model training and the objectivity of evaluation.

[0021] It should be noted that, given that X-ray images are grayscale images, a single-channel processing strategy can be selected, which not only simplifies the calculation process but also improves the processing efficiency because unnecessary color channel conversion and processing are avoided.

[0022] Image conversion and enhancement: All images are first converted into single-channel grayscale images to match the actual characteristics of X-ray images and reduce computational complexity. Then, local histogram equalization technology is applied to enhance the local contrast of the image to make the fracture area more clearly visible in the image. This step significantly improves the image quality and lays a good foundation for subsequent detection tasks.

[0023] It should be noted that by performing local histogram equalization on the image, the contrast of the image is enhanced, the fracture area is more prominent in the grayscale image, the recognition ability of the model is improved, and the single-channel training of medical grayscale images is more convenient and quick.

[0024] S2 Label preparation.

[0025] In this example, the fracture area of ​​each image is annotated by a professional doctor to ensure the accuracy and consistency of the annotation. The annotation results are saved in TXT file format, and each line contains the coordinates and category information of the fracture area (in this example, "fractured"). All label files are organized in a unified format to facilitate the subsequent training and evaluation process.

[0026] S3 model selection and training is mainly divided into three parts: model selection, training process, and training results.

[0027] In this embodiment, model selection: YOLOv8s.pt is selected as the initial model. The model is known for its lightweight structure and efficient performance, and is very suitable for real-time detection tasks. By loading pre-trained weights, the model can quickly adapt to new detection tasks and reduce training time and resource consumption.

[0028] It should be noted that YOLOv8s.pt is used as the initial model. This model has a fast inference speed while ensuring detection accuracy, which is suitable for real-time detection needs in practical applications.

[0029] Training process: During the training process, the model parameters, including learning rate, optimizer (such as Adam), regularization method, etc., are gradually adjusted to optimize the training effect. At the same time, in order to cope with the challenge of small fracture areas in children, a small target detection layer is added to the network structure to enhance the model's ability to detect tiny targets. In addition, the CBAM attention mechanism module is introduced to enhance the model's attention to key areas in both spatial and channel dimensions, further improving detection accuracy.

[0030] Training results: After multiple iterations of training, the performance of the model on the training set gradually improved. By adjusting the network structure and training strategy, the model's ability to detect tiny fracture areas was improved to a higher level, laying a solid foundation for subsequent evaluation and application deployment, and improving the accuracy of small target detection in children's fracture areas.

[0031] S4 model evaluation and optimization is mainly divided into evaluation indicators and optimization adjustments.

[0032] In this embodiment, evaluation indicators: The trained model is evaluated by using the test set, and key indicators such as accuracy, recall rate, and F1 score are calculated. These indicators comprehensively reflect the performance of the model in the detection task.

[0033] Optimization and adjustment: Based on the evaluation results, the model is further optimized and adjusted. For example, the number of layers or parameter settings in the network structure are adjusted to improve the generalization ability of the model; the number of training rounds is increased to further reduce the risk of overfitting; or different optimization algorithms and regularization strategies are tried to improve the stability of the model.

[0034] S5 application deployment is mainly divided into system integration and continuous optimization.

[0035] In this embodiment, system integration: the trained model is integrated into the medical imaging diagnosis system to realize the automated and intelligent fracture detection function. The user only needs to upload the X-ray image to be tested, and the system can quickly give the test results and diagnostic suggestions.

[0036] Continuous optimization: In actual applications, user feedback and new data samples are continuously collected to continuously optimize and update the model. By regularly retraining the model and adjusting parameter settings, it can be ensured that the model always remains in the best state, providing more accurate and reliable diagnostic support for clinical medicine.

[0037] The beneficial effects of the above embodiment are: By using a single channel for image training, which is consistent with the grayscale image of medical image X-ray data, using the yolov8s.pt lightweight weight model to pre-train the image is more in line with practical applications and reduces costs in practical applications. Adding small-size feature maps and attention mechanisms to the network structure layer improves the detection speed and integrates small target detection to further improve the accuracy of children's limb fracture detection.

[0038] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for detecting limb fractures in children based on yolov8, characterized in that: include: Data preprocessing; Label preparation; Model selection and training; Model evaluation and optimization; Application deployment.

2. The method for detecting limb fractures in children based on yolov8 according to claim 1, characterized in that: The data preprocessing includes: 1200 children's fracture X-ray images were divided into training set and test set at a ratio of 7:1; All images were converted to single-channel grayscale images and local histogram equalization was applied to enhance image quality.

3. The method for detecting limb fractures in children based on yolov8 according to claim 1, characterized in that: The label preparation includes: ensuring that the label of each image correctly marks the fracture area and unifies the format.

4. The method for detecting limb fractures in children based on yolov8 according to claim 1, characterized in that: The model selection and training includes: Use YOLOv8s.pt as the initial model and load the pre-trained weights; During the training process, the model parameters, including learning rate, optimizer, regularization, etc., are gradually adjusted to optimize the training effect; A small target detection layer and a CBAM attention mechanism module are added, and the model's ability to detect tiny fracture areas is gradually improved through multiple iterative training.

5. The method for detecting limb fractures in children based on yolov8 according to claim 1, characterized in that: The model evaluation and optimization includes: Use the test set to evaluate the trained model and calculate indicators such as accuracy and recall; Based on the evaluation results, the model is further optimized and adjusted, such as adjusting the network structure and increasing the number of training rounds.

6. The method for detecting limb fractures in children based on yolov8 according to claim 1, characterized in that: The application deployment includes: Integrate the trained model into the medical imaging diagnosis system to achieve automated and intelligent fracture detection functions; In practical applications, model performance is continuously optimized through user feedback and continuous data collection.