Medical document entry method based on image-text recognition

Using image and text recognition technology to correct and identify medical bills, combined with intelligent matching and digital image linkage, it solves the problem of heavy input of medical insurance reimbursement details and low degree of informatization, and achieves efficient and accurate medical reimbursement data entry and review. .

CN118570823AInactive Publication Date: 2024-08-30ZHEJIANG WANGXINHUIZHI TECH CO LTD

Patent Information

Application Number
CN202410737945.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Medical insurance sporadic reimbursement involves a heavy workload in entering medical reimbursement details, a shortage of personnel, and a low degree of informatization, resulting in low efficiency and frequent errors, which poses challenges to medical insurance management.

Method used

Adopt a medical document entry method based on image and text recognition, use OpenCV for medical document image correction, use PaddleOCR for image and text recognition, and combine with ES search engine for intelligent matching and digital image linkage technology to improve data recognition and review efficiency.

Benefits of technology

It achieves fast and accurate entry of medical reimbursement details, reduces manual review costs, improves the efficiency and accuracy of medical insurance management, and reduces errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570823A
    Figure CN118570823A
Patent Text Reader

Abstract

The invention discloses a medical bill entry method based on image-text recognition, which comprises the following steps of: preprocessing an electronic image of a medical bill, performing rotary projection on the preprocessed image, performing rotary correction to obtain a corrected image, initiating a recognition task request to an information processing server by a client, and recording the recognition task request to the information processing server. The identification task request contains business main body information and to-be-identified picture list information, the information processing server side sequentially polls to-be-identified picture lists and requests picture identification to the picture and text identification server side, and the picture and text identification server side obtains pictures from the distributed object storage one by one according to the to-be-identified picture list information and performs character identification. And an identification result is obtained and input is completed. The whole medical document entry process is more efficient and easy to use on the basis of intelligentization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image and text recognition technology, and in particular, relates to a medical document entry method based on image and text recognition. Background Art

[0002] With the development of social economy, people's living standards are constantly improving, and the demand for medical insurance is also increasing. As a basic medical insurance system, medical insurance plays an important role in alleviating the economic burden of medical treatment for the masses. However, the problem of difficulty in entering medical reimbursement details for sporadic medical insurance reimbursement is becoming increasingly prominent, which brings challenges to medical insurance management.

[0003] Medical insurance sporadic reimbursement medical reimbursement detail entry refers to the classification, sorting and entry of various expense details incurred by patients during medical treatment, so as to facilitate the payment and management of medical insurance funds. This work requires professionals to review and enter a large number of medical expense details, but due to various reasons, this work is often difficult to carry out smoothly.

[0004] First of all, the workload of entering medical reimbursement details for sporadic medical insurance reimbursements is large and covers a wide range. There are many types of expense details incurred during the patient's medical treatment, including medical items, examinations, treatments, surgeries and other aspects. These expense details need to be reviewed and entered one by one, which is a huge workload. At the same time, there are differences in cost standards and management regulations between different regions and different medical institutions, which brings certain difficulties to the review and entry work.

[0005] Secondly, there is a shortage of personnel to input the details of medical reimbursement for sporadic medical reimbursements. Since this work requires certain medical knowledge and skills, it needs to be done by professionals. However, in actual operation, due to the limited establishment of medical insurance institutions, it is often difficult to recruit a sufficient number of professionals to do this work. At the same time, due to reasons such as low pay and heavy workload, some professionals are unwilling to do this work.

[0006] Finally, the informationization level of medical insurance sporadic reimbursement details is not high, and most regions still use manual entry to manage. This method is not only inefficient, but also prone to errors and omissions, which brings certain risks to the management and use of medical insurance funds.

[0007] The difficulty in entering medical reimbursement details for sporadic medical insurance reimbursements has become an important factor restricting medical insurance management. Therefore, in order to solve this problem, it is necessary to explore a relatively automated, intelligent and efficient method for entering medical reimbursement details. Summary of the invention

[0008] The purpose of this application is to provide a medical document entry method based on image and text recognition to solve the problems of low informatization level, low efficiency, and easy occurrence of errors and omissions in the entry of medical reimbursement details.

[0009] In order to achieve the above purpose, the technical solution of this application is as follows:

[0010] A medical document entry method based on image and text recognition, comprising:

[0011] The client obtains the business subject information and the electronic image of the medical bill, and pre-processes the electronic image of the medical bill;

