Intelligent identification and filling data acquisition method and system based on medical documents

By configuring and detecting key parameters and establishing a medical document extraction template, the problem of difficulty in accurately positioning the text area of ​​traditional Chinese medicine document in the prior art is solved, and high-accurate text content extraction is achieved.

CN119785361AActive Publication Date: 2025-04-08YIZHINUO TECHNOLOGY (SUZHOU) CO LTD

Patent Information

Application Number
CN202510289446.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-04-08
Estimated Expiration
2045-03-12

AI Technical Summary

Technical Problem

Existing medical document processing schemes based on OCR tools are difficult to accurately locate text areas, resulting in low recognition accuracy.

Method used

By configuring key parameters to detect, obtain medical document samples, analyze and count document information categories, divide document information categories, set up area identification marks and establish area logical associations, establish medical document extraction templates, and use OCR tools to identify and extract text information.

Benefits of technology

It realizes accurate positioning of medical document text areas and high-accuracy text content extraction, solving the problem that conventional OCR tools are difficult to accurately locate text areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785361A_ABST
    Figure CN119785361A_ABST
Patent Text Reader

Abstract

The invention discloses a data acquisition method and system based on intelligent identification and filling of medical documents, and relates to the technical field of medical data, and the method comprises the steps: configuring detection key parameters of a target medical document based on an OCR tool; acquiring a medical document sample, and analyzing and counting document information categories according to the medical document sample; dividing document information category areas corresponding to the positions of the medical document samples based on the document information categories, setting area identification marks according to the document information category areas, and establishing area logic association according to the area identification marks; establishing a medical document extraction template based on the region identification identifier and the region logic association; identifying the target medical document by using the detection key parameters and an OCR tool, and obtaining medical document text information; and extracting based on the medical document text information and the medical document extraction template, generating medical document key information, and correspondingly filling the medical document key information into the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical data technology, and in particular to a data collection method and system based on intelligent identification and filling of medical documents. Background Art

[0002] Traditionally, medical institutions rely on manual input and paper archiving for the management of medical documents, such as medical records and test reports. Medical staff need to spend a lot of time manually inputting the information on the documents into the electronic system, which is not only inefficient, but also prone to input errors due to human fatigue, negligence and other factors. Therefore, OCR (optical character recognition) technology is gradually introduced into the processing of medical documents.

[0003] However, the existing medical document processing solutions based on OCR tools still have shortcomings. Common OCR recognition tools use universal recognition solutions for all types of images and lack specialized recognition solutions for medical documents. In addition, the formats and styles of medical documents in different hospitals vary greatly, making it difficult to accurately locate the text area of ​​the medical document, resulting in low recognition accuracy.

[0004] In view of this, we need a data collection method and system based on intelligent recognition and filling of medical documents to solve the above problems. Summary of the invention

[0005] The purpose of this application is to solve the problem that common OCR tools are difficult to accurately locate text areas, resulting in low recognition accuracy. In order to solve the above technical problems, a data collection method and system based on intelligent recognition and filling of medical documents is provided, which can accurately locate text areas and have higher recognition accuracy.

[0006] To achieve the above-mentioned purpose, the embodiment of the present application adopts the following technical scheme: a data collection method based on intelligent recognition and filling of medical documents, wherein the method is applied to a data collection system based on intelligent recognition and filling of medical documents, the method comprising: configuring key detection parameters of the target medical document based on an OCR tool, wherein the key detection parameters include detection limit side length, detection directory, detection image shape and detection text length; obtaining a medical document sample, analyzing and counting the document information category based on the medical document sample, wherein the document sample information category includes the medical document date, patient name, drug name and diagnosis information; based on According to the document information category, the document information category area is divided corresponding to the position of the medical document sample, the regional identification mark is set according to the document information category area, and the regional logical association is established according to the regional identification mark, wherein the document information category corresponds to the document information category area one by one; a medical document extraction template is established based on the regional identification mark and the regional logical association; the target medical document is identified by using the detection key parameters and the OCR tool, and the medical document text information is obtained; the medical document text information and the medical document extraction template are used for extraction, and the medical document key information is generated, and the medical document key information is marked and filled in the system accordingly.

[0007] Further, according to an embodiment of the present application, the method also includes: based on the medical document sample, detecting and identifying the document table in the medical document sample, and segmenting the document table into document cells; separating the text information in the document cell according to the contrast difference between the document cell and the medical document sample, and generating a text binary image; inputting the text binary image into an OCR recognition module for recognition to extract the document information category.

[0008] Further, according to an embodiment of the present application, the method also includes: acquiring a target medical document, and performing an image preprocessing operation based on the target medical document; using a detection module to detect a straight line in the document image of the target medical document after the image preprocessing operation, and determining whether the straight line in the document image satisfies a preset tilt angle, and if so, using a rotation matrix to perform rotation correction on the straight line in the document image.

[0009] Further, according to an embodiment of the present application, obtaining a target medical document and performing an image preprocessing operation based on the target medical document specifically include the following steps: graying the target medical document to convert the acquired color image of the document into a document grayscale image; filtering and denoising the document grayscale image to select the median value within the pixel range of the document grayscale image as the current pixel value to remove noise in the document grayscale image and generate a document denoised image; binarizing the document denoised image to obtain the target medical document after the image preprocessing operation.

[0010] Further, according to an embodiment of the present application, the method also includes: determining whether the confidence of the key information of the medical document is lower than a preset confidence, and generating a confidence determination result; comparing the recognition result of the key information of the medical document with the preset document key information, and generating a key information comparison result; summarizing the confidence determination result and the key information comparison result and feeding them back to the system.

[0011] Further, according to an embodiment of the present application, the method specifically includes the following steps: when the confidence of the key information of the medical document is lower than the preset confidence, the confidence judgment result is uncertain content, otherwise the confidence judgment result is certain content; when there is a missing in the recognition result of the key information of the medical document compared with the preset document key information, the key information comparison result is missing key information, otherwise the key information comparison result is complete key information.

[0012] To achieve the above-mentioned purpose, the embodiment of the present application also adopts the following technical solutions: a data collection system based on intelligent recognition and filling of medical documents, wherein the system includes: a parameter configuration module, the parameter configuration module is used to configure the key detection parameters of the target medical document based on the OCR tool, wherein the key detection parameters include the detection limit side length, the detection directory, the detection image shape and the detection text length; an information category statistics module, the information category statistics module is used to obtain medical document samples, analyze and count the document information categories according to the medical document samples, and the document sample information categories include the medical document date, patient name, drug name and diagnosis information; an identification area recognition module, the identification area recognition module is used to divide the position of the corresponding medical document sample based on the document information category. Document information category area, an identification recognition area is set according to the document information category area, and a logical association of the identification area is established according to the identification recognition area, wherein the document information category corresponds to the document information category area one by one; an extraction template establishment module, an extraction template establishment module is used to establish a medical document extraction template based on the identification recognition area and the logical association of the identification area; a document text information acquisition module, the document text information acquisition module is used to use the key detection parameters and OCR tools to identify the target medical document, and obtain the medical document text information; a document key information filling module, the document key information filling module is used to extract based on the medical document text information and the medical document extraction template, and generate medical document key information, and mark the medical document key information and fill it into the system accordingly.

[0013] Further, according to an embodiment of the present application, the system also includes: a cell segmentation module, the cell segmentation module is used to detect and identify the document table in the medical document sample based on the medical document sample, and segment the document table into document cells; a text binary image generation module, the text binary image generation module is used to separate the text information in the document cell according to the contrast difference between the document cell and the medical document sample, and generate a text binary image; a document information category extraction module, the document information category extraction module is used to input the text binary image into the OCR recognition module for recognition to extract the document information category.

[0014] To achieve the above-mentioned purpose, an embodiment of the present application also discloses an electronic device, which includes a processor; a memory, in which computer program instructions are stored. When the computer program instructions are executed by the processor, the processor executes the data collection method based on intelligent identification and filling of medical documents as mentioned above.

[0015] To achieve the above objectives, an embodiment of the present application further discloses a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the data collection method based on intelligent identification and filling of medical documents as described above. Beneficial Effects

[0016] The present application uses an OCR tool to configure key detection parameters of a target medical document; obtains a medical document sample, analyzes the medical document sample and counts the document information category; based on the document information category, divides the document information category area corresponding to the location of the medical document sample, sets a region identification mark according to the document information category area, and establishes a region logical association based on the region identification mark; establishes a medical document extraction template based on the region identification mark and the region logical association; uses key detection parameters and an OCR tool to identify the target medical document and obtain medical document text information; extracts the medical document based on the medical document text information and the medical document extraction template, generates medical document key information, and fills the medical document key information into the system accordingly, thereby achieving the technical effect of being able to accurately locate the text area and accurately extract the text content, and solves the technical problem that conventional OCR tools are difficult to accurately locate the text area, resulting in incorrect text content extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The present application is further described below in conjunction with the accompanying drawings and embodiments.

[0018] Figure 1 It is a flowchart of the data collection method based on intelligent recognition and filling of medical documents in this application.

[0019] Figure 2This is a structural diagram of a data collection system for intelligent identification and filling of medical documents in this application.

[0020] Figure 3 It is a structural diagram of the electronic device of this application. DETAILED DESCRIPTION

[0021] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] In the description of the present invention, it should be noted that the terms "center", "middle", "upper", "lower", "left", "right", "inner", "outer", "top", "bottom", "side", "vertical", "horizontal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "one", "first", "second", "third", "fourth", "fifth", "sixth" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] For the purpose of simplicity and illustration, the principles of the embodiments are mainly described by reference to examples. In the following description, many specific details are proposed to provide a thorough understanding of the embodiments. However, it is obvious that for those of ordinary skill in the art, these embodiments may not be limited to these specific details in practice. In some instances, known methods and structures are not described in detail to avoid making these embodiments unnecessarily difficult to understand. In addition, all embodiments can be used in combination with each other. Example 1

[0025] like Figure 1As shown, this embodiment provides a data collection method based on intelligent recognition and filling of medical documents, wherein the method is applied to a data collection system based on intelligent recognition and filling of medical documents, and the method includes: S10, configuring key detection parameters of the target medical document based on the OCR tool, wherein the key detection parameters include detection limit side length, detection directory, detection image shape and detection text length; It should be noted that the OCR (Optical Character Recognition) tool refers to an electronic device that detects characters on medical documents by detecting dark and light patterns, that is, it uses an optical method to recognize the text in the medical document. Before recognition, the key detection parameters in the medical document are configured to make the OCR tool more suitable for the recognition of medical documents. The following are some key parameters and their configurations in the key detection parameters: Detection limit side length: Set the maximum side length of the image during detection to adapt to the size of the medical document; Detection directory: specifies the path of the detection model. You can select or train a specific detection model based on the characteristics of the medical document; Detect image shape: Set the shape of the image during recognition to fit the size and proportion of the text on the medical document; Detection text length: Set the maximum text length considered during recognition to accommodate long text that may appear on medical documents.

[0026] S20, obtaining a medical document sample, analyzing and counting the document information categories based on the medical document sample, where the document sample information categories include the medical document date, patient name, drug name, and diagnosis information; S30, based on the document information category, dividing the document information category area corresponding to the location of the medical document sample, setting a regional identification mark according to the document information category area, and establishing a regional logical association according to the regional identification mark, wherein the document information category corresponds to the document information category area one by one; Specifically, a large number of medical document samples are collected, analyzed and counted, including frequently appearing and key information categories in each document, including date, patient name, drug name, medical institution name, diagnosis and treatment items, cost details, etc., without limitation; In order to determine the fields to be extracted, the corresponding areas are delineated on the template according to the format of the medical document sample and the actual position of each information category in the medical document sample, namely, the document information category area. For example, the date is usually located in the upper right or upper left corner of the document, the patient's name is immediately after the specific identity identification area, and the drug name is mostly in the drug list part; Secondly, a unique area identification mark is set for each document information category area so that the identified text and the corresponding field can be accurately matched when the text information is extracted later. This setting method can use image recognition or manual labeling, and at the same time establish regional logical associations, that is, the logical associations between the various document information category areas, such as the corresponding billing relationship between the cost details area and the diagnosis and treatment item area, and the patient name area is associated with the identity verification area to ensure completeness and accuracy.

