Caries detection method, system and readable storage medium based on hybrid model

By using a multi-detection fusion method of hybrid models and self-attention mechanisms on dental X-ray panoramic films, the problem of poor caries detection in the existing technology is solved, high-accuracy caries detection is achieved, and dentists' experience is improved. Work efficiency.

CN116363083BActive Publication Date: 2024-08-23AFFILIATED STOMATOLOGICAL HOSPITAL OF NANCHANG UNIV (JIANGXI PROVINCIAL STOMATOLOGICAL HOSPITAL) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310257029.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-08-23
Estimated Expiration
2043-03-16

AI Technical Summary

Technical Problem

The existing dental X-ray panoramic caries detection model has poor application effect in medical images, resulting in a low caries detection rate and a high false positive rate, which limits the medical efficiency of the technology in clinical practice.

Method used

A caries detection method based on a hybrid model is used to obtain the alveolar bone area map, combine the caries target detection model and the tooth target detection model, use the instance segmentation algorithm and classifier to perform multiple detections and fusion, and combine the self-attention mechanism and target voting Classification algorithm to improve detection accuracy.

Benefits of technology

It significantly improves the detection rate of dental caries detection and reduces the false alarm rate, achieves highly accurate dental caries detection results, and improves the work efficiency of dentists.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116363083B
    Figure CN116363083B
Patent Text Reader

Abstract

The present invention discloses a caries detection method, system and readable storage medium based on a hybrid model. The caries detection method comprises: obtaining an alveolar bone region map; detecting and segmenting individual teeth to obtain a first caries set; obtaining a tooth rectangular region map and a tooth segmentation map; inputting the tooth rectangular region map into a first classifier, performing caries feature-related detection and segmentation to obtain a second caries set; inputting the tooth segmentation map into a second classifier to obtain a third caries set; fusing the caries set results to obtain caries detection results. The caries detection method provided by the present invention can accurately extract and fuse the caries detection results of multiple models in an image, thereby improving the accuracy of tooth instances and caries instances; using a specific result fusion algorithm, the confidence of different detection processes for the same target is retained, and by accumulating the weights of the confidence, a more accurate caries detection result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image detection technology, and in particular to a caries detection method, system and readable storage medium based on a hybrid model. Background Art

[0002] Caries is a common disease of dental hard tissues, characterized by bacterial erosion of teeth, which leads to the formation of small holes or lesions on the teeth. Normal enamel and dentin are constantly damaged and lost until the protection of the dental pulp is lost. It is the main cause of pulpitis and apical periodontitis.

[0003] Panoramic dental X-rays are a common medical imaging technology used in clinical practice for dental caries inspection. This technology can capture a comprehensive view of teeth and surrounding tissue structures. By observing panoramic X-rays, the characteristics of dental caries can be found, such as tiny lesions formed by the loss of hard tissue on the tooth surface. Fast and effective caries localization analysis can help dentists detect and treat early dental caries in a timely manner, thereby preventing dental diseases from becoming more serious. However, manual dental inspections based on panoramic X-rays are a labor-intensive and time-consuming task. In addition, the shortage of dental resources in local areas due to factors such as uneven distribution of medical resources and rapid population growth has limited the medical efficiency of this imaging technology to a certain extent.

[0004] In recent years, with the explosive growth of data and the substantial improvement of hardware level, deep learning models have been widely used in different fields, especially in the field of medical health. Driven by clinical needs, general object detection and segmentation models based on deep learning are increasingly used in the field of medical imaging.

[0005] However, current general object detection models are usually designed for objects and feature distribution in natural images. Therefore, the models usually perform poorly when used for imaging data obtained in special scenarios such as medical images.

[0006] Specifically, compared to most natural images, dental X-ray panoramic films have high resolution, relatively concentrated effective information locations, a large number of tooth targets, and complex caries features, which pose special challenges to the target detection model. Without further improvement and adaptation, the caries analysis results are poor. For example, a low caries detection rate will force dentists to re-examine, or a high false positive tooth detection rate will increase the workload of dentists, ultimately making the technology unusable in actual clinical applications. Summary of the invention

[0007] In view of the deficiencies in the prior art, an object of the present invention is to provide a caries detection method, system and readable storage medium based on a hybrid model.

[0008] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention includes:

[0009] In a first aspect, the present invention provides a caries detection method based on a hybrid model, comprising:

[0010] Based on dental X-rays, obtain a map of the alveolar bone area;

