Construction method and device of feature extraction model, electronic equipment and storage medium

By constructing a feature extraction model and performing self-supervised learning, the problem of difficult sample acquisition and labeling in the construction of existing visual diagnosis models is solved, and high-precision and flexible visual diagnosis model applications are achieved.

CN118692134AActive Publication Date: 2024-09-24CAPITALBIO CORP +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411157162.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-09-24
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

Existing visual diagnosis model construction methods require a large number of samples and annotations, especially when the data is imbalanced, resulting in poor model accuracy, and samples need to be re-collected for model training for each disease, resulting in difficulty and instability.

Method used

By building a feature extraction model and using self-supervised learning to perform non-disease-specific pre-training on eye images, a model capable of extracting eye image features is obtained, and only a small number of disease-specific samples are required for fine-tuning in downstream tasks to obtain accurate visual diagnosis. Model.

Benefits of technology

It breaks the bottleneck of data annotation, improves the accuracy and stability of the visual diagnosis model, reduces the demand for sample size, and enables flexible application among different diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692134A
    Figure CN118692134A
Patent Text Reader

Abstract

The invention discloses a feature extraction model construction method and device, electronic equipment and a storage medium, and the method and device are applied to the electronic equipment and are used for constructing a feature extraction model capable of realizing eye image feature extraction, specifically, eye image data are prepared, the eye image data comprise a plurality of screened and preprocessed eye images, and the eye image data comprise a plurality of selected and preprocessed eye images; the plurality of eye images comprise a plurality of normal eye images and a plurality of abnormal eye images comprising abnormal features; performing shielding processing on the eye image data according to the mask scheme to obtain a training data set; and according to a designed reconstruction target, performing model training by using the training data set to obtain a feature extraction model. According to the invention, non-disease-specific model pre-training is carried out on the eye image, so that the feature extraction model is endowed with the ability of eye image feature extraction. In this way, in downstream tasks, only a small number of disease specific samples need to be used for conducting fine adjustment on the model, and the eye diagnosis model capable of conducting disease diagnosis accurately can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and more specifically, to a method, device, electronic device and storage medium for constructing a feature extraction model. Background Art

[0002] For a long time, traditional medicine represented by Chinese medicine has focused on the "exterior" level of diagnosis, such as observation, smell, questioning, and palpation; modern medicine represented by Western medicine focuses on the "interior" level, such as biochemistry, immunity, molecules, and genes. In the new era, Chinese medicine should be an accurate diagnosis of "exterior and interior are the same", an accurate diagnosis combining Chinese and Western medicine, and an accurate diagnosis combining macro and micro. Only by achieving the true "exterior and interior are the same" can we achieve true precision health management.

[0003] Traditional medicine believes that the tiny color changes of the human body due to disease can be known by observing the eyes. Modern medicine also believes that changes in the microcirculation of the conjunctiva can reflect the condition of the whole body. No matter what kind of disease, there will be corresponding changes in the microcirculation of the conjunctiva of the eye. Therefore, eye diagnosis is not only an important technology for "preventing disease before it occurs", but also an excellent way to combine Chinese and Western medicine. However, due to the lack of carriers to present the entity of the eye image, and the lack of information and visualization, the previous eye diagnosis must rely on the doctor's naked eye observation and personal experience to complete, which naturally formed various different schools of eye diagnosis, which are extremely vague, subjective and instability. This has brought many inconveniences to the clinical, teaching and scientific research of eye diagnosis, and severely limited the role of eye diagnosis.

[0004] At present, some researchers have applied artificial intelligence technology to visual diagnosis, realizing the digitization, objectivity and intelligence of visual diagnosis, and achieved good results. However, the existing scheme requires that a large number of eye images of case groups and control groups be collected as training samples for a certain disease to obtain the corresponding visual diagnosis model. When analyzing another disease, it is necessary to re-collect a large number of samples for model training for another disease. Therefore, the acquisition and labeling of a large number of samples is a prerequisite for model construction. In the field of biomedicine, the acquisition and labeling of samples have their particularities: 1. The sample size of patients is much smaller than that of non-patient samples, and the data is unbalanced; 2) The labeling of medical data has high requirements on the professional level and experience of doctors. Therefore, the current practice of constructing a visual diagnosis model for each disease has great difficulties, resulting in generally poor accuracy of the obtained visual diagnosis model. Summary of the invention