[0027] S40, establishing a medical document extraction template based on the regional identification mark and the regional logical association; S50, using the key detection parameters and OCR tools to identify the target medical document and obtain the medical document text information; S60: Extract based on the medical document text information and the medical document extraction template, generate key information of the medical document, mark the key information of the medical document and fill it into the system accordingly.

[0028] Specifically, the key information of the medical document is extracted according to the medical document extraction template through the identified text, that is, the text information of the medical document, and the extracted key information of the medical document such as the date, patient name, and drug name is mapped to the corresponding fields in the template to complete the identification and extraction of the target medical document. The extracted key information of the medical document is then marked and filled in the system accordingly.

[0029] Furthermore, the method further comprises: Identify based on the key information of medical documents and the sensitive information database, analyze the key information of medical documents with the sensitive keywords in the sensitive information database to find out whether there is a match; If there is a match, the sensitive keywords corresponding to the key information of the medical document are fuzzy processed.

[0030] By using the medical document key information and sensitive information database for identification in the above method, it is possible to automatically identify whether there is patient sensitive information in the medical document key information. If relevant sensitive information exists, the sensitive information is automatically coded. It should be noted that the sensitive information database and sensitive keywords are pre-set; secondly, considering special scenarios, users can also be supported to manually adjust the coded content, which can greatly reduce the risk of patient information leakage and the manual workload of patient information desensitization.

[0031] Furthermore, the method also includes: based on the medical document sample, detecting and identifying the document table in the medical document sample, and segmenting the document table into document cells; separating the text information in the document cell according to the contrast difference between the document cell and the medical document sample, and generating a text binary image; inputting the text binary image into the OCR recognition module for recognition to extract the document information category.

[0032] Specifically, the text binary image is input into the OCR recognition module for recognition. Exemplarily, the recognition process can recognize the text in the text binary image in combination with the medical field vocabulary library to ensure that the text content can be accurately extracted, and the document information category is obtained after recognition.

[0033] Furthermore, the method further comprises: Obtaining a target medical document, and performing image preprocessing operations according to the target medical document; Among them, the preprocessing operation includes the following specific steps: grayscale processing is performed on the target medical document to convert the collected document color image into a document grayscale image; the document grayscale image is filtered and denoised, and the median value within the pixel field of the document grayscale image is selected as the current pixel value to remove the noise in the document grayscale image and generate a document denoised image; the document denoised image is binarized to obtain the target medical document after the image preprocessing operation.

[0034] Specifically, the target medical document is subjected to image preprocessing to ensure image quality optimization. First, grayscale processing is used to convert the collected document color image into a document grayscale image, that is, the color image is converted into a grayscale image to reduce the interference of color information on subsequent processing. Secondly, the document grayscale image is filtered and denoised, and the median value within the pixel field of the document grayscale image is selected as the current pixel value to remove the noise in the document grayscale image. The noise can be salt and pepper noise and Gaussian noise, etc., so that the edge of the document grayscale image is clearer, which is more suitable for subsequent recognition, and a document denoised image is generated. Finally, the document denoised image is binarized to obtain the target medical document after image preprocessing, that is, the target medical document is converted into only black and white colors, the contrast between the text and the background is enhanced, the text part is more obvious, and the text information is more suitable for recognition and extraction.

[0035] After the image preprocessing operation, the target medical document uses a detection module to detect the straight line of the document image to determine whether the straight line of the document image meets the preset tilt angle. If so, a rotation matrix is ​​used to perform rotation correction on the straight line of the document image.

