Neural network-based tooth state evaluation method, system and terminal
Through the tooth status assessment method based on neural network, YOLOv8 network model and CBAM layer are used to solve the subjectivity and low efficiency problems of tooth status assessment in the existing technology, realize the automatic detection and category judgment of tooth lesion areas, and improve the efficiency of tooth condition assessment. Evaluate accuracy and efficiency.
Patent Information
- Application Number
- CN202410681227.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-13
AI Technical Summary
The prediction and assessment of oral tooth status in the existing technology has problems such as subjectivity, time consumption, expensive equipment, and the inability to determine the type of dental lesions.
A neural network-based dental status assessment method is adopted, multi-level feature extraction and fusion is performed through the YOLOv8 network model, and the CBAM layer is used to capture key features to achieve automatic detection and category judgment of dental lesion areas.
It improves the accuracy and efficiency of tooth status assessment, reduces the uncertainty of manual judgment, realizes automatic detection and category judgment of tooth disease areas, and assists doctors in oral clinical assessment.
Smart Images

Figure CN118644443A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of oral condition analysis, and in particular to a method, system and terminal for tooth condition assessment based on a neural network. Background Art
[0002] Oral diseases primarily include caries, periapical periodontitis, and impacted teeth. Besides causing toothache and affecting physiological functions like eating, oral diseases are closely related to other bodily ailments. Proper preventative treatment plays a crucial role in preventing oral diseases, preventing the spread and severity of diseased teeth, and protecting healthy teeth from the effects of diseased teeth.
[0003] Currently, the prediction and assessment of oral dental conditions are primarily based on the subjective opinions of dentists or dental hygienists on the patient's oral images. However, manual oral clinical diagnosis has disadvantages such as subjectivity, variability, time consumption, decreased concentration, limited experience, and difficulty processing large amounts of data. The inconsistency between the doctor's subjective judgment and experience can lead to diagnostic uncertainty, and manual analysis of oral images or medical records takes a long time, which can easily lead to fatigue and errors. In addition, existing technologies also utilize other intelligent devices to detect the scope and extent of a patient's dental lesions. For example, quantitative photofluorescence technology is used to receive reflected fluorescence images through a special camera, and then the fluorescence of healthy enamel is reconstructed. The percentage difference between the actual surface and the reconstructed surface is calculated to determine the overall fluorescence loss. Areas with fluorescence loss exceeding 5% are considered to be lesion areas. However, devices using the above technology are not only expensive, but also lack intelligent diagnostic outputs. They can only detect lesion areas but cannot determine the type of dental lesion. Summary of the Invention
[0004] Embodiments of the present invention provide a neural network-based tooth condition assessment method, system, and terminal, which capture key features at multiple levels within a first oral image during the feature extraction stage to improve the accuracy of a tooth condition assessment model in assessing the tooth condition of the first oral image.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for evaluating tooth condition based on a neural network, comprising:
[0006] Acquiring a first oral cavity image to be detected;
[0007] Through a preset tooth condition assessment model, multi-level feature extraction and fusion are performed on the first oral image, and based on the feature maps of multiple sizes obtained by fusion, the status of the teeth in the first oral image is assessed to obtain a tooth condition assessment result of the first oral image; wherein, the tooth condition assessment model is obtained by training the YOLOv8 network model using a sample data set, and the sample data set includes several second oral images and the tooth conditions corresponding to each second oral image, the YOLOv8 network model includes a CBAM layer for capturing multiple levels of key features in the first oral image, and the tooth condition assessment result of the first oral image includes the coordinate position and disease category of the suspected tooth lesion area in the first oral image.
[0008] In implementing the embodiment of the present invention, a YOLOv8 network model is trained using a sample data set including several second oral images and the tooth status corresponding to each second oral image to obtain a tooth status assessment model. The tooth status assessment model can have a mapping relationship between oral images and tooth status, and through the tooth status assessment model, multi-level feature extraction and fusion are performed on the first oral image to be detected, and based on the feature maps of multiple sizes obtained by fusion, the status of the teeth in the first oral image is assessed to obtain the tooth status assessment result of the first oral image, thereby realizing automatic detection of tooth lesion areas, so as to assist doctors or relevant personnel in oral clinical assessment. In addition, a dual-channel attention mechanism layer, the CBAM layer, is embedded in the YOLOv8 network model. The CBAM layer is mainly composed of a spatial attention mechanism module and a channel attention mechanism module. Channel attention improves the network's perception of key channels by weighted combination of important channels, while spatial attention emphasizes important spatial positions, allowing the network to focus more on key areas and increase the perception domain. Through the CBAM layer, the tooth condition assessment model can fine-tune the features extracted from the input image in multiple dimensions, capture key features, and improve the expressiveness of the tooth condition assessment model, thereby optimizing the tooth detection capability of the tooth condition assessment model for oral images.
[0009] As a preferred solution, the tooth condition assessment model is obtained by:
[0010] Using the sample data set, the YOLOv8 network model is trained M times, the weight parameter file of the current YOLOv8 network model is recorded when each training is completed, and the error rate of the current YOLOv8 network model is calculated and analyzed as the performance index value corresponding to the weight parameter file of the current YOLOv8 network model;
[0011] After completing M times of training of the YOLOv8 network model, the weight parameter file corresponding to the minimum performance index value is selected from all the weight parameter files as the optimal weight parameter file, and the YOLOv8 network model corresponding to the optimal weight parameter file is used as the tooth condition evaluation model.
[0012] By implementing the preferred solution of the embodiment of the present invention, the YOLOv8 network model is trained M times using a sample data set, effectively improving the accuracy and generalization ability of the YOLOv8 network model. After completing the M times of training of the YOLOv8 network model, the YOLOv8 network model corresponding to the weight parameter file with the best performance is selected as the tooth condition assessment model, which can ensure that the tooth condition assessment model has the best performance as much as possible and improve the reliability and effect of the application.
[0013] As a preferred solution, the preset tooth condition assessment model is used to perform multi-level feature extraction and fusion on the first oral image, and based on the fused feature maps of multiple sizes, the teeth in the first oral image are assessed to obtain a tooth condition assessment result of the first oral image, specifically:
[0014] Read the optimal weight parameter file and export the optimal weight parameter file as an ONNX file;
[0015] The ONNX file is called to perform multi-level feature extraction and fusion on the first oral image, and based on the feature maps of multiple sizes obtained by the fusion, the teeth in the first oral image are evaluated to obtain a tooth condition evaluation result of the first oral image; wherein the tooth condition evaluation result of the first oral image includes position information of a box of a suspected tooth lesion area in the first oral image, and a disease category and disease probability of the suspected tooth lesion area.
[0016] According to the preferred embodiment of the present invention, the optimal weight parameter file obtained through training is read and exported as an ONNX file, so that the tooth condition assessment model can be deployed on servers of various platforms such as cloud servers and hardware servers, thus realizing cross-platform deployment without being limited to a single server.
[0017] As a preferred solution, the acquisition of the sample data set is specifically as follows:
[0018] Collecting a plurality of second oral images and obtaining a tooth condition corresponding to each of the second oral images; wherein the tooth condition corresponding to the second oral image includes the number of diseased teeth and disease categories in the second oral image, and the disease categories include caries, periapical periodontitis, and impacted teeth;
[0019] Using annotation software, based on the tooth status corresponding to each second oral image, frame the suspected tooth lesion area in each second oral image to generate one or more suspected tooth lesion area boxes in each second oral image, and generate a first label file corresponding to each second oral image; wherein the first label file corresponding to the second oral image includes the file name, storage path and size information of the second oral image, as well as coordinate information and disease category ID of each suspected tooth lesion area box in the second oral image;
[0020] Calculating the normalized center point coordinates and normalized size of each suspected tooth lesion area box according to the size information of each second oral image and the coordinate information of each suspected tooth lesion area box in each second oral image, and updating the first label file corresponding to each second oral image based on the normalized center point coordinates and normalized size of each suspected tooth lesion area box in each second oral image to generate a second label file corresponding to each second oral image;
[0021] A sample data set is constructed based on all the second oral cavity images and the second label files corresponding to each of the second oral cavity images.
[0022] A preferred solution for implementing an embodiment of the present invention is to use annotation software to frame the suspected tooth lesion area of each second oral image and generate a first label file corresponding to each second oral image. Then, based on the normalized center point coordinates and normalized size of each suspected tooth lesion area box in each second oral image, the first label file corresponding to each second oral image is updated to optimize the sample data set, thereby facilitating subsequent training based on the sample data set to obtain a tooth condition assessment model, so that the model can identify diseased teeth such as caries, periapical periodontitis and impacted teeth.
[0023] As a preferred solution, the YOLOv8 network model includes: a Backbone module, a Neck module and a DetectHead module;
[0024] The Backbone module includes several CBS layers, several C2f layers, multiple CBAM layers, and multiple SPPF layers, and is used to extract features from the input oral image and perceive and obtain multiple levels of key features from the feature extraction results through each CBAM layer.
[0025] The Neck module includes multiple C2f layers, which are used to perform feature splicing and fusion on key features at different levels in the oral image, and then perform feature extraction on the splicing and fusion results to obtain feature maps of multiple sizes;
[0026] The Detect Head module is used to perform target detection on feature maps of various sizes to obtain tooth condition assessment results of oral images.
[0027] The preferred solution of the embodiment of the present invention is to optimize the model's feature extraction and learning process of the input oral image through the CBS layer to improve the overall performance of the model. In addition, the C2f layer can ensure the lightweight of the model while enabling the model to obtain sufficient and rich gradient information.
[0028] In order to solve the same technical problem, an embodiment of the present invention further provides a tooth condition assessment system based on a neural network, comprising:
[0029] An image acquisition module, configured to acquire a first oral cavity image to be detected;
[0030] A state assessment module is used to perform multi-level feature extraction and fusion on the first oral image through a preset tooth state assessment model, and perform state assessment on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion, to obtain a tooth state assessment result of the first oral image; wherein, the tooth state assessment model is obtained by training the YOLOv8 network model using a sample data set, and the sample data set includes several second oral images and the tooth state corresponding to each second oral image, the YOLOv8 network model includes a CBAM layer for capturing multiple levels of key features in the first oral image, and the tooth state assessment result of the first oral image includes the coordinate position and disease category of the suspected tooth lesion area in the first oral image.
[0031] As a preferred solution, the neural network-based tooth condition assessment system further includes:
[0032] The modeling training module is used to use the sample data set to train the YOLOv8 network model M times, record the weight parameter file of the current YOLOv8 network model when each training is completed, and calculate and analyze the error rate of the current YOLOv8 network model as the performance index value corresponding to the weight parameter file of the current YOLOv8 network model; after completing the M times of training of the YOLOv8 network model, select the weight parameter file corresponding to the smallest performance index value from all the weight parameter files as the optimal weight parameter file, and use the YOLOv8 network model corresponding to the optimal weight parameter file as the tooth condition evaluation model.
[0033] As a preferred solution, the status assessment module specifically includes:
[0034] A file reading unit, configured to read the optimal weight parameter file and export the optimal weight parameter file as an ONNX file;
[0035] A state evaluation unit is used to call the ONNX file, perform multi-level feature extraction and fusion on the first oral image, and perform state evaluation on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion, to obtain a tooth state evaluation result of the first oral image; wherein the tooth state evaluation result of the first oral image includes position information of a box of a suspected tooth lesion area in the first oral image, as well as a disease category and disease probability of the suspected tooth lesion area.
[0036] As a preferred solution, the neural network-based tooth condition assessment system further includes:
[0037] A sample acquisition module is used to collect a plurality of second oral images and obtain the tooth status corresponding to each second oral image; wherein the tooth status corresponding to the second oral image includes the number of teeth and the disease category of the diseased teeth in the second oral image, and the disease category includes caries, periapical periodontitis and impacted teeth; using annotation software, based on the tooth status corresponding to each second oral image, the suspected tooth lesion area in each second oral image is framed to generate one or more suspected tooth lesion area boxes in each second oral image, and generate a first label file corresponding to each second oral image; wherein the first label file corresponding to the second oral image includes the file name, storage path and size information of the second oral image , and the coordinate information and disease category ID of each of the suspected tooth lesion area boxes in the second oral image; according to the size information of each of the second oral images and the coordinate information of each of the suspected tooth lesion area boxes in the second oral image, calculate the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes, and based on the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes in the second oral image, update the first label file corresponding to each of the second oral images to generate the second label file corresponding to each of the second oral images; according to all the second oral images and the second label files corresponding to each of the second oral images, constitute a sample data set.
[0038] In order to solve the same technical problem, the present invention also provides a terminal, including a processor, a memory and a computer program stored in the memory; wherein, the computer program can be executed by the processor to implement the neural network-based tooth condition assessment method. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 : A schematic flow chart of a method for evaluating tooth condition based on a neural network provided in Example 1 of the present invention;
[0040] Figure 2 : A schematic diagram of the structure of the YOLOv8 network model provided in Example 1 of the present invention;
[0041] Figure 3 : A schematic structural diagram of a CBAM layer provided in Example 1 of the present invention;
[0042] Figure 4 : A structural diagram of a neural network-based tooth condition assessment system provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0044] Embodiment one:
[0045] Please refer to Figure 1 , a method for evaluating tooth condition based on a neural network is provided in an embodiment of the present invention. The method includes steps S1 to S2, each of which is specifically as follows:
[0046] Step S1: Acquire a first oral cavity image to be detected.
[0047] In this embodiment, the first oral image can be a panoramic oral radiograph. A panoramic oral radiograph is an image obtained using an oral imaging examination technology that utilizes panoramic X-ray scanning to present the patient's entire oral structure, teeth, jaws, and related areas on a single image. A panoramic oral radiograph can provide all-round oral information for patients with oral diseases, which helps in the comprehensive diagnosis and treatment of oral diseases. Panoramic oral radiographs are easy to obtain and do not require patients to place any objects in their mouths. They are an effective tool for routine oral examinations and are used to assess tooth position, jaw health, periodontal disease, etc., providing an important basis for doctors to formulate treatment plans.
[0048] As a preferred solution, before executing step S2, the neural network-based tooth condition assessment method provided by the embodiment of the present invention further includes a process for obtaining a tooth condition assessment model, which includes steps S03 to S04. The specific steps are as follows:
[0049] Step S03: Use the sample data set to train the YOLOv8 network model M times, record the weight parameter file of the current YOLOv8 network model when each training is completed, and calculate and analyze the error rate of the current YOLOv8 network model as the performance index value corresponding to the weight parameter file of the current YOLOv8 network model.
[0050] Step S04: After completing M times of training of the YOLOv8 network model, the weight parameter file corresponding to the minimum performance index value is selected from all weight parameter files as the optimal weight parameter file, and the YOLOv8 network model corresponding to the optimal weight parameter file is used as the tooth condition evaluation model.
[0051] In this embodiment, the training strategy of the network model can be: the number of training rounds is set to 300 (i.e., M = 300), the optimizer is the Adam optimizer, the initial learning rate is 0.01, the cosine annealing strategy is used to dynamically adjust the learning rate, and the weight parameter file with the best performance is retained. In particular, during the training process, the smaller the error rate of the YOLOv8 network model, the better the performance of the weight parameter file of the YOLOv8 network model.
[0052] As a preferred option, please refer to Figure 2 (a) YOLOv8 network model, including Backbone module, Neck module and Detect Head module.
[0053] Please refer to Figure 2 (a) Backbone module, including several CBS layers, several C2f layers, multiple CBAM layers and multiple SPPF layers, is used to extract features from the input oral image and perceive and obtain key features at multiple levels from the feature extraction results through each CBAM layer.
[0054] Please note that, please refer to Figure 2 (b) The CBS layer consists of a Convolutional Broadcasting (Conv2D) layer, a Batch Normalization (BatchNorm) layer, and a SILU activation function layer (SiLu). The Convolutional Broadcasting (Conv2D) layer extracts features from the input data using convolution kernels, the Batch Normalization (BatchNorm) layer normalizes the input data at each layer, and the SILU layer performs nonlinear transformations on the input. Through the synergistic effect of these three key components, the CBS layer optimizes the network's feature extraction and learning process for the input data, improving overall model performance.
[0055] Please refer to Figure 2(c) The C2f layer mainly includes a channel splitting layer (Split), multiple Bottleneck layers, and channel concatenation (Concat) structures. The C2f layer ensures that the network model can obtain sufficient and rich gradient information while being lightweight. Through the channel splitting operation, the C2f layer can efficiently process and utilize the information of different channels in the input features while maintaining the lightweight of the model; please refer to Figure 2 (d) The Bottom layer consists primarily of multiple convolution operations, used to extract features from the input data. The final channel concatenation ensures that information from each processing stage is fully integrated, thereby maintaining the model's lightweight while combining the features of each channel to enhance overall performance. The C2f layer therefore plays a key role in the network structure, ensuring a lightweight model design while achieving significant advantages in obtaining gradient information.
[0056] Please refer to Figure 2 (e), the SPPF layer contains multiple convolution kernels of size 5x5 (the CBS layer contains the Conv convolution layer, which in turn contains multiple convolution kernels of size 5x5) and a maximum pooling operation (MaxPool). Guided by spatial pyramid pooling, the network can obtain more global and multi-scale information by downsampling the input features at different scales. Subsequently, by splicing these downsampled features, the network's receptive field is expanded, enabling it to more comprehensively understand the overall structure of the oral image. The SPPF layer structure can improve the YOLOv8 network model, a neural network, in its understanding of image content and feature extraction.
[0057] In addition, please refer to Figure 3 (c), CBAM layer (dual-channel attention mechanism layer), mainly consists of spatial attention mechanism module and channel attention mechanism module. Figure 3 (b) The channel attention mechanism module includes a maximum pooling layer, an average pooling layer, and a shared multi-layer perceptron, which is used to improve the network's perception of key features by weighted combination of important channels; please refer to Figure 3 (a) The spatial attention mechanism module, including max pooling, average pooling, and convolutional layers, emphasizes important spatial locations, allowing the network to focus more on key areas and increase the perceptual domain. The CBAM layer improves the traditional YOLOv8 network model, enabling it to fine-tune input features across multiple dimensions, improving the network's expressiveness and optimizing model performance.
[0058] Please refer to Figure 2(a), Neck module, including multiple C2f layers, is used to perform feature splicing and fusion of key features at different levels in the oral image, and then perform feature extraction on the splicing and fusion results to obtain feature maps of multiple sizes.
[0059] It should be noted that the Neck module is primarily used to fuse and re-extract features from the various layers extracted in the Backbone module, thereby improving the network model's ability to recognize objects of varying sizes. In the Neck module, deep-level features are upsampled and subsequently concatenated with shallower features, followed by feature extraction through the C2f layer, effectively fusing deep and shallow semantic information.
[0060] The Detect Head module is used to detect objects in feature maps of various sizes and obtain the tooth condition assessment results of oral images.
[0061] It should be noted that the Detect Head module uses the feature maps of different sizes output by the Neck module to predict the location and category of the corresponding objects. It also calculates the Bbox Loss function for the target object's bounding box and the Class Loss function for the category. Because the Neck module extracts features at different network layer depths, the corresponding feature maps have different sizes.
[0062] As a preferred solution, before executing step S2, a neural network-based tooth condition assessment method provided by an embodiment of the present invention further includes a sample data set acquisition process, which includes steps S05 to S08. The specific steps are as follows:
[0063] Step S05: Collect a plurality of second oral cavity images and obtain the tooth status corresponding to each second oral cavity image.
[0064] In this embodiment, the second oral image acquisition process may include: collecting and organizing clinically collected oral panoramic radiographs; having a professional dentist perform simple data annotation on the clinically collected oral panoramic radiographs; recording areas suspected of caries, areas suspected of periapical periodontitis, and areas suspected of impacted teeth; and collecting the recorded images as the second oral image. The simple data annotation process primarily involves the physician recording the number of teeth with disease and noting the disease type.
[0065] The tooth status corresponding to the second oral image includes the number of teeth and disease categories of the diseased teeth in the second oral image, and the disease categories include caries, periapical periodontitis and impacted teeth.
[0066] It should be noted that caries is a progressive lesion caused by demineralization of the hard tissues of the teeth. It is one of the three major oral diseases recognized by the World Health Organization (WHO), with a high incidence rate and a wide age range. The clinical diagnosis of caries mainly relies on visual examination and probes, which is highly subjective. The structure of teeth is mainly composed of enamel, dentin, and pulp cavity. Depending on the enamel, dentin, and pulp cavity where the demineralized lesions invade the tooth tissue, it can be divided into four different levels: deep caries, moderate caries, and shallow caries. Different treatment methods are required for caries lesions at different stages. Apical periodontitis refers to an inflammatory disease of the tissues around the root apex due to various reasons, and is mostly a secondary disease of pulp disease. Apical periodontitis is a common disease, and the main causes include infection, irritation, and trauma. The main clinical symptoms include tooth pain, swelling, and chewing weakness, which can lead to complications such as mandibular osteomyelitis, odontogenic maxillary sinusitis, and oral and maxillofacial interstitial infection. Impacted teeth refer to teeth that, due to various reasons, have partially erupted or cannot erupt at all, and will not be able to erupt in the future. The gums around the crown of the impacted tooth will often become inflamed and painful, and may also cause symptoms such as decay and loosening of adjacent teeth and absorption of alveolar bone.
[0067] Step S06, using Label Img labeling software, based on the tooth status corresponding to each second oral image, frame the suspected tooth lesion area in each second oral image to generate one or more suspected tooth lesion area boxes in each second oral image, and classify the suspected caries area, suspected periapical periodontitis area, and suspected impacted tooth area according to the aforementioned simple data labeling. For example, the suspected caries area can be set to the category class "caries", the suspected periapical periodontitis area can be set to the category class "periapical periodontis", and the suspected impacted tooth area can be set to the category class "impacted", so as to generate the first label file corresponding to each second oral image.
[0068] The first label file corresponding to the second oral image includes the file name, storage path, and size of the second oral image, as well as the coordinate information and disease category ID of each suspected dental lesion area box within the second oral image. Furthermore, suspected dental lesion areas include, but are not limited to, suspected caries areas, suspected periapical periodontitis areas, and suspected impacted tooth areas.
[0069] In this embodiment, the first label file is an XML file. The XML file records the file name and path of each second oral image, the width W and height H of each second oral image, the upper left corner coordinates (xmin, ymin) and lower right corner coordinates (xmax, ymax) of each suspected tooth lesion area box, and the disease category ID corresponding to each suspected tooth lesion area box.
[0070] Step S07, calculate the normalized center point coordinates and normalized size of each suspected tooth lesion area box based on the size information of each second oral image and the coordinate information of each suspected tooth lesion area box in each second oral image, and update the first label file corresponding to each second oral image based on the normalized center point coordinates and normalized size of each suspected tooth lesion area box in each second oral image to generate a second label file corresponding to each second oral image.
[0071] In this embodiment, step S07 includes step S071 to step S074, and each step is specifically as follows:
[0072] In step S071, refer to formula (1), based on the coordinate information of each suspected tooth lesion area box in each second oral image - the upper left corner coordinates (xmin, ymin) and the lower right corner coordinates (xmax, ymax) of each suspected tooth lesion area box in each second oral image, calculate the center point coordinates (x, y) of each suspected tooth lesion area box and the size (h, w) of each suspected tooth lesion area box.
[0073]
[0074] In step S072, please refer to formula (2). Based on the size information of each second oral image - the width dimension W and the height dimension H of each second oral image, combined with the center point coordinates (x, y) of each suspected tooth lesion area box and the size (h, w) of each suspected tooth lesion area box in each second oral image, the normalized center point coordinates (nx, ny) of each suspected tooth lesion area box and the normalized size (nw, nh) of each suspected tooth lesion area box are calculated.
[0075]
[0076] In step S073, a third label file corresponding to each suspected dental lesion region in each second oral image is generated and saved based on the class class corresponding to each suspected dental lesion region, the normalized center coordinates (nx, ny) of each suspected dental lesion region box, and the normalized size (nw, nh) of each suspected dental lesion region box. The saving format is not limited to JSON or txt.
[0077] In step S074, refer to formula (3), the normalized center point coordinates (nx, ny) of each suspected tooth lesion area box in each third label file are enhanced to obtain the enhanced center point coordinates (nx′, ny′) of each suspected tooth lesion area box in each second oral image, and then the enhanced center point coordinates (nx′, ny′) of each suspected tooth lesion area box are used to replace the normalized center point coordinates (nx, ny) of each suspected tooth lesion area box in each third label file to update the third label file corresponding to each second oral image, and the updated third label file is used as the second label file corresponding to each second oral image.
[0078]
[0079] Step S08: A sample dataset is constructed based on all second oral images and the second label files corresponding to each second oral image. Specifically, the sample dataset is divided into a training set, a validation set, and a test set according to a certain ratio. The ratio can be 8:1:1 or 7:2:1, etc.
[0080] In step S2, a preset tooth condition evaluation model is used to perform multi-level feature extraction and fusion on the first oral image, and based on the fused feature maps of multiple sizes, the teeth in the first oral image are evaluated to obtain a tooth condition evaluation result of the first oral image.
[0081] Among them, the tooth condition assessment model is obtained by training the YOLOv8 network model using a sample data set. The sample data set includes several second oral images and the tooth conditions corresponding to each second oral image. The YOLOv8 network model includes a CBAM layer for capturing key features at multiple levels in the first oral image.
[0082] As a preferred solution, step S2 includes steps S21 to S22, and the details of each step are as follows:
[0083] Step S21, read the optimal weight parameter file, and export the optimal weight parameter file as an ONNX file.
[0084] It should be noted that by converting the optimal weight parameter file into an ONNX file, the model corresponding to the optimal weight parameter file can be deployed to a cloud server or a hardware processor, achieving cross-platform deployment of the model. The model corresponding to the optimal weight parameter file is a tooth condition assessment model.
[0085] In step S22, the ONNX file is called by calling the ONNXRunt ime library. Then, by calling the ONNX file, the tooth condition assessment model can be called for reasoning, multi-level feature extraction and fusion are performed on the first oral image, and based on the feature maps of multiple sizes obtained by fusion, the tooth condition assessment result of the first oral image is obtained.
[0086] The tooth condition assessment result of the first oral cavity image includes but is not limited to the position information of the box of the suspected tooth lesion area in the first oral cavity image, and the disease category and disease probability of the suspected tooth lesion area.
[0087] In this embodiment, the position information of the suspected dental lesion area box includes the coordinate information (x, y) of the upper left corner of the suspected dental lesion area box, the width w, and the height h of the suspected dental lesion area box. In addition, based on the coordinate information (x, y) of the upper left corner of the suspected dental lesion area box, the width w of the suspected dental lesion area box, the height h of the suspected dental lesion area box, and the disease category and disease probability of the suspected dental lesion area obtained in step S22, the matplotlib library can be used to draw a map of the first oral image to be detected, and the box of the suspected dental lesion area and its disease category and disease probability are marked in the drawn image to assist medical staff or other relevant personnel in understanding the current oral health status of the patient.
[0088] Please refer to Figure 4 , is a schematic diagram of the structure of a neural network-based tooth condition assessment system provided by an embodiment of the present invention. The system includes an image acquisition module M1 and a condition assessment module M2. The details of each module are as follows:
[0089] An image acquisition module M1 is used to acquire a first oral cavity image to be detected;
[0090] The state assessment module M2 is used to perform multi-level feature extraction and fusion on the first oral image through a preset tooth state assessment model, and perform state assessment on the teeth in the first oral image based on the feature maps of multiple sizes obtained by the fusion, to obtain the tooth state assessment result of the first oral image; wherein, the tooth state assessment model is obtained by training the YOLOv8 network model using a sample data set, and the sample data set includes several second oral images and the tooth state corresponding to each second oral image. The YOLOv8 network model includes a CBAM layer for capturing multiple levels of key features in the first oral image. The tooth state assessment result of the first oral image includes the coordinate position and disease category of the suspected tooth lesion area in the first oral image.
[0091] As a preferred solution, refer to Figure 4The embodiment of the present invention provides a tooth condition assessment system based on a neural network, further comprising a modeling training module M3, which is specifically as follows:
[0092] The modeling training module M3 is used to use the sample data set to train the YOLOv8 network model M times, record the weight parameter file of the current YOLOv8 network model after each training, and calculate and analyze the error rate of the current YOLOv8 network model as the performance index value corresponding to the weight parameter file of the current YOLOv8 network model; after completing the M times of training of the YOLOv8 network model, select the weight parameter file corresponding to the smallest performance index value from all weight parameter files as the optimal weight parameter file, and use the YOLOv8 network model corresponding to the optimal weight parameter file as the tooth condition evaluation model.
[0093] As a preferred solution, the status evaluation module M2 specifically includes a file reading unit 21 and a status evaluation unit 22. The details of each unit are as follows:
[0094] A file reading unit 21 is used to read the optimal weight parameter file and export the optimal weight parameter file as an ONNX file;
[0095] The state evaluation unit 22 is used to call the ONNX file, perform multi-level feature extraction and fusion on the first oral image, and perform state evaluation on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion to obtain a tooth state evaluation result of the first oral image; wherein the tooth state evaluation result of the first oral image includes the position information of the box of the suspected tooth lesion area in the first oral image, as well as the disease category and disease probability of the suspected tooth lesion area.
[0096] As a preferred solution, refer to Figure 4 The embodiment of the present invention provides a neural network-based tooth condition assessment system, which further includes a sample acquisition module M4, which is specifically as follows:
[0097] The sample acquisition module M4 is used to collect a plurality of second oral images and obtain the tooth status corresponding to each second oral image; wherein the tooth status corresponding to the second oral image includes the number of teeth and the disease category of the diseased teeth in the second oral image, and the disease category includes caries, periapical periodontitis and impacted teeth; using the annotation software, based on the tooth status corresponding to each second oral image, the suspected tooth lesion area in each second oral image is framed to generate one or more suspected tooth lesion area boxes in each second oral image, and generate a first label file corresponding to each second oral image; wherein the first label file corresponding to the second oral image includes the file name, storage path and size of the second oral image. Information, as well as the coordinate information and disease category ID of each tooth suspected lesion area box in the second oral image; according to the size information of each second oral image and the coordinate information of each tooth suspected lesion area box in each second oral image, the normalized center point coordinates and normalized size of each tooth suspected lesion area box are calculated, and based on the normalized center point coordinates and normalized size of each tooth suspected lesion area box in each second oral image, the first label file corresponding to each second oral image is updated to generate a second label file corresponding to each second oral image; a sample data set is constructed according to all second oral images and the second label files corresponding to each second oral image.
[0098] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0099] An embodiment of the present invention further provides a terminal comprising a processor, a memory, and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a neural network-based tooth condition assessment method described in Example 1.
[0100] Preferably, the computer program can be divided into one or more modules / units (e.g., computer program, computer program), one or more modules / units are stored in a memory and executed by a processor to implement the present invention. One or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal.
[0101] The processor may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the terminal, and various parts of the terminal are connected using various interfaces and lines.
[0102] The memory mainly includes a program storage area and a data storage area. The program storage area can store the operating system, at least one application required for a function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory or a non-volatile memory such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, and a flash memory card, etc., or other volatile solid-state memory devices.
[0103] It should be noted that the above-mentioned terminal may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal is merely an example and does not constitute a limitation on the terminal. It may include more or fewer components, or a combination of certain components, or different components.
[0104] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0105] The present invention provides a tooth condition assessment method, system and terminal based on a neural network. A tooth condition assessment model is obtained by training a YOLOv8 network model using a sample data set including several second oral images and the tooth conditions corresponding to each second oral image. The tooth condition assessment model can be provided with a mapping relationship between oral images and tooth conditions. The tooth condition assessment model is used to perform multi-level feature extraction and fusion on the first oral image to be detected, and based on the feature maps of multiple sizes obtained by fusion, the teeth in the first oral image are assessed to obtain a tooth condition assessment result of the first oral image, thereby realizing automatic detection of tooth lesion areas and assisting doctors or relevant personnel in performing oral clinical assessments. In addition, a dual-channel attention mechanism layer, the CBAM layer, is embedded in the YOLOv8 network model. The CBAM layer is mainly composed of a spatial attention mechanism module and a channel attention mechanism module. Channel attention improves the network's perception of key features by weighted combination of important channels, while spatial attention emphasizes important spatial positions, allowing the network to focus more on key areas and increase the perception domain. Through the CBAM layer, the tooth condition assessment model can fine-tune the features extracted from the input image in multiple dimensions, capture key features, and improve the expressiveness of the tooth condition assessment model, thereby optimizing the tooth detection capability of the tooth condition assessment model for oral images.
[0106] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for evaluating tooth condition based on neural network, characterized in that: include: Acquire a first oral cavity image to be detected; Through a preset tooth condition assessment model, multi-level feature extraction and fusion are performed on the first oral image, and based on the feature maps of multiple sizes obtained by fusion, the state of the teeth in the first oral image is assessed to obtain a tooth condition assessment result of the first oral image; wherein the tooth condition assessment model is obtained by training a YOLOv8 network model using a sample data set, the sample data set includes several second oral images and the tooth condition corresponding to each of the second oral images, and the YOLOv8 network model includes a CBAM layer for capturing key features at multiple levels in the first oral image.
2. A method for evaluating tooth condition based on neural network as claimed in claim 1, characterized in that: The tooth condition assessment model is obtained by: Using the sample data set, the YOLOv8 network model is trained M times, the weight parameter file of the current YOLOv8 network model is recorded when each training is completed, and the error rate of the current YOLOv8 network model is calculated and analyzed as the performance indicator value corresponding to the weight parameter file of the current YOLOv8 network model; After completing M times of training of the YOLOv8 network model, the weight parameter file corresponding to the smallest performance indicator value is selected from all the weight parameter files as the optimal weight parameter file, and the YOLOv8 network model corresponding to the optimal weight parameter file is used as the tooth condition evaluation model.
3. A method for evaluating tooth condition based on neural network as claimed in claim 2, characterized in that: The method further comprises: performing multi-level feature extraction and fusion on the first oral image through a preset tooth state evaluation model, and performing state evaluation on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion, so as to obtain a tooth state evaluation result of the first oral image, specifically: Read the optimal weight parameter file, and export the optimal weight parameter file as an ONNX file; The ONNX file is called to perform multi-level feature extraction and fusion on the first oral image, and based on the feature maps of multiple sizes obtained by fusion, the teeth in the first oral image are evaluated to obtain a tooth state evaluation result of the first oral image; wherein the tooth state evaluation result of the first oral image includes position information of a box of a suspected tooth lesion area in the first oral image, and a disease category and disease probability of the suspected tooth lesion area.
4. A method for evaluating tooth condition based on neural network as claimed in claim 1, characterized in that: The acquisition of the sample data set is specifically as follows: Collecting a plurality of second oral images, and obtaining tooth conditions corresponding to each of the second oral images; wherein the tooth conditions corresponding to the second oral images include the number of teeth and disease categories of diseased teeth in the second oral images, and the disease categories include caries, apical periodontitis, and impacted teeth; Using annotation software, based on the tooth status corresponding to each second oral image, frame processing is performed on the suspected tooth lesion area in each second oral image to generate one or more suspected tooth lesion area boxes in each second oral image, and generate a first label file corresponding to each second oral image; wherein the first label file corresponding to the second oral image includes the file name, storage path and size information of the second oral image, and the coordinate information and disease category ID of each suspected tooth lesion area box in the second oral image; Calculating the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes according to the size information of each of the second oral images and the coordinate information of each of the suspected tooth lesion area boxes in each of the second oral images, and updating the first label file corresponding to each of the second oral images based on the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes in each of the second oral images to generate a second label file corresponding to each of the second oral images; A sample data set is constructed according to all the second oral cavity images and the second label files corresponding to each of the second oral cavity images.
5. A method for evaluating tooth condition based on neural network as claimed in claim 1, characterized in that: The YOLOv8 network model includes: a Backbone module, a Neck module and a Detect Head module; The Backbone module includes several CBS layers, several C2f layers, multiple CBAM layers and multiple SPPF layers, which are used to extract features from the input oral image, and perceive and obtain multiple levels of key features from the feature extraction results through each CBAM layer; The Neck module includes multiple C2f layers, which are used to perform feature splicing and fusion on key features at different levels in the oral image, and then perform feature extraction on the splicing and fusion results to obtain feature maps of multiple sizes; The Detect Head module is used to perform target object detection on feature images of various sizes to obtain a tooth status evaluation result of the oral image.
6. A tooth condition assessment system based on neural network, characterized in that: include: An image acquisition module, used for acquiring a first oral cavity image to be detected; A state assessment module is used to perform multi-level feature extraction and fusion on the first oral image through a preset tooth state assessment model, and perform state assessment on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion, so as to obtain a tooth state assessment result of the first oral image; wherein the tooth state assessment model is obtained by training a YOLOv8 network model using a sample data set, the sample data set includes a plurality of second oral images, and the tooth state corresponding to each of the second oral images, and the YOLOv8 network model includes a CBAM layer for capturing multiple levels of key features in the first oral image.
7. A tooth condition assessment system based on neural network as claimed in claim 6, characterized in that: Also includes: The modeling training module is used to use the sample data set to train the YOLOv8 network model M times, record the weight parameter file of the current YOLOv8 network model when completing each training, and calculate and analyze the error rate of the current YOLOv8 network model as the performance index value corresponding to the weight parameter file of the current YOLOv8 network model; after completing the M times of training of the YOLOv8 network model, select the weight parameter file corresponding to the smallest performance index value from all the weight parameter files as the optimal weight parameter file, and use the YOLOv8 network model corresponding to the optimal weight parameter file as the tooth condition evaluation model.
8. A tooth condition assessment system based on neural network as claimed in claim 7, characterized in that: The state assessment module specifically includes: A file reading unit, used for reading the optimal weight parameter file and exporting the optimal weight parameter file as an ONNX file; The state evaluation unit is used to call the ONNX file, perform multi-level feature extraction and fusion on the first oral image, and perform state evaluation on the teeth in the first oral image based on the feature maps of multiple sizes obtained by fusion, so as to obtain the tooth state evaluation result of the first oral image; wherein the tooth state evaluation result of the first oral image includes the position information of the box of the suspected tooth lesion area in the first oral image, and the disease category and disease probability of the suspected tooth lesion area.
9. A tooth condition assessment system based on neural network as claimed in claim 6, characterized in that: Also includes: A sample acquisition module is used to collect a plurality of second oral images and obtain the tooth status corresponding to each of the second oral images; wherein the tooth status corresponding to the second oral image includes the number of teeth and the disease category of the diseased teeth in the second oral image, and the disease category includes caries, apical periodontitis and impacted teeth; using annotation software, based on the tooth status corresponding to each of the second oral images, the suspected tooth lesion area in each of the second oral images is framed to generate one or more suspected tooth lesion area boxes in each of the second oral images, and generate a first label file corresponding to each of the second oral images; wherein the first label file corresponding to the second oral image includes the file name, storage path and size information of the second oral image , and the coordinate information and disease category ID of each of the suspected tooth lesion area boxes in the second oral image; calculate the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes according to the size information of each of the second oral images and the coordinate information of each of the suspected tooth lesion area boxes in the second oral images, and based on the normalized center point coordinates and normalized size of each of the suspected tooth lesion area boxes in the second oral images, update the first label file corresponding to each of the second oral images to generate a second label file corresponding to each of the second oral images; construct a sample data set based on all the second oral images and the second label files corresponding to each of the second oral images.
10. A terminal, characterized in that: It comprises a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a neural network-based tooth condition assessment method as described in any one of claims 1 to 5.
Citation Information
Cited By
Self-adaptive tooth washing adjusting system and dental comprehensive treatment machine using same
CN118942729A
Improved YOLOv11-based abutment tooth selection multi-element analysis method
CN120543481A
Tooth state intelligent analysis method and system based on oral photography
CN121506409A
Oral disease detection method based on large artificial intelligence model
WO2026056452A1