[0012] Perform rotational projection on the preprocessed image to obtain a projection image within a preset angle range, take the minimum total vertical height of the text blocks in the projection image as the goal, obtain the best rotation angle, perform rotation correction on the preprocessed image, and obtain a corrected image;

[0013] The client uploads the corrected image to the information processing server asynchronously. After receiving the image, the information processing server stores the image in the distributed object storage.

[0014] The client initiates a recognition task request to the information processing server, wherein the recognition task request contains business subject information and a list of images to be recognized. The information processing server sequentially polls the list of images to be recognized and requests the image recognition server to perform image recognition.

[0015] The image and text recognition server obtains images one by one from the distributed object storage according to the list of images to be recognized, performs text recognition, and completes the entry of recognition results.

[0016] Furthermore, the preprocessing of the electronic image of the medical bill includes:

[0017] Convert electronic images of medical bills into grayscale images;

[0018] Convert the grayscale image to a binary image;

[0019] Remove the elements outside the text block in the binary image to obtain the preprocessed image.

[0020] Furthermore, performing rotational projection on the preprocessed image to obtain a projection image within a preset angle range, taking the total vertical height of the text blocks in the projection image as the minimum, and obtaining the optimal rotation angle includes:

[0021] Perform rotation projection on the preprocessed image to obtain the projection image with a rotation angle ranging from -5 to 5 degrees;

[0022] With a correction accuracy of 1 degree, traverse the projection images in the range of -5 to 5 degrees to determine the first rotation angle angle1 corresponding to the minimum total vertical height of the text block;

[0023] With a correction accuracy of 0.1 degrees, traverse the projection images in the range of [angle1-0.9, angle1+0.9] to determine the second rotation angle angle2 corresponding to the minimum total vertical height of the text block;

[0024] With a correction accuracy of 0.01 degrees, the projection images in the range of [angle2-0.09, angle2+0.09] are traversed to determine the third rotation angle angle3 corresponding to the minimum total vertical height of the text block as the optimal rotation angle.

[0025] Furthermore, the image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text recognition, obtains recognition results and completes entry, including:

[0026] The image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text detection, and detects the text area;

[0027] Perform text recognition on the text area;

[0028] Perform semantic analysis on the text recognition results;

[0029] The medical project name obtained by semantic analysis is used as the query matching condition, and the matching standard medical project directory data is obtained through intelligent matching. Then, other information obtained by semantic analysis is assembled with the standard medical project directory data and saved in the recognition database.

[0030] Furthermore, the medical document entry method based on image and text recognition further includes:

[0031] The information processing server polls the list of images to be recognized in turn, and after requesting the image recognition server to perform image recognition, sets the corresponding recognition task status to sent;

[0032] The image and text recognition server stores the recognition results in the recognition database;

[0033] The information processing server periodically polls all recognition tasks with the status of sent, queries the image and text recognition server for recognition results, and after obtaining the recognition results, records the queried recognition results in the result database and updates the recognition task status to received.

[0034] Furthermore, the medical document entry method based on image and text recognition further includes:

[0035] The image and text recognition server obtains the images one by one from the distributed object storage according to the list of images to be recognized. When performing text recognition, it also recognizes the coordinate information of the text area;

[0036] The client sends a recognition result review request, and after receiving the review request, the information processing server searches for the corresponding recognition result from the result database;

[0037] The client displays the image corresponding to the review request, and highlights the text area in the image according to the coordinate information of the text area for comparison and review with the recognition result. If errors are found during the review, they are corrected and the corrected results are stored in the result database.

[0038] Furthermore, the medical document entry method based on image and text recognition further includes:

[0039] When starting the client, it is determined whether the external image acquisition device is connected, and if it is connected, the external image acquisition device is started.

[0040] This application proposes a medical document entry method based on image and text recognition, which uses medical bill image correction technology based on OpenCV to correct electronic images of medical bills to improve the recognition rate; uses medical bill image and text recognition technology based on PaddleOCR to recognize and analyze electronic images of medical bills, and converts unstructured images into structured medical detail data (non-standardized data definition: for example, the names of the same medicine in medical invoices in various places are different, so this non-standardized drug name data is non-standardized data); through the medical project intelligent matching technology based on the ES search engine, the non-standardized medical detail data is standardized and converted; the medical bill digital image linkage technology accurately locates the position of the data in the image, and selects the highlighted display to improve the convenience of data verification. Through the comprehensive application of the above technologies, an efficient medical document entry method based on image and text recognition is formed. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a flow chart of the medical document entry method based on image and text recognition in this application. DETAILED DESCRIPTION

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