[0036] Specifically, the target medical document after the image preprocessing operation is detected by a detection module. The inclination angle of the document image straight line in the target medical document is determined by the detection module, and it is analyzed whether the document image straight line meets the preset inclination angle. If so, the document image straight line is rotationally corrected by a rotation matrix, so that the document image straight line, that is, the text line, in the target medical document remains horizontal, which is convenient for the subsequent extraction of text information.

[0037] Furthermore, the method also includes: determining whether the confidence of the key information of the medical document is lower than a preset confidence, and generating a confidence determination result; comparing the recognition result of the key information of the medical document with the preset key information of the document, and generating a key information comparison result; summarizing the confidence determination result and the key information comparison result and feeding them back to the system.

[0038] When the confidence of the key information of a medical document is lower than the preset confidence, the confidence judgment result is uncertain content, otherwise the confidence judgment result is certain content; when there is a missing in the recognition result of the key information of a medical document compared with the preset document key information, the key information comparison result is missing key information, otherwise the key information comparison result is complete key information.

[0039] Specifically, it is determined whether the confidence of the key information of the medical document is lower than the preset confidence, and a confidence determination result is generated. When the confidence of the key information of the medical document is lower than the preset confidence, the confidence determination result is uncertain content, otherwise the confidence determination result is certain content. For example, when the confidence of the OCR recognition result is lower than the preset confidence, assuming it is lower than 70%, the confidence determination result is uncertain content. Compare the recognition result of the key information of the medical document with the preset key information of the document, and generate the key information comparison result. When there is a missing in the comparison between the recognition result of the key information of the medical document and the preset key information of the document, the key information comparison result is the key information missing. Otherwise, the key information comparison result is the key information complete. For example, if the key fields "drug name" and "diagnosis information" do not appear in the recognition result, the key information comparison result is marked as the key information missing. The marked confidence judgment results and key information comparison results are summarized and fed back to the system. The summary can be sorted according to urgency and importance, with more urgent and important data placed in front. During manual review, they are verified and corrected in order of priority. After the correction is completed, it is fed back to the system to update the corresponding data to ensure the accuracy of the identified and extracted content.

[0040] The present application uses an OCR tool to configure key detection parameters of a target medical document; obtains a medical document sample, analyzes the medical document sample and counts the document information category; based on the document information category, divides the document information category area corresponding to the location of the medical document sample, sets a region identification mark according to the document information category area, and establishes a region logical association based on the region identification mark; establishes a medical document extraction template based on the region identification mark and the region logical association; uses key detection parameters and an OCR tool to identify the target medical document and obtain medical document text information; extracts the medical document based on the medical document text information and the medical document extraction template, generates medical document key information, and fills the medical document key information into the system accordingly, thereby achieving the technical effect of being able to accurately locate the text area and accurately extract the text content, and solves the technical problem that conventional OCR tools are difficult to accurately locate the text area, resulting in incorrect text content extraction. Example 2

[0041] like Figure 2 As shown, based on the same inventive concept as the data collection method based on intelligent recognition and filling of medical documents in the above-mentioned embodiment, the present invention also provides a data collection system based on intelligent recognition and filling of medical documents, the system comprising: A parameter configuration module, which is used to configure key detection parameters of the target medical document based on the OCR tool, wherein the key detection parameters include detection limit side length, detection directory, detection image shape and detection text length; An information category statistics module is used to obtain medical document samples, analyze and count document information categories based on the medical document samples. The document sample information categories include medical document date, patient name, drug name and diagnosis information; The identification area identification module is used to divide the document information category area based on the document information category and the position of the medical document sample, set the identification area according to the document information category area, and establish the identification area logical association according to the identification area, wherein the document information category corresponds to the document information category area one by one; An extraction template establishment module, the extraction template establishment module is used to establish a medical document extraction template based on the identification area and the identification area logical association; The document text information acquisition module is used to identify the target medical document by using key detection parameters and OCR tools, and to obtain the medical document text information; The document key information filling module is used to extract and generate medical document key information based on medical document text information and medical document extraction template, mark the medical document key information and fill it into the system accordingly.

