CN117316430A - Question answering method, device, equipment and medium for diagnosing ophthalmic diseases - Google Patents
Question answering method, device, equipment and medium for diagnosing ophthalmic diseases Download PDFInfo
- Publication number
- CN117316430A CN117316430A CN202311281060.0A CN202311281060A CN117316430A CN 117316430 A CN117316430 A CN 117316430A CN 202311281060 A CN202311281060 A CN 202311281060A CN 117316430 A CN117316430 A CN 117316430A
- Authority
- CN
- China
- Prior art keywords
- fundus
- question
- model
- ophthalmic
- ophthalmic disease
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/20—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/52—Scale-space analysis, e.g. wavelet analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
- G06V10/765—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects using rules for classification or partitioning the feature space
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/80—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
- G06V10/806—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of extracted features
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/70—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H80/00—ICT specially adapted for facilitating communication between medical practitioners or patients, e.g. for collaborative diagnosis, therapy or health monitoring
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30041—Eye; Retina; Ophthalmic
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Medical Informatics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Public Health (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Primary Health Care (AREA)
- Artificial Intelligence (AREA)
- Epidemiology (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Biomedical Technology (AREA)
- Pathology (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Radiology & Medical Imaging (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Human Computer Interaction (AREA)
- Eye Examination Apparatus (AREA)
Abstract
Description
技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种用于诊断眼科疾病的问答方法、装置、设备及介质。The present application relates to the field of image processing technology, and in particular to a question and answer method, device, equipment and medium for diagnosing ophthalmic diseases.
背景技术Background technique
随着现代医学的不断发展,眼科疾病的诊断和治疗越来越依赖于高科技手段。眼科疾病种类繁多,症状相似,因此需要专业医生进行诊断。With the continuous development of modern medicine, the diagnosis and treatment of eye diseases increasingly rely on high-tech means. There are many types of eye diseases with similar symptoms, so they require diagnosis by a professional doctor.
目前现有的眼科疾病诊断方法和系统存在以下问题:Current existing methods and systems for diagnosing eye diseases have the following problems:
1、大多数眼科疾病诊断系统依赖于专业医生进行诊断,诊断效率低,且医生诊断结果可能存在主观差异。1. Most ophthalmic disease diagnosis systems rely on professional doctors for diagnosis, the diagnosis efficiency is low, and there may be subjective differences in doctors’ diagnosis results.
2、传统的眼科疾病诊断方法需要患者到医院进行诊断,就诊过程繁琐,患者就诊体验不佳,现有的眼科疾病诊断系统缺乏与患者的交互,无法根据患者的具体情况提供个性化的治疗方案。2. Traditional eye disease diagnosis methods require patients to go to the hospital for diagnosis. The medical treatment process is cumbersome and the patient experience is poor. The existing eye disease diagnosis system lacks interaction with patients and cannot provide personalized treatment plans according to the patient's specific conditions. .
发明内容Contents of the invention
本申请实施例提供一种用于诊断眼科疾病的问答方法、装置、电子设备及存储介质,以解决现有技术中眼科疾病诊断效率低,用户就诊过程繁琐,且无法根据患者的具体情况提供个性化的治疗方案的问题。Embodiments of the present application provide a question and answer method, device, electronic equipment and storage medium for diagnosing ophthalmic diseases, so as to solve the problem of low efficiency in diagnosing ophthalmic diseases in the existing technology, cumbersome user consultation process, and inability to provide personalized information according to the specific situation of the patient. treatment options.
为了解决上述技术问题,本申请实施例是这样实现的::In order to solve the above technical problems, the embodiments of the present application are implemented as follows::
第一方面,本申请实施例提供了一种用于诊断眼科疾病的问答方法,所述方法包括:In a first aspect, embodiments of the present application provide a question-and-answer method for diagnosing ophthalmic diseases. The method includes:
获取待检测者的眼底图像;Obtain the fundus image of the person to be tested;
基于眼底疾病分类模型对所述眼底图像进行分类处理,,得到所述眼底图像对应的眼科疾病类别;Classify the fundus image based on a fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image;
基于眼底分割模型对所述眼底图像进行分割处理,得到所述眼底图像对应的眼底分割结果;Perform segmentation processing on the fundus image based on a fundus segmentation model to obtain a fundus segmentation result corresponding to the fundus image;
基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果。Based on the language diagnosis question and answer model, the ophthalmic disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result are processed, and the ophthalmic disease question and answer results of the person to be detected are output.
可选地,在所述基于眼底疾病分类模型对所述眼底图像进行分类处理,得到所述眼底图像对应的眼科疾病类别之前,还包括:Optionally, before performing classification processing on the fundus image based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image, the method further includes:
获取用于训练眼底疾病分类模型的样本眼底图像;Obtain sample fundus images used to train the fundus disease classification model;
基于预设数据增强策略对所述样本眼底图像进行数据增强处理,得到处理眼底图像;Perform data enhancement processing on the sample fundus image based on a preset data enhancement strategy to obtain a processed fundus image;
基于所述处理眼底图像训练所述眼底疾病分类模型。The fundus disease classification model is trained based on the processed fundus images.
可选地,所述基于眼底分割模型对所述眼底图像进行分割处理,得到所述眼底图像对应的眼底分割结果,包括:Optionally, the fundus image is segmented based on the fundus segmentation model to obtain a fundus segmentation result corresponding to the fundus image, including:
将所述眼科疾病类别和所述眼底图像输入至所述眼底分割模型;Input the ophthalmic disease category and the fundus image to the fundus segmentation model;
调用所述眼底分割模型基于所述眼科疾病类别对所述眼底图像进行分割处理,得到所述眼底分割结果。The fundus segmentation model is called to perform segmentation processing on the fundus image based on the ophthalmic disease category to obtain the fundus segmentation result.
可选地,所述调用所述眼底分割模型基于所述眼科疾病类别对所述眼底图像进行分割处理,得到所述眼底分割结果,包括:Optionally, the calling the fundus segmentation model to perform segmentation processing on the fundus image based on the ophthalmic disease category to obtain the fundus segmentation result includes:
调用所述眼底分割模型对所述眼底图像进行特征提取,,以得到所述眼底图像的多尺度眼底特征;Calling the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image;
对所述多尺度眼底特征进行特征融合处理,得到融合特征图;Perform feature fusion processing on the multi-scale fundus features to obtain a fusion feature map;
基于所述眼科疾病类别对所述融合特征图进行处理,得到与所述眼科疾病类别关联的眼底标志物的所述眼底分割结果。The fusion feature map is processed based on the ophthalmic disease category to obtain the fundus segmentation result of fundus markers associated with the ophthalmic disease category.
可选地,在所述基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果之前,还包括:Optionally, before the language-based diagnosis question and answer model processes ophthalmic disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result, and outputs the ophthalmic disease question and answer result of the person to be detected, the method further includes: :
基于眼科知识语料库,构建自然语言指令集;Based on the ophthalmology knowledge corpus, build a natural language instruction set;
基于所述自然语言指令集指导待训练语言诊断问答模型完成回答任务,以得到所述语言诊断问答模型;Guide the language diagnosis question answering model to be trained to complete the answering task based on the natural language instruction set to obtain the language diagnosis question answering model;
其中,所述回答任务指根据用户提问及个人诊断结果进行知识问答、病情解读。Among them, the answering task refers to conducting knowledge questions and answers and disease interpretation based on user questions and personal diagnosis results.
可选地,所述基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果,包括:Optionally, the language-based diagnosis question and answer model processes ophthalmological disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result, and outputs the ophthalmic disease question and answer result of the person to be detected, including:
获取用户输入的所述眼科疾病相关问题问题;Obtain the eye disease-related questions input by the user;
基于所述语言诊断问答模型获取所述眼科疾病相关问题对应的眼科疾病问答结果,并输出所述眼科疾病问答结果。The ophthalmic disease question and answer results corresponding to the ophthalmic disease related questions are obtained based on the language diagnosis question and answer model, and the ophthalmic disease question and answer results are output.
第二方面,本申请实施例提供了一种用于诊断眼科疾病的问答装置,所述装置包括:In a second aspect, embodiments of the present application provide a question-and-answer device for diagnosing ophthalmic diseases. The device includes:
眼底图像获取模块,用于获取待检测者的眼底图像;The fundus image acquisition module is used to obtain the fundus image of the person to be tested;
眼科疾病类别获取模块,用于基于眼底疾病分类模型对所述眼底图像进行分类处理,得到所述眼底图像对应的眼科疾病类别;An ophthalmic disease category acquisition module is used to classify the fundus image based on the fundus disease classification model and obtain the ophthalmic disease category corresponding to the fundus image;
眼底分割结果获取模块,用于基于眼底分割模型对所述眼底图像进行分割处理,得到所述眼底图像对应的眼底分割结果;A fundus segmentation result acquisition module is used to segment the fundus image based on a fundus segmentation model to obtain a fundus segmentation result corresponding to the fundus image;
问答结果输出模块,用于基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果。The question and answer result output module is used to process the ophthalmological disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer result of the person to be detected.
可选地,所述装置还包括:Optionally, the device also includes:
样本图像获取模块,用于获取用于训练眼底疾病分类模型的样本眼底图像;A sample image acquisition module, used to acquire sample fundus images for training the fundus disease classification model;
处理图像获取模块,用于基于预设数据增强策略对所述样本眼底图像进行数据增强处理,得到处理眼底图像;A processed image acquisition module, configured to perform data enhancement processing on the sample fundus image based on a preset data enhancement strategy to obtain a processed fundus image;
分类模型训练模块,用于基于所述处理眼底图像训练所述眼底疾病分类模型。A classification model training module, configured to train the fundus disease classification model based on the processed fundus images.
可选地,所述眼底分割结果获取模块包括:Optionally, the fundus segmentation result acquisition module includes:
眼底图像输入单元,用于将所述眼科疾病类别和所述眼底图像输入至所述眼底分割模型;A fundus image input unit, configured to input the ophthalmic disease category and the fundus image to the fundus segmentation model;
分割结果获取单元,用于调用所述眼底分割模型基于所述眼科疾病类别对所述眼底图像进行分割处理,得到所述眼底分割结果。A segmentation result acquisition unit is configured to call the fundus segmentation model to segment the fundus image based on the ophthalmic disease category to obtain the fundus segmentation result.
可选地,所述分割结果获取单元包括:Optionally, the segmentation result acquisition unit includes:
眼底特征获取子单元,用于调用所述眼底分割模型对所述眼底图像进行特征提取,以得到所述眼底图像的多尺度眼底特征;The fundus feature acquisition subunit is used to call the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image;
特征图获取子单元,用于对所述多尺度眼底特征进行特征融合处理,得到融合特征图;A feature map acquisition subunit is used to perform feature fusion processing on the multi-scale fundus features to obtain a fusion feature map;
分割结果获取子单元,用于基于所述眼科疾病类别对所述融合特征图进行处理,得到与所述眼科疾病类别关联的眼底标志物的所述眼底分割结果。A segmentation result acquisition subunit is configured to process the fusion feature map based on the ophthalmic disease category to obtain the fundus segmentation result of the fundus marker associated with the ophthalmic disease category.
可选地,所述装置还包括:Optionally, the device also includes:
指令集构建模块,用于基于眼科知识语料库,构建自然语言指令集;Instruction set building module, used to build a natural language instruction set based on the ophthalmology knowledge corpus;
问答模型获取模块,用于基于所述自然语言指令集指导待训练语言诊断问答模型完成回答任务,以得到所述语言诊断问答模型;A question and answer model acquisition module, configured to guide the language diagnosis question and answer model to be trained to complete the answering task based on the natural language instruction set to obtain the language diagnosis question and answer model;
其中,所述回答任务指根据用户提问及个人诊断结果进行知识问答、病情解读。Among them, the answering task refers to conducting knowledge questions and answers and disease interpretation based on user questions and personal diagnosis results.
可选地,所述问答结果输出模块包括:Optionally, the question and answer result output module includes:
疾病问题获取单元,用于获取用户根据所述眼科疾病类别和所述眼底分割结果输入的所述眼科疾病相关问题;A disease question obtaining unit, configured to obtain the ophthalmic disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result;
问答结果输出单元,用于基于所述语言诊断问答模型获取所述眼科疾病相关问题对应的眼科疾病问答结果,并输出所述眼科疾病问答结果。A question and answer result output unit is configured to obtain the ophthalmic disease question and answer result corresponding to the ophthalmic disease related question based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer result.
第三方面,本申请实施例提供了一种电子设备,包括::In a third aspect, embodiments of the present application provide an electronic device, including:
存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述任一项所述的用于诊断眼科疾病的问答方法。A memory, a processor, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements any of the above questions and answers for diagnosing ophthalmic diseases. method.
第四方面,本申请实施例提供了一种可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述任一项所述的用于诊断眼科疾病的问答方法。In the fourth aspect, embodiments of the present application provide a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform any of the above-mentioned methods for diagnosing ophthalmology. Question-and-answer approach to disease.
在本申请实施例中,通过获取待检测者的眼底图像。基于眼底疾病分类模型对眼底图像进行分类处理,得到眼底图像对应的眼科疾病类别。基于眼底分割模型对眼底图像进行分割处理,得到眼底图像对应的眼底分割结果。基于语言诊断问答模型对用户根据眼科疾病类别和眼底分割结果输入的眼科疾病相关问题进行处理,输出待检测者的眼科疾病问答结果。本申请实施例通过大模型技术实现眼科疾病的自动诊断和问答,大大提高了诊断效率,减轻了患者的就诊负担,有望改善眼科医疗诊断的效率和精确性,为患者提供更好的医疗服务。同时,本申请还可以根据用户的提问和回答,提供个性化的眼科疾病治疗方案。In the embodiment of the present application, the fundus image of the person to be detected is obtained. Classify the fundus image based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image. The fundus image is segmented based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image. Based on the language diagnosis question and answer model, the questions related to eye diseases input by the user based on the ophthalmological disease categories and fundus segmentation results are processed, and the question and answer results of the eye diseases of the person to be detected are output. The embodiments of this application realize automatic diagnosis and question answering of ophthalmic diseases through large model technology, which greatly improves the diagnosis efficiency and reduces the patient's medical burden. It is expected to improve the efficiency and accuracy of ophthalmic medical diagnosis and provide better medical services to patients. At the same time, this application can also provide personalized eye disease treatment plans based on the user's questions and answers.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solutions of the present application. In order to have a clearer understanding of the technical means of the present application, they can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and understandable. , the specific implementation methods of the present application are specifically listed below.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. , for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种用于诊断眼科疾病的问答方法的步骤流程图;Figure 1 is a step flow chart of a question and answer method for diagnosing ophthalmic diseases provided by an embodiment of the present application;
图2为本申请实施例提供的一种眼底疾病分类模型训练方法的步骤流程图;Figure 2 is a step flow chart of a fundus disease classification model training method provided by an embodiment of the present application;
图3为本申请实施例提供的一种眼底分割结果获取方法的步骤流程图;Figure 3 is a step flow chart of a method for obtaining fundus segmentation results provided by an embodiment of the present application;
图4为本申请实施例提供的另一种眼底分割结果获取方法的步骤流程图;Figure 4 is a step flow chart of another method for obtaining fundus segmentation results provided by an embodiment of the present application;
图5为本申请实施例提供的一种语言诊断问答模型获取方法的步骤流程图;Figure 5 is a step flow chart of a method for obtaining a language diagnosis question and answer model provided by an embodiment of the present application;
图6为本申请实施例提供的一种眼科疾病问答结果输出方法的步骤流程图;Figure 6 is a step flow chart of an eye disease question and answer result output method provided by an embodiment of the present application;
图7为本申请实施例提供的一种诊断问答流程的示意图;Figure 7 is a schematic diagram of a diagnostic question and answer process provided by an embodiment of the present application;
图8为本申请实施例提供的一种分割模型结构的示意图;Figure 8 is a schematic diagram of a segmentation model structure provided by an embodiment of the present application;
图9为本申请实施例提供的一种用于诊断眼科疾病的问答装置的结构示意图;Figure 9 is a schematic structural diagram of a question and answer device for diagnosing ophthalmic diseases provided by an embodiment of the present application;
图10为本申请实施例提供的一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
参照图1,示出了本申请实施例提供的一种用于诊断眼科疾病的问答方法的步骤流程图,如图1所示,该用于诊断眼科疾病的问答方法可以包括:步骤101、步骤102、步骤103和步骤104。Referring to Figure 1 , there is shown a step flow chart of a question and answer method for diagnosing ophthalmic diseases provided by an embodiment of the present application. As shown in Figure 1 , the question and answer method for diagnosing ophthalmic diseases may include: Step 101. 102, step 103 and step 104.
步骤101:获取待检测者的眼底图像。Step 101: Obtain the fundus image of the person to be detected.
本申请实施例可以应用于结合大模型技术(即眼底疾病分类模型、眼底分割模型和语言诊断问答模型)对待检测者进行眼科疾病的诊断及问答的场景中。Embodiments of the present application can be applied to scenarios in which large model technologies (i.e., fundus disease classification models, fundus segmentation models, and language diagnosis question and answer models) are combined to perform diagnosis and question answering of ophthalmic diseases on subjects to be examined.
在需要对待检测者进行眼科疾病诊断时,可以获取待检测者的眼底图像。When it is necessary to diagnose ophthalmic diseases of the subject to be examined, the fundus image of the subject to be examined can be obtained.
在某些示例中,待检测者的眼底图像可以为医院等场所内的眼科设备拍摄的待检测者的眼底图像。例如,在待检测者前往医院等场所就诊时,可以通过医院等场所内的眼科设备拍摄待检测者的眼底图像等。In some examples, the fundus image of the person to be tested may be a fundus image of the person to be tested taken by ophthalmic equipment in a hospital or other places. For example, when the person to be tested goes to a hospital or other places for treatment, the fundus images of the person to be tested can be captured through ophthalmic equipment in the hospital or other places.
在某些示例中,待检测者的眼底图像可以为用户拍摄的待检测者的眼底图像。例如,在待检测者需要远程就诊时,可以由其他用户使用拍摄设备(如手机等)拍摄待检测者的眼底图像等。In some examples, the fundus image of the person to be examined may be a fundus image of the person to be examined taken by the user. For example, when the person to be tested needs remote medical treatment, other users can use a shooting device (such as a mobile phone, etc.) to capture fundus images of the person to be tested.
可以理解地,上述示例仅是为了更好地理解本申请实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。It can be understood that the above examples are only examples to better understand the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation of this embodiment.
在获取到待检测者的眼底图像之后,执行步骤102。After acquiring the fundus image of the person to be detected, step 102 is executed.
步骤102:基于眼底疾病分类模型对所述眼底图像进行分类处理,得到所述眼底图像对应的眼科疾病类别。Step 102: Classify the fundus image based on a fundus disease classification model to obtain an ophthalmic disease category corresponding to the fundus image.
眼底疾病分类模型是指用于诊断眼底图像对应的眼科疾病类别(如眼底图像输入眼底疾病分类模型,得到其对应的眼科疾病标签,包含以下常见眼底疾病:青光眼,黄斑病变,视网膜中央或分支动脉阻塞、视网膜中央或分发静脉阻塞,高血压性视网膜病变,糖尿病视网膜病变,老年性黄斑变性,豹纹样病变,高度近视视网膜病变等等)的模型。The fundus disease classification model refers to the ophthalmology disease category corresponding to the fundus image (for example, the fundus image is input into the fundus disease classification model to obtain its corresponding ophthalmology disease label, including the following common fundus diseases: glaucoma, macular degeneration, central retinal or branch arteries occlusion, central retinal or distributing vein occlusion, hypertensive retinopathy, diabetic retinopathy, age-related macular degeneration, leopard pattern lesions, high myopic retinopathy, etc.) models.
在本示例中,可以使用ResNet-50作为眼底疾病分类模型中的特征提取网络,ResNet模型可以通过残差学习来缓解了深度学习模型随着层数加深而导致的学习效率变低与准确率无法有效提升的问题,同时由于层数的加深而具备更好的特征提取能力和更好的模型分类性能,该网络在图像分类、分割、检测等诸多领域中表现良好。因此,可以采用ResNet-50作为特征提取网络。此外,可以替换最后一个全连接层的输出单元数为分类任务中的分类类别数目。In this example, ResNet-50 can be used as the feature extraction network in the fundus disease classification model. The ResNet model can use residual learning to alleviate the low learning efficiency and inaccurate accuracy of the deep learning model as the number of layers increases. Effectively improve the problem, and at the same time, due to the deepening of the number of layers, it has better feature extraction capabilities and better model classification performance. The network performs well in many fields such as image classification, segmentation, and detection. Therefore, ResNet-50 can be used as the feature extraction network. In addition, the number of output units of the last fully connected layer can be replaced by the number of classification categories in the classification task.
可以理解地,上述眼底疾病分类模型的结构仅是为了更好地理解本申请的技术方案而列举的一种示例,不作为对本实施例中的眼底疾病分类模型结构的唯一限制。It can be understood that the structure of the above fundus disease classification model is only an example to better understand the technical solution of the present application, and is not the only limitation on the structure of the fundus disease classification model in this embodiment.
对于眼底疾病分类模型的训练过程可以结合图2进行如下详细描述。The training process of the fundus disease classification model can be described in detail as follows in conjunction with Figure 2.
参照图2,示出了本申请实施例提供的一种眼底疾病分类模型训练方法的步骤流程图。如图2所示,该眼底疾病分类模型可以包括:步骤201、步骤202和步骤203。Referring to FIG. 2 , a flow chart of steps of a fundus disease classification model training method provided by an embodiment of the present application is shown. As shown in Figure 2, the fundus disease classification model may include: step 201, step 202 and step 203.
步骤201:获取用于训练眼底疾病分类模型的样本眼底图像。Step 201: Obtain sample fundus images used for training the fundus disease classification model.
在本申请实施例中,在训练眼底疾病分类模型时,可以先获取用于训练眼底疾病分类模型的样本眼底图像。In the embodiment of the present application, when training the fundus disease classification model, sample fundus images for training the fundus disease classification model may first be obtained.
在具体实现中,样本眼底图像可以包含患有眼科疾病的眼底图像,如患有青光眼、黄斑病变,视网膜中央或分支动脉阻塞、视网膜中央或分发静脉阻塞,高血压性视网膜病变,糖尿病视网膜病变,老年性黄斑变性,豹纹样病变,高度近视视网膜病变等不同眼科疾病的眼底图像。也可以包含未患有眼科疾病的眼底图像,即正常的眼底图像。通过增加正常的眼底图像辅助进行模型训练,能够提高眼底疾病分类模型的预测精度。In a specific implementation, the sample fundus images may include fundus images of patients with ophthalmic diseases, such as patients with glaucoma, macular degeneration, central or branch retinal artery occlusion, central retinal or distribution vein occlusion, hypertensive retinopathy, diabetic retinopathy, Fundus images of different eye diseases such as age-related macular degeneration, leopard pattern lesions, and high myopic retinopathy. Fundus images without ophthalmic diseases, that is, normal fundus images, can also be included. By adding normal fundus images to assist in model training, the prediction accuracy of the fundus disease classification model can be improved.
在本示例中,样本眼底图像可以是从医疗数据库中提取的眼底图像,也可以是从医疗网站或其它网站上下载的眼底图像等。具体地,对样本眼底图像的获取方式可以根据业务需求而定,本实施例对此不加以限制。In this example, the sample fundus image may be a fundus image extracted from a medical database, or may be a fundus image downloaded from a medical website or other websites, etc. Specifically, the method of obtaining the sample fundus image may be determined according to business requirements, and this embodiment is not limited to this.
在获取到用于训练眼底疾病分类模型的样本眼底图像之后,执行步骤202。After obtaining the sample fundus image for training the fundus disease classification model, step 202 is performed.
步骤202:基于预设数据增强策略对所述样本眼底图像进行数据增强处理,得到处理眼底图像。Step 202: Perform data enhancement processing on the sample fundus image based on a preset data enhancement strategy to obtain a processed fundus image.
在获取到用于训练眼底疾病分类模型的样本眼底图像之后,则可以基于预设数据增强策略对样本眼底图像进行数据增强处理,以得到处理眼底图像。After obtaining the sample fundus image for training the fundus disease classification model, data enhancement processing can be performed on the sample fundus image based on the preset data enhancement strategy to obtain the processed fundus image.
在本示例中,预设数据增强策略可以包括:随机旋转、随机水平/垂直翻转等数据增强策略,本实施例对于预设数据增强策略的具体类型不加以限制。In this example, the preset data enhancement strategy may include: random rotation, random horizontal/vertical flipping, and other data enhancement strategies. This embodiment does not limit the specific type of the preset data enhancement strategy.
本申请实施例通过在眼底疾病分类模型的训练过程通过预设数据增强策略对样本眼底图像进行数据增强处理,从而可以增加模型的泛华性能。The embodiment of the present application performs data enhancement processing on sample fundus images through preset data enhancement strategies during the training process of the fundus disease classification model, thereby increasing the general performance of the model.
在基于预设数据增强策略对样本眼底图像进行数据增强处理得到处理眼底图像之后,执行步骤203。After performing data enhancement processing on the sample fundus image based on the preset data enhancement strategy to obtain the processed fundus image, step 203 is performed.
步骤203:基于所述处理眼底图像训练所述眼底疾病分类模型。Step 203: Train the fundus disease classification model based on the processed fundus images.
在基于预设数据增强策略对样本眼底图像进行数据增强处理得到处理眼底图像之后,则可以基于处理眼底图像训练眼底疾病分类模型。具体地训练过程可以如下所示:After performing data enhancement processing on the sample fundus image based on the preset data enhancement strategy to obtain the processed fundus image, the fundus disease classification model can be trained based on the processed fundus image. The specific training process can be as follows:
1、将处理眼底图像分为若干批次,每个批次的处理眼底图像的数量可以是相同的,也可以是不相同的。1. Divide the processed fundus images into several batches. The number of processed fundus images in each batch may be the same or different.
2、将每个批次的处理眼底图像依次输入至待训练眼底疾病分类模型,以对待训练眼底疾病分类模型进行训练。2. Input the processed fundus images of each batch into the fundus disease classification model to be trained in order to train the fundus disease classification model to be trained.
3、获取待训练眼底疾病分类模型输出的样本眼底图像的预测分类结果,结合预测分类结果和预先标注的真实分类结果进行损失值计算。3. Obtain the predicted classification results of the sample fundus images output by the fundus disease classification model to be trained, and calculate the loss value by combining the predicted classification results and the pre-labeled real classification results.
4、在计算得到的损失值处于预设范围内的情况下,则可以将训练后的待训练眼底疾病分类模型作为最终的眼底疾病分类模型。4. When the calculated loss value is within the preset range, the trained fundus disease classification model to be trained can be used as the final fundus disease classification model.
在训练得到眼底疾病分类模型且对待检测者进行眼科疾病诊断时,则可以通过眼底疾病分类模型的待检测者的眼底图像进行分类处理,以得到眼底图像对应的眼科疾病类别。When the fundus disease classification model is trained and the eye disease diagnosis of the subject is performed, the fundus image of the subject to be detected can be classified and processed through the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image.
在基于眼底疾病分类模型对眼底图像进行分类处理得到眼底图像对应的眼科疾病类别之后,执行步骤103。After classifying the fundus image based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image, step 103 is executed.
步骤103:基于眼底分割模型对所述眼底图像进行分割处理,得到所述眼底图像对应的眼底分割结果。Step 103: Segment the fundus image based on the fundus segmentation model to obtain a fundus segmentation result corresponding to the fundus image.
在基于眼底疾病分类模型对眼底图像进行分类处理得到眼底图像对应的眼科疾病类别之后,则可以基于眼底分割模型对眼底图像进行分割处理,以得到眼底图像对应的眼底分割结果。其中,眼底分割结果即为对眼底图像内各眼底标志物的分割结果,如动静脉血管,视杯视盘,豹纹,弧形斑,病灶,神经纤维层等等。After the fundus image is classified based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image, the fundus image can be segmented based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image. Among them, the fundus segmentation result is the segmentation result of each fundus marker in the fundus image, such as arterial and venous blood vessels, optic cup and optic disc, leopard pattern, arcuate spots, lesions, nerve fiber layer, etc.
在具体实现中,在得到眼底疾病分类模型预测的眼底图像的眼科疾病类别之后,还可以基于眼科疾病类别辅助眼底分割模型对眼底图像进行分割。对于该实现过程可以结合图3进行如下详细描述。In a specific implementation, after obtaining the ophthalmic disease category of the fundus image predicted by the fundus disease classification model, the fundus image can also be segmented based on the ophthalmic disease category assisted fundus segmentation model. This implementation process can be described in detail as follows in conjunction with Figure 3.
参照图3,示出了本申请实施例提供的一种眼底分割结果获取方法的步骤流程图。如图3所示,该眼底分割结果获取方法可以包括:步骤301和步骤302。Referring to FIG. 3 , a flow chart of steps of a method for obtaining fundus segmentation results provided by an embodiment of the present application is shown. As shown in Figure 3, the fundus segmentation result acquisition method may include: step 301 and step 302.
步骤301:将所述眼科疾病类别和所述眼底图像输入至所述眼底分割模型。Step 301: Input the ophthalmic disease category and the fundus image to the fundus segmentation model.
在本申请实施例中,在得到眼底疾病分类模型输出的眼科疾病类别之后,则可以将该眼科疾病类别以及待检测者的眼底图像输入至眼底分割模型中。In the embodiment of the present application, after the ophthalmic disease category output by the fundus disease classification model is obtained, the ophthalmic disease category and the fundus image of the person to be detected can be input into the fundus segmentation model.
在本示例中,可以使用Unet++作为眼底分割模型,其在Unet的基础上改进了跳跃连接的方式,可以抓取不同层次的特征,将它们通过特征叠加的方式整合(如图8所示),使得融合时的特征图尺度差异更小。此外,Unet++还引入了深度监督策略,使得模型更新时梯度可以传播到每个节点,进一步提升了分割性能。In this example, Unet++ can be used as the fundus segmentation model. It improves the skip connection method based on Unet. It can capture features at different levels and integrate them through feature superposition (as shown in Figure 8). This makes the feature map scale difference smaller during fusion. In addition, Unet++ also introduces a deep supervision strategy, so that the gradient can be propagated to each node when the model is updated, further improving the segmentation performance.
当然,不仅限于此,在具体实现中,还可以采用其它结构作为眼底分割模型,本实施例对于眼底分割模型的具体结构不加以限制。Of course, it is not limited to this. In specific implementation, other structures can also be used as the fundus segmentation model. This embodiment does not limit the specific structure of the fundus segmentation model.
在将眼科疾病类别和眼底图像输入至眼底分割模型之后,执行步骤302。After the ophthalmic disease category and the fundus image are input to the fundus segmentation model, step 302 is performed.
步骤302:调用所述眼底分割模型基于所述眼科疾病类别对所述眼底图像进行分割处理,得到所述眼底分割结果。Step 302: Call the fundus segmentation model to perform segmentation processing on the fundus image based on the ophthalmic disease category to obtain the fundus segmentation result.
在将眼科疾病类别和眼底图像输入至眼底分割模型之后,则可以调用眼底分割模型基于眼科疾病类别对眼底图像进行分割处理,以得到眼底分割结果。具体地,通过眼科疾病类别的辅助分割手段,能够是分割模型更加关注该眼科疾病类别所对应的眼底区域,提高眼底分割的准确性。After the ophthalmic disease categories and fundus images are input into the fundus segmentation model, the fundus segmentation model can be called to segment the fundus images based on the ophthalmic disease categories to obtain the fundus segmentation results. Specifically, through the auxiliary segmentation method of the ophthalmic disease category, the segmentation model can pay more attention to the fundus area corresponding to the ophthalmic disease category, and improve the accuracy of fundus segmentation.
在本示例中,对于眼底分割模型的处理过程可以结合图4进行如下详细描述。In this example, the processing process of the fundus segmentation model can be described in detail as follows with reference to Figure 4.
参照图4,示出了本申请实施例提供的另一种眼底分割结果获取方法的步骤流程图。如图4所示,该眼底分割结果获取方法可以包括:步骤401、步骤402和步骤403。Referring to FIG. 4 , a flow chart of steps of another method for obtaining fundus segmentation results provided by an embodiment of the present application is shown. As shown in Figure 4, the fundus segmentation result acquisition method may include: step 401, step 402 and step 403.
步骤401:调用所述眼底分割模型对所述眼底图像进行特征提取,以得到所述眼底图像的多尺度眼底特征。Step 401: Call the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image.
在本申请实施例中,可以先调用眼底分割模型对眼底图像进行特征提取,以得到眼底图像的多尺度眼底特征。如提取眼底图像中1*1、3*3、6*6等不同尺度的特征等。In the embodiment of the present application, the fundus segmentation model can be first called to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image. For example, extracting features of different scales such as 1*1, 3*3, 6*6, etc. in fundus images.
在调用眼底分割模型对眼底图像进行特征提取得到眼底图像的多尺度眼底特征之后,执行步骤402。After calling the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image, step 402 is executed.
步骤402:对所述多尺度眼底特征进行特征融合处理,得到融合特征图。Step 402: Perform feature fusion processing on the multi-scale fundus features to obtain a fusion feature map.
在调用眼底分割模型对眼底图像进行特征提取得到眼底图像的多尺度眼底特征之后,则可以对多尺度眼底特征进行特征融合处理,以得到融合特征图。在具体实现中,可以采用特征叠加的方式将多尺度眼底特征进行融合,从而可以使得融合时的特征图尺度差异更小。After calling the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image, feature fusion processing can be performed on the multi-scale fundus features to obtain a fusion feature map. In specific implementation, feature superposition can be used to fuse multi-scale fundus features, so that the scale difference of the feature maps during fusion can be smaller.
在对多尺度眼底特征进行特征融合处理得到融合特征图之后,执行步骤403。After performing feature fusion processing on the multi-scale fundus features to obtain a fused feature map, step 403 is executed.
步骤403:基于所述眼科疾病类别对所述融合特征图进行处理,得到与所述眼科疾病类别关联的眼底标志物的所述眼底分割结果。Step 403: Process the fusion feature map based on the ophthalmic disease category to obtain the fundus segmentation result of the fundus marker associated with the ophthalmic disease category.
在对多尺度眼底特征进行特征融合处理得到融合特征图之后,则可以基于眼科疾病类别对融合特征图进行处理,得到与眼科疾病类别关联的眼底标志物的眼底分割结果。即通过眼底疾病分类模型预测的眼科疾病类别辅助眼底分割模型,使眼底分割模型更加关注于融合特征图内与眼科疾病类别关联的眼底标志物,以更好地进行分割,得到相应的眼底分割结果。After performing feature fusion processing on multi-scale fundus features to obtain a fused feature map, the fused feature map can be processed based on the ophthalmic disease category to obtain fundus segmentation results of fundus markers associated with the ophthalmic disease category. That is, the ophthalmic disease categories predicted by the fundus disease classification model assist the fundus segmentation model, so that the fundus segmentation model pays more attention to the fundus markers associated with the ophthalmic disease categories in the fusion feature map, so as to perform better segmentation and obtain the corresponding fundus segmentation results. .
在基于眼底分割模型对眼底图像进行分割处理得到眼底图像对应的眼底分割结果之后,执行步骤104。After segmenting the fundus image based on the fundus segmentation model to obtain a fundus segmentation result corresponding to the fundus image, step 104 is executed.
步骤104:基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果。Step 104: Process the ophthalmological disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer results of the person to be detected.
语言诊断问答模型是指用于结合患者的疾病情况与用户(可以为患者,也可以为患者的亲属等)进行相应交互问答的模型。The language diagnosis question and answer model refers to a model used to conduct corresponding interactive question and answer with the user (which can be the patient or the patient's relative, etc.) based on the patient's disease condition.
在本示例中,语言诊断问答模型可以为但不限于ChatGLM2-6B。ChatGLM2-6B是一种开源的支持中英双语问答的对话语言模型,基于General Language Model(GLM)架构,具有62亿参数。对于语言诊断问答模型的训练过程可以结合图5进行如下详细描述。In this example, the language diagnosis question answering model can be but is not limited to ChatGLM2-6B. ChatGLM2-6B is an open source conversational language model that supports Chinese and English bilingual question and answer. It is based on the General Language Model (GLM) architecture and has 6.2 billion parameters. The training process of the language diagnosis question answering model can be described in detail as follows in conjunction with Figure 5.
参照图5,示出了本申请实施例提供的一种语言诊断问答模型获取方法的步骤流程图。如图5所示,该语言诊断问答模型获取方法可以包括:步骤501和步骤502。Referring to FIG. 5 , a flow chart of steps of a method for obtaining a language diagnosis question and answer model provided by an embodiment of the present application is shown. As shown in Figure 5, the language diagnosis question and answer model acquisition method may include: step 501 and step 502.
步骤501:基于眼科知识语料库,构建自然语言指令集。Step 501: Construct a natural language instruction set based on the ophthalmology knowledge corpus.
在本实施例中,可以先基于眼科知识语料库构建自然语言指令集。具体地,对于医学专家审核标注的眼科知识语料库,可以采用人工和ChatGPT相结合的方式构建自然语言指令集。自然语言指令集汇总的指令可以用于指导模型完成回答任务。In this embodiment, a natural language instruction set can first be constructed based on the ophthalmic knowledge corpus. Specifically, for the ophthalmology knowledge corpus reviewed and annotated by medical experts, a natural language instruction set can be constructed using a combination of artificial intelligence and ChatGPT. The instructions compiled from the natural language instruction set can be used to guide the model to complete the answering task.
在基于眼科知识预料库构建得到自然语言指令集之后,,执行步骤502。After the natural language instruction set is constructed based on the ophthalmic knowledge prediction database, step 502 is executed.
步骤502:基于所述自然语言指令集指导待训练语言诊断问答模型执行特定操作或完成回答任务,以得到所述语言诊断问答模型。Step 502: Instruct the language diagnosis question answering model to be trained to perform specific operations or complete answering tasks based on the natural language instruction set to obtain the language diagnosis question answering model.
在基于眼科知识预料库构建得到自然语言指令集之后,,则可以基于自然语言指令集指导待训练语言诊断问答模型完成回答任务,从而得到语言诊断问答模型。After the natural language instruction set is constructed based on the ophthalmic knowledge prediction database, the language diagnosis question answering model to be trained can be guided to complete the answering task based on the natural language instruction set, thereby obtaining the language diagnosis question answering model.
具体地,回答任务指根据用户提问及个人诊断结果进行知识问答、病情解读等。对指令集使用P-tuning或全参数指令微调技术,提高问答模型对语言指令的响应能力,使其能够生成符合语料库专家知识且符合人类偏好的回答。Specifically, the answering task refers to conducting knowledge questions and answers, disease interpretation, etc. based on user questions and personal diagnosis results. Use P-tuning or full-parameter instruction fine-tuning technology on the instruction set to improve the response ability of the question and answer model to language instructions, so that it can generate answers that are consistent with corpus expert knowledge and human preferences.
在基于眼底分割模型对眼底图像进行分割处理得到眼底图像对应的眼底分割结果之后,则可以将眼科疾病类别和眼底分割结果发送给用户,进而可以由用户根据眼科疾病类别和眼底分割结果输入眼科疾病相关问题。然后,语言诊断问答模型就可以根据用户输入的眼科疾病相关问题获取相应的眼科疾病问答结果,并输出眼科疾病问答结果。其中,眼科疾病问答结果可以包括:治疗建议、疾病发病原因等结果。After the fundus image is segmented based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image, the ophthalmic disease category and the fundus segmentation result can be sent to the user, and the user can then input the ophthalmic disease according to the ophthalmic disease category and the fundus segmentation result. Related questions. Then, the language diagnosis question and answer model can obtain the corresponding eye disease question and answer results based on the eye disease-related questions input by the user, and output the eye disease question and answer results. Among them, the results of eye disease question and answer can include: treatment suggestions, causes of diseases, etc.
在具体实现中,语言诊断问答模型可以结合用户输入的问题进行相应的回答,以提供个性化的眼科疾病治疗方案。对于该实现方案可以结合图6进行如下详细描述。In specific implementation, the language diagnosis question and answer model can answer the questions entered by the user accordingly to provide personalized eye disease treatment plans. This implementation can be described in detail as follows in conjunction with Figure 6 .
参照图6,示出了本申请实施例提供的一种眼科疾病问答结果输出方法的步骤流程图。如图6所示,该眼科疾病问答结果输出方法可以包括:步骤601和步骤602。Referring to FIG. 6 , a step flow chart of a method for outputting ophthalmic disease question and answer results provided by an embodiment of the present application is shown. As shown in Figure 6, the method for outputting ophthalmic disease question and answer results may include: step 601 and step 602.
步骤601:获取用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题。Step 601: Obtain ophthalmic disease-related questions input by the user based on the ophthalmic disease category and the fundus segmentation result.
在本申请实施例中,在得到眼科疾病类别和眼底分割结果之后,则可以将眼科疾病类别和眼底分割结果发送给用户,进而可以获取用户根据眼科疾病类别和眼底分割结果输入的眼科疾病相关问题。如患有什么眼科疾病?如何治疗?发病原因是什么等等。In the embodiment of the present application, after the ophthalmic disease category and the fundus segmentation result are obtained, the ophthalmic disease category and the fundus segmentation result can be sent to the user, and then the ophthalmological disease-related questions input by the user based on the ophthalmic disease category and the fundus segmentation result can be obtained . What eye diseases do you suffer from? How to treat? What is the cause of the disease, etc.
在获取到用户根据眼科疾病类别和眼底分割结果输入的眼科疾病相关问题之后,执行步骤602。After obtaining the ophthalmic disease-related questions input by the user based on the ophthalmic disease category and the fundus segmentation result, step 602 is executed.
步骤602:基于所述语言诊断问答模型获取所述眼科疾病相关问题对应的眼科疾病问答结果,并输出所述眼科疾病问答结果。Step 602: Obtain the ophthalmic disease question and answer results corresponding to the ophthalmic disease related questions based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer results.
在获取到用户输入的眼科疾病相关问题之后,则可以基于语言诊断问答模型获取眼科疾病相关问题对应的眼科疾病问答结果,并输出眼科疾病相关问题对应的眼科疾病问答结果。After obtaining the eye disease-related questions input by the user, the eye disease question and answer results corresponding to the eye disease related questions can be obtained based on the language diagnosis question answering model, and the eye disease question and answer results corresponding to the eye disease related questions can be output.
本申请实施例通过大模型技术实现眼科疾病的自动诊断和问答,大大提高了诊断效率,减轻了患者的就诊负担,有望改善眼科医疗诊断的效率和精确性,为患者提供更好的医疗服务。同时,本实施例还可以根据用户的提问和回答,提供个性化的眼科疾病治疗方案。The embodiments of this application realize automatic diagnosis and question answering of ophthalmic diseases through large model technology, which greatly improves the diagnosis efficiency and reduces the patient's medical burden. It is expected to improve the efficiency and accuracy of ophthalmic medical diagnosis and provide better medical services to patients. At the same time, this embodiment can also provide personalized ophthalmic disease treatment plans based on the user's questions and answers.
对于上述实现过程可以结合图7进行如下完整性描述。The above implementation process can be described completely as follows in conjunction with Figure 7.
参照图7,示出了本申请实施例提供的一种诊断问答流程的示意图。Referring to FIG. 7 , a schematic diagram of a diagnostic question and answer process provided by an embodiment of the present application is shown.
如图7所示,在对待检测者进行眼科疾病诊断时,可以先进行数据采集,即获取待检测者的眼底图像,并对待检测者的眼底图像进行清洗,即筛选出符合条件(即质量较高的眼底图像)的眼底图像。在得到符合条件的眼底图像之后,则可以将眼底图像输入至眼底疾病分类模型和眼底标志物分割模型(即本示例中的眼底分割模型)。通过眼底疾病分类模型可以输出疾病标签,如青光眼,黄斑病变,视网膜中央或分支动脉阻塞、视网膜中央或分发静脉阻塞,高血压性视网膜病变,糖尿病视网膜病变,老年性黄斑变性,豹纹样病变,高度近视视网膜病变等等。通过眼底标志物分割模型可以输出疾病病灶区域,如动静脉血管,视杯视盘,豹纹,弧形斑,病灶,神经纤维层等等。然后,可以由待检测者或其他用户输入疾病相关的问题,眼底知识问答模型(即本示例中的语言诊断问答模型)可以结合眼底疾病分类模型输出的疾病标签和眼底标志物分割模型输出的疾病病灶区域,给出相应的回答,如治疗建议、疾病发病原因等等。As shown in Figure 7, when diagnosing eye diseases of the subject, data collection can be performed first, that is, the fundus image of the subject is obtained, and the fundus image of the subject is cleaned, that is, the ones that meet the conditions (that is, the quality is relatively high) fundus image (high fundus image). After obtaining the fundus image that meets the conditions, the fundus image can be input to the fundus disease classification model and the fundus marker segmentation model (ie, the fundus segmentation model in this example). The fundus disease classification model can output disease labels, such as glaucoma, macular degeneration, central or branch retinal artery occlusion, central retinal or distribution vein occlusion, hypertensive retinopathy, diabetic retinopathy, age-related macular degeneration, leopard pattern lesions, height Myopic retinopathy, etc. The fundus landmark segmentation model can output disease focus areas, such as arteriovenous vessels, optic cups and discs, leopard patterns, arcuate spots, lesions, nerve fiber layers, etc. Then, the person to be tested or other users can input disease-related questions, and the fundus knowledge question and answer model (ie, the language diagnosis question and answer model in this example) can combine the disease labels output by the fundus disease classification model and the diseases output by the fundus marker segmentation model. The focus area will be given corresponding answers, such as treatment suggestions, causes of disease, etc.
可以理解地,对于本实施例提供的语言诊断问答模型,未患有眼科疾病的用户也可以进行相应的问答,例如,对于正常用户而言,其可能需要了解某些眼科疾病,如青光眼的发病原因,治疗建议等,此时,该用户可以输入相应的与青光眼关联的问题,语言诊断问答模型可以直接根据用户输入的问题输出相应的问答结果等。It can be understood that for the language diagnosis question and answer model provided in this embodiment, users who do not suffer from ophthalmic diseases can also perform corresponding questions and answers. For example, for normal users, they may need to understand the onset of certain ophthalmic diseases, such as glaucoma. Causes, treatment suggestions, etc. At this time, the user can input corresponding questions related to glaucoma, and the language diagnosis question and answer model can directly output corresponding question and answer results based on the questions entered by the user.
本申请实施例提供的用于诊断眼科疾病的问答方法,通过获取待检测者的眼底图像。基于眼底疾病分类模型对眼底图像进行分类处理,得到眼底图像对应的眼科疾病类别。基于眼底分割模型对眼底图像进行分割处理,得到眼底图像对应的眼底分割结果。基于语言诊断问答模型对用户根据眼科疾病类别和眼底分割结果输入的眼科疾病相关问题进行处理,输出待检测者的眼科疾病问答结果。本申请实施例通过大模型技术实现眼科疾病的自动诊断和问答,大大提高了诊断效率,减轻了患者的就诊负担,有望改善眼科医疗诊断的效率和精确性,为患者提供更好的医疗服务。同时,本申请还可以根据用户的提问和回答,提供个性化的眼科疾病治疗方案。The question-and-answer method provided by the embodiment of the present application for diagnosing ophthalmic diseases obtains fundus images of the person to be detected. Classify the fundus image based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image. The fundus image is segmented based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image. Based on the language diagnosis question and answer model, the questions related to eye diseases input by the user based on the ophthalmological disease categories and fundus segmentation results are processed, and the question and answer results of the eye diseases of the person to be detected are output. The embodiments of this application realize automatic diagnosis and question answering of ophthalmic diseases through large model technology, which greatly improves the diagnosis efficiency and reduces the patient's medical burden. It is expected to improve the efficiency and accuracy of ophthalmic medical diagnosis and provide better medical services to patients. At the same time, this application can also provide personalized eye disease treatment plans based on the user's questions and answers.
参照图9,示出了本申请实施例提供的一种用于诊断眼科疾病的问答装置的结构示意图,如图9所示,该用于诊断眼科疾病的问答装置900可以包括以下模块:Referring to Figure 9, a schematic structural diagram of a question and answer device for diagnosing ophthalmic diseases provided by an embodiment of the present application is shown. As shown in Figure 9, the question and answer device 900 for diagnosing ophthalmic diseases may include the following modules:
眼底图像获取模块910,用于获取待检测者的眼底图像;The fundus image acquisition module 910 is used to acquire the fundus image of the person to be detected;
眼科疾病类别获取模块920,用于基于眼底疾病分类模型对所述眼底图像进行分类处理,得到所述眼底图像对应的眼科疾病类别;;The ophthalmic disease category acquisition module 920 is used to classify the fundus image based on the fundus disease classification model and obtain the ophthalmic disease category corresponding to the fundus image;;
眼底分割结果获取模块930,用于基于眼底分割模型对所述眼底图像进行分割处理,得到所述眼底图像对应的眼底分割结果;The fundus segmentation result acquisition module 930 is used to segment the fundus image based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image;
问答结果输出模块940,用于基于语言诊断问答模型对用户根据所述眼科疾病类别和所述眼底分割结果输入的眼科疾病相关问题进行处理,输出所述待检测者的眼科疾病问答结果。The question and answer result output module 940 is used to process the ophthalmological disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer result of the person to be detected.
可选地,所述装置还包括:Optionally, the device also includes:
样本图像获取模块,用于获取用于训练眼底疾病分类模型的样本眼底图像;A sample image acquisition module, used to acquire sample fundus images for training the fundus disease classification model;
处理图像获取模块,用于基于预设数据增强策略对所述样本眼底图像进行数据增强处理,得到处理眼底图像;A processed image acquisition module, configured to perform data enhancement processing on the sample fundus image based on a preset data enhancement strategy to obtain a processed fundus image;
分类模型训练模块,用于基于所述处理眼底图像训练所述眼底疾病分类模型。A classification model training module, configured to train the fundus disease classification model based on the processed fundus images.
可选地,所述眼底分割结果获取模块包括:Optionally, the fundus segmentation result acquisition module includes:
眼底图像输入单元,用于将所述眼科疾病类别和所述眼底图像输入至所述眼底分割模型;A fundus image input unit, configured to input the ophthalmic disease category and the fundus image to the fundus segmentation model;
分割结果获取单元,用于调用所述眼底分割模型基于所述眼科疾病类别对所述眼底图像进行分割处理,得到所述眼底分割结果。A segmentation result acquisition unit is configured to call the fundus segmentation model to segment the fundus image based on the ophthalmic disease category to obtain the fundus segmentation result.
可选地,所述分割结果获取单元包括:Optionally, the segmentation result acquisition unit includes:
眼底特征获取子单元,用于调用所述眼底分割模型对所述眼底图像进行特征提取,以得到所述眼底图像的多尺度眼底特征;A fundus feature acquisition subunit is used to call the fundus segmentation model to perform feature extraction on the fundus image to obtain multi-scale fundus features of the fundus image;
特征图获取子单元,用于对所述多尺度眼底特征进行特征融合处理,得到融合特征图;A feature map acquisition subunit is used to perform feature fusion processing on the multi-scale fundus features to obtain a fusion feature map;
分割结果获取子单元,用于基于所述眼科疾病类别对所述融合特征图进行处理,得到与所述眼科疾病类别关联的眼底标志物的所述眼底分割结果。A segmentation result acquisition subunit is configured to process the fusion feature map based on the ophthalmic disease category to obtain the fundus segmentation result of the fundus marker associated with the ophthalmic disease category.
可选地,所述装置还包括:Optionally, the device also includes:
指令集构建模块,用于基于眼科知识语料库,构建自然语言指令集;Instruction set building module, used to build a natural language instruction set based on the ophthalmology knowledge corpus;
问答模型获取模块,用于基于所述自然语言指令集指导待训练语言诊断问答模型执行特定操作或完成回答任务,以得到所述语言诊断问答模型;A question and answer model acquisition module, used to guide the language diagnosis question and answer model to be trained to perform specific operations or complete answering tasks based on the natural language instruction set to obtain the language diagnosis question and answer model;
其中,所述特定操作是指用户可根据语言指令调用、查看或询问特定眼底标志物的分割结果,回答任务指根据用户提问及个人诊断结果进行知识问答、病情解读。Among them, the specific operation means that the user can call, view or inquire about the segmentation results of specific fundus markers according to language instructions, and the answering task means to conduct knowledge questions and answers and condition interpretation based on the user's questions and personal diagnosis results.
可选地,所述问答结果输出模块包括:Optionally, the question and answer result output module includes:
疾病问题获取单元,用于获取用户根据所述眼科疾病类别和所述眼底分割结果输入的所述眼科疾病相关问题;A disease question obtaining unit, configured to obtain the ophthalmic disease-related questions input by the user according to the ophthalmic disease category and the fundus segmentation result;
问答结果输出单元,用于基于所述语言诊断问答模型获取所述眼科疾病相关问题对应的眼科疾病问答结果,并输出所述眼科疾病问答结果。A question and answer result output unit is configured to obtain the ophthalmic disease question and answer result corresponding to the ophthalmic disease related question based on the language diagnosis question and answer model, and output the ophthalmic disease question and answer result.
本申请实施例提供的用于诊断眼科疾病的问答装置,通过获取待检测者的眼底图像。基于眼底疾病分类模型对眼底图像进行分类处理,得到眼底图像对应的眼科疾病类别。基于眼底分割模型对眼底图像进行分割处理,得到眼底图像对应的眼底分割结果。基于语言诊断问答模型对用户根据眼科疾病类别和眼底分割结果输入的眼科疾病相关问题进行处理,输出待检测者的眼科疾病问答结果。本申请实施例通过大模型技术实现眼科疾病的自动诊断和问答,大大提高了诊断效率,减轻了患者的就诊负担,有望改善眼科医疗诊断的效率和精确性,为患者提供更好的医疗服务。同时,本申请还可以根据用户的提问和回答,提供个性化的眼科疾病治疗方案。The question and answer device provided by the embodiment of the present application for diagnosing ophthalmic diseases acquires fundus images of the person to be detected. Classify the fundus image based on the fundus disease classification model to obtain the ophthalmic disease category corresponding to the fundus image. The fundus image is segmented based on the fundus segmentation model to obtain the fundus segmentation result corresponding to the fundus image. Based on the language diagnosis question and answer model, the questions related to eye diseases input by the user based on the ophthalmological disease categories and fundus segmentation results are processed, and the question and answer results of the eye diseases of the person to be detected are output. The embodiments of this application realize automatic diagnosis and question answering of ophthalmic diseases through large model technology, which greatly improves the diagnosis efficiency and reduces the patient's medical burden. It is expected to improve the efficiency and accuracy of ophthalmic medical diagnosis and provide better medical services to patients. At the same time, this application can also provide personalized eye disease treatment plans based on the user's questions and answers.
另外地,本申请实施例还提供了一种电子设备,包括::存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述用于诊断眼科疾病的问答方法。Additionally, embodiments of the present application also provide an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is processed by the When the machine is executed, the above question and answer method for diagnosing ophthalmic diseases is implemented.
图10示出了本发明实施例的一种电子设备1000的结构示意图。如图10所示,电子设备1000包括中央处理单元(CPU)1001,其可以根据存储在只读存储器(ROM)1002中的计算机程序指令或者从存储单元1008加载到随机访问存储器(RAM)1003中的计算机程序指令,来执行各种适当的动作和处理。在RAM1003中,还可存储电子设备1000操作所需的各种程序和数据。CPU1001、ROM1002以及RAM1003通过总线1004彼此相连。输入/输出(I/O)接口1005也连接至总线1004。Figure 10 shows a schematic structural diagram of an electronic device 1000 according to an embodiment of the present invention. As shown in Figure 10, electronic device 1000 includes a central processing unit (CPU) 1001, which can be loaded into a random access memory (RAM) 1003 according to computer program instructions stored in a read-only memory (ROM) 1002 or from a storage unit 1008. computer program instructions to perform various appropriate actions and processes. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 can also be stored. CPU1001, ROM1002, and RAM1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
电子设备1000中的多个部件连接至I/O接口1005,包括:输入单元1006,例如键盘、鼠标、麦克风等;输出单元1007,例如各种类型的显示器、扬声器等;存储单元1008,例如磁盘、光盘等;以及通信单元1009,例如网卡、调制解调器、无线通信收发机等。通信单元1009允许电子设备1000通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 1000 are connected to the I/O interface 1005, including: an input unit 1006, such as a keyboard, mouse, microphone, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk , optical disk, etc.; and communication unit 1009, such as network card, modem, wireless communication transceiver, etc. The communication unit 1009 allows the electronic device 1000 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunications networks.
上文所描述的各个过程和处理,可由处理单元1001执行。例如,上述任一实施例的方法可被实现为计算机软件程序,其被有形地包含于计算机可读介质,例如存储单元1008。在一些实施例中,计算机程序的部分或者全部可以经由ROM1002和/或通信单元1009而被载入和/或安装到电子设备1000上。当计算机程序被加载到RAM1003并由CPU1001执行时,可以执行上文描述的方法中的一个或多个动作。The various processes and processes described above may be executed by the processing unit 1001. For example, the method of any of the above embodiments can be implemented as a computer software program, which is tangibly included in a computer-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 1000 via the ROM 1002 and/or the communication unit 1009 . When a computer program is loaded into RAM 1003 and executed by CPU 1001, one or more actions in the methods described above may be performed.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述用于诊断眼科疾病的问答方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above Q&A method embodiment for diagnosing ophthalmic diseases is implemented, and can achieve the same technical effect, so to avoid repetition, we will not repeat them here. Wherein, the computer-readable storage medium is such as read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
本领域普通技术人员可以意识到,结合本申请实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311281060.0A CN117316430A (en) | 2023-09-28 | 2023-09-28 | Question answering method, device, equipment and medium for diagnosing ophthalmic diseases |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311281060.0A CN117316430A (en) | 2023-09-28 | 2023-09-28 | Question answering method, device, equipment and medium for diagnosing ophthalmic diseases |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117316430A true CN117316430A (en) | 2023-12-29 |
Family
ID=89236795
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311281060.0A Pending CN117316430A (en) | 2023-09-28 | 2023-09-28 | Question answering method, device, equipment and medium for diagnosing ophthalmic diseases |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117316430A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119181495A (en) * | 2024-11-26 | 2024-12-24 | 首都医科大学附属北京同仁医院 | Large-model-based ophthalmic disease intelligent diagnosis and treatment management method and system |
-
2023
- 2023-09-28 CN CN202311281060.0A patent/CN117316430A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119181495A (en) * | 2024-11-26 | 2024-12-24 | 首都医科大学附属北京同仁医院 | Large-model-based ophthalmic disease intelligent diagnosis and treatment management method and system |
| CN119181495B (en) * | 2024-11-26 | 2025-02-18 | 首都医科大学附属北京同仁医院 | A method and system for intelligent diagnosis and treatment management of ophthalmic diseases based on large models |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20230260126A1 (en) | Processing fundus images using machine learning models | |
| Brady et al. | Telemedicine for retinopathy of prematurity | |
| Chauhan et al. | Comparison of conventional and high-pass resolution perimetry in a prospective study of patients with glaucoma and healthy controls | |
| JP6796413B2 (en) | Medical support method and medical support system | |
| De la Torre-Díez et al. | Decision support systems and applications in ophthalmology: literature and commercial review focused on mobile apps | |
| US20230230232A1 (en) | Machine Learning for Detection of Diseases from External Anterior Eye Images | |
| CN110582223A (en) | Systems and methods for diagnosis, treatment and prognosis of medical conditions | |
| US20210357696A1 (en) | Processing fundus camera images using machine learning models trained using other modalities | |
| US20210335491A1 (en) | Predictive adaptive intelligent diagnostics and treatment | |
| WO2019180742A1 (en) | System and method for retinal fundus image semantic segmentation | |
| Bjerager et al. | Diagnostic accuracy of the Amsler grid test for detecting neovascular age-related macular degeneration: a systematic review and meta-analysis | |
| Ahn et al. | Neurologic dysfunction assessment in Parkinson disease based on fundus photographs using deep learning | |
| Woźniacka et al. | Artificial intelligence in medicine and dermatology | |
| KR20180097948A (en) | Method for obtaining psychological state data of user to assess psychological state thereof, and user terminal, server and psychological assessment kit using the same | |
| CN113887662A (en) | Image classification method, device, equipment and medium based on residual error network | |
| WO2020103288A1 (en) | Analysis method and system for feature data change of diabetic retinopathy fundus, and storage device | |
| Wu et al. | Integrating artificial intelligence in strabismus management: current research landscape and future directions | |
| CN117316430A (en) | Question answering method, device, equipment and medium for diagnosing ophthalmic diseases | |
| JP6923495B2 (en) | Medical support method and medical support system | |
| Carlà et al. | Retinal imaging analysis performed by ChatGPT-4O and Gemini Advanced: the turning point of the revolution? | |
| CN209962704U (en) | Medical support system and ophthalmologic examination apparatus | |
| KR102208508B1 (en) | Systems and methods for performing complex ophthalmic tratment | |
| Yin et al. | A cloud-based system for automatic glaucoma screening | |
| Dharani et al. | Diabetic Retinopathy classification through fundus images using Deep Learning | |
| El-Badawi et al. | Teleophthalmology in retinal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |