Computer-aided diagnosis method based on deep learning

Through the computer-aided diagnosis method based on deep learning, combined with the EfficientNet model and image processing technology, the problem of low efficiency of manual reading is solved, efficient and accurate diagnosis of oral mucosal diseases is achieved, and the accuracy and efficiency of dental doctors' diagnosis are improved. , suitable for limited medical resource environments.

CN114119494BActive Publication Date: 2024-09-10XIAN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111287073.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2024-09-10
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

The efficiency of manual reading in the existing technology is low, resulting in subjective differences in oral health diagnosis, making it difficult to detect oral mucosal diseases efficiently and accurately.

Method used

A computer-aided diagnosis method based on deep learning is adopted, by collecting and annotating oral pathology pictures, using the EfficientNet deep network model for diagnosis, and combining pyqt5 and opencv to design custom cropping, zooming, panning and contrast functions to eliminate unnecessary background information. Improve diagnostic accuracy.

Benefits of technology

It improves the diagnostic accuracy and efficiency of dental doctors, reduces the misdiagnosis rate, enables rapid and accurate diagnosis of four common oral mucosal diseases, alleviates the shortage of medical resources, and saves patients time and money.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119494B
    Figure CN114119494B
Patent Text Reader

Abstract

The present invention is a computer-aided diagnosis method based on deep learning, which overcomes the problems of low efficiency of manual film reading and subjective differences in the prior art. The present invention uses computer-aided diagnosis technology to assist dentists in finding lesions, improve the accuracy of diagnosing oral mucosal diseases, and balance medical resources. The present invention includes the following steps: Step 1: Collect data; Step 2: Target image diagnosis function; Step 3: Image cropping function; Step 4: Image zoom and translation function: Use opencv to design the image zoom and translation module: Step 5: Image contrast function; Step 6: Image rotation function; Step 7: Design an application program interface based on pyqt5, encapsulate all functions, and complete the function test; Step 8: Package into an executable file; Step 9: Software testing, upload the image of oral mucosal diseases to the software, and test the software performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention belongs to the field of intelligent medical technology and relates to a computer-aided diagnosis method based on deep learning. Background technology:

[0002] As people's living standards improve, their demand for oral health is increasing day by day, which poses a greater challenge to the current limited medical resources and medical technology. The medical field is in urgent need of new technologies to meet these needs. In recent years, medical imaging technology, computer technology, and deep learning algorithms have made great progress. The use of deep learning algorithms for medical image analysis has become a very hot research direction, which provides new technical means for the diagnosis and treatment of clinical diseases and provides new opportunities for solving challenges in the medical field. Computer-aided diagnosis applications are born. It refers to the use of imaging, medical image processing technology, and other possible physiological and biochemical means, combined with computer analysis and calculation, to assist radiologists in discovering lesions and improve the accuracy of diagnosis. People believe that artificial intelligence-assisted diagnosis can undertake the tedious work of lesion screening, quickly extract valuable information related to diagnosis from massive data, and avoid the subjective differences caused by manual reading of films. Summary of the invention:

[0003] The purpose of the present invention is to provide a computer-aided diagnosis method based on deep learning, which overcomes the problems of low efficiency and subjective differences caused by manual film reading in the prior art. The present invention uses computer-aided diagnosis technology to assist dentists in discovering lesions, improve the accuracy of diagnosis of oral mucosal diseases, and balance medical resources.

[0004] To achieve the above object, the technical solution adopted by the present invention is:

[0005] A computer-aided diagnosis method based on deep learning, characterized in that it includes the following steps:

[0006] Step 1: Collect data. Oral pathology images are collected by dentists. All pathology images are classified and labeled with disease diagnosis results to establish a pathology image dataset with disease diagnosis labels.

[0007] Step 2: Target image diagnosis function;

[0008] Step 3: Image cropping function; using the principle of signals and slots of pyqt5, design a custom cropping module, crop the ROI area, and send the cropped image to the optimal network model in step 2 for detection; remove the parts not related to the lesion and only use the ROI area image;

[0009] Step 4: Image zoom and translation function: Use opencv to design the image zoom and translation module:

[0010] Step 5: Image Contrast Function:

[0011] Call the ImageEnhance module of Python image processing library PIL;

[0012] Step 6: Image Rotation Function:

[0013] Call the rotate function in opencv to rotate the image 90 degrees; use

[0014] The cv2.rotate() method rotates a 2D array by multiples of 90 degrees;

[0015] Step 7: Design the application interface based on pyqt5, encapsulate all functions, and complete the function testing;

[0016] Step 8: Package into an executable file, use pyinstaller to package into an executable file;

[0017] Step 9: Software testing: upload images of oral mucosal diseases to the software to test software performance.

[0018] Step 2 includes the following steps:

[0019] Step 2.1: Remove images with complex backgrounds and difficult to identify, perform batch image enhancement on the processed images, including rotation, horizontal inversion, contrast, random cropping and Gaussian noise, and scale all images in the dataset to 224×224 size to facilitate model training;

[0020] Step 2.2: Build a deep learning network model, select the EfficientNet deep network model, and use the keras and tensorflow deep learning frameworks to diagnose the target image;

[0021] Step 2.3: Adjust and optimize the parameters of the network model through the logs recorded during the training process to make the model reach the optimal state;

[0022] Step 3 includes the following steps:

[0023] Step 3.1: Define signals and parameters: Define signals; record the coordinate point when the mouse clicks the left button to start cropping; release the left button to end cropping; set the window transparency setWindowOpacity parameter, the effective range of transparency is from 1.0 to 0.0;

[0024] Step 3.2: Bind signal and slot functions: Use the connect function to bind signals and slots;

[0025] Step 3.3: Set the slot function, which is the operation to be performed when the program responds to the cropping signal); click the left button to start selecting the screenshot area, move the mouse while pressing the left button to draw the screenshot auxiliary line, and release the left button to start the screenshot operation; define 5 functions in total to complete the cropping function: define the screenshot function, define the function of drawing the screenshot auxiliary line, define the left button click function, define the left button release function, and define the left button move function;

[0026] Step 4 includes the following steps:

[0027] Step 4.1 Mouse wheel zoom:

[0028] Set the zoom factor, set the initial image window position and size, calculate the window position of the zoomed image, call the resize function in opencv, and use interpolation to scroll and zoom the image.

[0029] Step 4.2: Pan:

[0030] Click the left mouse button and drag to move the image.

[0031] Step 8 includes the following steps:

[0032] Step 8.1: Create a resource folder res, including software background images, test pathology images, and trained network models;