[0005] In view of this, the present application provides a method, device, electronic device and storage medium for constructing a feature extraction model, which is used to obtain a feature extraction model that can realize eye image feature extraction, so that users can obtain a higher-precision visual diagnosis model based on the feature extraction model in downstream tasks.

[0006] In order to achieve the above objectives, the proposed solution is as follows:

[0007] A method for constructing a feature extraction model, applied to an electronic device, for constructing a feature extraction model capable of extracting eye image features, the method comprising the steps of:

[0008] Preparing eye image data, wherein the eye image data includes a plurality of screened and preprocessed eye image images, wherein the plurality of eye image images include a plurality of normal eye image images and a plurality of abnormal eye image images containing abnormal features;

[0009] Performing masking processing on the eye image data according to a masking scheme to obtain a training data set;

[0010] According to the designed reconstruction target, the training data set is used to perform model training to obtain the feature extraction model.

[0011] Optionally, the step of preparing eye image data comprises the following steps:

[0012] Collecting a plurality of the eye images, and performing quality control processing on each of the eye images;

[0013] The eye image that has undergone quality control processing is preprocessed to obtain the eye image data.

[0014] Optionally, the step of preparing eye image data further includes:

[0015] The eye image data is expanded.

[0016] Optionally, the following steps are also included:

[0017] The feature extraction model is used to perform downstream tasks to obtain a visual diagnosis model for a specific disease.

[0018] A device for constructing a feature extraction model, applied to electronic equipment, for constructing a feature extraction model capable of extracting eye image features, the device comprising:

[0019] A data preparation module is configured to prepare eye image data, wherein the eye image data includes a plurality of screened and preprocessed eye image graphs, wherein the plurality of eye image graphs include a plurality of normal eye image graphs and a plurality of abnormal eye image graphs containing abnormal features;

[0020] A mask processing module, configured to perform occlusion processing on the eye image data according to a mask scheme to obtain a training data set;

[0021] The first training module is configured to perform model training using the training data set according to the designed reconstruction target to obtain the feature extraction model.

[0022] Optionally, the data preparation module includes:

[0023] An image acquisition unit, configured to acquire a plurality of the eye images and perform quality control processing on each of the eye images;

[0024] The preprocessing unit is configured to preprocess the eye image that has undergone quality control processing to obtain the eye image data.

[0025] Optionally, the data preparation module further includes:

[0026] The data expansion unit is configured to perform expansion processing on the eye image data.

[0027] Optionally, the construction method further includes:

[0028] The second training module is configured to utilize the feature extraction model to perform downstream tasks and obtain a visual diagnosis model for a specific disease.

[0029] An electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0030] The memory is used to store computer programs or instructions;

[0031] The processor is used to execute the computer program or instruction so that the electronic device implements the method for constructing the feature extraction model as described above.

[0032] A computer-readable storage medium is applied to an electronic device, wherein the storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the method for constructing a feature extraction model as described above.

[0033] It can be seen from the above technical scheme that the present application discloses a method, device, electronic device and storage medium for constructing a feature extraction model. The method and device are applied to electronic devices to construct a feature extraction model capable of extracting eye image features. Specifically, eye image data is prepared, and the eye image data includes a plurality of screened and preprocessed eye image images, and the plurality of eye image images include a plurality of normal eye image images and a plurality of abnormal eye image images including abnormal features; the eye image data is occluded according to the mask scheme to obtain a training data set; according to the designed reconstruction target, the training data set is used to train the model to obtain a feature extraction model. The present application endows the feature extraction model with the ability to extract eye image features by pre-training the eye image image with a non-disease-specific model. In this way, in downstream tasks, only a small number of disease-specific samples need to be used to fine-tune the model to obtain a visual diagnosis model that can accurately diagnose diseases, and the bottleneck of data labeling is broken to a great extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A flowchart of a method for constructing a feature extraction model according to an embodiment of the present application;

[0036] Figure 2 Schematic diagram of eye images from multiple viewing angles;

[0037] Figure 3 This is a schematic diagram of preprocessed eye image data in an embodiment of the present application;

[0038] Figure 4 A flowchart of another method for constructing a feature extraction model according to an embodiment of the present application;

[0039] Figure 5 A block diagram of a device for constructing a feature extraction model according to an embodiment of the present application;