[0043] This application proposes a medical document entry method based on image and text recognition, which applies medical bill image correction technology based on OpenCV, medical bill image and text recognition technology based on PaddleOCR, medical project intelligent matching technology based on ES search engine, medical bill digital and image linkage technology, etc., to convert paper medical bills into electronic images through a high-definition camera or scanner, and to form structured data by enhancing the image and recognizing text. Intelligent matching and processing are performed on the structured data to quickly form a medical reimbursement detail list, and a friendly manual review assistance mechanism is provided to help medical insurance sporadic reimbursement entry personnel quickly and accurately complete the medical reimbursement detail entry work.

[0044] In one embodiment, Figure 1 As shown, a method for entering medical documents based on image and text recognition is provided, comprising:

[0045] Step S1: The client obtains business subject information and electronic images of medical bills, and pre-processes the electronic images of medical bills.

[0046] Specifically, based on the business documents (referring to the business processing documents, which are generated by the upstream business system and submitted to the image and text recognition system, and contain basic data such as the business serial number, the name of the person handling the business, and the ID card, where the business serial number can be used to associate business batches and OCR recognition data), the business subject information is collected. The business subject information mainly includes basic information such as the business serial number, name, and ID card. For business subject information, such as business serial number, name, ID card, etc., it is a regular information entry item, and the handling personnel can collect and enter it from the paper documents.

[0047] For medical receipts (referring to medical invoices or medical item lists that need to be identified, which mainly include basic personnel information, basic hospital information, medical medication details and other data), electronic images are collected and pre-processed and optimized to ensure the accuracy of subsequent identification.

[0048] For the collection of electronic images of medical bills, the handling personnel complete it through the bill collection plug-in. Due to the differences in equipment procurement, even in the same project, the peripherals purchased by users in different regions are different (already purchased in the past), which makes docking very difficult. In order to alleviate the docking difficulties caused by equipment differences, the present application method provides three compatible collection methods: 1. Get pictures from a custom interface; 2. Collect pictures through a high-speed scanner; 3. Scan pictures from a scanning instrument. The three different methods can be customized according to the actual application scenarios and equipment conditions of the handling users. Method 1-Get pictures from a custom interface. This method is suitable for electronic pictures that have been collected in the acceptance link of medical sporadic reimbursement. When entering reimbursement, the pictures collected in the acceptance link can be obtained through the defined interface; Method 2-Take pictures from a high-speed scanner. This method is suitable for medical insurance documents. Electronic pictures have not been collected and a high-speed scanner is used as a picture collection device on site; Method 3-Scan pictures from a scanning instrument. This method is suitable for medical insurance documents. Electronic pictures have not been collected and a scanner is used as a picture collection device on site.

[0049] Compared with the traditional single electronic material collection method, the three-compatible collection method can greatly improve the compatibility of image collection, and has better adaptability to different projects, different departments, and different scenarios.

[0050] Conventional image preprocessing methods are generally completed automatically before the server performs image recognition. Once such an approach encounters images with more problems, the server's preprocessing of the images is a bit weak, resulting in poor quality of the recognized text data. This embodiment preprocesses the collected electronic images of medical bills and provides an image preprocessing plug-in, which completes the entire process on the client side by using automatic preprocessing + manual correction. In the plug-in, the image will be automatically preprocessed based on OpenCV, such as grayscale processing of converting color images into grayscale images, using noise reduction algorithms to remove noise in the image, increasing the contrast of different areas in the image to make the image clearer, enhancing the edges and details of the image, sharpening the image to make it clearer, and using a self-developed image correction algorithm to correct the image, etc. Through this series of image preprocessing means, the image is automatically optimized, and then the automatically preprocessed image is displayed to the handling user in the plug-in. The processing users can intuitively see the results of automatic preprocessing of images. If problems are found in the preprocessed images, such as human notes on the images or useless interference areas in the images, the preprocessing plug-in also provides functions such as cutout (removing useless areas) and image capture (selecting useful parts). The images can be manually processed for a second time to ensure image quality and improve the accuracy of subsequent image and text recognition.

[0051] In this step, the electronic image of the medical bill is preprocessed. The specific process includes:

[0052] Step 1.1: Convert the electronic image of the medical bill into a grayscale image.

[0053] For the image captured by scanning normal A4 paper, grayscale processing is first performed to obtain a grayscale image (grayscale images are more efficient in removing black edges), and then the grayscale image is processed to remove black edges. The remaining 95% or more of the area is the content of the paper. When scaled to within 2000*2000, the eyes can still recognize the text normally. In actual operation, this algorithm only calculates the correction angle, and the image can be scaled smaller. The smaller the image, the less time it takes to execute the correction algorithm, but the accuracy will be slightly affected. Combined with the actual debugging situation, this embodiment scales the grayscale image to a resolution of 2000*2000.

[0054] Step 1.2: Convert the grayscale image into a binary image.

[0055] There are many ways to obtain a binary image. The threshold method of OpenCV can obtain a binary image. However, in practical applications, the brightness of the image will seriously affect the separation of foreground text and background color, resulting in poor results. An adaptive threshold can also be used. This embodiment adopts the integral binary method.

[0056] Step 1.3: Remove the elements outside the text block in the binary image to obtain the preprocessed image.

[0057] Remove elements other than text on the binary image, such as icons and lines. Under normal circumstances, the text size is within a certain range. Temporarily define the text length in the X direction as 5 to 50 pixels and the height as 5 to 50 pixels. Use the connected component detection function (connectedComponentsWithStats) of OpenCV to filter out blocks outside the above range. The remaining blocks are basically text blocks, which may be incomplete text, but will not affect the subsequent projection steps.

[0058] Step S2, perform rotational projection on the preprocessed image to obtain a projection image within a preset angle range, take the minimum total vertical height of the black blocks in the projection image as the goal, obtain the best rotation angle, perform rotation correction on the preprocessed image, and obtain a corrected image.

[0059] This step uses a correction algorithm for medical bill images based on OpenCV, called the text projection image correction algorithm. Its purpose is to correct the image (mainly skewed images) based on the characteristics of medical bills to improve the accuracy of subsequent image and text recognition. The principle is as follows: remove the redundant content from the image, leaving only the text block, each text block is black, and after projection in the X direction, you can get a black column. If it is a corrected image, then each line is a black column after projection. The height of the column is the height of the text block, and the distance between two adjacent columns is the line spacing.

[0060] The binary image after removing useless elements is rotated by the rotation projection method to obtain projection data in a small range of -5 degrees to 5 degrees. From the projection data, we can obtain the total height of the text block in the projection image in the Y direction (we will refer to the total height as totalH later). When rotated to a certain angle, totalH reaches the minimum value, then this rotation angle is the required optimal rotation angle. The correction accuracy here is required to reach 0.01 degrees. According to conventional practice, it takes 1000 times to complete. If each execution takes about 10ms, it takes about 10 seconds to complete. Obviously, this processing step is quite time-consuming. In order to improve processing efficiency, this embodiment adopts a step-by-step refinement method to divide the correction accuracy into three gradients of 1 degree, 0.1 degree, and 0.01 degree for sequential processing.

[0061] First, perform rotation projection on the preprocessed image to obtain the projection image with a rotation angle ranging from -5 to 5 degrees.

[0062] With a correction accuracy of 1 degree, traverse the projection images in the range of -5 to 5 degrees, execute 11 times in total, and get the rotation angle angle1 corresponding to the minimum totalH; then, based on angle1, execute the projection image data in the range of [angle1-0.9, angle1+0.9], with a correction accuracy of 0.1, execute 18 times in total, and finally get the rotation angle angle2 corresponding to the minimum totalH; finally, based on angle2, execute the projection image data in the range of [angle2-0.09, angle2+0.09], with a correction accuracy of 0.01, execute 18 times in total, and finally get the angle angle3 corresponding to the minimum totalH, which is the final correction angle. Use the calculated correction angle angle3 to correct the original image and get the final corrected image.

[0063] It should be noted that the step-by-step refinement method adopted in this embodiment can set different preset angle ranges and correction accuracies according to actual scenarios, which will not be described in detail here.

[0064] In this embodiment, the entire image preprocessing process is put in front, the medical bill image is corrected through the image correction algorithm, and a manually assisted correction method can be added (correction in the preprocessing stage, such as removing useless interference data blocks, selecting effective recognition areas, etc., with low labor costs and good results). The problem points of the image are processed in the preprocessing stage, which can greatly improve the accuracy of subsequent image and text recognition and improve overall work efficiency.

