A system and method for calculating subsidies for the disabled based on electronic receipts
By screening and reviewing the project information of electronic bills in the subsidy calculation system, identifying and processing abnormal amounts, the efficiency and accuracy problems caused by data confusion in the calculation of subsidies for persons with disabilities are solved, and fast and accurate calculation of subsidy amounts is achieved.
Patent Information
- Application Number
- CN202410925931.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-11
AI Technical Summary
When the existing subsidy calculation system calculates electronic bill data for medical and education subsidies for the disabled, it is easy to reduce calculation efficiency and accuracy due to large amounts of data confusion, and increase the probability of errors.
A disability subsidy calculation system based on electronic bills is designed. Through the screening module, feature extraction module, review identification module, subsidy determination module and exception review module, the target electronic bills are screened out, project information is extracted, and standard comparison and subsidy calculation are performed. , identify and handle abnormal amounts to ensure the accuracy of subsidy amounts.
The system can quickly and accurately obtain real data on subsidies for persons with disabilities, reduce the risks of over- and under-subsidies, improve the efficiency and accuracy of subsidy calculations, and reduce the probability of errors.
Smart Images

Figure CN118469730B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and more specifically, to a system and method for calculating disability subsidies based on electronic receipts. Background Art
[0002] Electronic invoices are paper invoices in electronic form. Compared with traditional paper invoices, electronic invoices can be uploaded and downloaded through the Internet, and are therefore widely used in relevant data calculations. Especially with the continuous construction of humanistic care in today's country, medical and educational subsidies for the disabled are becoming increasingly popular. In order to achieve subsidies for medical and educational consumption for the disabled, it is necessary to accurately calculate medical and educational expenses through an electronic invoice calculation system, thereby achieving reasonable and accurate economic subsidies for the disabled.
[0003] The patent application with reference publication number CN115718892A discloses a method, system, device and storage medium for calculating travel allowance, including searching a preset number of travel itinerary samples that meet the requirements as training samples through a genetic algorithm, and using the optimal travel itinerary samples as the initial weights and thresholds of a BP neural network; constructing a BP neural network model according to the initial weights and thresholds, and using the training samples to train the BP neural network model until the accuracy meets the requirements; in response to receiving the travel itinerary to be calculated, obtaining the business traveler, departure and arrival place, and departure and arrival time field components in the travel itinerary ; and inputting the field components into the trained BP neural network model to calculate the value of the travel allowance; it improves the efficiency and accuracy of the travel allowance calculation. Compared with the traditional travel allowance calculation, it is no longer necessary to implement complex calculation expressions for personnel configuration, which reduces the initial workload of the system; this method can automatically calculate travel allowances for scenarios such as off-season subsidies, entry and exit days, and multiple transfers on business trips based on the inductive classification of existing data, and meet the expansion of subsequent business, reduce the complexity of order preparation, improve order preparation efficiency, and improve the credibility and integrity of travel allowance related data, which provides convenience for subsequent auditors to handle documents;
[0004] The prior art has the following deficiencies:
[0005] The existing subsidy calculation system can achieve the effect of generally calculating the subsidy amount for the disabled by comprehensively identifying and collecting data on different types of electronic receipts. Since the calculation of subsidies for the disabled requires the collection and calculation of electronic receipt data from both medical and educational aspects, when there is a lot of data on the electronic receipts, a large number of different types of electronic receipts will derive a large number of different data collection objects, which can easily cause confusion in the data calculation objects for subsidy calculation. At the same time, a large number of unaudited electronic receipts will also expand the data collection scope for subsidy calculation and reduce the rate of subsidy calculation, thereby increasing the probability of errors in subsidy calculation.
[0006] In view of this, the present invention proposes a disability subsidy calculation system and method based on electronic receipts to solve the above problems. Summary of the invention
[0007] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solutions: A system for calculating subsidies for the disabled based on electronic receipts, applied to a subsidy calculation server, comprising: a receipt screening module, which obtains the original electronic receipts from the user end and, based on screening criteria, screens out target electronic receipts from the original electronic receipts;
[0008] A feature extraction module marks the information area in the target electronic invoice, identifies the project information in the information area, and extracts project features from the project information, the project features including the project name and the project amount;
[0009] The audit identification module compares the project name with the standard name for audit, generates an audit status value, and identifies the target name and target amount based on the audit status value;
[0010] The subsidy determination module calculates the total subsidy amount after summing up all target amounts and determines whether the total subsidy amount exceeds the standard subsidy range;
[0011] The abnormal review module marks abnormal amounts from the target amount, conducts abnormal review on the abnormal amounts, and formulates abnormal review instructions;
[0012] The instruction execution module reduces or archives the abnormal amount according to the abnormal review instruction and generates the total subsidy amount after review.
[0013] Furthermore, the screening criteria are: eliminating original electronic receipts whose comparison results of the first keyword and the second keyword are inconsistent;
[0014] The methods for screening target electronic invoices include:
[0015] Scan the QR codes in i original electronic receipts one by one to obtain i scanned invoice numbers and invoicing dates;
[0016] Compare the i scanned invoice numbers and invoice dates with the i original electronic invoice numbers and invoice dates;
[0017] The original electronic invoices with the same invoice number and invoice date are recorded as the electronic invoices to be identified, and p electronic invoices to be identified are obtained;
[0018] The first keywords in the p electronic receipts to be identified are identified one by one by using natural language processing technology, and the electronic receipts to be identified whose first keywords are consistent with the name of the disabled person are recorded as electronic receipts to be verified, thereby obtaining k electronic receipts to be verified;
[0019] The second keywords in the k electronic bills to be verified are identified one by one, and the electronic bills to be verified whose second keywords are consistent with the pre-stored key names are recorded as target electronic bills, thereby obtaining m target electronic bills.
[0020] Furthermore, the method for identifying project information includes:
[0021] Using computer vision technology, four horizontal dividing lines and two vertical dividing lines in the m target electronic bills are identified one by one;
[0022] Draw four horizontal dividing lines and two vertical dividing lines respectively, and record the area enclosed by the horizontal dividing lines and the vertical dividing lines as the project area;
[0023] From top to bottom, the project areas are numbered in ascending order, and the project area numbered 1 is recorded as the information area;
[0024] The characters and the corresponding values in the information area are recorded one by one, and after the characters and the values are summarized, n items of information are obtained.
[0025] Furthermore, the method of extracting the project name and project amount includes:
[0026] Count the number of characters in n project information one by one to obtain n character values;
[0027] Sequentially construct blank phrases with character positions that are the same size as the n character values, and sequentially import the n item information into the character positions of the n blank phrases to obtain n item phrases;
[0028] The last character position in the n project phrases is split by the splitting technology, and the project information in the split character position is recorded as the project amount to obtain n project amounts;
[0029] The keywords in the remaining character positions are identified by natural language processing technology, and the character positions where the keywords are located are recorded as valid character positions, thereby obtaining r valid character positions;
[0030] Separate the r valid character positions from the project phrase in sequence, and combine the project information in the r valid character positions in sequence to generate a project name, thereby obtaining n project names.
[0031] Further, the review status values include a passed status and a rejected status;
[0032] The methods for generating the pass status and the reject status include:
[0033] Compare and review the n project names with the standard names stored in the database in turn for consistency;
[0034] When the project name is consistent with the standard name, a pass status is generated;
[0035] When the project name does not match the standard name, a rejection status is generated;
[0036] Methods for identifying target names and target amounts include:
[0037] Query the review status values of n project names in sequence;
[0038] When the audit status value is the passed status, the project name corresponding to the passed status is recorded as the target name, and s target names are obtained;
[0039] Mark the project amounts corresponding to the s target names one by one, record them as target amounts, and obtain s target amounts.
[0040] Furthermore, the calculation method of the total amount of subsidy includes:
[0041] After the s target amounts are accumulated in sequence and the preset subsidy coefficient is assigned, the total subsidy amount is obtained;
[0042] The total amount of subsidy is expressed as: ;
[0043] In the formula, BZ ze is the total amount of subsidy, MB is the preset subsidy coefficient. jea is the ath target amount;
[0044] The methods for determining whether the subsidy exceeds the standard subsidy range include:
[0045] The total amount of subsidy is BZ ze The standard subsidy amount BZ is set at bz Compare;
[0046] When BZ ze Greater than BZ bz When the subsidy is determined to be beyond the scope of the standard subsidy;
[0047] When BZ ze Less than or equal to BZ bz When the subsidy is determined, it does not exceed the standard subsidy scope.
[0048] Furthermore, the marking method of abnormal amounts includes:
[0049] Set s target amount MB jes Sequentially with the corresponding s target security amounts MB aqs Compare;
[0050] When MB jes Larger than MB aqs When , the sth target amount is marked as an abnormal amount, and x abnormal amounts are obtained;
[0051] When MB jes Less than or equal to MB aqs , the s-th target amount is not marked as an abnormal amount.
[0052] Furthermore, the abnormal review instructions include review pass instructions and review reject instructions;
[0053] The methods for formulating the audit approval instructions and the audit rejection instructions include:
[0054] After subtracting the x abnormal amounts from the corresponding x target safety amounts, the amounts are compared with the corresponding x abnormal amounts to obtain x abnormal excess ratios;
[0055] The expression for the amount difference is: ;
[0056] In the formula, YC blx is the xth abnormal excess ratio, YC jex is the xth abnormal amount, MB aqx The Xth target security amount;
[0057] Set the x abnormal limit ratio YC blx Sequentially compare with the preset over-limit ratio threshold YC yz Compare;
[0058] When YC blx Greater than or equal to YC yz When the audit is rejected, formulate the audit rejection instructions;
[0059] When YC blx Smaller than YC yz When reviewing and approving the application, formulate review and approval instructions.
[0060] Furthermore, the method for generating the total amount of subsidies after review includes:
[0061] Mark the abnormal amounts that generate the review rejection instructions one by one to obtain z abnormal amounts;
[0062] Continuously reduce the size of the z abnormal amounts until the abnormal excess ratio corresponding to the z abnormal amounts is less than the preset excess ratio threshold, and then stop reducing the size of the abnormal amounts;
[0063] Mark the d abnormal amounts that generated the review pass instructions one by one, and archive the d abnormal amounts;
[0064] Add up the reduced z abnormal amounts and the archived d abnormal amounts one by one to obtain the total subsidy amount after review.
[0065] A method for calculating disability subsidies based on electronic receipts is implemented based on a disability subsidies calculation system based on electronic receipts, comprising:
[0066] S1: obtaining the original electronic bill from the user, and filtering out the target electronic bill from the original electronic bill based on the filtering criteria;
[0067] S2: Mark the information area in the target electronic invoice, identify the project information in the information area, and extract project features from the project information, where the project features include project name and project amount;
[0068] S3: Compare and review the project name with the standard name, generate an audit status value, and identify the target name and target amount based on the audit status value;
[0069] S4: After summing up all the target amounts, calculate the total subsidy amount and determine whether the total subsidy amount exceeds the standard subsidy range;
[0070] S5: Mark abnormal amounts from the target amount, conduct abnormal audit on the abnormal amounts, and formulate abnormal audit instructions;
[0071] S6: According to the abnormal review instructions, the abnormal amount is reduced or archived, and the total amount of subsidies after review is generated.
[0072] The technical effects and advantages of the electronic ticket-based disability subsidy calculation system and method of the present invention are as follows:
[0073] The present invention obtains the original electronic bill of the user end, and based on the screening criteria, screens out the target electronic bill from the original electronic bill, marks the information area in the target electronic bill, identifies the project information from the information area, and extracts the project features from the project information, the project features include the project name and the project amount, compares and reviews the project name with the standard name, generates an audit status value, and identifies the target name and the target amount based on the audit status value, calculates the total subsidy amount after summing up all the target amounts, and determines whether the total subsidy amount exceeds the standard subsidy range, marks the abnormal amount from the target amount, conducts an abnormal audit on the abnormal amount, formulates an abnormal audit instruction, and performs an abnormal audit on the abnormal amount according to the abnormal audit instruction. Reduction or archiving, generating the audited total subsidy amount; compared with the existing technology, it can preliminarily screen the electronic receipts in terms of form and authenticity, eliminate useless electronic receipts that cannot be used, and narrow the extraction and identification scope of project names and project amounts, so as to quickly and accurately obtain the real data required for the calculation of subsidies for the disabled, and through independent calculation and analysis of the over-limit status and over-limit ratio of the total subsidy, it can truly judge the real value of the amount of subsidy required to the disabled, so that the disabled can receive a reasonable and accurate subsidy amount, avoiding the phenomenon of over-subsidy and under-subsidy, and at the same time also improves the efficiency and accuracy of the calculation of subsidies for the disabled, greatly reducing the probability of errors in subsidy calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 A schematic diagram of a disability subsidy calculation system based on electronic receipts provided in Embodiment 1 of the present invention;
[0075] Figure 2 A flowchart of a method for calculating disability subsidies based on electronic receipts provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on 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.
[0077] Example 1: Please refer to Figure 1 As shown, the present embodiment describes a system for calculating subsidies for the disabled based on electronic receipts, which is applied to a subsidy calculation server and includes:
[0078] The bill screening module obtains the original electronic bill from the user end and screens out the target electronic bill from the original electronic bill based on the screening criteria;
[0079] Original electronic receipts refer to receipts in electronic format that are generated when disabled people make daily medical and educational consumption expenditures and can represent consumption expenditure information, and serve as the original receipt basis for subsequent subsidy calculations. Original electronic receipts can be obtained by disabled people importing them through the user end, or by querying and retrieving them through the database;
[0080] Original electronic receipts include medical electronic receipts and educational electronic receipts; medical electronic receipts refer to electronic receipts generated when disabled people enter medical institutions for medical care, which are used to record the medical information of disabled people; educational electronic receipts refer to electronic receipts generated when disabled people receive quality education in educational institutions, which are used to record the educational information of disabled people;
[0081] Since the consumption expenditure information represented by the original electronic bills has not been formatted, some original electronic bills may have certain defects in form and authenticity, which makes the original electronic bills unable to be used normally. Therefore, it is necessary to screen the original electronic bills with defects and record the screened original electronic bills as target electronic bills. When screening the target electronic bills, it is necessary to rely on screening criteria for screening;
[0082] The screening criteria are: eliminate the original electronic receipts whose comparison results of the first keyword and the second keyword are inconsistent;
[0083] The methods for screening target electronic invoices include:
[0084] Scan the QR codes in i original electronic receipts one by one to obtain i scanned invoice numbers and invoicing dates;
[0085] Compare the i scanned invoice numbers and invoice dates with the i original electronic invoice numbers and invoice dates;
[0086] The original electronic invoices with the same invoice number and invoice date are recorded as the electronic invoices to be identified, and p electronic invoices to be identified are obtained;
[0087] The first keywords in the p electronic bills to be identified are identified one by one by using natural language processing technology, and the electronic bills to be identified whose first keywords are consistent with the name of the disabled person are recorded as electronic bills to be verified, and k electronic bills to be verified are obtained; the first keyword refers to the name of the payee in the electronic bill to be identified, which is used as the basis for comparing the payee of the electronic bill with the name of the disabled person corresponding to the actual user end;
[0088] Identify the second keywords in the k electronic receipts to be verified one by one, and record the electronic receipts to be verified whose second keywords are consistent with the pre-stored key names as target electronic receipts, and obtain m target electronic receipts; the pre-stored key names refer to the names of disabled people pre-stored in the database and serve as comparison objects with the second keywords;
[0089] It should be noted that the target electronic bills obtained can only be verified from the authenticity and form of the electronic bills, and cannot indicate the specific project content and amount and other detailed information in the electronic bills, so that the target electronic bills can be used to preliminarily screen the electronic bills involved in the subsidy calculation, which can not only reduce the calculation amount of electronic bills, but also avoid the problem of reduced subsidy calculation accuracy caused by counterfeit and formally defective electronic bills;
[0090] A feature extraction module marks the information area in the target electronic invoice, identifies the project information in the information area, and extracts project features from the project information, the project features including the project name and the project amount;
[0091] The information area refers to the area in the target electronic bill that can provide targeted text and numerical values for subsidy calculation. By determining the information area, the recognition range of data information in the target electronic bill can be narrowed, thereby improving the collection rate of subsequent data information. The project information is information that can comprehensively represent the information recorded in the information area, and is used to comprehensively and accurately represent the data in the target electronic bill;
[0092] Methods for identifying project information include:
[0093] Using computer vision technology, four horizontal dividing lines and two vertical dividing lines in the m target electronic bills are identified one by one;
[0094] Draw four horizontal dividing lines and two vertical dividing lines respectively, and record the area enclosed by the horizontal dividing lines and the vertical dividing lines as the project area;
[0095] From top to bottom, the project areas are numbered in ascending order, and the project area numbered 1 is recorded as the information area;
[0096] Record the words and the values corresponding to the words in the information area one by one, and summarize the words and values to obtain n item information;
[0097] Project characteristics refer to information in the target electronic bill that can represent the medical information and educational information in the project information. Since the number of project information in the same target electronic bill may be unique or non-unique, in order to count all the project information, it is necessary to mark the project characteristics contained in the project information one by one;
[0098] Project characteristics include project name and project amount; project name refers to the specific expenditure name of medical and educational expenses corresponding to the project information, and project amount refers to the expenditure amount corresponding to the specific expenditure name of medical and educational expenses in the project information;
[0099] The methods for extracting project names and project amounts include:
[0100] Count the number of characters in n project information one by one to obtain n character values;
[0101] Sequentially construct blank phrases with character positions that are the same as the n character values, and sequentially import the n project information into the character positions of the n blank phrases to obtain n project phrases; a blank phrase refers to a phrase with character positions, which can be used to import the corresponding project information into the blank phrase, thereby obtaining a project phrase that can accurately represent the project information;
[0102] The last character position in the n project phrases is split by the splitting technology, and the project information in the split character position is recorded as the project amount to obtain n project amounts;
[0103] The keywords in the remaining character positions are identified by natural language processing technology, and the character positions where the keywords are located are recorded as valid character positions, thereby obtaining r valid character positions;
[0104] Sequentially splitting r valid character positions from the project phrase, and sequentially combining the project information in the r valid character positions to generate a project name, thereby obtaining n project names;
[0105] It should be noted that once the project name and project amount are obtained, the information required for subsidy calculation can be effectively distinguished between text and numerical values, thereby facilitating the subsequent calculation of the subsidy amount and providing a reasonable and accurate basis;
[0106] The audit identification module compares the project name with the standard name for audit, generates an audit status value, and identifies the target name and target amount based on the audit status value;
[0107] The audit status value refers to the audit status after the project name is compared with the standard name stored in the database. It is used to indicate the comparative audit result of the project name and serves as the basis for the subsequent identification of the target name and target amount.
[0108] The audit status value includes a pass status and a reject status; the pass status is used to indicate that the project name is consistent with the standard name stored in the database, and the reject status is used to indicate that the project name is inconsistent with the standard name stored in the database;
[0109] The methods for generating the pass status and the reject status include:
[0110] Compare and review the n project names with the standard names stored in the database in turn for consistency; the standard names refer to the names of medical projects and educational projects that meet the subsidy calculation requirements and are pre-stored in the database, and can be used as the comparison objects for subsequent project names;
[0111] When the project name is consistent with the standard name, it means that the database has a standard name that is consistent with the project name, and the project name meets the subsidy calculation requirements and generates a pass status;
[0112] When the project name is inconsistent with the standard name, it means that there is no standard name consistent with the project name stored in the database, and the project name does not meet the subsidy calculation requirements, and a rejection status is generated;
[0113] The target name refers to the project name that is consistent with the standard name that meets the subsidy requirements stored in the database and can participate in the subsequent subsidy calculation. When the target name is obtained, it means that the medical project and education project corresponding to the target name meet the requirements of the subsequent subsidy calculation. At this time, the project amount corresponding to the target name is marked as the target amount, so that the target amount can be used as direct data for subsequent subsidy calculation;
[0114] Methods for identifying target names and target amounts include:
[0115] Query the review status values of n project names in sequence;
[0116] When the audit status value is the passed status, the project name corresponding to the passed status is recorded as the target name, and s target names are obtained;
[0117] Mark the project amounts corresponding to the s target names one by one, record them as target amounts, and obtain s target amounts;
[0118] It should be noted that each target name is a unique medical project or education project, and the medical project or education project corresponding to each target name is unique without duplication, and the target amount is a single charge amount for a single medical project or education project. Since the target name may be used multiple times, the target amount needs to multiply the number of times the medical project or education project corresponding to the target name is used by the unit charge amount, so that both the target name and the target amount can be directly calculated;
[0119] The subsidy determination module calculates the total subsidy amount after summing up all target amounts and determines whether the total subsidy amount exceeds the standard subsidy range;
[0120] The total amount of subsidy is used to represent the numerical value of the cumulative value of all target amounts in the user end, that is, to summarize all expenditure amounts on the user end that meet the subsidy calculation requirements and serve as the final determination amount for subsidy calculation;
[0121] The total amount of the grant is calculated based on:
[0122] After the s target amounts are accumulated in sequence and the preset subsidy coefficient is assigned, the total subsidy amount is obtained;
[0123] The total amount of subsidy is expressed as: ;
[0124] In the formula, BZ ze is the total amount of subsidy, MB is the preset subsidy coefficient. jea The ath target amount, the preset subsidy coefficient is greater than 0, and the preset subsidy coefficient is used to optimize the size of the total subsidy;
[0125] After the total amount of subsidy is calculated, the size of the total amount of subsidy can be compared, and whether the total amount of subsidy exceeds the standard subsidy amount can be determined based on the size of the total amount of subsidy, so that the excess state of the total amount of subsidy can be identified, and whether it exceeds the standard subsidy range of the subsidy end can be distinguished based on the excess state of the total amount of subsidy. When it exceeds the standard subsidy range of the subsidy end, the target amount needs to be further processed, and vice versa;
[0126] The methods for determining whether the subsidy exceeds the standard subsidy range include:
[0127] The total amount of subsidy is BZ ze The standard subsidy amount BZ is set at bz Comparison; The preset standard subsidy amount is used to express the maximum value of the subsidy amount that does not exceed the standard subsidy range, which can distinguish the size of the subsidy amount; the preset standard subsidy amount is usually obtained by collecting a large number of historical maximum values of the subsidy amount that does not exceed the standard subsidy range and calculating the average value;
[0128] When BZ ze Greater than BZ bz When , it means that the total subsidy amount of the user end is greater than the preset standard subsidy amount. At this time, the value of the total subsidy amount is large, which means it exceeds the standard subsidy range;
[0129] When BZ ze Less than or equal to BZ bz When , it means that the total subsidy amount of the user end is less than or equal to the preset standard subsidy amount. At this time, the value of the total subsidy amount is small, and it is determined that it does not exceed the standard subsidy range;
[0130] It should be noted that when the subsidy exceeds the standard subsidy range, it is necessary to further identify the target amount corresponding to the total subsidy amount, so as to reduce the total subsidy amount so that the total subsidy amount can be within the standard subsidy range to achieve the subsidy payment of the total subsidy amount. When it does not exceed the standard subsidy range, the total subsidy amount can be directly paid to the user end;
[0131] The abnormal review module marks abnormal amounts from the target amount, conducts abnormal review on the abnormal amounts, and formulates abnormal review instructions;
[0132] Abnormal amount means that when the total amount of subsidy exceeds the standard subsidy range, the corresponding target amount within the total amount of subsidy is greater than the corresponding target amount of the safety amount. At this time, the abnormal amount will cause the total amount of subsidy to be too large and greater than the preset standard subsidy amount. Therefore, in order to further verify the total amount of subsidy that exceeds the standard subsidy range, it is necessary to review the abnormal amount, so as to provide a basis for judging whether the total amount of subsidy has been fully issued;
[0133] Methods for marking unusual amounts include:
[0134] Set s target amount MB jes Sequentially with the corresponding s target security amounts MB aqs Comparison; the target safety amount refers to the numerical representation of the maximum value of the target amount corresponding to the target name that is not marked as an abnormal amount stored in the database, which can ensure that the target amount can be distinguished in terms of size; the target safety amount is obtained by collecting a large number of historical maximum values of target amounts that are not marked as abnormal amounts and calculating their average value;
[0135] When MB jes Larger than MB aqs When , it means that the sth target amount is greater than the sth target safe amount. At this time, the sth target amount is marked as an abnormal amount, and x abnormal amounts are obtained;
[0136] When MB jes Less than or equal to MB aqs , it means that the sth target amount is less than or equal to the sth target safety amount, and the sth target amount is not marked as an abnormal amount;
[0137] When the abnormal amount is obtained, it is necessary to conduct an abnormal review on the target name and target amount corresponding to the abnormal amount, further determine whether the target name and target amount corresponding to the abnormal amount meet the requirements for direct subsidy issuance, and formulate an abnormal review instruction based on the results of the abnormal review;
[0138] Exception review instructions include review pass instructions and review rejection instructions; review pass instructions refer to abnormal amounts that have passed the abnormal review, and the target amount corresponding to the abnormal amount that has passed the abnormal review will be directly issued; review rejection instructions refer to abnormal amounts that have not passed the abnormal review, and the target amount corresponding to the abnormal amount that has not passed the abnormal review will be reduced before issuance;
[0139] The methods for formulating the audit approval instructions and the audit rejection instructions include:
[0140] After subtracting the x abnormal amounts from the corresponding x target safety amounts, the amounts are compared with the corresponding x abnormal amounts to obtain x abnormal excess ratios;
[0141] The expression for the amount difference is: ;
[0142] In the formula, YC blx is the xth abnormal excess ratio, YC jex is the xth abnormal amount, MB aqx The Xth target security amount;
[0143] Set the x abnormal limit ratio YC blx Sequentially compare with the preset over-limit ratio threshold YC yz Comparison; The preset over-limit ratio threshold is used to represent the maximum value of the abnormal over-limit ratio for generating the audit pass instruction, so as to accurately distinguish the audit pass instruction and the audit rejection instruction, so as to realize the limitation of the maximum value of the abnormal over-limit ratio; The preset over-limit ratio threshold is obtained by collecting a large number of maximum values of the abnormal over-limit ratio when generating the audit pass instruction in history, and then calculating the average value;
[0144] When YC blx Greater than or equal to YC yz When , it means that the abnormal over-limit ratio is greater than the preset over-limit ratio threshold. At this time, the x-th abnormal over-limit ratio reaches the numerical range of the audit rejection instruction, and the audit rejection instruction is formulated;
[0145] When YC blx Smaller than YC yz When , it means that the abnormal over-limit ratio is less than the preset over-limit ratio threshold. At this time, the x-th abnormal over-limit ratio does not reach the numerical range of the audit rejection instruction, and the audit pass instruction is formulated;
[0146] The instruction execution module reduces or archives the abnormal amount according to the abnormal review instruction and generates the total amount of subsidy after review;
[0147] When the review pass instruction and the review reject instruction are generated, the abnormal amount needs to be processed according to the review pass instruction and the review reject instruction, so that the abnormal amount can meet the requirements for issuing subsidies to the user end after the response processing;
[0148] The methods used to generate the total amount of approved grants include:
[0149] Mark the abnormal amounts that generate the review rejection instructions one by one to obtain z abnormal amounts;
[0150] Continuously reduce the size of the z abnormal amounts until the abnormal excess ratio corresponding to the z abnormal amounts is less than the preset excess ratio threshold, and then stop reducing the size of the abnormal amounts;
[0151] Mark the d abnormal amounts that generated the review pass instructions one by one, and archive the d abnormal amounts;
[0152] Add up the reduced z abnormal amounts and the archived d abnormal amounts one by one to obtain the total subsidy amount after review.
[0153] In this embodiment, the original electronic receipt of the user end is obtained, and based on the screening criteria, the target electronic receipt is screened out from the original electronic receipt, the information area in the target electronic receipt is marked, the project information is identified from the information area, and the project features are extracted from the project information. The project features include the project name and the project amount. The project name is compared with the standard name for review, and an audit status value is generated. Based on the audit status value, the target name and the target amount are identified. After all the target amounts are aggregated and accumulated, the total subsidy amount is calculated, and it is determined whether the total subsidy amount exceeds the standard subsidy range. The abnormal amount is marked from the target amount, an abnormal audit is performed on the abnormal amount, and an abnormal audit instruction is formulated. According to the abnormal audit instruction, the abnormal amount is The amount is reduced or archived to generate the audited total subsidy amount; compared with the existing technology, it can preliminarily screen the electronic invoices in terms of form and authenticity, eliminate unusable useless electronic invoices, and narrow the extraction and identification scope of project names and project amounts, so as to quickly and accurately obtain the real data for the calculation of subsidies required for the disabled, and through independent calculation and analysis of the over-limit status and over-limit ratio of the total subsidy, the real value of the amount of subsidy required to be provided to the disabled can be truly judged, so that the disabled can receive a reasonable and accurate subsidy amount, avoiding the phenomenon of over-subsidy or under-subsidy, and at the same time also improving the efficiency and accuracy of the calculation of subsidies for the disabled, greatly reducing the probability of errors in subsidy calculation.
[0154] Example 2: Please refer to Figure 2As shown, the part not described in detail in this embodiment is described in the description of embodiment 1, which provides a method for calculating disability subsidies based on electronic receipts, which is applied to a subsidy calculation server and is implemented based on a disability subsidy calculation system based on electronic receipts, including:
[0155] S1: obtaining the original electronic bill from the user, and filtering out the target electronic bill from the original electronic bill based on the filtering criteria;
[0156] S2: Mark the information area in the target electronic invoice, identify the project information in the information area, and extract project features from the project information, where the project features include project name and project amount;
[0157] S3: Compare and review the project name with the standard name, generate an audit status value, and identify the target name and target amount based on the audit status value;
[0158] S4: After summing up all the target amounts, calculate the total subsidy amount and determine whether the total subsidy amount exceeds the standard subsidy range; if it exceeds the standard subsidy range, execute S5-S6; if it does not exceed the standard subsidy range, end;
[0159] S5: Mark abnormal amounts from the target amount, conduct abnormal audit on the abnormal amounts, and formulate abnormal audit instructions;
[0160] S6: According to the abnormal review instructions, the abnormal amount is reduced or archived, and the total amount of subsidies after review is generated.
[0161] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A disability subsidy calculation system based on electronic receipts, applied to a subsidy calculation server, characterized in that: include: The bill screening module obtains the original electronic bill from the user end and screens out the target electronic bill from the original electronic bill based on the screening criteria; A feature extraction module marks the information area in the target electronic invoice, identifies the project information in the information area, and extracts project features from the project information, the project features including the project name and the project amount; The audit identification module compares the project name with the standard name for audit, generates an audit status value, and identifies the target name and target amount based on the audit status value; The subsidy determination module calculates the total subsidy amount after summing up all target amounts and determines whether the total subsidy amount exceeds the standard subsidy range; The abnormal review module marks abnormal amounts from the target amount, conducts abnormal review on the abnormal amounts, and formulates abnormal review instructions; Methods for marking unusual amounts include: Will Target amount Sequentially and correspondingly Target safety amount Compare; when Greater than At that time, The target amount is marked as abnormal amount, and the abnormal amount; when Less than or equal to , No. The target amount is not marked as an abnormal amount; Abnormal audit instructions include audit pass instructions and audit reject instructions; The methods for formulating the audit approval instructions and the audit rejection instructions include: Will The abnormal amount and the corresponding After subtracting the target security amount, The abnormal amount is compared to obtain The abnormal excess ratio; The expression for the amount difference is: ; In the formula, For the The abnormal excess ratio, For the An abnormal amount, For the Target security amount; Will Abnormal over-limit ratio The preset over-limit ratio threshold Compare; when Greater than or equal to When the audit is rejected, formulate the audit rejection instructions; when Less than When reviewing and approving the instructions; The instruction execution module reduces or archives the abnormal amount according to the abnormal review instruction and generates the total amount of subsidy after review; The methods used to generate the total amount of approved grants include: Mark the abnormal amounts that generate the review rejection instructions one by one to obtain z abnormal amounts; Continuously reduce the size of the z abnormal amounts until the abnormal excess ratio corresponding to the z abnormal amounts is less than the preset excess ratio threshold, and then stop reducing the size of the abnormal amounts; Mark the d abnormal amounts that generated the review pass instructions one by one, and archive the d abnormal amounts; Add up the reduced z abnormal amounts and the archived d abnormal amounts one by one to obtain the total subsidy amount after review.
2. A disability subsidy calculation system based on electronic receipts according to claim 1, characterized in that: The screening criteria are: eliminating original electronic receipts whose comparison results of the first keyword and the second keyword are inconsistent; The methods for screening target electronic invoices include: Scan the QR codes in i original electronic receipts one by one to obtain i scanned invoice numbers and invoicing dates; Compare the i scanned invoice numbers and invoice dates with the i original electronic invoice numbers and invoice dates; The original electronic invoices with the same invoice number and invoice date are recorded as the electronic invoices to be identified, and p electronic invoices to be identified are obtained; The first keywords in the p electronic receipts to be identified are identified one by one by using natural language processing technology, and the electronic receipts to be identified whose first keywords are consistent with the name of the disabled person are recorded as electronic receipts to be verified, thereby obtaining k electronic receipts to be verified; The second keywords in the k electronic bills to be verified are identified one by one, and the electronic bills to be verified whose second keywords are consistent with the pre-stored key names are recorded as target electronic bills, thereby obtaining m target electronic bills.
3. A disability subsidy calculation system based on electronic receipts according to claim 2, characterized in that: The project information identification method includes: Using computer vision technology, four horizontal dividing lines and two vertical dividing lines in the m target electronic bills are identified one by one; Draw four horizontal dividing lines and two vertical dividing lines respectively, and record the area enclosed by the horizontal dividing lines and the vertical dividing lines as the project area; From top to bottom, the project areas are numbered in ascending order, and the project area numbered 1 is recorded as the information area; The characters and the corresponding values in the information area are recorded one by one, and after the characters and the values are summarized, n items of information are obtained.
4. A disability subsidy calculation system based on electronic receipts according to claim 3, characterized in that: Methods for extracting the project name and project amount include: Count the number of characters in n project information one by one to obtain n character values; Sequentially construct blank phrases with character positions that are the same size as the n character values, and sequentially import the n item information into the character positions of the n blank phrases to obtain n item phrases; The last character position in the n project phrases is split by the splitting technology, and the project information in the split character position is recorded as the project amount to obtain n project amounts; The keywords in the remaining character positions are identified by natural language processing technology, and the character positions where the keywords are located are recorded as valid character positions, thereby obtaining r valid character positions; Separate the r valid character positions from the project phrase in sequence, and combine the project information in the r valid character positions in sequence to generate a project name, thereby obtaining n project names.
5. A disability subsidy calculation system based on electronic receipts according to claim 4, characterized in that: The audit status value includes a pass status and a reject status; The methods for generating the pass status and the reject status include: Compare and review the n project names with the standard names stored in the database in turn for consistency; When the project name is consistent with the standard name, a pass status is generated; When the project name does not match the standard name, a rejection status is generated; Methods for identifying target names and target amounts include: Query the review status values of n project names in sequence; When the audit status value is passed, the project name corresponding to the passed status is recorded as the target name, and the target name; Mark them one by one The project amount corresponding to the target name is recorded as the target amount, and the target amount.
6. A disability subsidy calculation system based on electronic receipts according to claim 5, characterized in that: The calculation method of the total amount of subsidy includes: Will After the target amounts are accumulated in sequence and given the preset subsidy coefficient, the total subsidy amount is obtained; The total amount of subsidy is expressed as: ; In the formula, is the total amount of subsidy, is the preset subsidy coefficient, For the Target amount; The methods for determining whether the subsidy exceeds the standard subsidy range include: The total amount of subsidy Compared with the preset standard subsidy amount Compare; when Greater than When the subsidy is determined to be beyond the scope of the standard subsidy; when Less than or equal to When the subsidy is determined, it does not exceed the standard subsidy scope.
7. A method for calculating disability subsidies based on electronic receipts, implemented based on a system for calculating disability subsidies based on electronic receipts as claimed in any one of claims 1 to 6, characterized in that: include: S1: obtaining the original electronic bill from the user, and filtering out the target electronic bill from the original electronic bill based on the filtering criteria; S2: Mark the information area in the target electronic invoice, identify the project information in the information area, and extract project features from the project information, where the project features include project name and project amount; S3: Compare and review the project name with the standard name, generate an audit status value, and identify the target name and target amount based on the audit status value; S4: After summing up all the target amounts, calculate the total subsidy amount and determine whether the total subsidy amount exceeds the standard subsidy range; S5: Mark abnormal amounts from the target amount, conduct abnormal audit on the abnormal amounts, and formulate abnormal audit instructions; S6: According to the abnormal review instructions, the abnormal amount is reduced or archived, and the total amount of subsidies after review is generated.