[0042] Furthermore, the system also includes: Sensitive information analysis module: The sensitive information analysis module is used to identify based on the key information of medical documents and the sensitive information database, analyze the key information of medical documents with sensitive keywords in the sensitive information database, and find out whether there is a match; The sensitive keyword fuzzy filling module is used to fuzzy process the sensitive keywords corresponding to the key information of the medical document if there is a match.

[0043] Furthermore, the system also includes: a cell segmentation module, which is used to detect and identify the document table in the medical document sample based on the medical document sample, and segment the document table into document cells; a text binary image generation module, which is used to separate the text information in the document cell according to the contrast difference between the document cell and the medical document sample, and generate a text binary image; a document information category extraction module, which is used to input the text binary image into the OCR recognition module for recognition to extract the document information category.

[0044] The various variations and specific examples of the data collection method based on intelligent recognition and filling of medical documents in the aforementioned embodiment 1 are also applicable to the data collection system based on intelligent recognition and filling of medical documents in this embodiment. Through the aforementioned detailed description of the data collection method based on intelligent recognition and filling of medical documents, those skilled in the art can clearly know the implementation method of the data collection system based on intelligent recognition and filling of medical documents in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here. Example 3

[0045] like Figure 3 As shown, the electronic device includes one or more processors and memory.

[0046] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0047] The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may run the program instructions to implement the data collection method based on intelligent identification and filling of medical documents and / or other desired functions of the various embodiments of the present application above. Various contents such as key detection parameters may also be stored in the computer-readable storage medium, and the volatile memory can save the functions related to the present application.

[0048] Secondly, the electronic device also includes an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0049] For example, when the electronic device is a stand-alone device, the input device may be a communication network connector. In addition, the input device may also include, for example, a keyboard, a mouse, and the like.

[0050] The output device can output various information to the outside, including the determined area identification mark, etc. The output device can include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto.

[0051] Of course, for the sake of simplicity, the figure only shows some of the components in the electronic device related to the present application, omitting components such as bus, input / output interface, etc. In addition, the electronic device may also include any other appropriate components according to specific application conditions.

[0052] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the data collection method based on intelligent identification and filling of medical documents according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0053] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0054] Although the above describes the illustrative specific implementation methods of the present application so that technicians in this technical field can understand the present application, the present application is not limited to the scope of the specific implementation methods. For ordinary technicians in this technical field, as long as various changes are within the spirit and scope of the present application defined and determined by the attached claims, all application creations using the concept of the present application are protected.

Claims

1. A data collection method based on intelligent identification and filling of medical documents, wherein: The method is applied to a data collection system based on intelligent recognition and filling of medical documents, and the method comprises: Based on the OCR tool, the key detection parameters of the target medical document are configured, wherein the key detection parameters include detection limit side length, detection directory, detection image shape and detection text length; Obtaining a medical document sample, analyzing and counting document information categories based on the medical document sample, wherein the document sample information categories include medical document date, patient name, drug name, and diagnosis information; Based on the document information category, the document information category area is divided corresponding to the position of the medical document sample, a region identification mark is set according to the document information category area, and a region logical association is established according to the region identification mark, wherein the document information category corresponds to the document information category area one by one; Establishing a medical document extraction template based on the regional identification mark and the regional logical association; Using the key detection parameters and the OCR tool to identify the target medical document and obtain medical document text information; Extraction is performed based on the medical document text information and the medical document extraction template, and key information of the medical document is generated. The key information of the medical document is marked and filled in the system accordingly.

2. The data collection method based on intelligent identification and filling of medical documents according to claim 1 is characterized in that: The method further comprises: Based on the medical document sample, detecting and identifying a document table in the medical document sample, and segmenting the document table into document cells; Separating text information in the document cell according to a contrast difference between the document cell and the medical document sample, and generating a text binary image; The text binary image is input into an OCR recognition module for recognition to extract the document information category.

3. The data collection method based on intelligent identification and filling of medical documents according to claim 1 is characterized in that: The method further comprises: Acquiring the target medical document, and performing image preprocessing operations according to the target medical document; After the image preprocessing operation, the target medical document uses a detection module to detect the straight line of the document image to determine whether the straight line of the document image meets the preset tilt angle. If so, a rotation matrix is ​​used to perform rotation correction on the straight line of the document image.