[0065] Step S3: The client uploads the corrected image to the information processing server. After receiving the image, the information processing server stores the image in the distributed object storage.

[0066] Submit the corrected image to the information processing server. Since the image is relatively high-definition and relatively large, the submission of the image is also a relatively slow process. This embodiment adopts asynchronous submission means in this step, so that the user feels like it is completed instantly. The corrected image is submitted in the plug-in background. After completion, the completion status is displayed in the plug-in, and the user can process the next image, thereby achieving continuity of operation and reducing waiting time. After the image is uploaded to the information processing server, the image will be uploaded to the distributed object storage again. Finally, an image ID is returned to the client. The image ID can be retrieved from the distributed object storage and can be used for subsequent query display.

[0067] Distributed object storage is a storage architecture model, the core of which is to store data (usually in the form of objects or files) in multiple nodes to improve storage reliability, performance and scalability. In order to improve the compatibility of the system, in this application, two different types of distributed object storage are supported, namely the open source product Mongodb and the commercial Alibaba Cloud OSS.

[0068] This embodiment uses distributed object storage, mainly considering that the volume of electronic images of medical bills will grow rapidly, and the use of distributed object storage can have faster storage performance and better elastic expansion capabilities. Upload the image to the distributed object storage, which is only interconnected with the application server network, improving the security of the data.

[0069] Step S4: The client initiates a recognition task request to the information processing server. The recognition task request contains business subject information and a list of pictures to be recognized. The information processing server polls the list of pictures to be recognized in turn and requests the image and text recognition server to perform image recognition.

[0070] Specifically, the client initiates a recognition task request to the information processing server. The recognition task request contains business subject information and a list of pictures to be recognized. The recognition task request includes a main task and multiple subtasks. The main task contains business subject information such as the main task ID, business serial number, name, and ID card; the subtask includes subtask ID, picture ID, task status (data sent, data received) and other information. For example, if you submit a recognition task request, there may be 10 pictures in it, then there is one main task and 10 subtasks. Each subtask provides a list of pictures to be recognized.

[0071] The information processing server polls the list of images to be identified in turn, carries the subtask ID and image ID to initiate an image recognition request to the image and text recognition server, and updates the task status to sent.

[0072] Step S5: The image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text recognition, obtains the recognition results and completes the entry.

[0073] After receiving the image recognition request, the image recognition server uses an asynchronous thread pool to optimize the processing: the task information will be recorded immediately and the task acceptance success flag will be returned immediately. Then the medical insurance receipt recognition process is started through the asynchronous thread pool. The steps are as follows:

[0074] Step 5.1: The image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text detection, and detects the text area.

[0075] This step obtains the image from the distributed object storage by the image ID, and then performs text detection on the entire image. The result of the text detection is which content is a text area and which content is not a text area. The content of the text area will become the input of the subsequent steps.

[0076] Step 5.2: Perform text recognition on the text area.

[0077] This step is to convert the content in the text area into text, and the result is text data converted from the image, such as Chinese characters, letters, numbers, punctuation marks, etc.

[0078] Step 5.3: Perform semantic analysis on the text recognition results.

[0079] This step is to analyze and define the recognized text data, such as which words are names, which words are names of medical items, which numbers are unit prices, which numbers are total prices, and so on.

[0080] It should be noted that text recognition is implemented based on PaddleOCR's image and text recognition technology. PaddleOCR is an open source OCR recognition technology component, which comes with many common image recognition models, such as text detection model, text recognition model, layout analysis model, etc. In this embodiment, text detection is implemented using PaddleOCR's built-in text detection model, but when recognizing text, the text recognition model that comes with PaddleOCR has a very low recognition rate for medical bills, with a recognition accuracy rate of only about 73%. The main reason for this is that PaddleOCR's built-in text recognition model is mainly aimed at relatively regular text recognition, but the bills provided by hospitals are not unified across the country, and the formats, fonts, and clarity are varied.