[0040] Figure 6 A block diagram of another device for constructing a feature extraction model according to an embodiment of the present application;

[0041] Figure 7 A block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] Self-supervised learning aims to improve the feature extraction ability of the model by designing auxiliary tasks to mine the representation characteristics of the data itself as supervisory information for unlabeled data. It has been widely used in computer vision and natural language processing and has shown good application results. In practical applications, the model can first be pre-trained through self-supervised learning so that the model focuses on the characteristics of the learning data. The pre-trained model is then migrated to downstream tasks in a variety of ways, thereby reducing the sample size requirements for downstream tasks and improving the accuracy of the model. Based on this, the present application specifically proposes the following technical solutions.

[0044] Figure 1 The present invention is a flowchart of a method for constructing a feature extraction model according to an embodiment of the present application.

[0045] like Figure 1 As shown, the construction method provided in this embodiment is applied to an electronic device for constructing a feature extraction model based on collected eye image data. The electronic device can be understood as a computer, server or cloud platform with data computing and information processing capabilities. The construction method specifically includes the following steps:

[0046] S1. Prepare eye image data.

[0047] The eye image data here refers to a plurality of screened and preprocessed eye image images, and the plurality of eye image images include normal eye image images and abnormal eye image images containing abnormal features. The specific process is as follows:

[0048] First, multiple eye images are collected, including normal eye images and abnormal eye images containing abnormal features. Specifically, during the collection, images of the eyes of the sample person are taken from multiple perspectives, such as Figure 2 The multiple viewing angles include but are not limited to upward viewing, downward viewing, left viewing, right viewing, etc.

[0049] After collection, the eye images need to be quality controlled. The quality control items include but are not limited to screening according to the completeness of the eye images, the exposed area of ​​the eyeball, the diagonal state, hue, brightness and saturation, so as to screen out the eye images that do not meet the above conditions, so that the samples generated subsequently can meet the requirements of model training.

[0050] Then, the eye image is preprocessed. Preprocessing includes white balancing the eye image, segmenting the iris and sclera, and normalizing the image size. White balancing refers to white balancing normalization of the brightness channel of each binocular eye image; iris and sclera segmentation refers to the use of pre-trained deep neural networks, including but not limited to Unet, Swin-Unet, Maxvit-Unet and other methods to distinguish between the iris and sclera; image size normalization refers to scaling the image to 512x512 while maintaining the aspect ratio, and filling the short sides with 0 to eliminate interference from other factors. In the present application, when preprocessing the eye image, first white balance normalization is performed on the brightness channel of the eye image, and then the foreground of the iris and sclera is extracted, and the background areas such as skin, eyelashes, and the edge of the eye image acquisition device are removed, and the size of the segmented image is normalized to 512x512x3 pixels, thereby obtaining the eye image data in the present application, such as Figure 3 shown.

[0051] In addition, the above-mentioned eye image data can also be expanded to improve the robustness of the model for feature learning. Specifically, the data expansion scheme includes data domain expansion and data enhancement. Among them, data domain expansion can use eye image or non-eye image images of any task, including but not limited to natural images, biomedical images (CT images, MRT images, OCT images or ultrasound images), geographic images, etc. Data enhancement methods include but are not limited to image correction (histogram equalization, normalization, white balance, grayscale correction and transformation or image smoothing), illumination distortion (random changes in brightness, contrast or saturation of the image) and geometric distortion (random scaling, cropping, flipping or rotation of the image), multiple color space processing (HIS, Lab, YCbCr), etc.

[0052] Specifically, the data expansion method includes not only adding newly collected or generated data to the database, but also fusing images from different domains. For example, the eye image is divided into n overlapping blocks, and image blocks with k < 50%*n are randomly selected and replaced with images from other domains. Alternatively, the eye image and images of other domains of the same size are fused according to certain rules based on pixel values.

[0053] S2. Perform occlusion processing on the eye image data according to the mask scheme.

[0054] The training data set is obtained by masking the eye image, and the training data set is used for subsequent unsupervised learning. The masking scheme involves masking rate, masking method and noise adding method. Specifically, the masking rate ranges from 0.1 to 0.9; the masking method includes but is not limited to random masking, semantic information integration masking, Block-wise masking and Multi-fold masking methods, etc.; the noise adding method includes but is not limited to adding fixed noise, random noise (salt and pepper noise, Gaussian noise, Poisson noise or heteroscedastic Gaussian noise), etc.

[0055] S3. Use the above training data set to perform model training.

[0056] According to the designed reconstruction target, the model framework is trained using the above training data set to obtain a feature extraction model that can realize feature extraction. Specifically, the model framework includes but is not limited to Vision Transformer, CNN and CNN-Vision Transformer hybrid structures; the reconstruction target includes but is not limited to the original image pixel value and the features calculated based on the original image pixel value, such as the oriented gradient histogram, etc.; the batch size is an integer with 2 and 5 as factors; the learning rate value range is (0.0000001, 1); the optimization method includes but is not limited to Ranger, Adam, SGD, RMSProp, AdaGrad, etc.

[0057] It can be seen from the above technical scheme that the present application provides a method for constructing a feature extraction model, which is applied to electronic devices and is used to construct a feature extraction model that can realize eye image feature extraction, specifically preparing eye image data, the eye image data includes multiple screened and preprocessed eye image images, the multiple eye image images include multiple normal eye image images and multiple abnormal eye image images including abnormal features; performing occlusion processing on the eye image data according to the mask scheme to obtain a training data set; according to the designed reconstruction target, using the training data set to train the model to obtain a feature extraction model. The present application endows the feature extraction model with the ability to extract eye image features by pre-training the eye image image with a non-disease-specific model. In this way, in downstream tasks, only a small number of disease-specific samples need to be used to fine-tune the model to obtain an eye diagnosis model that can accurately diagnose diseases.

[0058] In addition, if Figure 4 As shown, in a specific implementation of the present application, the following steps are also included:

[0059] S4. Use the feature extraction model to perform downstream tasks.

[0060] Through downstream tasks with specific purposes, an eye diagnosis model for a specific disease is obtained. Specifically, downstream tasks include but are not limited to classification tasks, segmentation tasks, reconstruction tasks, and super-resolution tasks of ocular surface images. The classification task includes predicting the samples of ocular surface images as patients with a certain type of disease (or healthy group) according to the disease; the segmentation task includes segmenting the ocular surface structure, such as extracting the iris part; the reconstruction task includes generating more close-to-real ocular surface images based on the currently collected ocular surface images. The super-resolution task includes generating higher-resolution images based on low-resolution images. The feature extraction model structure and weights can be directly used as part or all of the backbone network of the downstream task. This process does not require retraining or only requires simple fine-tuning, which greatly breaks the bottleneck of data labeling.

[0061] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0062] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0063] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0064] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0065] Figure 5 A block diagram of a device for constructing a feature extraction model according to an embodiment of the present application.

[0066] like Figure 5 As shown, the construction device provided in this embodiment is applied to an electronic device for constructing a feature extraction model based on the collected eye image data. The electronic device can be understood as a computer, server or cloud platform with data computing and information processing capabilities. The construction device specifically includes a data preparation module 10, a mask processing module 20 and a first training module 30.

[0067] The data preparation module is used to prepare eye image data.

[0068] The eye image data here refers to a plurality of screened and preprocessed eye image images, and the plurality of eye image images include normal eye image images and abnormal eye image images containing abnormal features. The module includes an image acquisition unit and a preprocessing unit.

[0069] The image acquisition unit is used to acquire multiple eye images, including normal eye images and abnormal eye images containing abnormal features. Specifically, during acquisition, images of the eyes of the sample person are taken from multiple perspectives, such as Figure 2 The multiple viewing angles include but are not limited to upward viewing, downward viewing, left viewing, right viewing, etc.

[0070] After collection, the eye images need to be quality controlled. The quality control items include but are not limited to screening according to the completeness of the eye images, the exposed area of ​​the eyeball, the diagonal state, hue, brightness and saturation, so as to screen out the eye images that do not meet the above conditions, so that the samples generated subsequently can meet the requirements of model training.