[0011] Using a caries target detection model, based on an instance segmentation algorithm, the tooth individuals in the alveolar bone region map are detected and segmented with respect to caries features to obtain a first caries set;

[0012] Using a tooth target detection model, based on an instance segmentation algorithm, the teeth in the alveolar bone region map are detected and segmented to obtain a tooth rectangular region map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the tooth individual;

[0013] Inputting the tooth rectangular region map into a first classifier, performing caries feature-related detection and segmentation on individual teeth in the tooth rectangular region map, and obtaining a second caries set;

[0014] Inputting the tooth segmentation map into a second classifier, performing caries feature-related detection and segmentation on individual teeth in the tooth segmentation map, and obtaining a third caries set;

[0015] The first caries set, the second caries set and the third caries set are fused to obtain a caries detection result.

[0016] In a second aspect, the present invention further provides a caries detection system based on a hybrid model, comprising:

[0017] A regional map module, used to obtain alveolar bone regional maps based on dental X-rays;

[0018] A caries target detection model, for performing caries feature-related detection and segmentation on individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a first caries set;

[0019] A tooth target detection model is used to detect and segment the individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a tooth rectangular region map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the individual teeth;

[0020] A first classifier is used to detect and segment the caries features of the individual teeth in the tooth rectangular area map to obtain a second caries set;

[0021] A second classifier is used to detect and segment the caries features of the individual teeth in the tooth segmentation image to obtain a third caries set;

[0022] And, a result fusion module is used to fuse the results of the first caries set, the second caries set and the third caries set to obtain a caries detection result.

[0023] In a third aspect, the present invention further provides a readable storage medium storing a computer program, which executes the steps of the above-mentioned caries detection method when executed.

[0024] Based on the above technical solution, compared with the prior art, the beneficial effects of the present invention at least include:

[0025] The caries detection method provided by the present invention is a process-based image analysis method based on a combination of multiple types of deep learning models. It can accurately extract and fuse the results of caries detection in an image from multiple models. It adopts an alveolar bone detection model based on a deep learning target detection algorithm to extract the local alveolar bone area, thereby narrowing the detection range for subsequent caries detection models and tooth detection models, thereby improving the efficiency of model detection; two independent but structurally identical deep learning target segmentation models are used to optimize the traditional detection head using a self-attention mechanism, and the traditional convolutional layer is replaced by a self-attention layer, ultimately improving the accuracy of tooth instances and caries instances; a specific result fusion algorithm is used to retain the confidence of different detection processes for the same target, and by accumulating the weights of the confidence, a more accurate caries detection result is obtained.

[0026] The above description is only an overview of the technical solution of the present invention. In order to enable those skilled in the art to more clearly understand the technical means of the present application and implement them according to the contents of the specification, the following is a description of the preferred embodiments of the present invention in conjunction with detailed drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a schematic flow chart of a caries detection method provided by a typical embodiment of the present invention;

[0028] Figure 2 It is a schematic diagram of the structure and operation flow of a target detection model provided by a typical implementation scheme of the present invention;

[0029] Figure 3 It is a schematic diagram of the structure and operation flow of the self-attention layer provided by a typical implementation scheme of the present invention. DETAILED DESCRIPTION

[0030] In view of the deficiencies in the prior art, the inventor of this case has proposed the technical solution of the present invention after long-term research and extensive practice. The technical solution, its implementation process and principle will be further explained as follows.

[0031] In order to improve the effect of caries detection in high-definition dental X-ray images based on deep learning algorithms, this paper invented a caries detection method based on a hybrid deep learning model. After being applied to image target detection, the method described in this invention can greatly improve the system's detection rate of caries and reduce the false alarm rate compared to the effect of single model detection.

[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0033] Moreover, relational terms such as “first” and “second” are merely used to distinguish one component or method step from another with the same name, but do not necessarily require or imply any such actual relationship or order between these components or method steps.

[0034] See also Figure 1 The embodiment of the present invention provides a method for detecting dental caries based on a hybrid model, which comprises the following steps:

[0035] Based on dental radiographs, a map of the alveolar bone area was obtained.

[0036] A caries target detection model is adopted, and caries feature-related detection and segmentation are performed on individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a first caries set.

[0037] A tooth target detection model is used to detect and segment the individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a tooth rectangular region map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the individual teeth.

[0038] The tooth rectangular region map is input into a first classifier, and caries feature-related detection and segmentation are performed on individual teeth in the tooth rectangular region map to obtain a second caries set.