[0081] In order to improve the accuracy of text recognition in the text recognition process, this embodiment performs customized training for the text recognition model of medical bills: first, nearly 3,000 sample images of medical bills of various styles to be trained are prepared nationwide, covering various situations with low recognition rates, such as dot-pin invoices, invoices with very light fonts, and relatively blurred invoices; then, these invoices are manually labeled, and 2,500 of the labeled invoices are used for training model reinforcement training, and 500 are used for model verification. During the training process, this method continuously adjusts the learning rate parameter and performs iterative training. The learning rate parameter is trained for multiple rounds in the range of 0.1-0.0001. Finally, when the learning rate is set to 0.001, a relatively optimal text recognition model for medical bill recognition is obtained, and the model accuracy ACC reaches 90.21%. The trained model is verified using 500 verification images, and the result is 90.09%. Through continuous reinforcement training, the recognition rate of the text recognition model for medical bills is increased from 73% to about 90%, and the recognition rate has been greatly improved.

[0082] Step 5.4: Use the medical project name obtained by semantic analysis as the query matching condition, obtain the matching standard medical project directory data through intelligent matching, and then assemble the other information obtained by semantic analysis with the standard medical project directory data and save it to the recognition database.

[0083] This step is the process of standardizing the results of semantic analysis. Semantic analysis will obtain information such as the name of the medical project, unit price and total price. The name of the medical project obtained through semantic analysis may not be a standard name and needs to be standardized.

[0084] Specifically, the non-standardized medical project names obtained in the semantic analysis are used as query matching conditions, and the standardized medical project catalog data with the highest similarity is identified through the intelligent matching algorithm in the ES search engine, including medical project names, medical project numbers, medical project classifications, etc. Then the standardized medical project catalog data obtained by intelligent matching is combined with other information data such as unit price, total price, hospital, etc. obtained in the semantic analysis, assembled into standard JSON structured data, and finally written into the recognition database. When writing to the recognition database, the task ID passed in is used to mark the task to which it belongs, so that the information processing server can perform subsequent result queries.

[0085] The intelligent matching of this embodiment is based on the ES search engine to achieve intelligent matching of medical projects. Since the names of medical projects on medical bills are not standard names, if the traditional fuzzy matching technology of database based on data is used, the problem of missing or even failing to match data matching will be caused. In order to avoid this problem, this application chooses to use the ES search engine for similarity matching. The medical project names obtained through semantic analysis are intelligently matched with the standard medical project names in the ES search engine. The matching similarity score (SCORE) threshold is set during the matching process. The setting of the threshold directly affects the search results. If it is set too low, the wrong content will be matched. If it is set too high, the matching results may be missing. Therefore, after multiple rounds of matching tests with the standard catalog of medical projects, the final score threshold selected by this embodiment is 12. By setting the matching similarity score, the standard medical project data result set searched by ES can be kept in a relatively balanced state, neither too much wrong data nor too few or even no results, so that the entire search result is kept in a relatively accurate state.

[0086] In another embodiment of the present application, the medical document entry method based on image and text recognition further includes:

[0087] The information processing server polls the list of images to be recognized in turn, and after requesting the image recognition server to perform image recognition, sets the corresponding recognition task status to sent;

[0088] The image and text recognition server stores the recognition results in the recognition database;

[0089] The information processing server periodically polls all recognition tasks with the status of sent, queries the image and text recognition server for recognition results, and after obtaining the recognition results, records the queried recognition results in the result database and updates the recognition task status to received.

[0090] Specifically, the information processing server of this embodiment sequentially polls the list of images to be recognized, and after requesting the image recognition server to perform image recognition, sets the corresponding recognition task status to sent. After obtaining the recognition result, the image recognition server stores the recognition result in the recognition database.

[0091] The information processing server periodically polls all the recognition task lists that are in the sent state, and queries the task through the task ID to the image and text recognition server. If no recognition result is found, no processing is done; if a recognition result is found, the recognition task status is updated to the received state, and the queried recognition result data, such as hospital name, total cost, medical project name, unit price, type, etc., is recorded in the result database.

[0092] This embodiment takes into account the need to reduce the invalid waiting time of the handling users and improve the efficiency of work, and the overall processing is based on the asynchronous thread pool + timed polling method. After the handling user initiates the image and text recognition request, it will quickly prompt that the task has been submitted successfully, and the handling personnel can go to handle the next business without spending a lot of time waiting for the recognition results. The very time-consuming image scanning work is handed over to the background for queuing processing through the thread pool. On the one hand, it ensures the efficiency of the foreground operation, and on the other hand, it ensures that the operating pressure of the background is kept within a controllable range.