4. The data collection method based on intelligent identification and filling of medical documents according to claim 3 is characterized in that: The obtaining of the target medical document and performing image preprocessing according to the target medical document specifically comprises the following steps: Grayscale processing is performed on the target medical document to convert the collected document color image into a document grayscale image; Filtering and denoising the document grayscale image, selecting the median value in the pixel area of ​​the document grayscale image as the current pixel value to remove the noise in the document grayscale image, and generating a document denoised image; The document denoised image is binarized to obtain the target medical document after image preprocessing.

5. The data collection method based on intelligent identification and filling of medical documents according to claim 1 is characterized in that: The method further comprises: Determining whether the confidence level of the key information of the medical document is lower than a preset confidence level, and generating a confidence level determination result; Comparing the recognition result of the medical document key information with the preset document key information, and generating a key information comparison result; The confidence judgment results and the key information comparison results are summarized and fed back to the system.

6. The data collection method based on intelligent identification and filling of medical documents according to claim 5 is characterized in that: The method specifically comprises the following steps: When the confidence level of the key information of the medical document is lower than the preset confidence level, the confidence level judgment result is uncertain content, otherwise the confidence level judgment result is certain content; When there is a missing in the comparison between the recognition result of the key information of the medical document and the preset key information of the document, the key information comparison result is that the key information is missing, otherwise the key information comparison result is that the key information is complete.

7. A data collection system based on intelligent identification and filling of medical documents, characterized in that: The system comprises: A parameter configuration module, the parameter configuration module is used to configure key detection parameters of the target medical document based on the OCR tool, wherein the key detection parameters include detection limit side length, detection directory, detection image shape and detection text length; An information category statistics module, the information category statistics module is used to obtain medical document samples, analyze and count document information categories based on the medical document samples, and the document sample information categories include medical document date, patient name, drug name and diagnosis information; an identification area recognition module, the identification area recognition module is used to divide the document information category area according to the position of the medical document sample based on the document information category, set the identification area according to the document information category area, and establish the identification area logical association according to the identification area, wherein the document information category corresponds to the document information category area one by one; An extraction template establishment module, the extraction template establishment module is used to establish a medical document extraction template based on the identification recognition area and the identification area logical association; A document text information acquisition module, the document text information acquisition module is used to identify the target medical document using the detection key parameters and the OCR tool, and acquire the medical document text information; A document key information filling module is used to extract and generate medical document key information based on the medical document text information and the medical document extraction template, mark the medical document key information and fill it into the system accordingly.

8. The data collection system based on intelligent identification and filling of medical documents according to claim 7 is characterized in that: The system further comprises: A cell segmentation module, the cell segmentation module is used to detect and identify the document form in the medical document sample based on the medical document sample, and segment the document form into document cells; A text binary image generation module, the text binary image generation module is used to separate the text information in the document cell according to the contrast difference between the document cell and the medical document sample, and generate a text binary image; The document information category extraction module is used to input the text binary image into the OCR recognition module for recognition to extract the document information category.

9. An electronic device, comprising: processor; A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the data collection method based on intelligent recognition and filling of medical documents as described in any one of claims 1-6.

10. A computer-readable storage medium having computer program instructions stored thereon, wherein when the computer program instructions are executed by a processor, the processor executes the data collection method based on intelligent identification and filling of medical documents as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Document input method and device, computer equipment and storage medium

    CN109829444A

  • Method for extracting structured information of bill and electronic equipment

    CN114694158A

  • Medical text recognition method and device, computer equipment and storage medium

    CN116912847A

  • Text recognition model training method, text recognition method, device and equipment

    CN117612188A

  • Bill information extraction method and device and bill information extraction system

    CN117831056A

Cited By

  • AI-based medical insurance service item process management method and system

    CN122493471A

  • An ai-based medical insurance service matter process management method and system

    CN122493471B