[0039] The tooth segmentation map is input into a second classifier, and caries feature-related detection and segmentation are performed on individual teeth in the tooth segmentation map to obtain a third caries set.

[0040] The first caries set, the second caries set and the third caries set are fused to obtain a caries detection result.

[0041] Some technical solutions for multi-model fusion have also appeared in other fields of the prior art, but the usual technical solutions for multi-model result fusion are generally based on the combination of a coarse model and a refined model, for example, only the first caries set and the second caries set are fused, or only the first caries set and the third caries set are fused. Based on the shortcomings of the above-mentioned traditional fusion method discovered by the inventor, the present invention adopts a specific three-model (i.e., a coarse model plus two refined models with different inputs) fusion implementation method, the specific reasons are:

[0042] During the training process, the caries target detection model will include the position information of the teeth. The occurrence of caries is also related to its position in the mouth. Therefore, the first caries set obtained will take the spatial information of caries into account; the caries identified by the first classifier can better integrate the environmental information of the teeth with caries into the classifier. The occurrence of caries is also related to its surrounding environment. Therefore, the second caries set obtained can better take the environmental information into account; the caries identified by the second classifier can concentrate the classification features of the teeth themselves and remove the classification burden of background noise on the classifier model. Therefore, the third caries set obtained can better evaluate the degree of caries of the teeth themselves; the three types of caries are fused through their position information and confidence information, which is also an effective combination of the positional advantages of the first caries set, the environmental advantages of the second caries, and the dental symptom information of the third caries. Therefore, their final combined results are better than the results of any two or a single set.

[0043] Based on the above technical solution, the method of the present invention is a hybrid model-based automatic caries detection method, which is a process-based image analysis method based on a combination of multiple types of deep learning models. Its technical implementation includes building an automated caries detection process based on high-definition X-ray panoramic films and deep learning network models of different types and functions that each step in the automated process relies on.

[0044] It also includes an alveolar bone detection model based on a deep learning target detection algorithm, which extracts the local alveolar bone area from high-definition X-ray images. It also includes two independent but structurally identical deep learning target segmentation models, which use a self-attention mechanism to optimize the traditional detection head, one of which (i.e., the tooth target detection model) is used for the detection and segmentation of individual teeth, and the other (i.e., the caries target detection model) is used for the initial screening of caries locations.

[0045] It should be noted that the model structures of the above two deep learning target segmentation models are the same, and both use the self-attention caries detection model provided by the present invention. They are for implementing different steps in the process and generally do not affect each other. Of course, those skilled in the art use different model structures to achieve the equivalent effects of the above two segmentation models, which also falls within the scope of protection of the present invention, and is not limited to the structures of the above two segmentation models being exactly the same.

[0046] The above technical solution also includes two independent deep learning classifier models, which classification model can, for example, adopt the current common neural network image classifier model (such as Resnet, EfficientNet, ConvNext, SwinTransformer, etc.), one of the independent classification models (i.e., the second classifier) ​​takes a single tooth segmentation map as input to predict caries and non-caries, and the other independent classification model (i.e., the first classifier) ​​takes a local rectangular screenshot of a single tooth as input to predict caries and non-caries.

[0047] Finally, it also includes a target voting classification algorithm, which fuses the prediction results of multiple categories to obtain a final caries detection result with higher accuracy.

[0048] The method of the present invention is a hybrid model-based automatic caries detection method, which is a process-based image analysis method based on a combination of multiple types of deep learning models. Its technical implementation includes building an automated caries detection process based on high-definition X-ray panoramic films and deep learning network models of different types and functions that each step in the automated process relies on. The process can effectively fuse the results of multiple deep learning models and ultimately obtain more accurate target detection results.

[0049] As some typical application examples of the above technical solution, the following specific processes can be used to implement the above caries detection method:

[0050] a. Extract alveolar bone images from high-definition dental X-ray images using the target detection model: Obtain a high-definition dental X-ray panoramic film and input the image into the tooth ROI (region of interest, the same below) extraction model based on the target detection method. The model automatically obtains the tooth ROI and maps the rectangular area expressed by the ROI to the original image, obtaining the alveolar bone area map as the input for the next step.

[0051] b. Use the instance segmentation model to roughly detect caries in the alveolar bone image: Taking the alveolar bone area map in step a as input, the image will enter a caries target detection model based on the instance segmentation algorithm, which can roughly detect and segment individual teeth with caries characteristics.

