Method and system for generating medical images based on text data in medical reports
By using machine learning models in medical institutions to generate medical images from medical report text data, it solves the problem of patients having difficulty obtaining images, improves diagnostic accuracy and visualization, and reduces system complexity.
Patent Information
- Application Number
- CN201980026594.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-03-16
- Filing Date
- 2019-03-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-03-15
AI Technical Summary
In medical institutions, patients' medical images are often not provided to patients, making analysis and consultation difficult with text reports alone, and the resulting images may be unavailable or improperly placed, complicating diagnosis.
By using the first machine learning model to calculate the matching score of the reference image based on the patient's medical report text data, selecting an appropriate image, and using the second machine learning model to generate a patient-specific medical image, visualization of the patient's health status is achieved.
Efficient generation of medical images reduces the risk of errors, improves the accuracy of visualization of disease progression and assessment of patient health status, and reduces reliance on complex medical management systems, especially in resource-limited areas.
Smart Images

Figure CN112055879B_ABST
Abstract
Description
Technical Field
[0001] The present subject matter relates generally to the field of healthcare, but more particularly, but not exclusively, to systems and methods for generating medical images based on textual data in a patient's medical report. Background Art
[0002] A radiology information system (RIS) in a medical institution such as a specialist hospital, a sub-specialty hospital, a diagnostic center, etc. may be configured to manage medical data associated with each patient associated with the medical institution. The medical data may include data associated with patient management, examinations, reports, statistics, system management, etc. The medical data managed by the RIS may be used for a variety of purposes, such as display, storage, retrieval, transmission, exchange, printing orders, results, reports, etc. However, deploying a RIS in a medical institution is a complex process. Moreover, some medical institutions may not be able to afford such a management system. Typically, after an examination (which may be a computed tomography (CT) scan, a magnetic resonance imaging (MRI) scan, an echocardiography (ECG), etc.), only a text report associated with the examination is provided to the patient. The images generated during the examination are archived by the medical institution and are not provided to the patient. Moreover, it may happen that the generated images are unavailable or improperly placed due to improper handling. It may be difficult for the examiner (who may be a doctor or physician) to analyze the patient's condition based solely on the text report. Even follow-up consultations with patients may be difficult using only the text report.
[0003] The information disclosed in the background of the disclosure is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information constitutes the prior art already known to a person skilled in the art.
[0004] WO 2017 / 1511757 A1 describes a deep learning model for detecting diseases from images (e.g., X-ray images) and annotating their backgrounds. In one example of the disclosed technology, a method for generating an annotation sequence describing an input image includes: training a convolutional neural network (CNN) using a series of reference images and associated annotation sequences; training a recurrent neural network (RNN) by initializing the RNN with a trained CNN embedding of the reference image and the first word of the annotation sequence; sampling the CNN and RNN using the reference image; and generating a sequence of annotations describing the image, (one or more) diseases in the image, one or more attributes, or the background. In one example of the disclosed technology, mean pooling is applied to the state vector of the RNN to obtain a joint image / text background vector that summarizes the background and text annotations of the image.
[0005] "StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks" by H. Zhang et al. (pp. 5907-5915, arxiv.org, Cornell University Library, 201 Olin Library Cornell University, Ithaca, NY 14853, accessed December 10, 2016) describes the process of synthesizing high-quality images based on text descriptions as a challenging problem in computer vision and has many practical applications. It is described that the samples generated by existing text-to-image methods are able to roughly reflect the meaning of the given description, but they fail to contain necessary details and clear object parts. In the article, the authors proposed a stacked generative adversarial network (StackGAN) to generate 256×256 realistic images conditioned on text descriptions. They describe that they decomposed the difficult problem into more manageable sub-problems through a sketch refinement process. In stage I, the GAN draws a sketch of the original shape and color of the object based on the given text description, resulting in a stage I low-resolution image. In Phase II, the GAN takes the results of Phase I and the text description as input and generates high-resolution images with realistic details. It is able to correct the defects in the results of Phase I and use the refinement process to add convincing details. To improve the diversity of synthesized images and stabilize the training of conditional GANs, they introduced conditional enhancement techniques that encourage smoothness in the latent conditional manifold. It is described that extensive experiments on benchmark datasets and comparisons with the state-of-the-art show that the proposed method achieves significant improvements in generating realistic images conditioned on text descriptions. Summary of the invention
[0006] In one embodiment, the present disclosure relates to a method for generating a medical image based on text data in a medical report of a patient. First, for generation, text data is retrieved from each medical report of one or more medical reports of the patient. The text data includes one or more medical events and corresponding one or more attributes, which are associated with each medical report in the one or more medical reports. In addition, a matching score for each of a plurality of reference images is calculated based on the text data using a first machine learning model. When calculating the matching score, one or more images are selected from the plurality of reference images based on the matching score associated with each of the plurality of reference images. A medical image for the patient is generated based on the one or more images and the text data using a second machine learning model.
[0007] In one embodiment, the present disclosure relates to an image generation system for generating a medical image based on text data in a medical report of a patient. The image generation system includes a processor and a memory communicatively coupled to the processor. The memory stores processor executable instructions that, when executed, cause the processor to generate a medical image. First, in order to generate, text data is retrieved from each of one or more medical reports of the patient. The text data includes one or more medical events and corresponding one or more attributes, and the corresponding one or more attributes are associated with each medical report in the one or more medical reports. In addition, a matching score for each of a plurality of reference images is calculated based on the text data using a first machine learning model. When calculating the matching score, one or more images are selected from the plurality of reference images based on the matching score associated with each of the plurality of reference images. A medical image for the patient is generated based on the one or more images and the text data using a second machine learning model.
[0008] The foregoing summary is illustrative only and is not intended to be limiting. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features will become apparent by reference to the drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings, which are incorporated into and constitute part of the present disclosure, illustrate exemplary embodiments and, together with the description, serve to explain the disclosed principles. In the drawings, the leftmost digit(s) of a reference number identifies the drawing in which the reference number first appears. In all drawings, the same reference numerals are used to refer to similar features and components. Some embodiments of systems and / or methods according to embodiments of the present subject matter are now described, by way of example only, and with respect to the accompanying drawings, in which:
[0010] Figure 1 illustrates an exemplary healthcare system for generating a medical image based on textual data in a patient's medical report according to some embodiments of the present disclosure;
[0011] Figure 2 shows a detailed block diagram of an image generation system for generating a medical image based on text data in a patient's medical report according to some embodiments of the present disclosure;
[0012] Figure 3 illustrates a flow chart showing an exemplary method for generating a medical image based on text data in a patient's medical report according to some embodiments of the present disclosure;
[0013] Figure 4illustrates a flow chart showing an exemplary method for calculating a matching score according to some embodiments of the present disclosure;
[0014] Figure 5 illustrates a flow chart showing an exemplary method of generating a medical image using a second machine learning model according to some embodiments of the present disclosure;
[0015] Figure 6 illustrates a flow chart of an exemplary method for retrieving a first sequence for generating a medical image according to some embodiments of the present disclosure;
[0016] Figure 7 shows an exemplary representation of a medical image generated according to some embodiments of the present disclosure; and
[0017] Figure 8 A block diagram of an exemplary computer system for implementing embodiments consistent with the present disclosure is illustrated.
[0018] Those skilled in the art will appreciate that any block diagrams herein represent conceptual diagrams of illustrative systems embodying the principles of the present subject matter. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudo-codes, etc. represent various processes that can be substantially represented in a computer-readable medium and executed by a computer or processor, whether or not such a computer or processor is explicitly shown.
[0019] Reference numerals list
[0020] Description of Reference Numerals
[0021] 100 Health Care System
[0022] 101 Image Generation System
[0023] 102 Communication Network
[0024] 103 Medical Reports Repository
[0025] 104 Reference Image Repository
[0026] 105 Processor
[0027] 106 I / O interfaces
[0028] 107 modules
[0029] 108 Memory
[0030] 201 Text Data Retrieval Module
[0031] 202 Matching score calculation module
[0032] 203 Image selection module
[0033] 204 Medical Image Generation Module
[0034] 205 Other modules
[0035] 206 Data
[0036] 207 Medical Report Data
[0037] 208 Text data
[0038] 209 Matching score
[0039] 210 Reference image data
[0040] 211 Vector representation data
[0041] 212 Joint vector representation data
[0042] 213 First sequence data
[0043] 214 Second sequence data
[0044] 215 Medical Event Image Data
[0045] 216 Backward hidden state data
[0046] 217 Forward hidden state data
[0047] 218 Medical Image Data
[0048] 219 Other information
[0049] 700 Medical Images
[0050] 701.1…701.4 Medical Event Images
[0051] 800 Computer Systems
[0052] 801 I / O Interface
[0053] 802 processor
[0054] 803 Network Interface
[0055] 804 Storage Interface
[0056] 805 Memory
[0057] 806 User Interface
[0058] 807 Operating System
[0059] 808 Network Server
[0060] 809 Input Devices
[0061] 810 Output Device
[0062] 811 Communication Network
[0063] 812 Medical Report Repository
[0064] 813 Reference Image Repository DETAILED DESCRIPTION
[0065] In the present document, the word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment or implementation of the present subject matter described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0066] Although the present disclosure is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown in the drawings by way of example and will be described in detail below. However, it should be understood that this is not intended to limit the present disclosure to the disclosed form, but on the contrary, the present disclosure will cover all modifications, equivalent forms and alternative forms that fall within the spirit and scope of the present disclosure.
[0067] The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a setup, device, or method that includes a list of components or steps includes not only those components or steps, but may also include other components or steps not expressly listed or inherent to such setup, device, or method. In other words, without further limitations, one or more elements in a system or device beginning with "comprises..." do not exclude the presence of other or additional elements in the system or method.
[0068] The terms "comprises," "comprising," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a setup, device, or method that includes a list of components or steps includes not only those components or steps, but may also include other components or steps not expressly listed or inherent to such setup, device, or method. In other words, without further limitations, one or more elements in a system or device beginning with "comprising..." do not exclude the presence of other or additional elements in the system or method.
[0069] In the following detailed description of the embodiments of the present disclosure, the accompanying drawings with reference form part of the present disclosure, and specific embodiments in which the present disclosure can be practiced are shown by way of illustration in the accompanying drawings. These embodiments are described in sufficient detail to enable those skilled in the art to practice the present disclosure, and it should be understood that other embodiments may be utilized and changes may be made without departing from the scope of the present disclosure. Therefore, the following description should not be considered as limiting.
[0070] The present disclosure provides an effective method for evaluating a patient's health condition by generating a medical image based on text data in a medical report. The present disclosure utilizes a deep learning architecture to extract medical events and their attributes from one or more medical reports, and synthesizes a composite medical image that visually highlights the details of the health condition. The system disclosed in the present disclosure implements a machine learning model for generating medical images. Based on the text data, a first machine learning model is used to calculate a matching score for each reference image in a plurality of reference images. In addition, one or more images are selected from the plurality of reference images based on the matching score. A second machine learning model can be used to generate a medical image based on the selected one or more images. Through the generated medical image, visualization of the patient's health condition can be achieved.
[0071] Figure 1An exemplary health care system 100 is illustrated, which includes an image generation system 101 for generating a medical image based on text data in a medical report. The exemplary health care system 100 may include an image generation system 101, a communication network 102, a medical report repository 103, and a reference image repository 104 to generate a medical image. The image generation system 101 may be configured to generate a medical image by performing the steps disclosed in the present disclosure. As shown, the image generation system 101 may communicate with the medical report repository 103 via the communication network 102. The image generation system 101 may retrieve one or more medical reports associated with a patient from the medical report repository 103 via the communication network 102 to generate a medical image for the patient. The patient may be anyone who needs to have his or her health condition evaluated by a doctor or physician or any other person who can evaluate the health condition. In an embodiment, the medical report repository 103 may be a storage space configured to store one or more medical reports of the patient. In an embodiment, the medical report repository 103 may be associated with at least one of the following: a user device associated with the patient, a medical institution related to the patient, and a third party configured to store one or more medical reports. In an embodiment, the medical report repository 103 may be a cloud system configured to receive and store one or more medical reports and provide the one or more medical reports to the image generation system 101 for generating medical images. The reference image repository 104 is configured to store multiple reference images. These multiple reference images are images related to radiological examinations. Radiological examinations may be associated with one or more modalities, which may include but are not limited to CT scans, MRI scans, ECGs, etc. The reference image repository 104 may be associated with a medical institution. In an embodiment, the reference image repository may be configured to dynamically retrieve multiple reference images from a radiological system associated with a medical institution. The image generation system 101 may retrieve multiple reference images from the reference image repository 104 for generating medical images. In an embodiment, the image generation system 101 may communicate with the reference image repository 104 via the communication network 102 to retrieve multiple reference images (not shown in the figure). In an embodiment, the medical report repository 103 and the reference image repository 104 may be integrated within the image generation system 101. In an embodiment, the communication network 102 may include, but is not limited to, a direct interconnection, a local area network (LAN), a wide area network (WAN), a wireless network (eg, using wireless application protocol), the Internet, and the like.
[0072] In addition, the image generation system 101 may include a processor 105, an I / O interface 106, one or more modules 107, and a memory 108. In some embodiments, the memory 108 may be communicatively coupled to the processor 105. The memory 108 stores processor-executable instructions that, when executed, may cause the image generation system 101 to generate a medical image, as disclosed in the present disclosure. The image generation system 101 may be implemented in a variety of computing systems, such as a laptop computer, a desktop computer, a personal computer (PC), a notebook computer, a smart phone, a tablet computer, an e-book reader, a server, a network server, etc.
[0073] To generate a medical report, first, text data may be retrieved from each of the one or more medical reports of the patient in the medical report library 103. The text data may include one or more medical events and corresponding one or more attributes, which are associated with each of the one or more medical reports. The one or more attributes corresponding to each of the one or more medical events may include a date attribute, a time attribute, a modal attribute, a qualitative attribute, and a quantitative attribute associated with the corresponding medical event. In an embodiment, the one or more medical events and the corresponding one or more attributes may be arranged in chronological order in the text data.
[0074] When retrieving text data, a match score for each of the multiple reference images from the reference image repository 104 is calculated based on the text data. The match score can be calculated using a first machine learning model. The match score can be calculated by generating a vector representation for each of the multiple reference images. Based on the corresponding vector representations and the text data, a joint vector representation for each of the multiple reference images can be generated. The match score for each of the multiple reference images is calculated based on the joint vector representation of the corresponding reference images. In an embodiment, the first machine learning model can be a multimodal convolutional neural network (CNN).
[0075] In calculating the match score, one or more images are selected from the plurality of reference images based on the match score associated with each of the plurality of reference images. In an embodiment, the match score of each of the plurality of images may be compared to a predefined match score. One or more images from the plurality of reference images associated with a match score greater than the predefined match score may be selected from the plurality of reference images. In an embodiment, the one or more images may be associated with a higher match score value. For example, one or more images having the top ten match score values may be selected from the plurality of images. The one or more images may be selected from the plurality of reference images using one or more techniques known to those skilled in the art.
[0076] In addition, when selecting one or more images, a second machine learning model can be implemented to generate a medical image for a patient. A medical image can be generated based on one or more images and text data. In order to generate a medical image, first, a first sequence can be retrieved, which includes a vector representation of one of the words and phrases in the text data. In order to retrieve the first sequence, a backward hidden state and a forward hidden state associated with one of the words and phrases in the text data can be determined. Respectively, a backward long short-term memory (LSTM) unit can be used to determine the backward hidden state, and a forward LSTM unit can be used to determine the forward hidden state. In addition, the backward hidden state and the forward hidden state can be cascaded for retrieving the first sequence.
[0077] When retrieving the first sequence, a second sequence may be retrieved, the second sequence including one or more images selected from a plurality of images. Based on the first sequence and the second sequence, a medical event image may be generated for each of the one or more medical events of the text data. In an embodiment, a medical event image may be generated based on the corresponding medical event to represent the health status of the patient. When generating a medical event image for each of the one or more medical events, the medical event images for each of the one or more medical events are spliced for generating a medical image. In an embodiment, the medical event images for each of the one or more medical events may be spliced in a predefined style. In an embodiment, a predefined style may be selected based on a time sequence associated with one or more medical events.
[0078] In an embodiment, the second machine learning model may be trained to generate a medical image based on a plurality of reference images and predefined text data. In an embodiment, one or more images selected from the plurality of reference images may also be used to dynamically train the second machine learning model. In an embodiment, the second machine learning model may be a recurrent neural network (RNN) model.
[0079] Figure 2 A detailed block diagram of an image generation system 101 for generating medical images according to some embodiments of the present disclosure is shown.
[0080] Data 206 in memory 108 and one or more modules 107 of image generation system 101 are described in detail herein.
[0081] In one embodiment, the one or more modules 107 may include, but are not limited to, a text data retrieval module 201, a matching score calculation module 202, an image selection module 203, a medical image generation module 204, and one or more other modules 205 associated with the image generation system 101.
[0082] In an embodiment, the data 206 in the memory 108 may include medical report data 207 (also referred to as one or more medical reports 207), text data 208, matching scores 209, reference image data 210 (also referred to as multiple reference images 210), vector representation data 211 (also referred to as vector representation 211), joint vector representation data 212 (also referred to as joint vector representation 212), first sequence data 213 (also referred to as first sequence 213), second sequence data 214 (also referred to as second sequence 214), medical event image data 215 (also referred to as medical event image 215), backward hidden state data 216 (also referred to as backward hidden state 216), forward hidden state data 217 (also referred to as forward hidden state 217), medical image data 218 (also referred to as medical image 218), and other data 219 associated with the image generation system 101.
[0083] In an embodiment, the data 206 in the memory 108 may be processed by one or more modules 107 of the image generation system 101. The term module as used herein refers to an application specific integrated circuit (ASIC), an electronic circuit, a field programmable gate array (FPGA), a programmable system on a chip (PSoC), a combinational logic circuit, and / or any suitable component that provides the described functionality. The one or more modules 107, when configured with the functionality defined in the present disclosure, may produce novel hardware.
[0084] The text data 208 retrieved by the text data retrieval module 201 from each of the one or more medical reports 207 of the patient may include one or more medical events and corresponding one or more attributes associated with each of the one or more medical reports 207. In order to retrieve the text data 208, the text data retrieval module 201 may be configured to process the one or more medical reports 207 using natural language processing (NLP). Through NLP, stop word removal, sentence detection, ontology lookup, etc. may be performed on the one or more medical reports 207. In an embodiment, for NLP, the text data retrieval module 201 may use a medical ontology (e.g., Systematic Nomenclature of Medical Clinical Terminology (SNOMED CT) and other such dictionaries within the Unified Medical Language System (UMLS)). In an embodiment, through NLP, annotation and extraction of entities such as anatomical locations, clinical signs and symptoms, temporality (i.e., time expressions), laterality, and correlations associated with the one or more medical reports 207 may be performed. In addition, when performing NLP, the text data retrieval module 201 may implement an extraction module to organize the one or more medical events and the corresponding one or more attributes in chronological order. In an embodiment, each of the one or more medical events may correspond to a medical report from the one or more medical reports 207. In an embodiment, the one or more attributes may include a date attribute, a time attribute, a modality attribute, a qualitative attribute, and a quantitative attribute associated with the corresponding medical event. An exemplary example of the text data 208 retrieved by the text data retrieval module 201 may be shown in Table 1 given below:
[0085] Date attributes Time attributes Modal Properties Qualitative attributes Quantitative properties 15-02-2010 11:30:00 Angiography Increased proximal LAD stenosis 90% 19-05-2011 12:49:00 Angiography Proximal LAD stenosis 70% 15-04-2012 11:36:20 Angiography Proximal LAD stenosis 45% 15-04-2013 01:33:00 Angiography Proximal LAD stenosis reduction 10%
[0086] Table 1
[0087] In the text data 208 shown in Table 1, each row in the table represents a medical event, so the text data 208 includes four medical events. Each row can correspond to a medical report of a patient. Each column in the table indicates an attribute from one or more attributes. The date attribute can indicate the date on which the medical event is recorded in the medical report. The time attribute can indicate the time when the medical event is recorded in the medical report. The modality attribute can indicate the radiology field associated with the medical report. For example, the radiology field can include but is not limited to CT, MRI, ECG, angiography, etc. The qualitative attribute can indicate the problem associated with the patient. The quantitative attribute can indicate the amount of the problem. For example, consider the first row of the text data 208 shown in Table 1. The corresponding medical report is recorded at "11:30:00" on "15-02-2010" and is related to the patient's "angiography". The detected problem is "increased proximal stenosis of LAD" and the amount of stenosis is "90%".
[0088] When retrieving the text data 208, a matching score 209 for each reference image in the plurality of reference images 210 from the reference image repository 104 may be calculated by the matching score calculation module 201 based on the text data 208. The matching score 209 may be calculated using a first machine learning model. In an embodiment, the first machine learning model may be a multimodal convolutional neural network (CNN). In an embodiment, the multimodal CNN may include an image CNN, a matching CNN, and a multilayer perceptron 209 for calculating the matching score 209. The image CNN may be used to generate a vector representation 211 for the plurality of reference images 210. In an embodiment, the vector representation 211 may be generated using Formula 1 as shown below:
[0089] V im =σ(w im (CNN im (I))+b im ) (1)
[0090] in,
[0091] “σ” may be an activation function. For example, σ may be a S-shaped rectified linear unit (ReLU), etc.
[0092] “CNNim(I)” may be an image CNN that takes each reference image in the plurality of reference images 210 as input (i.e., “I”) and generates a fixed-length vector representation Vim of the corresponding reference image;
[0093] "wim" may be a weight matrix; and
[0094] "bim" can be a deviation.
[0095] Additionally, the matched CNN may be used to generate a joint vector representation 212 based on the vector representation 211. The vector representation and text data 208 are provided as inputs to the matched CNN to output the joint vector representation 212.
[0096] In addition, a multilayer perceptron may be used to calculate a matching score 209 for each reference image in the plurality of reference images 210 based on the corresponding joint vector representation 212. In an embodiment, the matching score 209 may be calculated using Formula 2 as follows:
[0097] Sm=ws(σ(wh(VJR)+bh))+bs (2)
[0098] in,
[0099] “VJR” may be a joint vector representation 212;
[0100] “Σ” is a nonlinear activation function;
[0101] “wh” and “bh” are used to map the VJR to representations in the hidden layers of a multilayer perceptron; and
[0102] "w s " and "b s ” is used to calculate the matching score 209.
[0103] When calculating the matching score 209, the image selection module 203 selects one or more images from the plurality of reference images 210 based on the matching score 209 associated with each reference image in the plurality of reference images 210. In an embodiment, the one or more images may be images related to the modality attribute indicated in the text data 208. In an embodiment, the plurality of reference images 210 may be filtered out based on one or more attributes in the text data 208. For example, according to the text data 208 shown in Table 1, an image related to angiography modality may be filtered out from the plurality of reference images 210, and the image may be further provided to the image selection module 203 for selection of the one or more images. One or more other techniques known to those skilled in the art may also be used to select one or more images from the plurality of reference images 210.
[0104] In addition, when selecting one or more images, the medical image generation module 204 can be configured to use a second machine learning model to generate a medical image 218 for the patient. In an embodiment, the second machine learning model can be an RNN model. In an embodiment, the RNN model can include a bidirectional RNN and a generative RNN model for generating the medical image 218. In addition, the bidirectional RNN can include a backward LSTM unit and a forward LSTM unit. By using the bidirectional RNN, a first sequence 213 of a vector representation 211 of one of the words and phrases in the text data 208 can be retrieved.
[0105] The backward LSTM unit may be configured to determine a backward hidden state 216 of one of the words and phrases in the text data 208. The forward LSTM unit may be configured to determine a forward hidden state 217 of one of the words and phrases in the text data 208. In an embodiment, the bidirectional RNN may include a forget gate and a backward LSTM unit and a forward LSTM unit to determine the backward hidden state 216 and the forward hidden state 217. In an embodiment, the bidirectional RNN may be an attention-based bidirectional RNN model. In addition, the backward hidden state 216 and the forward hidden state 217 may be cascaded to retrieve the first sequence 213. In an embodiment, a soft attention mechanism may be used on the first sequence 213 by maximizing the lower bound of the variation of the maximum likelihood. One or more other techniques known to those skilled in the art may also be implemented to retrieve the first sequence 213 of one of the words and phrases.
[0106] In addition, the medical image generation module 204 can be configured to retrieve a second sequence 214, which includes one or more images selected from the plurality of images. In an embodiment, the second sequence 214 can be formed by arranging the one or more images as a sequence of patches on a canvas as a function of time. The generative RNN model can be configured to generate a medical event image 215 for each of the one or more medical events of the text data 208 based on the first sequence 213 and the second sequence 214. In an embodiment, the generative RNN can also generate a medical event image 215 for each of the one or more medical events using a latent sequence including latent variables. The latent sequence can be used to calculate an approximate posterior sequence associated with the first sequence 213 and the second sequence 214 on the latent sequence for generating the medical event image 215.
[0107] In an embodiment, a medical event image 215 may be generated based on the corresponding medical event to represent the health status of the patient. When the medical event image 215 for each of the one or more medical events is generated, the medical event image 215 for each of the one or more medical events is spliced to generate a medical image 218. Figure 7The generated medical image 700 is illustrated, which includes one or more medical event images 701.1...701.4. Consider the text data 208 shown in Table 1. Medical event image 701.1 can be generated for medical events with 90% quantitative attributes. Medical event image 701.2 can be generated for medical events with 70% quantitative attributes. Medical event image 701.3 can be generated for medical events with 45% quantitative attributes. Medical event image 701.4 can be generated for medical events with 10% quantitative attributes. One or more medical event images 701.1...701.4 can be spliced in a predefined style to generate medical image 700. In an embodiment, the predefined style can be based on a chronological order associated with one or more medical events. The predefined style can vary based on the configuration of the splicing. Figure 7 An exemplary predefined pattern of the one or more medical event images 701.1 ... 701.4 is illustrated. In an embodiment, the one or more medical event images 701.1 ... 701.4 may be arranged in a sequential pattern in one of a vertical order and a horizontal order.
[0108] In an embodiment, one or more other modules in the image generation system 101 may include a training module (not shown in the figure). The training module may be configured as a second machine learning model based on multiple reference images 210 and predefined text data. In an embodiment, the multiple reference images 210 may be images associated with historical radiological examinations. For example, baseline scan reports for angiography, CT, MRI, and ultrasound may be stored in the reference image repository 104 as multiple reference images 210. Scan reports indicating the progression of stenosis or vascular abnormalities in angiography may be stored in the reference image repository 104 as multiple reference images 210. In an embodiment, the predefined text data may be historical data associated with one or more medical reports of one or more patients. In an embodiment, the predefined text data may be provided manually by a user for training. In an embodiment, the training module may retrieve the predefined text data from a historical data repository including historical data. In an embodiment, other data 219 may include predefined text data stored in the image generation system 101.
[0109] In an embodiment, one or more other modules in the image generation system 101 may include a sharpening module (not shown in the figure). The sharpening module may be configured to sharpen the medical image 218 generated by the medical image generation module 204. In an embodiment, the sharpening of the medical image 218 may first include filtering the medical image 218 using a high-pass filter. By filtering, high-frequency components in the medical image 218 can be extracted. In addition, for sharpening, a scaled version of the output of the high-pass filter is added to the generated medical image 218. By the proposed sharpening, a sharpened image of the medical image 218 can be obtained. In an embodiment, by the sharpening proposed in the present disclosure, the uniform area of the medical image 218 can be kept constant. In an embodiment, the sharpening of the medical image 218 can be performed using Formula 3, as shown below:
[0110] S i,j =x i,j +λF(x i,j ) (3)
[0111] in,
[0112] "x i,j ” can be a medical image at coordinates (i, j);
[0113] “F(x i,j )" may be a function associated with a high pass filter; and
[0114] "λ" may be a tuning parameter greater than or equal to zero.
[0115] In an embodiment, the value of "λ" depends on the desired sharpness level. Increasing "λ" may result in a sharper image. In this way, a higher resolution of the medical image 218 representing one or more medical events may be obtained.
[0116] The medical image 218 may be provided to a doctor or physician who needs to evaluate the health of a patient. In an embodiment, the medical image 218 may be provided to the doctor or physician while being sharpened.
[0117] Other data 219 may store data (including temporary data and temporary files) generated by modules used to perform various functions of image generation system 101. One or more modules 107 may also include other modules 205 to perform various miscellaneous functions of image generation system 101. It will be appreciated that such modules may be represented as a single module or a combination of different modules.
[0118] Figure 3 Illustrated is a flow chart showing an exemplary method for generating a medical image 218 based on text data 208 in one or more medical reports 207 of a patient, according to some embodiments of the present disclosure.
[0119] At block 301, the text data retrieval module 201 may be configured to retrieve text data 208 from the one or more medical reports 207. The text data 208 includes one or more medical events and corresponding one or more attributes associated with each of the one or more medical reports 207. The one or more attributes may include a date attribute, a time attribute, a modality attribute, a qualitative attribute, and a quantitative attribute associated with the corresponding medical event.
[0120] At block 302, based on the retrieved text data 208, the match score calculation module 202 may be configured to calculate the match score 209 for each reference image in the plurality of reference images 210. The match score may be calculated using a second machine learning module.
[0121] Figure 4 A flow chart showing an exemplary method for calculating a match score 209 is illustrated.
[0122] At block 401, the matching score calculation module 202 may generate a vector representation 211 for each reference image in the plurality of reference images 210. One or more techniques known to those skilled in the art may be implemented to generate the vector representation 211.
[0123] At block 402 , the match score computation module 202 may generate a joint vector representation 212 for each reference image in the plurality of reference images 210 based on the corresponding vector representation 211 and the text data 208 .
[0124] At block 403 , the match score computation module 202 may compute the match score 209 for each reference image in the plurality of reference images 210 based on the joint vector representation 212 of the corresponding reference image.
[0125] Return to reference Figure 3 At block 303, the image selection module 203 may be configured to select one or more images from the plurality of reference images 210. The one or more images may be selected based on the matching score 209 associated with each reference image in the plurality of reference images 210.
[0126] At block 304, the medical image generation module 204 may be configured to generate a medical image 218 for the patient based on the one or more images and the text data 208. The medical image may be generated using a second machine learning model. Figure 5 A flow chart illustrating an exemplary method of generating a medical image 218 using a second machine learning model is illustrated.
[0127] At block 501 , the medical image generation module 204 may retrieve a first sequence 213 that includes a vector representation 211 of one of the words and phrases in the text data 208 . Figure 6 A flow chart showing an exemplary method for retrieving a first sequence 213 for generating a medical image 218 is illustrated.
[0128] At block 601, the medical image generation module 204 may determine a backward hidden state 216 and a forward hidden state 217 associated with one of the words and phrases in the text data. The backward hidden state 216 and the forward hidden state 217 may be determined using a backward long short-term memory (LSTM) unit and a forward LSTM unit, respectively.
[0129] At block 602 , the medical image generation module 204 may concatenate the backward hidden state 216 and the forward hidden state 217 for use in retrieving the first sequence 213 .
[0130] Return to reference Figure 5 At block 502 , the medical image generation module 204 may generate a second sequence 214 including one or more images selected from the plurality of reference images 210 .
[0131] At block 503 , the medical image generation module 204 may generate a medical event image for each of the one or more medical events of the text data 208 based on the first sequence 213 and the second sequence 214 .
[0132] At block 504 , the medical image generation module 204 may stitch the medical event image for each of the one or more medical events in a predefined pattern.
[0133] like Figure 3 , Figure 4 , Figure 5 and Figure 6 As shown, methods 300, 400, 500, and 600 may include one or more blocks for performing processing in image generation system 101. Methods 300, 400, and 500 may be described in the general context of computer-executable instructions. In general, computer-executable instructions can include routines, programs, objects, components, data structures, processes, modules, and functions that perform specific functions or implement specific abstract data types.
[0134] The order in which methods 300, 400, 500, and 600 are described may not be intended to be construed as limiting, and any number of the described method blocks can be combined in any order to implement the method. Additionally, individual blocks can be deleted from the method without departing from the scope of the subject matter described herein. Additionally, the method can be implemented in any suitable hardware, software, firmware, or combination thereof.
[0135] Computing System
[0136] Figure 8 A block diagram of an exemplary computer system 800 for implementing embodiments consistent with the present disclosure is illustrated. In an embodiment, the computer system 800 is used to implement the image generation system 101. The computer system 800 may include a central processing unit ("CPU" or "processor") 802. The processor 802 may include at least one data processor for performing processing in a virtual storage area network. The processor 802 may include a special processing unit, such as an integrated system (bus) controller, a memory management control unit, a floating point unit, a graphics processing unit, a digital signal processing unit, etc.
[0137] The processor 802 may be configured to communicate with one or more input / output (I / O) devices 809 and 810 via the I / O interface 801. The I / O interface 801 may employ communication protocols / methods such as, but not limited to, audio, analog, digital, mono, RCA, stereo, IEEE-1394, serial bus, Universal Serial Bus (USB), infrared, PS / 2, BNC, coaxial, component, composite, digital visual interface (DVI), High Definition Multimedia Interface (HDMI), RF antenna, S-Video, VGA, EE802.n / b / g / n / x, Bluetooth, cellular (e.g., code division multiple access (CDMA), high speed packet access (HSPA+), global system for mobile communications (GSM), long term evolution (LTE), WiMax, etc.), etc.
[0138] By using the I / O interface 801, the computer system 800 can communicate with one or more I / O devices 809 and 810. For example, the input device 809 can be an antenna, a keyboard, a mouse, a joystick, an (infrared) remote control, a camera, a card reader, a fax machine, a dongle, a biometric reader, a microphone, a touch screen, a touch pad, a trackball, a stylus, a scanner, a storage device, a transceiver, a video device / source, etc. The output device 810 can be a printer, a fax machine, a video display (e.g., a cathode ray tube (CRT), a liquid crystal display (LCD), a light emitting diode (LED), a plasma, a plasma display panel (PDP), an organic light emitting diode display (OLED), etc.), an audio speaker, etc.
[0139] In some embodiments, the computer system 800 may include the image generation system 101. The processor 802 may be configured to communicate with the communication network 811 via the network interface 803. The network interface 803 may communicate with the communication network 811. The network interface 803 may employ connection protocols including, but not limited to, direct connection, Ethernet (e.g., twisted pair 10 / 100 / 1000BaseT), Transmission Control Protocol / Internet Protocol (TCP / IP), Token Ring, IEEE 802.11a / b / g / n / x, etc. The communication network 811 may include, but not limited to, direct interconnection, a local area network (LAN), a wide area network (WAN), a wireless network (e.g., using a wireless application protocol), the Internet, etc. By using the network interface 803 and the communication network 811, the computer system 800 may communicate with a medical report repository 812 and a reference image repository 813 for generating medical images. The network interface 803 can use connection protocols including but not limited to direct connection, Ethernet (e.g., twisted pair 10 / 100 / 1000Base T), Transmission Control Protocol / Internet Protocol (TCP / IP), Token Ring, IEEE 802.11a / b / g / n / x, etc.
[0140] The communication network 811 includes, but is not limited to, direct interconnection, e-commerce network, peer-to-peer (P2P) network, local area network (LAN), wide area network (WAN), wireless network (e.g., using wireless application protocol), Internet, Wi-Fi, etc. The first network and the second network may be a dedicated network or a shared network, which represents the association of different types of networks that communicate with each other using various protocols (e.g., Hypertext Transfer Protocol (HTTP), Transmission Control Protocol / Internet Protocol (TCP / IP), Wireless Application Protocol (WAP), etc.). In addition, the first network and the second network may include various network devices, including routers, bridges, servers, computing devices, storage devices, etc.
[0141] In some embodiments, the processor 802 may be configured to communicate with a memory 805 (eg, RAM, ROM, etc.) via a storage interface 804. Figure 8 The storage interface 804 may communicate with the memory 805 (including but not limited to a memory drive, a removable disk drive, etc.) using a connection protocol (e.g., Serial Advanced Technology Attachment (SATA), Integrated Drive Electronics (IDE), IEEE-1394, Universal Serial Bus (USB), Fiber Channel, Small Computer System Interface (SCSI), etc.). The memory drive may also include a photosensitive drum, a disk drive, a magneto-optical disk drive, an optical disk drive, a redundant array of independent disks (RAID), a solid-state storage device, a solid-state drive, etc.
[0142] The memory 805 may store a collection of program or database components, including but not limited to a user interface 806, an operating system 807, etc. In some embodiments, as described in the present disclosure, the computer system 800 may store user / application data 806, such as data, variables, records, etc. Such a database may be implemented as a fault-tolerant, associative, scalable, secure database, e.g. or
[0143] Operating system 807 can facilitate resource management and operation of computer system 800. Examples of operating systems include, but are not limited to, APPLE OS X, UNIX-like distributions (e.g., BERKELEYSOFTWARE DISTRIBUTION TM (BSD), FREEBSD TM , NETBSD TM 、OPENBSD TM etc.), LINUXDISTRIBUTIONS TM (For example, RED HAT TM 、UBUNTU TM 、KUBUNTU TM etc.), IBM TM OS / 2, MICROSOFT TM WINDOWS TM (XP TM VISTA TM / 7 / 8, 10, etc.), iOS TM , ANDROID TM , OS, etc.
[0144] In addition, in implementing embodiments consistent with the present disclosure, one or more computer-readable storage media may be utilized. A computer-readable storage medium refers to any type of physical memory on which processor-readable information or data may be stored. Therefore, a computer-readable storage medium may store instructions for execution by one or more processors, including instructions for causing (one or more) processors to execute steps or stages consistent with the embodiments described herein. The term "computer-readable medium" should be understood to include tangible items and exclude carrier waves and transient signals (i.e., non-transient). Examples include random access memory (RAM), read-only memory (ROM), volatile memory, non-volatile memory, hard disk drives, CDROMs, DVDs, flash drives, disks, and any other known physical storage media.
[0145] advantage
[0146] Embodiments of the present disclosure dynamically generate required medical images by using available text in medical reports without deploying complex and expensive medical management systems.
[0147] Embodiments of the present disclosure minimize the risk of errors when doctors or physicians in resource-poor areas rely solely on available medical reports. The medical images generated in the present disclosure help recall findings and make accurate assessments of the patient's previous radiology.
[0148] Embodiments of the present disclosure facilitate better assessment of disease progression and conveying accurate details to patients based on visual inspection from generated medical images.
[0149] Embodiments of the present disclosure improve engagement and decision-making sharing between patients and their healthcare providers to achieve desired health outcomes by visually depicting potential outcomes based on treatment interventions over a period of time.
[0150] Embodiments of the present disclosure enable understanding of the progression of a patient's health condition over a period of time and provide medical images indicative of the progression.
[0151] Embodiments of the present disclosure facilitate the regeneration of medical images in situations where scanned medical reports may be lost or unavailable.
[0152] The described operations may be implemented as methods, systems or articles of manufacture that use standard programming and / or engineering techniques to produce software, firmware, hardware or any combination thereof. The described operations may be implemented as codes maintained in a "non-transient computer-readable medium", where a processor can read the code from the computer-readable medium and execute the code. The processor is at least one of a microprocessor and a processor that can process and execute inquiries. The non-transient computer-readable medium may include, for example, the following media: magnetic storage media (e.g., hard disk drives, floppy disks, tapes, etc.), optical storage devices (CD-ROMs, DVDs, optical disks, etc.), volatile and non-volatile memory devices (e.g., EEPROMs, ROMs, PROMs, RAMs, DRAMs, SRAMs, flash memories, firmware, programmable logic units, etc.), etc. In addition, the non-transient computer-readable medium may include all computer-readable media except transient media. The code that implements the described operations may be implemented in hardware logic units (e.g., integrated circuit chips, programmable gate arrays (PGAs), application-specific integrated circuits (ASICs), etc.).
[0153] Still further, the code implementing the described operations may be implemented in a "transmission signal", wherein the transmission signal may be propagated through space or through a transmission medium such as an optical fiber, copper wire, etc. The transmission signal in which the code or logic unit is encoded may also include a wireless signal, a satellite transmission signal, a radio wave, an infrared signal, Bluetooth, etc. The transmission signal in which the code or logic unit is encoded can be sent by a sending station and received by a receiving station, wherein the code or logic unit encoded in the transmission signal can be decoded and stored in a hardware or non-transient computer-readable medium at a receiving station or a sending station or a receiving device or a sending device. "Article of manufacture" includes a non-transient computer-readable medium, a hardware logic unit, and / or a transmission signal in which the code can be implemented. The device in which the code implementing the embodiment of the described operation is encoded may include a computer-readable medium or a hardware logic unit. Of course, those skilled in the art will recognize that many modifications may be made to this configuration without departing from the scope of the present invention, and the article of manufacture may include suitable information bearing media known in the art.
[0154] Unless expressly stated otherwise, the terms "an embodiment," "embodiments," "multiple embodiments," "the embodiment," "the multiple embodiments," "one or more embodiments," "some embodiments," and "an embodiment" refer to one or more (but not all) embodiments of the invention(s).
[0155] Unless expressly stated otherwise, the terms "including," "comprising," "having" and variations thereof mean "including but not limited to."
[0156] Unless expressly stated otherwise, an enumerated listing of items does not imply that any or all of the items are mutually exclusive.
[0157] Unless expressly stated otherwise, the terms "a", "an" and "the" mean "one or more".
[0158] The description of an embodiment with several components in communication with each other does not imply that all such components are required. Rather, various optional components are described to illustrate the various possible embodiments of the present invention.
[0159] When a single device or article is described herein, it will be apparent that more than one device / article (whether or not they collaborate) may be used in place of a single device / article. Similarly, where more than one device or article (whether or not they collaborate) is described herein, it will be apparent that a single device / article may be used in place of more than one device or article, or a different number of devices / articles may be used in place of the number of devices or programs shown. The functions and / or features of a device may alternatively be embodied by one or more other devices that are not explicitly described as having such functions / features. Therefore, other embodiments of the present invention need not include the device itself.
[0160] As shown Figure 3 , Figure 4 , Figure 5 and Figure 6 The operations of the present invention illustrate specific events that occur in a specific order. In alternative embodiments, specific operations may be performed in a different order, and specific operations may be modified or removed. In addition, steps may be added to the above-mentioned logical units and still conform to the described embodiments. In addition, the operations described herein may occur sequentially, and certain operations may also be processed in parallel. In addition, operations may be performed by a single processing unit or distributed processing units.
[0161] Finally, the language used in this specification is selected primarily for readability and instructional purposes, and may not be selected to describe or limit the subject matter of the present invention. Therefore, the scope of the present invention is not limited by this detailed description, but is limited by any claims based on the application issued here. Therefore, the disclosure of the embodiments of the present invention is intended to illustrate but not to limit the scope of the present invention, and the scope of the present invention is set forth in the claims.
[0162] Although various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the claims.
Claims
1. A method for generating a medical image based on text data in a patient's medical report, comprising: Retrieving, by an image generation system (101), text data (208) from each of one or more medical reports (207) of a patient, wherein the text data (208) includes one or more medical events and corresponding two or more attributes, the corresponding two or more attributes being associated with each of the one or more medical reports (207), wherein the two or more attributes include a qualitative attribute indicating a medical problem associated with the patient and a quantitative attribute indicating a quantity associated with the medical problem; The image generation system (101) uses a first machine learning model to calculate a matching score (209) for each reference image in a plurality of reference images (210) based on the text data (208); selecting, by the image generation system (101), one or more images from the plurality of reference images (210) based on the match score (209) associated with each of the plurality of reference images (210), wherein the value of the match score of each of the one or more images selected from the plurality of reference images is higher than the value of the match score of other images not selected from the plurality of reference images; and The image generation system (101) generates a medical image (218) for the patient based on the one or more images and the text data (208) using a second machine learning model, wherein the medical image is generated by splicing one or more medical event images for the one or more medical events, and wherein the medical event image in the one or more medical event images is generated for an associated medical event having a corresponding quantitative attribute indicating a quantity associated with the medical problem.
2. The method according to claim 1, wherein: The one or more medical events and the corresponding two or more attributes in the text data (208) are arranged in chronological order.
3. The method according to claim 1, wherein: The two or more attributes corresponding to each of the one or more medical events in the text data (208) include a date attribute, a time attribute, and a modality attribute associated with the corresponding medical event.
4. The method according to claim 1, wherein: Calculating the matching score (209) includes: Generating, by the image generation system (101), a vector representation (211) for each reference image in the plurality of reference images (210); generating, by the image generation system (101), a joint vector representation (212) for each reference image in the plurality of reference images (210) based on the corresponding vector representation (211) and the text data (208); and The matching score (209) is calculated by the image generation system (101) for each reference image in the plurality of reference images (210) based on the joint vector representation (212) of the corresponding reference image (210).
5. The method according to claim 1, wherein: Each image of the one or more images selected from the plurality of reference images (210) is associated with the matching score (209) being greater than a predefined matching score.
6. The method according to claim 1, wherein: Generating the medical image (218) includes: Retrieving, by the image generation system (101), a first sequence (213), the first sequence comprising a vector representation (211) of one of a word and a phrase in the text data (208); generating, by the image generation system (101), a second sequence (214), the second sequence comprising the one or more images; The image generation system (101) generates a medical event image (215) for each of the one or more medical events in the text data (208) based on the first sequence (213) and the second sequence (214); and The medical event images (215) of each medical event in the one or more medical events are stitched together by the image generation system (101) in a predefined style to generate the medical image (218); and optionally, Wherein, retrieving the first sequence (213) comprises: determining, by the image generation system (101), a backward hidden state (216) and a forward hidden state (217) associated with one of the word and the phrase in the text data (208); and The backward hidden state (216) and the forward hidden state (217) are concatenated by the image generation system (101) for use in retrieving the first sequence (213); and optionally, The backward hidden state (216) and the forward hidden state (217) are determined using a backward long short-term memory (LSTM) unit and a forward LSTM unit, respectively.
7. The method according to claim 1, wherein: The second machine learning model is trained based on the plurality of reference images (210) and predefined text data.
8. The method according to claim 1, wherein: The first machine learning model is a multimodal convolutional neural network (CNN), and the second machine learning model is a recurrent neural network (RNN) model.
9. An image generation system for generating a medical image based on text data in a patient's medical report, comprising: Processor (105); as well as a memory (108) communicatively coupled to the processor (105), wherein the memory (108) stores processor-executable instructions that, when executed, cause the processor (105) to: retrieving text data (208) from each of one or more medical reports (207) of a patient, wherein the text data (208) includes one or more medical events and corresponding two or more attributes associated with each of the one or more medical reports (207), wherein the two or more attributes include a qualitative attribute indicating a medical problem associated with the patient and a quantitative attribute indicating a quantity associated with the medical problem; Using a first machine learning model to calculate a matching score (209) for each reference image in a plurality of reference images (210) based on the text data (208); selecting one or more images from the plurality of reference images (210) based on the match score (209) associated with each of the plurality of reference images (210), wherein the value of the match score of each of the one or more images selected from the plurality of reference images is higher than the value of the match score of other images not selected from the plurality of reference images; and Generating a medical image (218) for the patient based on the one or more images and the text data (208) using a second machine learning model, wherein the medical image is generated by stitching one or more medical event images for the one or more medical events, and wherein the medical event image in the one or more medical event images is generated for an associated medical event having a corresponding quantitative attribute indicating a quantity associated with the medical problem.
10. The image generation system according to claim 9, wherein: The one or more medical events and the corresponding two or more attributes in the text data (208) are arranged in chronological order.
11. The image generation system according to claim 9, wherein: The two or more attributes corresponding to each of the one or more medical events in the text data (208) include a date attribute, a time attribute, and a modality attribute associated with the corresponding medical event.
12. The image generation system according to claim 9, wherein: Calculating the matching score (209) includes: generating a vector representation (211) for each reference image in the plurality of reference images (210); generating a joint vector representation (212) for each reference image in the plurality of reference images (210) based on the corresponding vector representation (211) and the textual data (208); and The matching score (209) is calculated for each reference image of the plurality of reference images (210) based on the joint vector representation (212) of the corresponding reference image (210).
13. The image generation system according to claim 9, wherein: Each image of the one or more images selected from the plurality of reference images (210) is associated with the matching score (209) being greater than a predefined matching score.
14. The image generation system according to claim 9, wherein: Generating the medical image (218) includes: Retrieving a first sequence (213) comprising a vector representation (211) of one of the words and phrases in the text data (208); generating a second sequence (214), the second sequence comprising the one or more images; generating a medical event image (215) for each of the one or more medical events of the text data (208) based on the first sequence (213) and the second sequence (214); and splicing the medical event images (215) of each of the one or more medical events in a predefined pattern to generate the medical image (218); and optionally, Wherein, retrieving the first sequence (213) comprises: determining a backward hidden state (216) and a forward hidden state (217) associated with one of the word and the phrase in the text data (208); and concatenating the backward hidden state (216) and the forward hidden state (217) for use in retrieving the first sequence (213); and optionally, The backward hidden state (216) and the forward hidden state (217) are determined using a backward long short-term memory (LSTM) unit and a forward LSTM unit, respectively.
15. The image generation system according to claim 9, wherein: The second machine learning model is trained based on the plurality of reference images (210) and predefined text data.