[0071] The preprocessing unit is used to preprocess the eye image. Preprocessing includes white balance processing of the eye image, segmentation of the iris and sclera, normalization of the image size, etc. White balance refers to white balance normalization processing of the brightness channel of each binocular eye image; iris and sclera segmentation refers to the use of pre-trained deep neural networks, including but not limited to Unet, Swin-Unet, Maxvit-Unet and other methods to distinguish between the iris and sclera; image size normalization refers to scaling the image to 512x512 while maintaining the aspect ratio, and filling the short edges with 0 to eliminate interference from other factors. In the present application, when preprocessing the eye image, the brightness channel of the eye image is first white balanced and normalized, and then the iris and sclera are foreground extracted, the background areas such as skin, eyelashes, and the edge of the eye image acquisition device are removed, and the size of the segmented image is normalized to 512x512x3 pixels, thereby obtaining the eye image data in the present application, such as Figure 3 shown.

[0072] In addition, a data expansion unit may also be included, which is used to expand the above-mentioned eye image data to improve the robustness of the model to feature learning. Specifically, the data expansion scheme includes data domain expansion and data enhancement. Among them, the data domain expansion can use eye image images or non-eye image images of any task, including but not limited to natural images, biomedical images (CT images, MRT images, OCT images or ultrasound images), geographic images, etc. Data enhancement methods include but are not limited to image correction (histogram equalization, normalization, white balance, grayscale correction and transformation or image smoothing), illumination distortion (random changes in brightness, contrast or saturation of the image) and geometric distortion (random scaling, cropping, flipping or rotation of the image), multiple color space processing (HIS, Lab, YCbCr), etc.

[0073] Specifically, the data expansion method includes not only adding newly collected or generated data to the database, but also fusing images from different domains. For example, the eye image is divided into n overlapping blocks, and image blocks with k < 50%*n are randomly selected and replaced with images from other domains. Alternatively, the eye image and images of other domains of the same size are fused according to certain rules based on pixel values.

[0074] The mask processing module is used to perform occlusion processing on the eye image data according to the mask scheme.

[0075] The training data set is obtained by masking the eye image, and the training data set is used for subsequent unsupervised learning. The masking scheme involves masking rate, masking method and noise adding method. Specifically, the masking rate ranges from 0.1 to 0.9; the masking method includes but is not limited to random masking, semantic information integration masking, Block-wise masking and Multi-fold masking methods, etc.; the noise adding method includes but is not limited to adding fixed noise, random noise (salt and pepper noise, Gaussian noise, Poisson noise or heteroscedastic Gaussian noise), etc.

[0076] The first training module is used to perform model training using the above training data set.

[0077] According to the designed reconstruction target, the model framework is trained using the above training data set to obtain a feature extraction model that can realize feature extraction. Specifically, the model framework includes but is not limited to Vision Transformer, CNN and CNN-Vision Transformer hybrid structures; the reconstruction target includes but is not limited to the original image pixel value and the features calculated based on the original image pixel value, such as the oriented gradient histogram, etc.; the batch size is an integer with 2 and 5 as factors; the learning rate value range is (0.0000001, 1); the optimization method includes but is not limited to Ranger, Adam, SGD, RMSProp, AdaGrad, etc.

[0078] It can be seen from the above technical scheme that the present application provides a device for constructing a feature extraction model, which is applied to electronic devices and is used to construct a feature extraction model that can realize eye image feature extraction, specifically preparing eye image data, the eye image data includes a plurality of screened and preprocessed eye image images, the plurality of eye image images include a plurality of normal eye image images and a plurality of abnormal eye image images including abnormal features; performing occlusion processing on the eye image data according to the masking scheme to obtain a training data set; and performing model training using the training data set according to the designed reconstruction target to obtain a feature extraction model. The present application endows the feature extraction model with the ability to extract eye image features by pre-training the eye image images with a non-disease-specific model. In this way, in downstream tasks, only a small amount of disease-specific samples need to be used to fine-tune the model to obtain an eye diagnosis model that can accurately diagnose diseases.

[0079] In addition, if Figure 6 As shown, in a specific embodiment of the present application, a second training module 40 is also included.

[0080] The second training module is used to perform downstream tasks using the feature extraction model.

[0081] Through downstream tasks with specific purposes, an eye diagnosis model for a specific disease is obtained. Specifically, downstream tasks include but are not limited to classification tasks, segmentation tasks, reconstruction tasks, and super-resolution tasks of ocular surface images. The classification task includes predicting the samples of ocular surface images as patients with a certain type of disease (or healthy group) according to the disease; the segmentation task includes segmenting the ocular surface structure, such as extracting the iris part; the reconstruction task includes generating more close-to-real ocular surface images based on the currently collected ocular surface images. The super-resolution task includes generating higher-resolution images based on low-resolution images. The feature extraction model structure and weights can be directly used as part or all of the backbone network of the downstream task. This process does not require retraining or only requires simple fine-tuning, which greatly breaks the bottleneck of data labeling.