[0052] c. Use the instance segmentation model to detect teeth in the alveolar bone image: Taking the alveolar bone area map in step a as input, the image will enter a tooth target detection model based on the instance segmentation algorithm. This model can accurately detect and segment all individual teeth in the image. The representation of each individual tooth includes a tooth rectangular area map and a tooth segmentation map.

[0053] d. Use the image classifier model to detect whether a single tooth rectangular image is caries: Taking the individual tooth rectangular area image in step c as input, the image will enter a first classifier based on a deep learning model, which will determine whether the tooth image is caries and give the confidence of the caries classification.

[0054] e. Use the image classifier model to detect whether a single tooth segmentation image is caries: Taking the individual tooth segmentation map in step c as input, the image will enter a second classifier based on a deep learning model, which will determine whether the tooth image is caries and give the confidence of the caries classification.

[0055] f. Mixing and fusing the detection results of multiple models: Fusing the results in step b, step d and step e, and finally obtaining a caries detection result with higher accuracy.

[0056] It should be noted that, in the present invention, the condition that determines the order of implementation of each step is the internal logical connection between the steps, rather than the above-mentioned textual order. For example, the above-mentioned steps b and c can be performed simultaneously or in any order, and the same is true for steps d and e.

[0057] In some embodiments, the caries target detection model and / or tooth target detection model comprises a self-attention mechanism.

[0058] For specific implementation, see Figure 2 In some embodiments, the caries target detection model and / or tooth target detection model includes a detection branch and a segmentation branch.

[0059] The detection branch includes multiple layers of first self-attention layers and fully connected layers connected in sequence.

[0060] The segmentation branch includes multiple layers of second self-attention layers.

[0061] The dental caries detection method specifically comprises:

[0062] Feature extraction is performed on the alveolar bone region map to obtain an initial feature map.

[0063] The initial feature map is made to obtain position category information through the detection branch, and obtain segmentation information through the segmentation branch.

[0064] The position category information and the segmentation information constitute the first caries set, or the position category information is used to obtain the tooth rectangular area map, and the segmentation information is used to obtain the tooth segmentation map.

[0065] For more specific details, see Figure 3 In some preferred embodiments, the first self-attention layer and / or the second self-attention layer include parallel spatial-related self-attention dimensions and channel-related self-attention dimensions.

[0066] The input feature matrix of the first self-attention layer and / or the second self-attention layer obtains the first sub-feature and the second sub-feature respectively through the spatial-correlated self-attention dimension and the channel-correlated self-attention dimension.

[0067] The first sub-feature and the second sub-feature are fused to generate the output feature matrix of the first self-attention layer and / or the second self-attention layer. The feature matrix can be analyzed from two dimensions. The first dimension is the spatial dimension, i.e. Figure 3 The dimension of the feature matrix in the (w, h) direction is shown, and the second dimension is the channel dimension, that is, Figure 3 In the feature matrix shown in the figure, the spatial-related self-attention layer is mainly used to optimize each feature point in the (w, h) direction, and the channel-related self-attention layer is mainly used to optimize each feature layer in the (c) direction. The two dimensions are optimized in parallel and then superimposed to finally generate a feature matrix with full-dimensional optimization.

[0068] In the above technical solution, a deep learning network model based on the self-attention algorithm was designed and implemented to solve the problem of automatic caries detection in high-definition dental X-ray panoramic films. The self-attention algorithm was used in the target detection head of the model, which has a higher target detection rate than the original segmentation detection model. The model is applied to steps b and c in the above implementation process.

[0069] In some embodiments, the first caries set includes first caries location information and a first confidence level indicating whether the individual tooth has caries; the second caries set includes second caries location information and a second confidence level indicating whether the individual tooth has caries; and the third caries set includes third caries location information and a third confidence level indicating whether the individual tooth has caries.

[0070] The result fusion specifically includes:

[0071] The first caries set, the second caries set and the third caries set are merged to obtain a merged set.

[0072] The redundant caries in the combined set are removed, but the corresponding confidences of the removed redundant caries are retained.

[0073] The first confidence, the second confidence and the third confidence corresponding to the individual tooth are linearly weighted combined to obtain a combined confidence.

[0074] Based on the size of the combined confidence, it is determined whether the corresponding individual tooth is carious.

[0075] In the above technical solution, the present invention designs and implements a multi-model caries target fusion algorithm for the problem of automatic caries detection in high-definition dental X-ray panoramic films. The algorithm is applied to step f in the above overall process. The algorithm includes the following two steps:

[0076] 1. IOU-based caries relocation algorithm.

[0077] 2. Caries determination method based on confidence accumulation.

[0078] In some embodiments, when there is a default confidence value for an individual tooth in the merged set, the default confidence value is assigned a value of 0.

[0079] In some embodiments, the method used to remove the redundant caries is a non-maximum suppression algorithm.

[0080] In some embodiments, a confidence threshold is set, and when the combined confidence is above the confidence threshold, the corresponding individual tooth is determined to be carious.

[0081] In some embodiments, the process of result fusion is expressed as:

[0082]

[0083]

[0084]

[0085]

[0086] in, represents the merged set; S1 represents the first caries set; S b represents the second caries set; S s represents the third caries set.

[0087] represents the caries set after removing redundant caries; x i represents the horizontal coordinate of the tooth individual; i represents the ordinate of the tooth; w i represents the image width of the tooth; h irepresents the image height of the individual tooth; represents the first confidence level; represents the second confidence level; Represents the third confidence level; segs i A set of coordinate points representing the segmentation contour of the individual tooth; Represents the number of individual teeth in the caries set.

[0088] represents the combined confidence.

[0089] S f represents the set of teeth that are finally judged to be caries; m f represents the number of teeth that are finally judged to be caries; λ represents the preset confidence threshold.

[0090] The above constants α, β, and γ can be adaptively set according to model requirements, for example, they are all 1 / 3, or 0.2, 0.4, 0.4, etc. in sequence.

[0091] As a derivative of the above implementation process, an embodiment of the present invention also provides a caries detection system based on a hybrid model, which includes:

[0092] The regional map module is used to obtain the alveolar bone regional map based on dental X-rays.

[0093] The caries target detection model is used to detect and segment individual teeth in the alveolar bone area map based on an instance segmentation algorithm to obtain a first caries set.

[0094] The tooth target detection model is used to detect and segment the individual teeth in the alveolar bone area map based on an instance segmentation algorithm to obtain a tooth rectangular area map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the individual teeth.

[0095] The first classifier is used to detect and segment the caries features of the individual teeth in the tooth rectangular area map to obtain a second caries set.

[0096] The second classifier is used to detect and segment the caries features of the individual teeth in the tooth segmentation image to obtain a third caries set.

[0097] And, a result fusion module is used to fuse the results of the first caries set, the second caries set and the third caries set to obtain a caries detection result.

[0098] In some embodiments, the caries target detection model and / or tooth target detection model includes a feature extraction layer as well as a detection branch and a segmentation branch.

[0099] The detection branch includes multiple layers of first self-attention layers and fully connected layers connected in sequence.

[0100] The segmentation branch includes multiple layers of second self-attention layers.

[0101] In some embodiments, the first self-attention layer and / or the second self-attention layer include parallel spatially-dependent self-attention dimensions and channel-dependent self-attention dimensions.

[0102] The input feature matrix of the first self-attention layer and / or the second self-attention layer obtains the first sub-feature and the second sub-feature respectively through the spatial-correlated self-attention dimension and the channel-correlated self-attention dimension.

[0103] The first sub-feature and the second sub-feature are fused to generate an output feature matrix of the first self-attention layer and / or the second self-attention layer.

[0104] In some embodiments, the result fusion module includes:

[0105] The set merging unit is used to merge the first caries set, the second caries set and the third caries set to obtain a merged set.

[0106] The redundancy removal unit is used to remove the redundant caries in the combined set, but retain the corresponding confidence of the removed redundant caries.

[0107] The weighted merging unit is used to perform linear weighted merging on the first confidence, the second confidence and the third confidence corresponding to the individual tooth to obtain a combined confidence.

[0108] The final determination unit is used to determine whether the corresponding tooth individual is caries based on the size of the combined confidence.

[0109] As a very typical implementation case of the above-mentioned embodiment, the present invention provides the following specific process examples so that those skilled in the art can fully understand the inventive concept of the present invention and implement it:

[0110] Example 1

[0111] The alveolar bone detection model F1 based on deep learning target detection algorithm is adopted. The first level of the model extracts the coordinate tuple (x1, y1, w1, h1) of the local alveolar bone area from the high-definition X-ray image I0, where x1 and y1 represent the starting coordinates of the horizontal and vertical axes of the pixel Euclidean coordinate system of the alveolar bone area on the original image with the upper left corner as the origin (the same coordinate system will be used if image coordinates are extracted later), and w1 and h1 represent the width and height of the alveolar bone area, respectively.