[0093] In another embodiment of the present application, the medical document entry method based on image and text recognition further includes:

[0094] The image and text recognition server obtains the images one by one from the distributed object storage according to the list of images to be recognized. When performing text recognition, it also recognizes the coordinate information of the text area;

[0095] The client sends a recognition result review request, and after receiving the review request, the information processing server searches for the corresponding recognition result from the result database;

[0096] The client displays the image corresponding to the review request, and highlights the text area in the image according to the coordinate information of the text area for comparison and review with the recognition result. If errors are found during the review, they are corrected and the corrected results are stored in the result database.

[0097] Since machine recognition is an untrustworthy behavior, manual review is required to correct the errors. Specifically, the handling personnel operate on the client and send a request for review of the recognition results. For example, the task list is displayed on the page, including the main task ID, personnel name, ID card, number of medical bills, recognition progress and other information. The business handling personnel clicks on the task with a recognition progress of 100% in the task list. At this time, the client program obtains the main task ID of the task according to the task clicked by the handling personnel, and uses it as an input parameter to query the recognition result corresponding to the task from the information processing server, including all medical bill images contained in the task and the hospital name, medical project name, classification, unit price and other data recognized from these images.

[0098] The audit requires the handling personnel to check the data against the medical bill pictures, which is a heavy workload for the handling personnel. In order to further reduce the workload of data checking, this embodiment adopts the digital image linkage technology to assist the handling personnel to check the data more conveniently. The core of the digital image linkage is that when the handling personnel are checking the data of a certain medical project, they can quickly locate the data accurately in the electronic image and show it to the handling personnel.

[0099] In order to achieve positioning, in the picture recognition process of this embodiment, the recognition result needs to include not only the recognized text data, but also the coordinate data of the text area. Therefore, the text area can be highlighted on the electronic picture according to the coordinate data, so that the handling personnel can conduct comparison and review.

[0100] When the handling personnel review a certain recognition task, they will select a medical bill image in the task for image and text comparison review. The client will display the image and its corresponding recognition data, and highlight it on the map according to the coordinate data.

[0101] This embodiment further simplifies the operation of the handling personnel when reviewing the detailed data of medical items through the reasonable application of the linkage technology of numbers and graphs, and can achieve the effect of the graphs moving with the numbers, thereby improving the data review efficiency of the handling personnel.

[0102] After review, if any recognition errors are found, manual corrections can be made and the corrected data can be saved in the result database.

[0103] In another embodiment of the present application, the medical document entry method based on image and text recognition further includes:

[0104] When starting the client, it is determined whether the external image acquisition device is connected, and if it is connected, the external image acquisition device is started.

[0105] Specifically, when the electronic image collection of medical bills relies on external image collection devices, the external image collection devices are high-speed scanners and scanners, which are mainly used to convert paper materials into electronic materials. According to conventional practices, the startup of peripherals is generally started when the peripherals are used, but due to the different types of peripherals and the different performance of the computers running the peripherals, the time consumed for the startup of peripherals varies. If you encounter a computer or peripheral with poor performance, the waiting period for the startup of the peripherals will be greatly increased, wasting the valuable business handling time of the salesperson.

[0106] When the client starts up, this embodiment first determines whether the computer is currently connected to a high-speed scanner or a scanner. If it is already connected, the peripheral is started and put in standby mode. For example, the camera of the high-speed scanner is turned on in advance and is ready for shooting. When taking pictures, there is no need to waste time on the step of turning on the camera. This embodiment pre-starts the peripheral and does not affect the user's operation. It eliminates the waiting time for the user during the peripheral startup phase. Compared with the conventional method of starting the peripheral at a certain time, it is more superior in performance. At the same time, the user can use it more smoothly without too much waiting time, and the user experience is better.

[0107] This application proposes an efficient medical document entry method based on image and text recognition and intelligent algorithms. Through the medical bill image correction technology based on OpenCV, the medical bill is corrected, thereby improving the data recognition rate of subsequent pictures; through the medical bill image and text recognition technology based on PaddleOCR, the medical bill text recognition model is trained to improve the text recognition rate; through the medical project intelligent matching technology based on the ES search engine, the query effect of the medical project details is improved; through the medical bill digital image linkage technology, the digital image linkage during the review of medical project details data is improved. The entire medical document entry process is more efficient and easy to use on the basis of intelligence.