[0082] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0083] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used include, without limitation, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.

[0084] Figure 7 A block diagram of an electronic device according to an embodiment of the present application.

[0085] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. This electronic device is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.

[0086] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 702 or a program loaded from an input device 706 into a random access memory RAM 703. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0087] Typically, the following devices may be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0088] The present application also provides a computer-readable storage medium embodiment.

[0089] The computer-readable storage medium is applied to an electronic device and carries one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device is used to prepare eye image data, the eye image data includes a plurality of screened and preprocessed eye image images, the plurality of eye image images include a plurality of normal eye image images and a plurality of abnormal eye image images including abnormal features; the eye image data is occluded according to the masking scheme to obtain a training data set; according to the designed reconstruction target, the training data set is used to perform model training to obtain a feature extraction model. The present application endows the feature extraction model with the ability to extract eye image features by pre-training the eye image images with a non-disease-specific model. In this way, in downstream tasks, only a small number of disease-specific samples need to be used to fine-tune the model to obtain an eye diagnosis model that can accurately diagnose diseases.

[0090] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above.

[0091] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0092] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0094] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0095] The technical solution provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for constructing a feature extraction model, applied to electronic equipment, for constructing a feature extraction model capable of extracting eye image features, characterized in that: The construction method comprises the steps of: Preparing eye image data, wherein the eye image data includes a plurality of screened and preprocessed eye image images, wherein the plurality of eye image images include a plurality of normal eye image images and a plurality of abnormal eye image images containing abnormal features; Performing masking processing on the eye image data according to a masking scheme to obtain a training data set; According to the designed reconstruction target, the training data set is used to perform model training to obtain the feature extraction model.

2. The construction method according to claim 1, characterized in that: The step of preparing eye image data comprises the following steps: Collecting a plurality of the eye images, and performing quality control processing on each of the eye images; The eye image that has undergone quality control processing is preprocessed to obtain the eye image data.

3. The construction method according to claim 2, characterized in that: The preparation of eye image data also includes the steps of: The eye image data is expanded.

4. The construction method according to any one of claims 1 to 3, characterized in that Also includes the steps: The feature extraction model is used to perform downstream tasks to obtain a visual diagnosis model for a specific disease.

5. A device for constructing a feature extraction model, applied to electronic equipment, for constructing a feature extraction model capable of extracting eye image features, characterized in that: The construction device comprises: A data preparation module is configured to prepare eye image data, wherein the eye image data includes a plurality of screened and preprocessed eye image graphs, wherein the plurality of eye image graphs include a plurality of normal eye image graphs and a plurality of abnormal eye image graphs containing abnormal features; A mask processing module, configured to perform occlusion processing on the eye image data according to a mask scheme to obtain a training data set; The first training module is configured to perform model training using the training data set according to the designed reconstruction target to obtain the feature extraction model.

6. The construction device according to claim 5, characterized in that The data preparation module includes: An image acquisition unit, configured to acquire a plurality of the eye images and perform quality control processing on each of the eye images; The preprocessing unit is configured to preprocess the eye image that has undergone quality control processing to obtain the eye image data.

7. The construction device according to claim 6, characterized in that The data preparation module also includes: The data expansion unit is configured to perform expansion processing on the eye image data.

8. The construction device according to any one of claims 5 to 7, characterized in that: Also includes: The second training module is configured to utilize the feature extraction model to perform downstream tasks and obtain a visual diagnosis model for a specific disease.

9. An electronic device, characterized in that: The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instruction so that the electronic device implements the method for constructing a feature extraction model as described in any one of claims 1 to 4.

10. A computer-readable storage medium, applied to an electronic device, characterized in that: The storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the method for constructing a feature extraction model as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Information processing method and device based on eye image data

    CN111640498A

  • Disease detection system and method based on eye image

    CN115496700A

  • Feature extraction model training method and device, electronic equipment and storage medium

    CN117218468A

  • Model training method and device and related equipment

    CN117273116A

  • Target detection method and device, computer equipment and storage medium

    CN117576364A