[0112] The second level of the model consists of two independent but structurally identical deep learning object segmentation models. and The model uses the self-attention mechanism to optimize the traditional detection head, where an independent model For the initial screening of caries locations, another independent model Used for teeth detection and segmentation.

[0113] The third level of the model consists of two independent deep learning classifier models and This classification model uses the current common neural network image classifier model (such as Resnet, EfficientNet, ConvNext, SwinTransformer, etc.), one of which is an independent classification model Taking a partial rectangular screenshot of a single tooth as input, predict caries and non-caries, and another independent classification model Taking a single tooth segmentation image as input, predict carious and non-carious teeth.

[0114] The fourth level of the model includes a target relocation fusion algorithm F4, which matches and fuses multiple types of prediction results to ultimately obtain caries detection results with higher accuracy.

[0115] Corresponding to the above implementation model, the following specific process is used to detect caries:

[0116] a. Obtain a high-definition dental X-ray panoramic film and input the original image I0 into the tooth ROI extraction model based on the target detection method. The model automatically obtains the alveolar bone coordinate tuple (x1, y1, w1, h1) = F1(I0), and maps the rectangular area represented by the coordinate tuple to the original image, obtaining the alveolar bone area map I1 as the input for the next step.

[0117] b. Taking the alveolar bone region image I1 as input, the image will enter a caries target detection model based on the instance segmentation algorithm. The model can roughly detect and segment teeth with caries characteristics, that is, the caries set The caries set can be expressed as S1 = {(x i ,y i , w i ,h i ,s i , segs i )|i∈[0…n]}, where n represents the number of caries detected, x i ,y i , w i ,h iRepresents the image rectangle coordinates of the i-th caries detected, s i Represents the confidence of the predicted caries, segs i Represents the set of segmentation point coordinates of the caries.

[0118] c. Taking the alveolar bone region image I1 in step a as input, the image will enter a tooth target detection model based on the instance segmentation algorithm In this paper, the model can roughly detect and segment the tooth set. The tooth set can be represented as S2 = {(x i ,y i , w i ,h i ,s i , segs i )|i∈[0…m]}, where m represents the number of teeth detected, x i ,y i , w i ,h i Represents the image rectangle coordinates of the detected i-th tooth, s i Represents the confidence of the predicted tooth, segs i Represents the set of segmentation point coordinates of the tooth.

[0119] d. Take the tooth individual rectangular area image in step c as input, which is Here ROI b (·) represents the operation of obtaining a local area of ​​the image using rectangular coordinates. Will enter a classifier based on a deep learning model The classifier determines the Whether it is caries and give the confidence of caries classification Use this result to filter out the caries set from set s2

[0120] e. Take the tooth individual segmentation map in step c as input, which is Here ROI s (·) represents the operation of obtaining the local area of ​​the image using the segmentation point coordinate set. Will enter a classifier based on a deep learning model The classifier determines the Whether it is caries and give the confidence of caries classification Use this result to filter out the caries set from set S2

[0121] f. Combine the caries in step b, step d and step e, and use the fusion algorithm F4(·) to finally obtain a caries set S with higher accuracy. f =F4(S1,S b , S s ).

[0122] Specifically, in the above process, a deep learning network model based on the self-attention mechanism was designed and implemented to solve the problem of automatic caries detection in high-definition dental X-ray panoramic films. Figure 2 As shown in the figure, the main technical means of this model is to use the self-attention layer instead of the traditional convolutional neural network layer in the prediction head of the model. The target detection branch uses 2 rounds of self-attention layers to optimize the feature matrix, and the segmentation branch uses 4 rounds of self-attention layers, which improves the accuracy of the target detection head in target position detection, target classification, and target segmentation. Figure 3 As shown, the self-attention mechanism described in the present invention optimizes the feature matrix from two dimensions, the first dimension is the w×h spatial dimension, and the second dimension is the channel c dimension; the self-attention mechanism algorithm is used in the target detection head of the model, and compared with the instance segmentation detection model of the original pure convolutional neural network layer, it has a higher target detection rate. The model is applied to steps b and c in the above process.

[0123] In another specific aspect, a multi-model caries target fusion algorithm F4 was designed and implemented to solve the problem of automatic caries detection in high-definition dental X-ray panoramic films. The algorithm is applied to step f in the above process. The algorithm includes the following two steps:

[0124] f-1: The IOU-based caries relocation algorithm consists of the following two steps:

[0125] 1-1. Merge S1, S b , S s , get the caries collection Gather at this time Contains redundant detection targets.

[0126] 1-2. Use non-maximum suppression algorithm to remove The redundant detection targets are retained, but the targets from S1 and S b , S s Confidence The default value of target confidence in different sets is 0; remove The caries set after redundant detection target is

[0127]

[0128] f-2: The dental caries determination method based on confidence accumulation includes the following two steps:

[0129] 2-1. Traverse each caries detection target and weightedly combine the confidence contained in it: Among them, α+β+γ=1.

[0130] 2-2. Set the threshold λ, when Keep the caries target, otherwise delete it, and finally get

[0131] Correspondingly, an embodiment of the present invention also provides a readable storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed, the steps of the caries detection method provided in any of the above-mentioned embodiments are executed.

[0132] By adopting the above exemplary technical scheme and based on actual tests of professional manually labeled images, the above implementation case achieved a detection rate of up to 95.2% and a false positive alarm rate as low as 14%. In contrast, the single target detection model using the non-self-attention mechanism in the prior art has a detection rate of only 82% and a false positive alarm rate of up to 27%, which usually requires medical workers to spend a lot of time to verify or correct.

[0133] No matter what form a person skilled in the art adopts to implement the technical concept of the present invention, including but not limited to providing a specific independent hardware system, software system, and distributed hardware and software system, or using any readable storage medium to store, transfer or sell a program that can implement the above-mentioned technical solution, it should fall within the scope of protection of the present invention.

[0134] Based on the above implementation cases, it can be clearly seen that the caries detection method provided in the embodiments of the present invention is a process-based image analysis method based on a combination of multiple types of deep learning models, which can accurately extract and fuse the results of caries detection in images from multiple models, and adopt an alveolar bone detection model based on a deep learning target detection algorithm to extract the local alveolar bone area, thereby narrowing the detection range for subsequent caries detection models and tooth detection models, thereby improving the efficiency of model detection; two independent but structurally identical deep learning target segmentation models use a self-attention mechanism to optimize the traditional detection head, replacing the traditional convolutional layer with a self-attention layer, and ultimately improving the accuracy of tooth instances and caries instances; using a specific result fusion algorithm, the algorithm retains the confidence of different detection processes for the same target, and accumulates the weights of the confidence to obtain a more accurate caries detection result.

[0135] It should be understood that the above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A caries detection method based on a hybrid model, characterized in that: include: Based on dental X-rays, obtain a map of the alveolar bone area; Using a caries target detection model, based on an instance segmentation algorithm, the tooth individuals in the alveolar bone region map are detected and segmented in relation to caries features to obtain a first caries set, wherein the first caries set includes first caries position information indicating whether the tooth individuals are caries and a first confidence level; A tooth target detection model is adopted to detect and segment the individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a tooth rectangular region map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the individual tooth; wherein the caries target detection model and the tooth target detection model include a detection branch and a segmentation branch and contain a self-attention mechanism; the detection branch includes multiple first self-attention layers and a fully connected layer connected in sequence; the segmentation branch includes multiple second self-attention layers; and the obtaining of the tooth rectangular region map and the tooth segmentation map is specifically as follows: feature extraction is performed on the alveolar bone region map to obtain an initial feature map; the initial feature map is made to obtain position category information through the detection branch, and segmentation information is obtained through the segmentation branch; the position category information and segmentation information constitute the first caries set, and the position category information is used to obtain the tooth rectangular region map, and the segmentation information is used to obtain the tooth segmentation map; Inputting the tooth rectangular area map into a first classifier, performing caries feature-related detection and segmentation on individual teeth in the tooth rectangular area map, and obtaining a second caries set, wherein the second caries set includes second caries position information indicating whether the individual tooth is caries and a second confidence level; Inputting the tooth segmentation map into a second classifier, performing caries feature-related detection and segmentation on individual teeth in the tooth segmentation map, and obtaining a third caries set, wherein the third caries set includes third caries position information indicating whether the individual tooth is caries and a third confidence level; The first caries set, the second caries set and the third caries set are merged to obtain a caries detection result, specifically: the first caries set, the second caries set and the third caries set are merged to obtain a merged set; redundant caries in the merged set are removed, but the corresponding confidences of the removed redundant caries are retained; the first confidence, the second confidence and the third confidence corresponding to the tooth individual are linearly weighted to obtain a merged confidence; based on the size of the merged confidence, it is determined whether the corresponding tooth individual is caries.