[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A medical document entry method based on image and text recognition, characterized in that: The medical document entry method based on image and text recognition includes: The client obtains the business subject information and the electronic image of the medical bill, and pre-processes the electronic image of the medical bill; Perform rotational projection on the preprocessed image to obtain a projection image within a preset angle range, take the minimum total vertical height of the text blocks in the projection image as the goal, obtain the best rotation angle, perform rotation correction on the preprocessed image, and obtain a corrected image; The client uploads the corrected image to the information processing server asynchronously. After receiving the image, the information processing server stores the image in the distributed object storage. The client initiates a recognition task request to the information processing server, wherein the recognition task request contains the business subject information and the list of images to be recognized. The information processing server sequentially polls the list of images to be recognized and requests the image recognition server to perform image recognition. The image and text recognition server obtains images one by one from the distributed object storage according to the list of images to be recognized, performs text recognition, and completes the entry of recognition results.

2. The medical document entry method based on image and text recognition according to claim 1 is characterized in that: The preprocessing of the electronic image of the medical bill includes: Convert electronic images of medical bills into grayscale images; Convert the grayscale image to a binary image; Remove the elements outside the text block in the binary image to obtain the preprocessed image.

3. The medical document entry method based on image and text recognition according to claim 1 is characterized in that: The method of performing rotational projection on the preprocessed image to obtain a projection image within a preset angle range, taking the total vertical height of the text blocks in the projection image as the minimum, and obtaining the optimal rotation angle includes: Perform rotation projection on the preprocessed image to obtain the projection image with a rotation angle ranging from -5 to 5 degrees; With a correction accuracy of 1 degree, traverse the projection images in the range of -5 to 5 degrees to determine the first rotation angle angle1 corresponding to the minimum total vertical height of the text block; With a correction accuracy of 0.1 degrees, traverse the projection images in the range of [angle1-0.9, angle1+0.9] to determine the second rotation angle angle2 corresponding to the minimum total vertical height of the text block; With a correction accuracy of 0.01 degrees, the projection images in the range of [angle2-0.09, angle2+0.09] are traversed to determine the third rotation angle angle3 corresponding to the minimum total vertical height of the text block as the optimal rotation angle.

4. The medical document entry method based on image and text recognition according to claim 1 is characterized in that: The image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text recognition, obtains recognition results and completes entry, including: The image and text recognition server obtains images from the distributed object storage one by one according to the list of images to be recognized, performs text detection, and detects the text area; Perform text recognition on the text area; Perform semantic analysis on the text recognition results; The medical project name obtained by semantic analysis is used as the query matching condition, and the matching standard medical project directory data is obtained through intelligent matching. Then, other information obtained by semantic analysis is assembled with the standard medical project directory data and saved in the recognition database.

5. The medical document entry method based on image and text recognition according to claim 1 is characterized in that: The medical document entry method based on image and text recognition also includes: The information processing server polls the list of images to be recognized in turn, and after requesting the image recognition server to perform image recognition, sets the corresponding recognition task status to sent; The image and text recognition server stores the recognition results in the recognition database; The information processing server periodically polls all recognition tasks with the status of sent, queries the image and text recognition server for recognition results, and after obtaining the recognition results, records the queried recognition results in the result database and updates the recognition task status to received.

6. The medical document entry method based on image and text recognition according to claim 5 is characterized in that: The medical document entry method based on image and text recognition also includes: The image and text recognition server obtains the images one by one from the distributed object storage according to the list of images to be recognized. When performing text recognition, it also recognizes the coordinate information of the text area; The client sends a recognition result review request, and after receiving the review request, the information processing server searches for the corresponding recognition result from the result database; The client displays the image corresponding to the review request, and highlights the text area in the image according to the coordinate information of the text area for comparison and review with the recognition result. If errors are found during the review, they are corrected and the corrected results are stored in the result database.

7. The medical document entry method based on image and text recognition according to claim 1 is characterized in that: The medical document entry method based on image and text recognition also includes: When starting the client, it is determined whether the external image acquisition device is connected, and if it is connected, the external image acquisition device is started.

Citation Information

Patent Citations

  • Bar code detection method and device, equipment and storage apparatus

    CN112699704A

  • Claim settlement data quality inspection verification method and device, computer equipment and storage medium

    CN114820211A

  • Tilt correction method and system for document image

    CN116343215A

Cited By

  • Intelligent processing system and method for sporadic reimbursement

    CN119784513A