[0033] Step 8.2 Generate .spec file and modify datas=[datas=[('res\efficientnet_weights_best.h5','res'),('image','images')] in the .spec file;

[0034] Step 8.3: Package the .spec file.

[0035] Compared with the prior art, the present invention has the following advantages and effects:

[0036] 1. The present invention can diagnose four common oral mucosal diseases, play an auxiliary diagnosis role for dentists, reduce the misdiagnosis rate of doctors, improve the efficiency of dentists' diagnosis, and shorten the diagnosis time. In order to facilitate dentists to view the detailed information of the image, the present invention adds a custom cropping function to crop out the area of ​​key lesions, namely the ROI area, which is conducive to reducing the impact of background information and improving the accuracy of diagnosis. The method of the present invention can be packaged into an executable file, directly loaded by the operating system, and can be directly stored in a mobile device, which is convenient for promotion at the grassroots level.

[0037] 2. Dentists can use the method of the present invention to relieve diagnostic pressure, improve the speed and accuracy of diagnosis, effectively solve the problem of insufficient oral medical personnel, and save patients' time and money for medical treatment. Description of the drawings:

[0038] Figure 1 Display image for opening image function;

[0039] Figure 2 This is a display diagram for the screenshot function;

[0040] Figure 3 Crop the image for upload;

[0041] Figure 4 The diagram shows the zoom and pan functions, where (a) zoom and (b) pan;

[0042] Figure 5 is the contrast function map;

[0043] Figure 6 is the rotation function diagram;

[0044] Figure 7 For GUI interface display;

[0045] Figure 8 Executable file display;

[0046] Fig. 9 This is a software test diagram. Specific implementation method:

[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] The present invention is a computer-aided diagnosis method based on deep learning, which specifically comprises the following steps:

[0049] Step 1: Collect data. Oral pathology images are collected by dentists, and all pathology images are classified and labeled with disease diagnosis results to establish a pathology image dataset with disease diagnosis labels.

[0050] Step 2: Target image diagnosis function;

[0051] Step 2.1 Remove images with complex backgrounds that are difficult to identify, such as jittery, blurred, or containing messy oral appliances. Perform batch image enhancement on the processed images, including rotation, horizontal inversion, contrast, random cropping, and Gaussian noise, a total of 5 data enhancement methods to enrich the number of data sets and improve the accuracy of disease diagnosis. Scale all images in the data set to 224×224 to facilitate model training.

[0052] Step 2.2. Build a deep learning network model. The invention selected the EfficientNet deep network model and used the keras and tensorflow deep learning frameworks to diagnose the target image. Currently, the project has classified the oral disease images into four categories: oral leukoplakia, oral lichen planus, oral cancer, and recurrent oral ulcers.

[0053] Step 2.3. Adjust and optimize the parameters of the network model through the logs recorded during the training process, so that the model reaches an optimal state, that is, the model has the highest accuracy.

[0054] Step 3: Image cropping function: Using the principle of signals and slots of pyqt5, a custom cropping module is designed to crop the ROI area, and the cropped image is sent to the optimal network model in step 2 for detection. Eliminating parts that are not related to the lesion and only using the ROI area image is conducive to improving the accuracy of diagnosis.

[0055] Step 3.1, define signals and parameters: define signals; record the coordinate point when the mouse clicks the left button to start clipping, and the coordinate point when the left button is released to end clipping. Set the window transparency setWindowOpacity parameter, the effective range of transparency is from 1.0 (completely opaque) to 0.0 (completely transparent). By default, the value of this property is 1.0, and the present invention is set to 0.4.

[0056] Step 3.2, bind signal and slot functions: use the connect function to bind signals and slots.

[0057] Step 3.3, set slot function: The slot function of the invention is cropping. Click the left button to start selecting the screenshot area. While pressing the left button, move the mouse to draw the screenshot auxiliary line. Release the left button to start the screenshot operation. A total of 5 functions are defined to complete the cropping function: define the screenshot function, define the function of drawing the screenshot auxiliary line, define the left button click function, define the left button release function, and define the left button move function.

[0058] Screenshot function: record the start and end points of the screenshot, and save the captured image to the current folder. Screenshot auxiliary line drawing function: use drawRect to draw rectangular auxiliary lines and capture the ROI area.

[0059] Click left button function: Click the left button to start selecting the screenshot area.

[0060] Release left button function: Release the left mouse button to end the screenshot.

[0061] Left button move function: Press the left button of the mouse and move the mouse to draw the screenshot auxiliary line.

[0062] Step 4: Image zoom and pan function: Use opencv to design image zoom and pan modules to facilitate dentists to view image details.

[0063] Step 4.1: Zoom with the mouse wheel

[0064] Set the zoom factor, set the initial image window position and size, calculate the window position of the zoomed image, call the resize function in opencv, and use interpolation to scroll and zoom the image.

[0065] Mathematical definition of interpolation: Given n known discrete data points (xk, yk), k = 1, 2, ..., n. For x≠xk, k = 1, 2, ..., n, finding the value of y corresponding to x is called interpolation.

[0066] f(x) is a function defined on the interval [a,b]. x1,x2,x3...xn are n different points on [a,b], and G is a given class of functions. f(x) is a function defined on the interval [a,b]. x1,x2,x3...xn are n different points on [a,b], and G is a given class of functions.

[0067] If there is a function g(x) on G that satisfies: g(xi)=f(xi), k=1,2,...n, then g(x) is called the interpolation function of f(x) on G with respect to nodes x1,x2,x3...xn.

[0068] interpolation: interpolation method. Opencv provides 5 interpolation methods for people to choose from, namely INTER_NEAREST, INTER_LINEAR, INTER_AREA, INTER_CUBIC, and INTER_LANCZOS4.

[0069] The present invention chooses INTER_AREA: resampling using pixel area relationship. It may be the preferred method for image decimation because it produces results without cloud texture. But when the image is scaled, it is similar to the INTER_NEAREST method.

[0070] Step 4.2: Translation

[0071] Click the left mouse button to drag and move the image. This makes it easier for dentists to see the details of the enlarged image. The window width and height and the current enlarged image width and height appear in four situations:

[0072] The width and height of the image are smaller than the width and height of the window and cannot be moved;

[0073] The image is wider than the window and can be moved left or right;

[0074] The height of the picture is greater than the height of the window and can be moved up and down;

[0075] The width and height of the image are larger than the width and height of the window, and it can be moved left, right, up, and down;

[0076] Step 5: Image Contrast Function

[0077] The ImageEnhance module of Python image processing library PIL is called. The ImageEnhance module provides some classes for image enhancement. Contrast is used here, which refers to the difference between the dark and bright values ​​of an image, that is, the difference between the maximum grayscale and the minimum grayscale of an image. Contrast has a critical impact on visual effects. Generally speaking, the greater the contrast, the clearer and more eye-catching the image, and the brighter the color; while the smaller the contrast, the color of the entire picture will be slightly monotonous and the image boundary will be blurred.

[0078] Step 6. Image rotation function

[0079] Call the rotate function in opencv to rotate the image 90 degrees. This makes it easier for dentists to observe the image from multiple angles. Here, the cv2.rotate() method is used to rotate the 2D array by multiples of 90 degrees.

[0080] Step 7. Design the application interface based on pyqt5, encapsulate all functions, and complete the function testing.

[0081] Step 8: Package into an executable file. Use pyinstaller to package into an executable file.

[0082] Step 8.1 Create a resource folder res, including software background images, test pathology images, trained network models, etc.

[0083] Step 8.2 Generate .spec file and modify datas=[('res\efficientnet_weights_best.h5','res'),('image','images') in the .spec file ];

[0085] Step 8.3 Package the .spec file.

[0086] Step 9. Software testing: upload images of oral mucosal diseases to the software to test software performance.

[0087] Example:

[0088] See also Figures 1 to 9 , the present invention specifically comprises the following steps:

[0089] Step 1. Collect data. Oral pathology images are collected by dentists, and all pathology images are classified and labeled with disease diagnosis results to establish a pathology image dataset with disease diagnosis labels.

[0090] Step 2. Target image diagnosis function;

[0091] Step 2.1 Remove images with complex backgrounds that are difficult to identify, such as jittery, blurred, or containing messy oral appliances. Perform batch image enhancement on the processed images, including rotation, horizontal inversion, contrast, random cropping, and Gaussian noise, a total of 5 data enhancement methods to enrich the number of data sets and improve the accuracy of disease diagnosis. Scale all images in the data set to 224×224 to facilitate model training.

[0092] Step 2.2. Build a deep learning network model. The invention selected the EfficientNet deep network model and used the keras and tensorflow deep learning frameworks to diagnose the target image. Currently, the project has classified the oral disease images into four categories, namely oral leukoplakia, oral lichen planus, oral cancer, and recurrent oral ulcers. As shown in Table 1, this is the network structure of EfficientNetB0.

[0093] Table 1 Network structure of EfficientNetB0

[0094] stage Network structure Resolution Number of channels Number of layers 1 Conv3x3 224x224 32 1 2 MBConv1,k3x3 112x112 16 1 3 MBConv6,k3x3 112x112 24 2 4 MBConv6,k5x5 56x56 40 2 5 MBConv6,k3x3 28x28 80 3 6 MBConv6,k5x5 14x14 112 3 7 MBConv6,k5x5 14x14 192 4 8 MBConv6,k3x3 7x7 320 1

[0095] Step 2.3. Adjust and optimize the parameters of the network model through the logs recorded during the training process, so that the model reaches an optimal state, that is, the model has the highest accuracy.

[0096] Step 3: Image cropping function: Using the principle of signals and slots of pyqt5, a custom cropping module is designed to crop the ROI area, and the cropped image is sent to the optimal network model in step 2 for detection. Eliminating parts that are not related to the lesion and only using the ROI area image is conducive to improving the accuracy of diagnosis.

[0097] Signals and slots are the core mechanism used by Qt to communicate between objects. Their purpose is similar to when an action occurs, it is necessary to deal with this action accordingly. The most essential principle is the callback function.

[0098] The working process is: first bind the signal and the slot function. When an object emits a signal through emit, the slot function of the object connected to it is processed. After the slot function is processed, emit exits and executes the next content.

[0099] Step 3.1 Define signals and parameters: Define signals; record the coordinates of the mouse click to start clipping, and the coordinates of the mouse release to end clipping. Set the window transparency setWindowOpacity parameter, the effective range of transparency is from 1.0 (completely opaque) to 0.0 (completely transparent). By default, the value of this property is 1.0, and the present invention is set to 0.4.

[0100] Step 3.2 Bind signal and slot functions: Use the connect function to bind signals and slots.

[0101] Step 3.3 Set the slot function: The slot function of the invention is cropping. Click the left button to start selecting the screenshot area. Move the mouse to draw the screenshot auxiliary line while pressing the left button. Release the left button to start the screenshot operation. A total of 5 functions are defined to complete the cropping function: define the screenshot function, define the function of drawing the screenshot auxiliary line, define the left button click function, define the left button release function, and define the left button move function.

[0102] Screenshot function: record the start and end points of the screenshot, and save the captured image to the current folder. Screenshot auxiliary line drawing function: use drawRect to draw rectangular auxiliary lines and capture the ROI area.

[0103] Click left button function: Click the left button to start selecting the screenshot area.

[0104] Release left button function: Release the left mouse button to end the screenshot.

[0105] Left button move function: Press the left button of the mouse and move the mouse to draw the screenshot auxiliary line.

[0106] Set the function of opening pictures, such as Figure 1 As shown. Click the crop button, the window transparency changes. Setting the window transparency can make it easier for users to observe the cropping effect, which also means that the cropping function has been triggered. Click the left button to start cropping. Press and hold the left button to drag until the entire ROI area is covered. Then release the left button to end cropping. Figure 2 The cropped ROI image is automatically saved to the current folder. Click the cropped image and upload it. Figure 3 shown.

[0107] Step 4 Image zoom and pan function: Use OpenCV to design an image zoom and pan module to facilitate dentists to view image details. Figure 4 shown.

[0108] Step 4.1 Mouse wheel zoom

[0109] Set the zoom multiple, set the initial image window position and size, and calculate the window position of the zoomed image. The width and height of the zoomed image and the width and height of the window will appear in four situations:

[0110] After scaling, the image width and height are smaller than the window width and height: the image width and height are displayed;

[0111] After scaling, the image height is smaller than the window height: the height of the displayed image and the width of the window;

[0112] After scaling, the image width is smaller than the window width: the width of the displayed image and the height of the window;

[0113] After scaling, the image width and height are greater than the window width and height: the width and height of the display window;

[0114] After defining the four cases, call the resize function in opencv and use the interpolation method to scroll and zoom the image.

[0115] Mathematical definition of interpolation: Given n known discrete data points (xk, yk), k = 1, 2, ..., n. For x≠xk, k = 1, 2, ..., n, finding the value of y corresponding to x is called interpolation.

[0116] f(x) is a function defined on the interval [a,b]. x1,x2,x3...xn are n different points on [a,b], and G is a given class of functions. x1,x2,x3...xn are n different points on [a,b], and G is a given class of functions.

[0117] If there is a function g(x) on G that satisfies: g(xi)=f(xi), k=1,2,...n, then g(x) is called the interpolation function of f(x) on G with respect to nodes x1,x2,x3...xn.

[0118] interpolation: interpolation method. Opencv provides 5 interpolation methods for people to choose from. They are

[0119] INTER_NEAREST, INTER_LINEAR, INTER_AREA, INTER_CUBIC, INTER_LANCZOS4.

[0120] As shown in Table 2, the invention selects INTER_AREA: resampling using pixel area relationship. It may be the preferred method for image decimation because it produces results without cloud texture. But when the image is scaled, it is similar to the INTER_NEAREST method.

[0121] Table 2 Five interpolation methods provided by opencv

[0122]

[0123] Step 4.2 Translation

[0124] Click the left mouse button to drag and move the image. This will help dentists see the details of the enlarged image. The window width and height and the current enlarged image width and height will appear in four ways.

[0125] Condition:

[0126] The width and height of the image are smaller than the width and height of the window and cannot be moved;

[0127] The image is wider than the window and can be moved left or right;

[0128] The height of the picture is greater than the height of the window and can be moved up and down;

[0129] The width and height of the image are larger than the width and height of the window, and it can be moved left, right, up, and down;

[0130] Step 5 Image Contrast Function

[0131] The ImageEnhance module of the Python image processing library PIL is called. The ImageEnhance module provides some classes for image enhancement. Contrast is used here, such as Figure 5 As shown, it refers to the difference between the dark and bright values ​​of the image, that is, the difference between the maximum grayscale and the minimum grayscale of the image. Contrast has a critical impact on visual effects. Generally speaking, the greater the contrast, the clearer and more eye-catching the image, and the brighter the color; while the smaller the contrast, the color of the entire picture will be slightly monotonous and the image boundary will be blurred. Contrast adjustment formula:

[0132] g(x)=αf(x)+β

[0133] The parameters α>0 and β are often referred to as the gain parameter and bias parameter; sometimes these parameters are said to control contrast and brightness, respectively. We can think of f(x) as the source image pixel and g(x) as the output image pixel. We can then more conveniently write the expression as:

[0134] g(i,j)=α·f(i,j)+β

[0135] Where i and j indicate that the pixel is located in the i-th row and j-th column. α is multiplied by the source pixel value as a coefficient, which will increase the difference between the maximum pixel value and the minimum pixel value, thereby improving the contrast. β is used as an addend to directly increase the source pixel value, which can improve the brightness.

[0136] Step 6 Image Rotation Function

[0137] like Figure 6 As shown, the rotate function in opencv is called to rotate the image 90 degrees. The cv2.rotate() method is used to rotate a 2D array by multiples of 90 degrees.

[0138] The rotation transformation of an image can also be expressed by matrix transformation. Let the corresponding point p(x,y) after the point p0(x0,y0) is rotated counterclockwise by an angle of θ be. Then, the coordinates of the points p0(x0,y0) and p(x,y) before and after the rotation are:

[0139] x0=rcosα

[0140] y0=rcosα

[0141] x=rcos(α+θ)=rcosαcosθ-rsinαsinθ=x0cosθ-y0sinθ

[0142] y=rsin(α+θ)=rsinαcosθ+rcosαsinθ=x0sinθ+y0cosθ

[0143] Written as a matrix expression:

[0144]

[0145] Its inverse operation is

[0146]

[0147] Step 7. Design the application interface based on pyqt5, encapsulate all functions, and complete the function testing, such as Figure 7 shown.

[0148] Step 8. Package into an executable file. Use pyinstaller to package into an executable file, such as Figure 8 shown.

[0149] Step 8.1 Create a resource folder res, including software background images, test pathology images, trained network models, etc.

[0150] Step 8.2 Generate a .spec file, modify datas = [], and put the res directory (and the files in it) into datas. The list contains tuples. The left side is the filename to be added (relative path is OK), and the right side is the folder name after copying to the project. For example: datas = [('res\efficientnet_weights_best.h5','res'),('image','images')]

[0151] Step 8.3 Package .spec file

[0152] Step 9. Software testing: upload the images of oral mucosal diseases to the software to test the software performance. Fig. 9 shown.

[0153] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any equivalent structural changes made using the contents of the description and drawings of the present invention should be included in the patent protection scope of the invention.

Claims

1. A computer-aided diagnosis method based on deep learning, characterized in that: The following steps are involved: Step 1: Collect data. Oral pathology images are collected by dentists. All pathology images are classified and labeled with disease diagnosis results to establish a pathology image dataset with disease diagnosis labels. Step 2: Target image diagnosis function; Step 3: Image cropping function; using the principle of signals and slots of pyqt5, design a custom cropping module, crop the ROI area, and send the cropped image to the optimal network model in step 2 for detection; remove the parts not related to the lesion and only use the ROI area image; Step 4: Image zoom and translation function: Use opencv to design the image zoom and translation module: Step 5: Image Contrast Function: Call the ImageEnhance module of Python image processing library PIL; Step 6: Image Rotation Function: Call the rotate function in opencv to rotate the image 90 degrees; use The cv2.rotate() method rotates a 2D array by multiples of 90 degrees; Step 7: Design the application interface based on pyqt5, encapsulate all functions, and complete the function testing; Step 8: Package into an executable file, use pyinstaller to package into an executable file; Step 9: Software testing: upload the images of oral mucosal diseases to the software to test the software performance; Step 2 includes the following steps: Step 2.1: Remove images with complex backgrounds and difficult to identify, perform batch image enhancement on the processed images, including rotation, horizontal inversion, contrast, random cropping and Gaussian noise, and scale all images in the dataset to 224×224 size to facilitate model training; Step 2.2: Build a deep learning network model, select the EfficientNet deep network model, and use the keras and tensorflow deep learning frameworks to diagnose the target image; Step 2.3: Adjust and optimize the parameters of the network model through the logs recorded during the training process to make the model reach the optimal state.

2. The computer-aided diagnosis method based on deep learning according to claim 1, characterized in that: Step 3 includes the following steps: Step 3.1: Define signals and parameters: Define signals; record the coordinate point when the left mouse button is clicked to start cropping; record the coordinate point when the left mouse button is released to end cropping; set the window transparency setWindowOpacity parameter, the effective range of transparency is from 1.0 to 0.0; Step 3.2: Bind signal and slot functions: Use the connect function to bind signals and slots; Step 3.3: Set the slot function. The slot function is the operation to be performed when the program responds to the cropping signal; click the left button to start selecting the screenshot area, move the mouse while pressing the left button to draw the screenshot auxiliary line, and release the left button to start the screenshot operation; a total of 5 functions are defined to complete the cropping function: define the screenshot function, define the function for drawing the screenshot auxiliary line, define the left button click function, define the left button release function, and define the left button move function.

3. The computer-aided diagnosis method based on deep learning according to claim 1, characterized in that: Step 4 includes the following steps: Step 4.1 Mouse wheel zoom: Set the zoom factor, set the initial image window position and size, and calculate the window position of the zoomed image; call the resize function in opencv and use interpolation to scroll and zoom the image; Step 4.2: Pan: Click the left mouse button and drag to move the image.

4. The computer-aided diagnosis method based on deep learning according to claim 1, characterized in that: Step 8 includes the following steps: Step 8.1: Create a resource folder res, including software background images, test pathology images, and trained network models; Step 8.2: Generate .spec file and modify datas = [('res\efficientnet_weights_best.h5','res'),('image','images')] in the .spec file; Step 8.3: Package the .spec file.