2. The method for detecting dental caries according to claim 1, characterized in that: The first self-attention layer and the second self-attention layer include parallel spatial-dependent self-attention dimensions and channel-dependent self-attention dimensions; The input feature matrix of the first self-attention layer and / or the second self-attention layer obtains the first sub-feature and the second sub-feature respectively through the spatial correlation self-attention dimension and the channel correlation self-attention dimension; The first sub-feature and the second sub-feature are fused to generate an output feature matrix of the first self-attention layer and / or the second self-attention layer.

3. The method for detecting dental caries according to claim 1, characterized in that: When there is a default confidence value for an individual tooth in the combined set, the default confidence value is assigned as 0.

4. The method for detecting dental caries according to claim 1, characterized in that: The method used to remove the redundant caries is a non-maximum suppression algorithm.

5. The method for detecting dental caries according to claim 1, characterized in that: A confidence threshold is set, and when the combined confidence is above the confidence threshold, the corresponding individual tooth is determined to be caries.

6. The method for detecting dental caries according to claim 1, characterized in that: The process of result fusion is expressed as: in, represents the merged set; S1 represents the first caries set; S b represents the second caries set; S s represents the third caries set; represents the caries set after removing redundant caries; x i represents the horizontal coordinate of the tooth individual; i represents the ordinate of the tooth; w i represents the image width of the tooth; h i represents the image height of the individual tooth; represents the first confidence level; represents the second confidence level; Represents the third confidence level; segs i A set of coordinate points representing the segmentation contour of the individual tooth; represents the number of individual teeth in the caries set; represents the combined confidence; S f represents the set of teeth that are finally judged to be caries; m f represents the number of teeth that are finally judged to be caries; λ represents the preset confidence threshold.

7. A caries detection system based on a hybrid model, characterized in that: include: A regional map module, used to obtain alveolar bone regional maps based on dental X-rays; A caries target detection model, for performing caries feature-related detection and segmentation on individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a first caries set, wherein the first caries set includes first caries position information indicating whether the individual tooth is caries and a first confidence level; A tooth target detection model is used to detect and segment the individual teeth in the alveolar bone region map based on an instance segmentation algorithm to obtain a tooth rectangular region map and a tooth segmentation map, wherein the tooth segmentation map only retains the image of the individual teeth; a first classifier, configured to detect and segment the tooth individuals in the tooth rectangular region map, and obtain a second caries set, wherein the second caries set includes second caries position information indicating whether the tooth individuals are caries and a second confidence level; a second classifier, configured to detect and segment the individual teeth in the tooth segmentation map in relation to caries features, to obtain a third caries set, wherein the third caries set includes third caries position information indicating whether the individual tooth is caries and a third confidence level; And, a result fusion module, used for fusing the results of the first caries set, the second caries set and the third caries set to obtain a caries detection result, specifically comprising: a set merging unit, used for merging the first caries set, the second caries set and the third caries set to obtain a merged set; a redundancy removal unit, used for removing redundant caries in the merged set, but retaining the corresponding confidence of the removed redundant caries; a weighted merging unit, used for performing linear weighted merging of the first confidence, the second confidence and the third confidence corresponding to the tooth individual to obtain a merged confidence; a final determination unit, used for determining whether the corresponding tooth individual is caries based on the size of the merged confidence; The caries target detection model and the tooth target detection model include a detection branch and a segmentation branch and contain a self-attention mechanism; the detection branch includes multiple first self-attention layers and a fully connected layer connected in sequence; the segmentation branch includes multiple second self-attention layers; The detection branch is used to extract features from the alveolar bone area map. After obtaining the initial feature map, the initial feature map is used to obtain position category information. The segmentation branch is used to obtain segmentation information using the initial feature map. The position category information and segmentation information constitute the first caries set, and the position category information is used to obtain the tooth rectangular area map, and the segmentation information is used to obtain the tooth segmentation map.

8. The caries detection system according to claim 7, characterized in that: The first self-attention layer and / or the second self-attention layer include parallel spatial-dependent self-attention dimensions and channel-dependent self-attention dimensions; The input feature matrix of the first self-attention layer and / or the second self-attention layer obtains the first sub-feature and the second sub-feature respectively through the spatial correlation self-attention dimension and the channel correlation self-attention dimension; The first sub-feature and the second sub-feature are fused to generate an output feature matrix of the first self-attention layer and / or the second self-attention layer.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed, the steps of the caries detection method according to any one of claims 1 to 6 are executed.