A method for real-time analysis of whether a bill of exchange is a defective bill based on big data
Through the big data real-time analysis method, combined with optical character recognition and template matching technology, a relationship chain is established to identify defective bills, which solves the problems of template singleness and back-endorsement in the existing technology, achieves efficient and accurate identification of massive bill of exchange data, and improves Improve the identification efficiency and enterprise management level.
Patent Information
- Application Number
- CN202311848998.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-29
AI Technical Summary
When processing defective bills of exchange, the existing technology has the problems of single template and low efficiency in identifying backward endorsements and repeated endorsements. It cannot quickly and accurately identify defective bills from massive data, resulting in missed detection and low processing efficiency.
Adopt a real-time analysis method based on big data, extract bill information through optical character recognition technology, combine template matching and exception handling processes, establish a relationship chain, conduct direct and indirect back-endorsement judgments, expand the template library to solve the problem of template singleness, and achieve high efficiency Accurately identify defective tickets.
It achieves efficient and accurate identification and location of defective bills in massive bill of exchange data, improves identification efficiency, avoids missed inspections, enhances the management level and credibility of the company, and optimizes the efficiency of fund use.
Smart Images

Figure CN118155225B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method for analyzing in real time based on big data whether a bill of exchange is a defective bill. Background Art
[0002] A bill of exchange is a document issued by the drawer, which requires the payee to unconditionally pay a certain amount to the payee or holder upon sight of the bill or on a specified date. A defective bill is a bill of exchange with defects. Currently, the analysis of defective bills is cumbersome, the processing logic is complex, and it is time-consuming. It is often processed together with the business logic, and it is impossible to analyze the overall situation of various defective bills from a macro perspective, and it is impossible to accurately determine all defective bills. There is a serious phenomenon of missed detection. Sometimes defective bills can only be processed based on experience or manual methods, which is inefficient.
[0003] Chinese patent document CN112307750A discloses "electronic bill defect identification method, system, device and storage medium", which extracts the HTML string of the electronic bill face, extracts the face information from the HTML string and performs structured processing to obtain the JSON object of the electronic bill face information, and compares the JSON object with the established rules to obtain the defect result. The above technical solution has the following disadvantages: extracting the face information from the online banking records, the extraction efficiency is low, the template unity problem cannot be solved, and the corresponding data cannot be quickly retrieved from the massive data; there is uncertainty in the analysis of HTML, and a lot of effort is required to match the page style when it changes; only the clearly marked "non-transferable" defects can be found, and the "back endorsement" and "duplicate endorsement" phenomena cannot be determined. Therefore, how to analyze the corresponding endorsement classification from the massive historical bills, how to accurately search for defective bills and improve the subsequent regression efficiency are technical problems that need to be solved urgently. Summary of the invention
[0004] The technical problem to be solved by the present invention is: to overcome the deficiencies in the prior art, to provide a method for real-time analysis of whether a bill of exchange is a defective bill based on big data, to analyze the massive historical bill of exchange data, and to solve the problems of single template, back endorsement, and repeated endorsement through template matching and exception handling procedures; and to efficiently and accurately identify and locate defective bills through direct and indirect double back endorsement determination. The technical solution of the present invention is as follows:
[0005] A method for analyzing whether a bill of exchange is a defective bill in real time based on big data, comprising:
[0006] S1 Text Recognition: Use optical character recognition technology (OCR) to identify the information on the back of each bank note, use image preprocessing technology to extract the corresponding text area, determine the position and boundary of the text and separate it; use machine learning algorithm technology to extract text and character features for comparison to obtain text recognition results;
[0007] S2 template matching: With the endorsement title structure in the template library as the key field, the big data engine performs template matching on the data identified by S1; if the template matching is successful, the "bill type" is parsed from the data, the bill type with transaction risk is selected, and the content of each group of "endorser", "endorsee", and "endorsement date" fields in the transaction chain is obtained, and the S5 key information extraction process is entered for subsequent matching; if the template matching fails, the unmatched data is printed out through the exception mechanism notification, and the S3 exception handling process is entered;
[0008] S3 exception handling: According to the exception log, analyze the bill endorsement title structure information, use the concept of regular expression grouping, provide analysis for each endorsement, and establish a new endorsement title structure template;
[0009] S4 template library expansion: add the endorsement title structure template created in S3 to the template library, and repeat S2 operation until there is no abnormal printing, thus solving the template singleness problem;
[0010] S5 key information extraction: The parsing result printed without exception in S2 is taken as the final parsing result, and the enterprise information is extracted from the final parsing result to obtain a relationship list of multiple groups of endorsers nameOfEndorser and endorsees nameOfEndorsee;
[0011] S6 Establish a relationship chain: connect the endorser and the endorsee in order by order dateOfEndorsement to obtain an industry relationship chain;
[0012] S7 Direct Back-endorsement Determination: Determine whether there are duplicate endorsers or endorsees in the relationship chain. If there are duplicates, it is determined to be back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicates, enter S8 to mark the same actual controller process;
[0013] S8 Marking the same actual controller: If different companies among the endorsers have the same actual controller, the two companies will be marked with the same actual controller label;
[0014] S9 Indirect back-endorsement judgment: judge whether there are duplicate labels in the result of S8; if there are duplicate labels, it is judged as back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicate labels, the bill of exchange is a normal bill.
[0015] Preferably, the types of bills of exchange with transaction risks described in S2 include: transfer endorsement bills of exchange and endorsement transfer bills of exchange.
[0016] The beneficial effects of the present invention are:
[0017] 1. The method provided by the present invention is to analyze in real time based on big data whether a bill of exchange is a defective bill. The optical character recognition technology OCR is used to identify the information on the back of each bank's bill and extract the text recognition result. Based on the analysis of massive historical bill of exchange data, the template matching, exception handling, and template library expansion process are used to solve the problems of single template, back endorsement, and repeated endorsement. A relationship chain is established by extracting key information, and after direct and indirect double back endorsement judgments, defective bills can be identified and located quickly and efficiently, accurately, and quickly.
[0018] 2. The method provided by the present invention is to analyze in real time based on big data whether a bill of exchange is a defective bill, and the efficiency of defective bill identification is effectively improved through three links: pre-analysis, in-process interception, and post-summary. Pre-analysis provides a variety of template processing methods to avoid omissions; in-process interception provides real-time alarms; post-summary expands the template library and algorithms in real time.
[0019] 3. The method provided by the present invention for real-time analysis of whether a bill of exchange is a defective bill based on big data can effectively handle bill defects, avoid economic losses caused by non-payment, maintain the reputation of the enterprise, and make customers have higher trust in the enterprise.
[0020] 4. The method provided by the present invention for real-time analysis of whether a bill of exchange is a defective bill based on big data is helpful to improve the internal management level of the enterprise, reduce bill defects caused by poor management, optimize the cash flow of the enterprise, and improve the efficiency of capital use. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 This is a flow chart of a method for real-time analysis of whether a bill of exchange is a defective bill based on big data in an embodiment of the present invention;
[0023] Figure 2 is a bill image A in an embodiment of the present invention;
[0024] Figure 3 It is the bill image B in the embodiment of the present invention. DETAILED DESCRIPTION
[0025] The exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the following description is only illustrative and exemplary in nature and is not intended to limit the present invention and its application or use. Unless otherwise specifically stated, the relative positions, numerical expressions and numerical values of the components and steps described in the embodiments do not limit the scope of the present invention. In addition, techniques, methods and devices known to those skilled in the art may not be discussed in detail, but are intended to be part of the specification in appropriate circumstances.
[0026] Embodiment 1 is a method disclosed by the present invention for analyzing in real time whether a bill of exchange is a defective bill based on big data. Figure 1 As shown:
[0027] A method for analyzing whether a bill of exchange is a defective bill in real time based on big data, comprising:
[0028] S1 Text Recognition: Use optical character recognition technology (OCR) to identify the information on the back of each bank note, use image preprocessing technology to extract the corresponding text area, determine the position and boundary of the text and separate it; use machine learning algorithm technology to extract text and character features for comparison to obtain text recognition results;
[0029] S2 template matching: With the endorsement title structure in the template library as the key field, the template matching is performed on the data identified by S1 through the big data engine; if the template matching is successful, the "bill type" is parsed from the data, and the transfer endorsement bill and endorsement transfer bill with transaction risks are selected, and the content of each group of "endorser", "endorsee" and "endorsement date" fields in the transaction chain is obtained, and the S5 key information extraction process is entered for subsequent matching; if the template matching fails, the unmatched data is printed out through the exception mechanism notification, and the S3 exception handling process is entered;
[0030] Assume that there is an endorsement title structure in the template library ["endorser name" + "endorser name" + "non-transferable mark" + "endorsement date" + "endorsement application remarks"]. Figure 2 The endorsement title structure is consistent, so it can be successfully matched; the "bill type" is parsed from the data. If it belongs to transfer endorsement bill or endorsement transfer bill, the content of each group of "endorser", "endorsee" and "endorsement date" fields in the transaction chain is obtained, and the S5 key information extraction process is entered for subsequent matching;
[0031] S3 exception handling: According to the exception log, analyze the bill endorsement title structure information, use the concept of regular expression grouping, provide analysis for each endorsement, and establish a new endorsement title structure template;
[0032] Figure 3For the bill image entering the exception processing, regular analysis is performed on the recognized text [electronic bank acceptance bill, bill number: 130**********114, transfer endorsement information, endorser name: Shanxi XXX Co., Ltd., endorsee name: Shandong XXX Co., Ltd., whether transferable: transferable, endorsement date: 2022-11-17], and the regular group method is used to first use "transfer endorsement" as the recognition keyword. If it exists, ["endorser name" + "endorsee name" + "whether transferable" + "endorsement date"] will be filled as a matching chain as a whole.
[0033] S4 template library expansion: add the endorsement title structure template created in S3 to the template library, and repeat S2 operation until there is no abnormal printing, thus solving the template singleness problem;
[0034] Add the ["endorser name" + "endorsee name" + "transferable" + "endorsement date"] identified in S3 as a newly created endorsement title structure template to the template library, and repeat S2 until there is no abnormal printing; that is, when a new bank draft that is not included in the template library appears in the process of identifying the draft, parse the template format of the new bank draft and add it to the template library; the next time the new bank draft appears, it can be directly matched;
[0035] S5 key information extraction: The parsing result printed without exception in S2 is taken as the final parsing result, and the enterprise information is extracted from the final parsing result to obtain a relationship list of multiple groups of endorsers nameOfEndorser and endorsees nameOfEndorsee;
[0036] Parsing results:
[0037]
[0038] The result after extraction:
[0039] [Hebei XXX Co., Ltd.—Beijing XXX Co., Ltd., Beijing XXX Co., Ltd.—Jilin XXX Co., Ltd., Jilin XXX Co., Ltd.—Guangdong XXX Co., Ltd., Guangdong XXX Co., Ltd.—Jiangsu XXX Co., Ltd., …]
[0040] S6 Establish a relationship chain: connect the endorser and the endorsee in order by order dateOfEndorsement to obtain an industry relationship chain;
[0041] [Hebei XXX Co., Ltd.—Beijing XXX Co., Ltd.—Jilin XXX Co., Ltd.—Guangdong XXX Co., Ltd.—Jiangsu XXX Co., Ltd.—……]
[0042] S7 Direct Back-endorsement Determination: Determine whether there are duplicate endorsers or endorsees in the relationship chain. If there are duplicates, it is determined to be back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicates, enter S8 to mark the same actual controller process;
[0043] In this relationship chain, [Hebei XXX Co., Ltd. - Beijing XXX Co., Ltd. - Jilin XXX Co., Ltd. - Guangdong XXX Co., Ltd. - Jiangsu XXX Co., Ltd. - ...], there are no duplicate endorsers and endorsees, and enter S8 to mark the same actual controller process;
[0044] S8 Marking the same actual controller: If different companies among the endorsers have the same actual controller, the two companies will be marked with the same actual controller label;
[0045] In this relationship chain, [Hebei XXX Co., Ltd.—Beijing XXX Co., Ltd.—Jilin XXX Co., Ltd.—Guangdong XXX Co., Ltd.—Jiangsu XXX Co., Ltd.—……], there is no situation where different companies have the same actual controller, so there is no need to add a label to mark the same actual controller;
[0046] S9 Indirect back-endorsement judgment: judge whether there are duplicate labels in the result of S8; if there are duplicate labels, it is judged as back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicate labels, the bill of exchange is a normal bill;
[0047] In this relationship chain, [Hebei XXX Co., Ltd.—Beijing XXX Co., Ltd.—Jilin XXX Co., Ltd.—Guangdong XXX Co., Ltd.—Jiangsu XXX Co., Ltd.—……], there is no duplicate label, so this bill of exchange is determined to be a normal bill.
[0048] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for real-time analysis of whether a bill of exchange is a defective bill based on big data, comprising: S1 Text Recognition: Use optical character recognition technology (OCR) to identify the information on the back of each bank note, use image preprocessing technology to extract the corresponding text area, determine the position and boundary of the text and separate it; use machine learning algorithm technology to extract text and character features for comparison to obtain text recognition results; S2 template matching: With the endorsement title structure in the template library as the key field, the big data engine performs template matching on the data identified by S1; if the template matching is successful, the "bill type" is parsed from the data, the bill type with transaction risk is selected, and the content of each group of "endorser", "endorsee", and "endorsement date" fields in the transaction chain is obtained, and the key information extraction process of S5 is entered for subsequent matching; if the template matching fails, the unmatched data is printed out through the exception mechanism notification, and the S3 exception handling process is entered; S3 exception handling: According to the exception log, analyze the bill endorsement title structure information, use the concept of regular expression grouping, provide analysis for each endorsement, and establish a new endorsement title structure template; S4 template library expansion: add the endorsement title structure template created in S3 to the template library, and repeat S2 operation until there is no abnormal printing, thus solving the template singleness problem; S5 key information extraction: The parsing result printed without exception in S2 is taken as the final parsing result, and the enterprise information is extracted from the final parsing result to obtain a relationship list of multiple groups of endorsers nameOfEndorser and endorsees nameOfEndorsee; S6 Establish a relationship chain: connect the endorser and the endorsee in order by order dateOfEndorsement to obtain an industry relationship chain; S7 Direct Back-endorsement Determination: Determine whether there are duplicate endorsers or endorsees in the relationship chain. If there are duplicates, it is determined to be back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicates, enter S8 to mark the same actual controller process; S8 Marking the same actual controller: If different companies among the endorsers have the same actual controller, the two companies will be marked with the same actual controller label; S9 Indirect back-endorsement judgment: judge whether there are duplicate labels in the result of S8; if there are duplicate labels, it is judged as back-endorsement or duplicate endorsement, and the bill of exchange is a defective bill; if there are no duplicate labels, the bill of exchange is a normal bill.
2. According to the method for real-time analysis of whether a bill of exchange is a defective bill based on big data according to claim 1, the types of bills of exchange with transaction risks in S2 include: Transfer endorsement bill of exchange and endorsement transfer bill of exchange.
Citation Information
Patent Citations
Electronic bill defect identification method, system and device, and storage medium
CN112307750A
Bill operation risk management control method and system thereof
CN108805715A
Big data risk control and auxiliary decision analysis method based on commercial bill information
CN115907835A
