Oral cavity detection report generation method and device
By using automatic image correction and segmentation technology, clear oral examination reports are generated, solving the problem of poor image acquisition in oral examinations and improving the accuracy and efficiency of the examination.
Patent Information
- Application Number
- CN202411032179.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-15
AI Technical Summary
In existing technologies, image tilting and composition deviations can occur during oral examination image acquisition due to factors such as handheld device shaking, patient movement, and improper camera parameters, affecting detection efficiency and accuracy.
By acquiring multiple facial and intraoral images, image classification and angle prediction models are used to automatically correct the images. Combined with image segmentation technology, a clear and accurate oral examination report is generated.
It improves the objectivity and accuracy of oral examinations, enhances the clarity and comprehensiveness of examination reports, and solves the problems of poor image quality and low examination efficiency.
Smart Images

Figure CN118969170A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for generating an oral cavity detection report. Background Art
[0002] In the field of orthodontics, accurate and standardized images are essential for testing and treatment planning. Oral examination results usually rely on multi-dimensional and multi-index testing of images under multiple fields of view.
[0003] In the related art, the images required for oral inspection are obtained by professionals controlling the shooting equipment to shoot the front, side and inside of the patient's mouth, but this process faces many challenges. For example, factors such as slight shaking caused by handheld shooting equipment, unconscious head movement of patients, and improper setting of camera parameters often lead to problems such as tilt and composition deviation in the captured images. At this time, the shooting equipment and / or shooting posture are usually adjusted to re-shoot the image that meets the requirements, which makes image acquisition more time-consuming, thereby affecting the efficiency of oral inspection, and there is also the possibility of inaccurate oral inspection results due to image deviation. Summary of the invention
[0004] The present invention provides a method and device for generating an oral examination report, so as to realize oral health examination and report generation of a target object through image processing technology.
[0005] According to one aspect of the present invention, a method for generating an oral cavity detection report is provided, comprising:
[0006] In response to an image processing request, a plurality of first images taken of a target object are acquired; wherein the first images include facial images and / or intraoral images;
[0007] For each of the first images, determine an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area; the image category is associated with a photographing part corresponding to the first image and posture information presented by the photographing part;
[0008] An oral cavity detection report corresponding to the target object is generated according to the image category and the third image, wherein the oral cavity detection report includes description information of at least one detection index corresponding to each of the third images.
[0009] According to another aspect of the present invention, there is provided a device for generating an oral cavity detection report, comprising:
[0010] An image acquisition module, configured to acquire a plurality of first images taken of a target object in response to an image processing request; wherein the first images include facial images and / or intraoral images;
[0011] an image processing module, configured to determine, for each of the first images, an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area; the image category is associated with a photographing part corresponding to the first image and posture information presented by the photographing part;
[0012] A report generation module is used to generate an oral inspection report corresponding to the target object according to the image category and the third image, wherein the oral inspection report includes descriptive information of at least one inspection indicator corresponding to each of the third images.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating an oral inspection report described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating an oral examination report according to any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention is, firstly, to obtain multiple first images taken of the target object in response to an image processing request. Since the first images include facial images and / or intraoral images, the facial images and intraoral images can be combined to provide more comprehensive image information, which is helpful to improve the pertinence and effectiveness of oral detection. Then, for each of the first images, an image category corresponding to the first image is determined, and image correction is performed on the first image according to the image category to obtain a second image corresponding to the first image. Automatic correction of the image can be achieved to ensure that the second image can present the actual information of the target object more accurately and intuitively. In addition, since the image category is consistent with the shooting part corresponding to the first image and the posture information presented by the shooting part, The information is associated with the first image, and the first image can be distinguished by image category, so as to carry out targeted processing on the first images of different image categories; and the target area in the second image is segmented to obtain a third image containing the target area, so as to reduce the interference of redundant information on image analysis and focus on the analysis of the target area; thereafter, an oral cavity detection report corresponding to the target object is generated according to the image category and the third image to obtain the oral cavity detection indicators, so that the presented oral cavity detection report is clearer, accurate, detailed and comprehensive, and the problems of poor image quality and low oral cavity detection efficiency caused by directly analyzing manually shot images are solved, which greatly improves the objectivity and accuracy of oral cavity detection and improves the efficiency of generating oral cavity detection reports.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a method for generating an oral cavity detection report provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flow chart of a method for generating an oral examination report provided according to Embodiment 2 of the present invention;
[0023] Figure 3 is a flow chart of another method for generating an oral cavity detection report provided in accordance with the second embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of an oral cavity detection report according to a method for generating an oral cavity detection report provided in an embodiment of the present invention;
[0025] Figure 5 is a schematic structural diagram of a device for generating an oral cavity detection report according to Embodiment 3 of the present invention;
[0026] Figure 6 It is a structural schematic diagram of an electronic device for implementing the method for generating an oral cavity detection report according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0032] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0033] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0034] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0035] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0036] Embodiment 1
[0037] Figure 1 A flowchart of a method for generating an oral examination report is provided for the first embodiment of the present invention. This embodiment is applicable to the case of performing deformity detection on teeth. The method can be executed by a device for generating an oral examination report. The device for generating an oral examination report can be implemented in the form of hardware and / or software. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0038] like Figure 1 As shown, the method may specifically include:
[0039] S110. In response to an image processing request, obtain a plurality of first images taken of a target object; wherein the first images include facial images and / or intraoral images.
[0040] Among them, the image processing request can be understood as a request for requesting to start executing the operation process of generating an oral inspection report. The target object can be understood as the object whose image needs to be collected to generate an oral inspection report, or the object to be subjected to oral inspection. Exemplarily, the target object can be an overall object containing oral parts, such as a human body or an animal, or a local object containing oral parts, such as a face or a mouth. The first image can be understood as an image of the target object collected by a shooting device. The original image can be the basic image data material for subsequent image analysis. The first image may include images of different perspectives and parts, etc. Exemplarily, the first image may include facial images and intraoral images that are closely related to the oral state. The intraoral image may include an upper jaw image taken for the upper jaw and / or a lower jaw image taken for the lower jaw.
[0041] On the basis of the above scheme, optionally, the obtaining of multiple first images taken of the target object may include: when the first image is an intraoral image, it can be shot using an oral intrascope or a high-definition camera; when the first image is a facial image, it can be shot using an ordinary high-definition camera or a smartphone camera.
[0042] On the basis of the above scheme, before obtaining multiple first images taken of the target object, it can also include: adjusting the parameters of the shooting device, such as resolution, exposure and white balance, etc., to adapt to the shooting environment and the characteristics of the target object; when the shooting device is an automatic shooting device, the shooting angle, sequence and interval time can be preset or programmed, and marks can be added or target areas can be identified, and the lens focus can be automatically tracked and adjusted to cover all perspectives and details of the first image.
[0043] S120. For each of the first images, determine an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area.
[0044] The image category is associated with the shooting part corresponding to the first image and the posture information presented by the shooting part. The first images of different image categories can be used to characterize the same or different detection indicators. Exemplarily, the image categories may include at least two of the categories of frontal image, frontal smiling image, first angle side image, first angle side smiling image, second angle side image, second angle side smiling image, frontal occlusal image, overlay image, left occlusal image, right occlusal image, maxillary image and mandibular image. The first angle and the second angle can be set according to actual needs, for example, 45 degrees or 90 degrees, etc., which are not specifically limited here.
[0045] Specifically, the frontal image can be understood as a first image taken from the front of the face, which is used to evaluate the facial symmetry, tooth arrangement and lip closure of the target object. The frontal smiling image can be understood as a first image taken from the front in a natural smiling state, which is convenient for observing the aesthetics, exposure and smile line of the front teeth. The first-angle side image can be understood as a first image taken from the side of the target object. The first-angle side smiling image can be understood as a first image similar to the first-angle side image, but requiring the target object to smile when shooting. The second-angle side image can be understood as a first image taken at another side shooting angle, and the second angle is different from the first angle. The second-angle side smiling image can be understood as a first image taken at a second angle in a smiling state. The facial contour, occlusal relationship (such as the relative position of the upper and lower jaws) and maxillofacial structure information of the target object at different viewing angles can be evaluated through side images at different angles, and the facial dynamic changes and tooth exposure of the target object when smiling can be observed through side smiling images at different angles. The front occlusal image can be understood as a first image taken from the front with the target object slightly occluded, which is used to check the occlusal relationship of the front teeth and whether the midline is aligned. The overbite and coverage image can be understood as the first image taken to evaluate the coverage of the upper front teeth relative to the lower front teeth and the occlusal relationship of the posterior teeth, and requires a preset angle and occlusal state to capture. The left occlusal image is the first image of the occlusal state taken from the left side of the target object, and the right occlusal image can be understood as the first image of the occlusal state taken from the right side of the target object, which can be used to analyze the unilateral tooth occlusal relationship and adjacency. The maxillary image can be understood as the first image taken of the upper jaw, and the mandibular image can be understood as the first image taken of the lower jaw, which can be used to evaluate and plan the jaw structure, tooth arrangement, implantation or orthodontics, etc. The above-mentioned image categories can fully understand the oral condition of the target object, so as to make accurate detection.
[0046] The second image can be understood as an image obtained by correcting the first image. The second image has a better display angle and posture to eliminate distortion and other problems caused by shooting conditions or technical factors. The third image can be understood as an image containing the target area obtained by segmenting the second image. The area of the target area in the third image is not less than that in the second image, which can effectively remove irrelevant information interference around the target area and provide a clear image basis for subsequent targeted analysis of the target area. The target area can be understood as an area that requires image analysis. Exemplarily, the target area can be an image area containing the maxilla, mandible, entire oral cavity or face, etc. Which area is selected as the target area depends on the image category and the purpose of image analysis.
[0047] As an optional implementation of the embodiment of the present disclosure, the determining the image category corresponding to the first image includes: inputting the first image into an image classification model to obtain the image category corresponding to the first image. The image classification model can be understood as a model for classifying the first image, which can be obtained by training first sample images of multiple image categories and category labels corresponding to the first sample images.
[0048] Optionally, the training process of the image classification model includes: obtaining first sample images of multiple image categories, and assigning a label of the image category to each first sample image. Constructing the architecture of the image classification model, the image classification model may include a convolutional neural network and a fully connected layer connected to the convolutional neural network. The fully connected layer can be specifically used to convert the features extracted by the convolutional layer into a category probability distribution, so as to predict the image category of the first sample image. Compiling the model, by setting a loss function (such as cross entropy loss, mean square error loss, combined positioning loss (such as a point absolute loss function) and overlap loss (such as intersection over union IoU loss), etc.), an optimizer (such as Adam, etc.) and an evaluation index (such as accuracy), etc. for optimizing the model. Inputting the first sample image to train the preset image classification model, the image classification model performs forward propagation through the convolutional layer and the fully connected layer, generates a preliminary prediction of the image category, compares the prediction result with the correct category label, quantifies the prediction error through the loss function, and the error is back-propagated through the network. The weights are adjusted layer by layer to reduce the loss, and the weights are updated iteratively for multiple times until the image classification model reaches the preset stop condition. Exemplarily, the preset stopping condition may be reaching the number of iterations, reaching a preset accuracy rate, or convergence of the loss function, etc.
[0049] Furthermore, the training parameters of the image classification model may be configured according to the structure of the adopted image classification model, and the training parameters may include a learning rate and a loss function, etc.
[0050] In order to enhance the generalization ability of the model, the first sample image for training may be preprocessed, and then the preprocessed training image may be used to train the pre-built image classification model. The preprocessing may include at least one of random rotation, cropping, and scale transformation, and the first sample image data may also be normalized to have a mean of 0 and a standard deviation of 1, or other forms of normalization, so as to facilitate the training of the model.
[0051] As an optional implementation manner of the embodiment of the present disclosure, optionally, performing image segmentation on the target area in the second image to obtain a third image containing the target area includes: inputting the second image into a target recognition model to obtain the target area corresponding to the second image; and performing image cropping on the second image according to the target area corresponding to the second image to obtain a third image containing the target area.
[0052] Among them, the target recognition model is a model that can be used to identify the target area. Specifically, the target recognition model is trained through third sample images of multiple image categories and region labels corresponding to the third sample images. The third sample image can be understood as a sample image data set for training the target recognition model. The region label can be understood as the expected target recognition model output image, specifically, it can be an image obtained by adding a labeling box to the third sample image to mark the target area. By training the model with third sample images of multiple graphic categories, it can be ensured that the target recognition model can learn and recognize the commonalities and differences of target areas in second images of different image categories.
[0053] In this embodiment, the second image is cropped according to the target area corresponding to the second image, so that the target area can be accurately identified by the target recognition model, and then the part containing the target area is cropped from the second image according to the position information of the target area. After the cropping process, the obtained image is the third image, which is a close-up view of the target area, which is convenient for subsequent detailed analysis, measurement or further image processing tasks, such as analyzing oral conditions. The cropping operation ensures that the third image focuses only on the key area of analysis, removes unnecessary background information around it, and improves the efficiency of image analysis.
[0054] S130. Generate an oral cavity detection report corresponding to the target object according to the image category and the third image, wherein the oral cavity detection report includes description information of at least one detection indicator corresponding to each of the third images.
[0055] Among them, the oral inspection report can be understood as an oral inspection report generated based on the image category and the third image, which is used to describe the oral structure condition and facial condition of the target object. Exemplarily, the oral inspection report may include descriptive information of at least one detection indicator corresponding to each of the third images. The descriptive information can be understood as a text or numerical description of at least one detection indicator of each third image. The detection indicator can be understood as a specific parameter or standard evaluated in the oral inspection report, which is used to describe the oral health status of the target object. The oral inspection report may also include multiple image categories and third images corresponding to the image categories.
[0056] By combining image categories and third images to generate oral inspection reports, the professionalism and practicality of the reports can be greatly improved, providing clear and accurate inspection information.
[0057] The technical solution of the embodiment of the present invention is, firstly, to obtain multiple first images taken of the target object in response to an image processing request. Since the first images include facial images and / or intraoral images, the facial images and intraoral images can be combined to provide more comprehensive image information, which is helpful to improve the pertinence and effectiveness of oral detection. Then, for each of the first images, an image category corresponding to the first image is determined, and image correction is performed on the first image according to the image category to obtain a second image corresponding to the first image. Automatic correction of the image can be achieved to ensure that the second image can present the actual information of the target object more accurately and intuitively. In addition, since the image category is consistent with the shooting part corresponding to the first image and the posture information presented by the shooting part, The information is associated with the first image, and the first image can be distinguished by image category, so as to carry out targeted processing on the first images of different image categories; and the target area in the second image is segmented to obtain a third image containing the target area, so as to reduce the interference of redundant information on image analysis and focus on the analysis of the target area; thereafter, an oral cavity detection report corresponding to the target object is generated according to the image category and the third image to obtain the oral cavity detection indicators, so that the presented oral cavity detection report is clearer, accurate, detailed and comprehensive, and the problems of poor image quality and low oral cavity detection efficiency caused by directly analyzing manually shot images are solved, which greatly improves the objectivity and accuracy of oral cavity detection and improves the efficiency of generating oral cavity detection reports.
[0058] Embodiment 2
[0059] Figure 2A flowchart of a method for generating an oral inspection report provided in the second embodiment of the present invention, this embodiment is a supplementary explanation for image correction of the first image according to the image category corresponding to the first image. Compared with the above scheme, this scheme is specifically optimized to perform image correction on the first image according to the image category corresponding to the first image, including: when the image category of the first image is the first category, determine the target deflection angle corresponding to the first image, and correct the first image according to the target deflection angle; when the image category of the first image is the second category, mirror-reverse the first image, determine the target deflection angle corresponding to the first image after mirror reversal, and correct the first image after mirror reversal according to the target deflection angle, wherein the second category includes at least maxillary and / or mandibular images. For specific implementation methods, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to those of the above embodiments are not repeated here.
[0060] like Figure 2 As shown, the method may specifically include:
[0061] S210. In response to an image processing request, obtain a plurality of first images taken of a target object; wherein the first images include facial images and / or intraoral images.
[0062] S220. For each of the first images, determine the image category corresponding to the first image. When the image category of the first image is the first category, determine the target deflection angle corresponding to the first image, correct the first image according to the target deflection angle to obtain a second image corresponding to the first image, and perform image segmentation on the target area in the second image to obtain a third image including the target area.
[0063] Among them, the first category can be understood as the image category to be corrected for the target deflection angle, and the first category is related to the position deviation of the first image, etc. It can be understood that the position or orientation of the first image of the first category is not the ideal observation angle, and needs to be corrected by angle deflection to obtain a second image suitable for detection and analysis. The ideal observation angle can be the optimal observation angle set by the viewing angle that is most conducive to analysis. Exemplarily, in the case of oral inspection, the ideal observation angle can be an angle that ensures that teeth or jaws are displayed at a specific standard angle to facilitate accurate assessment of tooth arrangement and tooth root conditions. The target deflection angle can be understood as the angle that needs to be deflected when the first category image needs to be corrected to the ideal observation direction.
[0064] As an optional implementation of the embodiment of the present disclosure, optionally, determining the target deflection angle corresponding to the first image includes: inputting the first image into an angle prediction model to obtain the target deflection angle corresponding to the first image. With this technical solution, the target deflection angle corresponding to the first image can be quickly and accurately obtained by inputting the first image into the angle prediction model, saving the time and labor cost of manual adjustment and improving the prediction efficiency of the deflection angle.
[0065] The angle prediction model is a model that can be used to predict the angle of the first image. Exemplarily, the angle prediction model is trained by using second sample images of multiple image categories and deflection angle labels corresponding to the second sample images.
[0066] Optionally, obtain second sample images of multiple image categories, the second sample images need to include different deflection angle ranges (0-360 degrees), and each of the second sample images includes a deflection angle label. An optional scheme is to preprocess the second sample image, and the preprocessing includes but is not limited to random rotation, cropping, scaling and normalization, so as to ensure the consistency of image data and increase the robustness of the angle prediction model to image transformation. The angle prediction model can specifically be composed of a feature extraction layer and a regression layer. Specifically, a feature extraction layer is constructed, and a regression layer is added to predict the deflection angle (0-360 degrees), wherein the feature extraction layer can use a convolutional neural network as a basis. In an embodiment of the present invention, the angle prediction model and the image classification model can use the same convolutional neural network for feature extraction.
[0067] Optionally, a loss function for angle prediction is defined using mean square error loss. The loss function is used to measure the difference between the predicted angle and the actual deflection angle. The feature extraction layer and the angle prediction layer can be trained jointly to ensure that the entire network can learn the mapping relationship from image to angle. The weight of the angle prediction task can be determined by cross-validation to balance the importance of different tasks in training. The Adam optimizer or other optimization algorithm can be configured to set a suitable learning rate to minimize the loss function during training. The constructed model can be iteratively trained using a second sample image and its corresponding deflection angle label to obtain an angle prediction model; further, the performance of the angle prediction model can be evaluated using a validation set, and the model parameters and training strategy can be adjusted based on the evaluation results to obtain better angle prediction performance.
[0068] S230. When the image category of the first image is the second category, mirror-reverse the first image, determine the target deflection angle corresponding to the first image after the mirror-reversal, correct the first image after the mirror-reversal according to the target deflection angle to obtain a second image corresponding to the first image, and perform image segmentation on the target area in the second image to obtain a third image including the target area.
[0069] In practical applications, there are some image categories whose first images need to be mirrored, such as intraoral images. Among them, the second category can be understood as the image category to be mirror-reversed. In other words, the second category can be understood as the image category corresponding to the image taken by mirror shooting. Exemplarily, the second category may include at least maxillary images and / or mandibular images, etc. The mirror reversal can be understood as an operation of vertically flipping the first image, which is used to flip the upper part of the first image to the lower part and the lower part to the upper part. Exemplarily, in the case of oral images, the mirror reversal is used to adjust the viewing angle so that the viewing direction of the flipped image is more in line with the detection or analysis habits, such as when the original shooting angle is not conducive to direct analysis.
[0070] It is understandable that after performing the mirror inversion operation on the first image, the multiple first images taken can be relatively consistent with the shooting site of the target object in terms of histology, but the mirror inverted image may still deviate from the expected presentation angle. It is necessary to continue to input the mirror inverted first image into the angle prediction model to obtain the target deflection angle corresponding to the first image, correct the mirror inverted first image based on the determined target deflection angle, obtain the second image corresponding to the first image, and further perform image segmentation on the target area in the second image to obtain a third image containing the target area.
[0071] S240: Generate an oral cavity detection report corresponding to the target object according to the image category and the third image.
[0072] The technical solution of the embodiment of the present invention significantly enhances the accuracy and adaptability of oral image processing through image classification and targeted correction strategies. Differential processing is used for images of different categories. The target deflection angle is directly analyzed and corrected for the first category of images, while for the second category of images, mirror reversal is performed first, and then the target deflection angle is measured and corrected. Using the pre-trained angle prediction model, the target deflection angle can be automatically and efficiently identified, providing more reliable image data support for subsequent oral detection, thereby improving the accuracy of detection.
[0073] Figure 3A flowchart of another method for generating an oral inspection report provided in Embodiment 2 of the present invention. Compared with the above-mentioned scheme, this embodiment is a refinement of the method for generating an oral inspection report corresponding to the target object according to the image category and the third image. Optionally, the method for generating an oral inspection report corresponding to the target object according to the image category and the third image includes: determining at least one detection index corresponding to the third image through an image detection model corresponding to the third image; adding the image category, the third image and the detection index to a preset report template to obtain an oral inspection report corresponding to the target object. For specific implementation methods, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to those in the above-mentioned embodiments are not repeated here.
[0074] S310. In response to an image processing request, obtain a plurality of first images taken of a target object, wherein the first images include facial images and / or intraoral images.
[0075] S320: for each of the first images, determine an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area; the image category is associated with a photographing part corresponding to the first image and posture information presented by the photographing part;
[0076] S330, determining at least one detection index corresponding to the third image by using an image detection model corresponding to the third image;
[0077] It is understandable that the shooting areas of the target objects corresponding to the third images of different image categories may be different, so the corresponding detection indicators may be one or more, and the detection indicators corresponding to the third images of different image categories are at least partially different. In other words, determining different detection indicators may need to rely on third images of one or more image categories. As an optional implementation of the embodiment of the present disclosure, optionally, according to the image category corresponding to the third image, the image detection model corresponding to the third image is determined; and then at least one detection indicator corresponding to the third image is determined by the image detection model corresponding to the third image. In short, it is determined according to the image category whether the third image of a single image category is used to perform indicator detection alone or the third images of multiple image categories are used to perform indicator detection in combination. Among them, the image category corresponding to the third image is the same as the image category corresponding to the first image corresponding to the third image. Usually the third image corresponds to the image category one by one. Among them, the image detection model can be understood as a model for detecting the third image to obtain the detection indicator.
[0078] In an embodiment of the present invention, an image category for which an indicator is detected independently by a third image of a single image category can be determined as a third category. In other words, the third category can be understood as an image category for which the detection indicator can be obtained by simply inputting the third image into a corresponding image detection model. Furthermore, when the image category of the third image is the third category, it indicates that the third image can provide sufficient image information for detection using an image detection model. Specifically,
[0079] In a case where the image category of the third image is the third category, the third image is input into an image detection model corresponding to the third image to obtain at least one detection index corresponding to the third image.
[0080] Similarly, the image category that needs to be combined with the third image of other image categories for index detection is determined as the fourth category. In other words, the fourth category can be understood as an image category in which the detection index can be obtained only by inputting the third image and the associated image into the corresponding image detection model. Further, in the case where the third image is of the fourth category, it is necessary to find associated images from other third images of the same image category, which means that a single third image may not be sufficient to provide sufficient information for accurate detection, and other associated images are needed to enhance the recognition ability of the model. By inputting the third image and its associated images into the image detection model together, the image detection model can be helped to better understand and analyze the detection index, thereby obtaining a more accurate detection index. Specifically, in the case where the image category of the third image is the fourth category, the associated image corresponding to the third image is obtained from the remaining third images according to the image category, and the third image and the associated image are input into the corresponding image detection model to obtain at least one detection index corresponding to the third image.
[0081] For example, Figure 4 As shown, when the first angle is 45 degrees and the second angle is 90 degrees, when the image category is a frontal smiling image, the corresponding detection index can be obtained by only inputting the frontal smiling image into the corresponding image detection model, that is, the frontal smiling image can be the third category. Similarly, the frontal image, the first-angle side image, the first-angle side smiling image, the left occlusal image, the right occlusal image, the maxillary image and the mandibular image can also be the third category. When the image category is a second-angle side smiling image, it is also necessary to obtain the second-angle side image associated with the second-angle side smiling image, and then input them into the image detection model together to obtain the corresponding detection index. Similarly, the frontal occlusal image and the overlay image can also be the fourth category.
[0082] S340: Add the image category, the third image, and the detection index to a preset report template to obtain an oral cavity detection report corresponding to the target object.
[0083] The preset report template can be understood as a template for presenting the oral examination report. The preset report template can be customized according to industry standards, clinical practice requirements, and legal and regulatory requirements, etc., in order to ensure the comprehensiveness, standardization, and readability of the oral examination report content.
[0084] After adding the image category, the third image and the detection index to the preset report template, the method further includes: determining a target index among the detection indexes, and highlighting the target index in the preset report template.
[0085] Among them, the indicator attribute value of the target indicator may be a preset attribute value or may not be within the standard value range. The target indicator may be judged based on the indicator attribute value. The indicator attribute value may be a numerical value or description of a specific measurement or evaluation result of each detection indicator. The preset attribute value may be understood as a set normal or warning attribute value, which is used to determine whether the target indicator is within a normal range. The standard value range may be understood as a normal or acceptable value range for each detection indicator, and exceeding the standard value range may indicate an abnormal state.
[0086] like Figure 4 As shown, in the oral detection report, there may be multiple image categories, and the indicator attribute values corresponding to the detection indicators of each image category may be multiple. For each detection indicator, all possible (candidate) indicator attribute values corresponding to the detection indicator can be displayed, and the indicator attribute values detected by the third image in the candidate indicator attribute values are highlighted. Of course, only the indicator attribute values corresponding to the detection indicator detected by the third image can be displayed. Exemplarily, in the case where the image category is a frontal image, the detection indicators may include one or more of positive appearance, lips, chin tilt, one-third of the middle face and one-third of the lower face. Among them, the indicator attribute values of positive appearance may include fuller on the left side, symmetry and fuller on the right side, and the indicator attribute values of lips may include thick lip type, short upper lip, upper lip eversion, lower lip eversion, open lips with teeth, gummy smile and normal, etc. There are multiple ways to highlight the detection results corresponding to the indicator attribute values. For example, the indicator attribute values corresponding to the detection indicator detected by the third image may be highlighted by using bold font, underline, font color, font shape and font size. Assuming that the detection result of the detection indicator "positive appearance" is the indicator attribute value "symmetry", "symmetry" can be highlighted relative to other candidate indicator attribute values.
[0087] The technical solution of the embodiment of the present invention ensures accurate capture of detection indicators by adopting differentiated processing strategies for different categories of images. When processing the third category image and the fourth category image, the comprehensiveness and depth of oral cavity detection are improved by analyzing related images separately or jointly. The generated detection report not only integrates the image data and analysis results, but also enhances the intuitiveness and readability of the oral cavity detection report by highlighting the target indicators, highlights the key contents in the oral cavity detection report, and improves the viewing efficiency of the oral cavity detection report.
[0088] Embodiment 3
[0089] Figure 5 This is a schematic diagram of the structure of a device for generating an oral examination report provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: an image acquisition module 510, an image processing module 520, and a report generation module 530.
[0090] Among them, the image acquisition module 510 is used to obtain multiple first images taken of the target object in response to an image processing request; wherein the first image includes a facial image and / or an intraoral image; the image processing module 520 is used to determine the image category corresponding to each of the first images, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on the target area in the second image to obtain a third image containing the target area; the image category is associated with the shooting part corresponding to the first image and the posture information presented by the shooting part; the report generation module 530 is used to generate an oral inspection report corresponding to the target object according to the image category and the third image, wherein the oral inspection report includes descriptive information of at least one inspection indicator corresponding to each of the third images.
[0091] The technical solution of the embodiment of the present invention is as follows: first, in response to an image processing request, an image acquisition module 510 acquires a plurality of first images taken of a target object; since the first images include facial images and / or intraoral images, the facial images and intraoral images can be combined to provide more comprehensive image information, which is helpful to improve the pertinence and effectiveness of oral cavity detection; then, for each of the first images, an image processing module 520 determines an image category corresponding to the first image, and performs image correction on the first image according to the image category to obtain a second image corresponding to the first image; automatic correction of the image can be achieved to ensure that the second image can present the actual information of the target object more accurately and intuitively; and since the image category is consistent with the shooting part corresponding to the first image and the presentation of the shooting part, The present posture information is associated with the present posture information, and the first image can be distinguished by image category, so as to carry out targeted processing on the first images of different image categories; and by performing image segmentation on the target area in the second image, a third image including the target area is obtained, thereby reducing the interference of redundant information on image analysis and focusing on the analysis of the target area; thereafter, an oral cavity detection report corresponding to the target object is generated according to the image category and the third image through the report generation module 530, so as to obtain the oral cavity detection indicators, so that the presented oral cavity detection report is clearer, accurate, detailed and comprehensive, and solves the problems of poor image quality and low oral cavity detection efficiency caused by directly analyzing manually shot images, greatly improves the objectivity and accuracy of oral cavity detection, and improves the generation efficiency of oral cavity detection reports.
[0092] Based on the above optional technical solution, the image category acquisition submodule is used to input the first image into the image classification model to obtain the image category corresponding to the first image; wherein the image classification model is trained by first sample images of multiple image categories and category labels corresponding to the first sample images; the image classification model includes a convolutional neural network and a fully connected layer connected to the convolutional neural network. Based on the above optional technical solution, optionally, the image processing module includes: a first category correction submodule and a second category correction submodule.
[0093] Among them, the first category correction submodule is used to determine the target deflection angle corresponding to the first image when the image category of the first image is the first category, and correct the first image according to the target deflection angle; the second category correction submodule is used to mirror-reverse the first image when the image category of the first image is the second category, determine the target deflection angle corresponding to the first image after the mirror reversal, and correct the first image after the mirror reversal according to the target deflection angle, wherein the second category at least includes maxillary images and / or mandibular images.
[0094] Based on the above optional technical solution, optionally, a target deflection angle determination unit is used to input the first image into an angle prediction model to obtain a target deflection angle corresponding to the first image; wherein the angle prediction model is trained by second sample images of multiple image categories and deflection angle labels corresponding to the second sample images.
[0095] On the basis of the above optional technical solution, optionally, a target area acquisition submodule is used to input the second image into a target recognition model to obtain a target area corresponding to the second image; wherein the target recognition model is trained by third sample images of multiple image categories and area labels corresponding to the third sample images; and a third image acquisition submodule is used to crop the second image according to the target area corresponding to the second image to obtain a third image containing the target area.
[0096] On the basis of the above optional technical solution, optionally, the report generation module includes: a detection index determination submodule and a report generation submodule.
[0097] Among them, the detection index determination submodule is used to determine at least one detection index corresponding to the third image through the image detection model corresponding to the third image; the report generation submodule is used to add the image category, the third image and the detection index to a preset report template to obtain an oral detection report corresponding to the target object.
[0098] On the basis of the above optional technical solution, optionally, the detection index determination submodule includes: a third category index acquisition unit and a fourth category index acquisition unit.
[0099] Among them, the third category indicator acquisition unit is used to input the third image into the image detection model corresponding to it when the image category of the third image is the third category, so as to obtain at least one detection indicator corresponding to the third image; the fourth category indicator acquisition unit is used to obtain the associated image corresponding to the third image from the remaining third images according to the image category when the image category of the third image is the fourth category, and input the third image and the associated image into the image detection model corresponding to it, so as to obtain at least one detection indicator corresponding to the third image.
[0100] On the basis of the above optional technical solution, optionally, a target indicator display submodule is used to determine the target indicator among the detection indicators after adding the image category, the third image and the detection indicator to the preset report template, and highlight the target indicator in the preset report template; wherein the indicator attribute value of the target indicator is a preset attribute value or is not within the standard value range.
[0101] Based on the above optional technical solutions, optionally, the image categories include at least two of the following: frontal image, frontal smiling image, first angle side image, first angle side smiling image, second angle side image, second angle side smiling image, frontal occlusal image, overlay image, left occlusal image, right occlusal image, maxillary image and mandibular image.
[0102] The oral examination report generation device provided in the embodiment of the present invention can execute the oral examination report generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0103] Embodiment 4
[0104] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0105] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0106] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0107] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for generating an oral detection report.
[0108] In some embodiments, the method for generating an oral inspection report may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for generating an oral inspection report described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for generating an oral inspection report in any other appropriate manner (e.g., by means of firmware).
[0109] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0111] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0112] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0113] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0114] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0116] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating an oral examination report, characterized in that: include: In response to an image processing request, a plurality of first images taken of a target object are acquired; wherein the first images include facial images and / or intraoral images; For each of the first images, determine an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area; the image category is associated with a photographing part corresponding to the first image and posture information presented by the photographing part; An oral cavity detection report corresponding to the target object is generated according to the image category and the third image, wherein the oral cavity detection report includes description information of at least one detection index corresponding to each of the third images.
2. The method according to claim 1, characterized in that The determining the image category corresponding to the first image includes: The first image is input into an image classification model to obtain an image category corresponding to the first image; wherein the image classification model is trained by first sample images of multiple image categories and category labels corresponding to the first sample images; the image classification model includes a convolutional neural network and a fully connected layer connected to the convolutional neural network.
3. The method according to claim 1, characterized in that The performing image correction on the first image according to the image category corresponding to the first image includes: When the image category of the first image is the first category, determining a target deflection angle corresponding to the first image, and correcting the first image according to the target deflection angle; When the image category of the first image is the second category, the first image is mirror-reversed, a target deflection angle corresponding to the first image after the mirror-reversal is determined, and the first image after the mirror-reversal is corrected according to the target deflection angle, wherein the second category includes at least a maxillary image and / or a mandibular image.
4. The method according to claim 3, characterized in that The determining a target deflection angle corresponding to the first image includes: The first image is input into an angle prediction model to obtain a target deflection angle corresponding to the first image; wherein the angle prediction model is trained by second sample images of multiple image categories and deflection angle labels corresponding to the second sample images.
5. The method according to claim 1, characterized in that The performing image segmentation on the target area in the second image to obtain a third image containing the target area includes: Inputting the second image into a target recognition model to obtain a target region corresponding to the second image; wherein the target recognition model is trained by third sample images of multiple image categories and region labels corresponding to the third sample images; The second image is cropped according to the target area corresponding to the second image to obtain a third image including the target area.
6. The method according to claim 1, characterized in that The step of generating an oral cavity detection report corresponding to the target object according to the image category and the third image includes: Determining at least one detection indicator corresponding to the third image by using an image detection model corresponding to the third image; The image category, the third image and the detection index are added to a preset report template to obtain an oral cavity detection report corresponding to the target object.
7. The method according to claim 6, characterized in that The determining, by using the image detection model corresponding to the third image, at least one detection index corresponding to the third image comprises: In a case where the image category of the third image is the third category, inputting the third image into an image detection model corresponding to the third image to obtain at least one detection index corresponding to the third image; In the case where the image category of the third image is the fourth category, an associated image corresponding to the third image is obtained from the remaining third images according to the image category, and the third image and the associated image are input into the corresponding image detection model to obtain at least one detection indicator corresponding to the third image.
8. The method according to claim 6, characterized in that After adding the image category, the third image and the detection index to the preset report template, the method further includes: Determine a target indicator among the detection indicators, and highlight the target indicator in the preset report template; wherein the indicator attribute value of the target indicator is a preset attribute value or is not within a standard value range.
9. The method according to claim 1, characterized in that: The image categories include at least two of the following: frontal image, frontal smiling image, first angle side image, first angle side smiling image, second angle side image, second angle side smiling image, frontal occlusal image, overbite image, left occlusal image, right occlusal image, maxillary image and mandibular image.
10. A device for generating an oral examination report, characterized in that: include: An image acquisition module, configured to acquire a plurality of first images taken of a target object in response to an image processing request; wherein the first images include facial images and / or intraoral images; an image processing module, configured to determine, for each of the first images, an image category corresponding to the first image, perform image correction on the first image according to the image category to obtain a second image corresponding to the first image, and perform image segmentation on a target area in the second image to obtain a third image including the target area; the image category is associated with a photographing part corresponding to the first image and posture information presented by the photographing part; A report generation module is used to generate an oral inspection report corresponding to the target object according to the image category and the third image, wherein the oral inspection report includes descriptive information of at least one inspection indicator corresponding to each of the third images.
