A digital human AI accounting system and a method for digital accounting
Through the data recognition and automatic accounting module of the digital human AI accounting system, combined with feature matrix technology, the problem of low efficiency of traditional accounting processing is solved, the automation and encryption of accounting data are realized, and the processing efficiency and security are improved.
Patent Information
- Application Number
- CN202410387410.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-04-01
AI Technical Summary
Traditional accounting processing methods rely on manual entry and calculation, which are inefficient and error-prone, and difficult to achieve automation and intelligence.
A digital human AI accounting system is designed, including a data recognition module, an automatic accounting module and a security encryption module. By automatically identifying digital characters and their contextual information in text data, a feature matrix is constructed for classification, realizing automated processing and processing of accounting data. encryption.
It significantly improves the efficiency and accuracy of accounting data processing, reduces human errors, increases data processing speed, ensures data security, and reduces the workload of accounting personnel.
Smart Images

Figure CN118485068B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a digital human AI accounting system and a method for accounting digitization. Background Art
[0002] With the rapid development of artificial intelligence technology, more and more industries are trying to combine AI technology with traditional business to improve efficiency and optimize user experience. As a core part of corporate operations, the accounting field is also eager to introduce AI technology to solve long-standing efficiency and accuracy problems. Although there are some AI accounting software on the market, they still have shortcomings in processing complex financial data, providing instant services, and integrating with other corporate systems.
[0003] Traditional accounting processing methods rely on manual entry and calculation, which are inefficient, prone to errors, and difficult to achieve automation and intelligence. Therefore, how to improve the efficiency and accuracy of accounting processing and achieve intelligent and automated accounting processing is an urgent problem to be solved in the current accounting processing field. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a digital human AI accounting system and a method for accounting digitization to solve the technical problem that traditional accounting processing methods rely on manual entry and calculation and are inefficient.
[0005] A first aspect of an embodiment of the present invention provides a system for digital accounting, the system comprising a data identification module, an automatic accounting module and a security encryption module;
[0006] The data recognition module is used to obtain numeric characters in the text data to be recognized;
[0007] The data recognition module is used to obtain a preset number of characters to be recognized located before and after the numeric character respectively;
[0008] The data recognition module is used to construct a first feature matrix according to the key words if there are key words in the characters to be recognized;
[0009] The data recognition module is used to construct a second feature matrix according to the characters to be recognized if there are no key words in the characters to be recognized;
[0010] The data recognition module is used to input the first feature matrix or the second feature matrix into the recognition model to obtain the classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0011] The data identification module is used to treat the numeric characters and the accounting data types corresponding to the numeric characters as accounting data;
[0012] The automatic accounting module is used to match different types of accounting data with different preset accounting formulas, calculate the accounting data according to the preset accounting formulas, and obtain the accounting results;
[0013] The security encryption module is used to encrypt accounting data and calculation results through multiple encryption technologies.
[0014] A second aspect of an embodiment of the present invention provides a method for accounting digitization, the method for accounting digitization comprising:
[0015] Get the numeric characters in the text data to be recognized;
[0016] Respectively obtain a preset number of characters to be recognized that are located before and after the numeric character;
[0017] If there are key words in the characters to be recognized, construct a first feature matrix according to the key words;
[0018] If there is no key word in the characters to be recognized, constructing a second feature matrix according to the characters to be recognized;
[0019] Inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0020] The numeric characters and the accounting data types corresponding to the numeric characters are used as accounting data.
[0021] Furthermore, if there are key words in the characters to be recognized, the step of constructing a first feature matrix according to the key words includes:
[0022] The characters to be recognized are subjected to word segmentation processing and preprocessing to obtain a plurality of first target words; the preprocessing includes deleting stop words and punctuation marks;
[0023] Obtaining a preset key word library, and matching the key words identical to the first target words in the key word library;
[0024] The encoding, word spacing, word relevance and word ranking of each first target word are obtained, and the first feature matrix is constructed based on the encoding, word spacing, word relevance and word ranking of each first target word.
[0025] Furthermore, the step of obtaining the encoding, word spacing, word relevance and word order of each first target word includes:
[0026] encoding the first target word by an encoder to obtain a code of the first target word;
[0027] Calculating the number of words between the first target word and the key word to obtain the word spacing;
[0028] Calculate the context embedded vectors corresponding to the first target word and the key word respectively;
[0029] The word relevance is calculated based on the word ranking and context embedded vector corresponding to each of the first target word and the key word.
[0030] Furthermore, the step of calculating the word relevance according to the word ranking and context embedded vector corresponding to each of the first target word and the key word includes:
[0031] Substitute the word ranking and context embedded vector corresponding to the first target word and the key word into the following formula to obtain the word relevance;
[0032]
[0033] in, Indicates the word relevance, Represents the context embedded vector corresponding to the key words, represents the context embedded vector corresponding to the first target word, The word order indicating the key words, represents the word ranking of the first target word, represents the adjustment factor, represents the attenuation coefficient, and n represents the number of target words.
[0034] Furthermore, if there is no key word in the characters to be recognized, the step of constructing a second feature matrix according to the characters to be recognized includes:
[0035] The characters to be recognized are subjected to word segmentation processing and preprocessing to obtain a plurality of second target words; the preprocessing includes deleting stop words and punctuation marks;
[0036] encoding the second target word by an encoder to obtain a code of the second target word;
[0037] Calculate the context embedded vectors corresponding to the second target word and the key word respectively;
[0038] The second feature matrix is constructed based on the encoding, context embedded vector and word ranking of each second target word.
[0039] Furthermore, the step of inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model includes:
[0040] The first feature matrix or the second feature matrix is processed by a first feature extraction layer to obtain first feature data;
[0041] If the amount of the first feature data is less than a threshold, the first feature matrix is input into a second feature extraction layer to obtain second feature data;
[0042] The first feature data and the second feature data are input into a third feature extraction layer to obtain third feature data;
[0043] The third feature data is processed by a fully connected layer and a classifier to obtain the classification result;
[0044] If the data amount of the first feature data is not less than the threshold, the first feature data and the second feature data are input into the third feature extraction layer to obtain fourth feature data;
[0045] The fourth feature data is processed by a fully connected layer and a classifier to obtain the classification result.
[0046] A third aspect of an embodiment of the present invention provides a device for digitalizing accounting, including:
[0047] A first acquisition unit, used for acquiring numeric characters in the text data to be recognized;
[0048] A second acquisition unit is used to respectively acquire a preset number of characters to be recognized located before and after the numeric character;
[0049] A first judgment unit, configured to construct a first feature matrix according to the key words if there are key words in the characters to be recognized;
[0050] A second judgment unit, configured to construct a second feature matrix according to the characters to be recognized if there are no key words in the characters to be recognized;
[0051] A recognition unit, used for inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0052] A confirmation unit is used to use the numeric characters and the accounting data type corresponding to the numeric characters as accounting data.
[0053] A third aspect of an embodiment of the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.
[0054] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0055] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: by automatically identifying the numeric characters in the text data and determining the accounting data type of the numbers according to the context before and after the numeric characters (including key words), the technical solution significantly improves the efficiency and accuracy of accounting data processing. Compared with the traditional manual entry and calculation methods, the automated data processing reduces human errors and improves the data processing speed. By using the constructed feature matrix and recognition model, the solution can intelligently classify the numeric characters into the corresponding accounting data types. This classification is not only based on the numbers themselves, but also combines the contextual information around the numbers, such as the presence or absence of key words, so that the classification results are more accurate and reliable. By analyzing the characters to be recognized before and after the numeric characters and constructing different feature matrices according to whether these characters contain key words, the solution effectively utilizes the contextual information of the data. This enhancement of context sensitivity helps to understand the true meaning of numbers in accounting records and further improves the quality and accuracy of data processing. The solution can automatically integrate the identified and classified numeric characters and their accounting data types into accounting data. This automated accounting data generation method greatly reduces the workload of accountants and improves the efficiency and reliability of accounting data recording. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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 creative work.
[0057] Figure 1 A schematic flow chart of a method for accounting digitization provided by the present invention is shown;
[0058] Figure 2 A schematic diagram of an accounting digitization device provided by an embodiment of the present invention is shown;
[0059] Figure 3A schematic diagram of a terminal device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0060] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0061] The embodiments of the present invention provide a digital human AI accounting system and a method for accounting digitization to solve the technical problem that traditional accounting processing methods rely on manual entry and calculation and are inefficient.
[0062] First, the present invention provides a digital human AI accounting system. The accounting digitization system includes a data recognition module, an automatic accounting module and a security encryption module; the data recognition module is used to obtain digital characters in the text data to be recognized; the data recognition module is used to respectively obtain a preset number of characters to be recognized located before and after the digital characters; the data recognition module is used to construct a first feature matrix according to the key words if there are key words in the characters to be recognized; the data recognition module is used to construct a second feature matrix according to the characters to be recognized if there are no key words in the characters to be recognized; the data recognition module is used to input the first feature matrix or the second feature matrix into the recognition model to obtain the classification result output by the recognition model; the classification result is used to represent the accounting data type corresponding to the data character; the data recognition module is used to use the digital characters and the accounting data type corresponding to the digital characters as accounting data; the automatic accounting module is used to match different types of accounting data with different preset accounting formulas, calculate the accounting data according to the preset accounting formula, and obtain the accounting result; the security encryption module is used to encrypt the accounting data and the accounting result through multiple encryption technology.
[0063] In this embodiment, the digital characters and the character information before and after them in the text to be processed are automatically obtained and identified by the data recognition module. The feature matrix constructed by the key words or the second feature matrix constructed when there are no key words is further accurately determined by the recognition model to determine the specific type of accounting data, such as income, expenditure, etc. This process greatly reduces the need for manual entry and improves the speed and accuracy of data processing. The automatic accounting module automatically completes the accounting work by matching the identified and classified accounting data with different preset accounting formulas. This not only ensures the accuracy of the accounting results, but also significantly improves the efficiency of accounting work and reduces human errors and time consumption in traditional accounting work. The security encryption module uses multiple encryption technologies to encrypt the processed accounting data and accounting results to ensure the security and confidentiality of the data during transmission and storage. This is crucial for complying with data protection regulations and preventing financial information leakage. Overall, the technical solution brings a new digital solution to the accounting industry through automated and intelligent data processing and advanced security protection measures. It not only improves the efficiency and accuracy of accounting data processing, but also strengthens the security of data, providing enterprises with a new option for efficient, secure and easy-to-manage accounting processing.
[0064] Secondly, the present invention provides a method for digital accounting. Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of a method for digitalizing accounting provided by the present invention. Figure 1 As shown, the method for accounting digitization may include the following steps:
[0065] Step 101: Obtain numeric characters in the text data to be recognized;
[0066] The text to be recognized refers to the text information in the financial documents, including but not limited to the accounting data in the invoice or contract. Extract the text to be recognized in the financial documents and extract the numeric characters in the text to be recognized.
[0067] Step 102: respectively obtaining a preset number of characters to be recognized that are located before and after the numeric character;
[0068] Since there are many types of accounting data, including but not limited to costs, taxes, wages, rents, etc., it is necessary to identify the types of accounting data represented by the numeric characters, so a preset number of characters to be identified are obtained before and after the numeric characters, and then the types of accounting data represented by the numeric characters are determined according to the characters to be identified.
[0069] The preset number can be set based on the recognition accuracy. The higher the preset number, the higher the recognition accuracy, but the resulting calculation amount is also greater. Therefore, an appropriate preset number can be set while balancing the recognition accuracy and the calculation amount. There is no limitation here.
[0070] Step 103: If there are key words in the characters to be recognized, construct a first feature matrix according to the key words;
[0071] Key words refer to words that can represent financial types, including but not limited to cost, sales, income, profit, tax, salary and other words that can represent financial types.
[0072] Since there is a certain probability of confusion in the preset number of characters to be identified before and after the digital character in the actual environment, it is impossible to directly determine the type of accounting data based on the key words. Therefore, it is necessary to construct a first feature matrix based on the key words to determine the type of accounting data based on the first feature matrix. The specific logic of constructing the first feature matrix is as follows:
[0073] Specifically, step 103 specifically includes steps 1031 to 1033:
[0074] Step 1031: performing word segmentation and preprocessing on the characters to be recognized to obtain a plurality of first target words; the preprocessing includes deleting stop words and punctuation marks;
[0075] By performing word segmentation and preprocessing on the characters to be recognized, including deleting stop words and punctuation marks, the interference of irrelevant information is effectively reduced, making subsequent feature extraction more accurate.
[0076] Step 1032: obtaining a preset key word library, and matching the key words in the key word library that are the same as the first target words;
[0077] All key words are pre-stored in the key word library, and whether there is a key word in the plurality of first target words can be determined based on the key word library.
[0078] Step 1033: Obtain the encoding, word spacing, word relevance and word ranking of each first target word, and construct the first feature matrix based on the encoding, word spacing, word relevance and word ranking of each first target word.
[0079] The encoding, word spacing, word relevance and word order of each first target word are arranged according to a preset arrangement logic to obtain a first feature matrix.
[0080] By obtaining multi-dimensional information such as the encoding, word spacing, word relevance, and word sorting of each target word, the first feature matrix constructed is rich in semantic and structural information. This multi-dimensional feature combination method significantly improves the ability of the feature matrix to express the content to be recognized, which helps to improve the learning efficiency and recognition performance of the subsequent model. The entire technical solution is reasonably designed from word segmentation to feature matrix construction, and each step is prepared for the efficient execution of the next step. The complexity of the text is simplified, which facilitates the accurate matching of key words and the construction of the feature matrix. By comprehensively utilizing information such as word encoding, word spacing, word relevance, and word sorting, the solution is not only suitable for feature extraction of simple texts, but also can effectively process complex text content. This comprehensive feature extraction method makes the technical solution more adaptable and robust when processing diversified text data. The technical solution significantly improves the recognition accuracy through text preprocessing and multi-dimensional feature extraction.
[0081] Specifically, step 1033 specifically includes steps A1 to A4:
[0082] Step A1: encoding the first target word through an encoder to obtain the code of the first target word;
[0083] Step A2: Calculate the number of words between the first target word and the key word to obtain the word spacing;
[0084] Word spacing is a measure of the distance between two words in a text, which can be intuitively calculated by the difference in their positions in the text. This information can be used to understand the strength of the relationship between words. Generally, the closer the distance, the stronger the relationship.
[0085] Step A3: Calculate the context embedded vectors corresponding to the first target word and the key word respectively;
[0086] Compared with traditional word embeddings (such as Word2Vec or GloVe), contextual embedding can capture the semantics of words more accurately, because the same word may have different meanings in different contexts. Each word or subword is converted into an initial word embedding vector, which is usually obtained through learning and can capture certain semantic information. Among them, word embedding is a technology that converts words into real number vectors. It can capture the semantic characteristics of words, so that words with similar semantics are also closer in the vector space. The calculation of word embedding usually involves a large amount of text data, and the vector representation of each word is obtained by learning this data.
[0087] The word embedding vectors are processed through one or more Transformer encoding layers. Transformer uses self-attention to understand the relationship between each word and other words in the sentence, thereby generating embedded vectors that reflect the contextual information of the word. Each layer of Transformer updates these vectors to better reflect the contextual information of the word.
[0088] Step A4: Calculate the word relevance based on the word ranking and context embedded vector corresponding to each of the first target word and the key word.
[0089] Specifically, step A4 specifically includes: substituting the word ranking and context embedded vector corresponding to each of the first target word and the key word into the following formula to obtain the word relevance;
[0090]
[0091] in, Indicates the word relevance, Represents the context embedded vector corresponding to the key words, represents the context embedded vector corresponding to the first target word, The word order indicating the key words, represents the word ranking of the first target word, represents the adjustment factor, represents the attenuation coefficient, and n represents the number of target words.
[0092] In the above formula, and Used to calculate the structural relationship between words, and It is used to calculate the contextual relationship, and then obtain the word relevance based on the structural relationship and contextual relationship between words. Word relevance is used to characterize the degree of relevance between two words.
[0093] In this embodiment, by encoding the first target word, natural language can be converted into a form that is easier for computers to process, which not only improves the processing speed, but also reduces misunderstandings caused by word ambiguity, thereby improving the accuracy of text analysis. By calculating the word spacing between the first target word and the key word, the spatial relationship between the words can be quantified, which is of great significance for understanding the text structure and logical relationship. This quantification method makes the comparison between different texts more intuitive and effective. Calculating the context embedded vectors corresponding to the first target word and the key word helps to capture the meaning of the word in a specific context, which is more in-depth than the simple word meaning analysis. The use of context embedded vectors can significantly improve the model's ability to understand the text, especially when dealing with texts with complex meanings or strong context dependence. According to the order of the first target word and the key word and the calculation of the word relevance of the context embedded vector, the correlation between the words can be more accurately revealed. This method not only takes into account the position information of the word, but also combines the context information, so that more detailed and deep word associations can be revealed, which helps to deeply understand the meaning and structure of the text. In general, this technical solution provides a more comprehensive and accurate text analysis method by comprehensively considering word encoding, word spacing, context embedded vectors, and word ordering, which can effectively improve the effects of information extraction and text comprehension.
[0094] Step 104: If there is no key word in the characters to be recognized, construct a second feature matrix according to the characters to be recognized;
[0095] Specifically, step 104 includes steps 1041 to 1044:
[0096] Step 1041: performing word segmentation and preprocessing on the characters to be recognized to obtain a plurality of second target words; the preprocessing includes deleting stop words and punctuation marks;
[0097] Step 1042: encoding the second target word by an encoder to obtain a code of the second target word;
[0098] Step 1043: Calculate the context embedded vectors corresponding to the second target word and the key word respectively;
[0099] The processing logic of step 1041 to step 1043 is consistent with that of step A1 to step A3, so they are not repeated here.
[0100] Step 1044: construct the second feature matrix based on the encoding, context embedded vector and word ranking of each second target word.
[0101] The encoding, context embedded vector and word order of each second target word are arranged according to a preset arrangement logic to obtain a second feature matrix.
[0102] Step 105: inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0103] Step 106: Use the numeric characters and the accounting data types corresponding to the numeric characters as accounting data.
[0104] In this embodiment, by automatically identifying the numeric characters in the text data and determining the accounting data type of the numbers based on the context before and after them (including key words), the technical solution significantly improves the efficiency and accuracy of accounting data processing. Compared with the traditional manual entry and calculation methods, automated data processing reduces human errors and improves the data processing speed. Using the constructed feature matrix and recognition model, the solution can intelligently classify the numeric characters into corresponding accounting data types. This classification is not only based on the numbers themselves, but also combines the contextual information around the numbers, such as the presence or absence of key words, making the classification results more accurate and reliable. By analyzing the characters to be recognized before and after the numeric characters and constructing different feature matrices based on whether these characters contain key words, the solution effectively utilizes the contextual information of the data. This enhanced context sensitivity helps to understand the true meaning of numbers in accounting records and further improves the quality and accuracy of data processing. The solution can automatically integrate the identified and classified numeric characters and their accounting data types into accounting data. This automated accounting data generation method greatly reduces the workload of accountants and improves the efficiency and reliability of accounting data recording.
[0105] like Figure 2 The present invention provides a device for digitalizing accounting. Figure 2 , Figure 2 A schematic diagram of an accounting digitization device provided by the present invention is shown, Figure 2 The device for digitalizing accounting includes:
[0106] A first acquisition unit 21 is used to acquire numeric characters in the text data to be recognized;
[0107] A second acquisition unit 22 is used to respectively acquire a preset number of characters to be recognized located before and after the numeric character;
[0108] A first judging unit 23 is configured to construct a first feature matrix according to the key words if there are key words in the characters to be recognized;
[0109] A second judgment unit 24 is used to construct a second feature matrix according to the characters to be recognized if there is no key word in the characters to be recognized;
[0110] The recognition unit 25 is used to input the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0111] The confirmation unit 26 is used to use the numeric character and the accounting data type corresponding to the numeric character as accounting data.
[0112] The present invention provides an accounting digitization device, which automatically identifies digital characters in text data and determines the accounting data type of the number based on the context before and after the digital characters (including key words). The technical solution significantly improves the efficiency and accuracy of accounting data processing. Compared with traditional manual entry and calculation methods, automated data processing reduces human errors and improves data processing speed. Using the constructed feature matrix and recognition model, the solution can intelligently classify digital characters into corresponding accounting data types. This classification is not only based on the number itself, but also combines the contextual information around the number, such as the presence or absence of key words, so that the classification result is more accurate and reliable. By analyzing the characters to be recognized before and after the digital characters and constructing different feature matrices according to whether these characters contain key words, the solution effectively utilizes the context information of the data. This enhancement of context sensitivity helps to understand the true meaning of numbers in accounting records and further improves the quality and accuracy of data processing. The solution can automatically integrate the recognized and classified digital characters and their accounting data types into accounting data. This automated accounting data generation method greatly reduces the workload of accountants and improves the efficiency and reliability of accounting data recording.
[0113] Figure 3 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 3 As shown, a terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a program for accounting digitization. When the processor 30 executes the computer program 32, the steps in each of the above-mentioned embodiments of the method for accounting digitization are implemented, such as Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each unit in the above-mentioned device embodiments are realized, for example, Figure 2 The functions of units 21 to 26 are shown.
[0114] Exemplarily, the computer program 32 may be divided into one or more units, which are stored in the memory 31 and executed by the processor 30 to complete the present invention. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into the following specific functions of each unit:
[0115] A first acquisition unit, used for acquiring numeric characters in the text data to be recognized;
[0116] A second acquisition unit is used to respectively acquire a preset number of characters to be recognized located before and after the numeric character;
[0117] A first judgment unit, configured to construct a first feature matrix according to the key words if there are key words in the characters to be recognized;
[0118] A second judgment unit, configured to construct a second feature matrix according to the characters to be recognized if there are no key words in the characters to be recognized;
[0119] A recognition unit, used for inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the data character;
[0120] A confirmation unit is used to use the numeric characters and the accounting data type corresponding to the numeric characters as accounting data.
[0121] The terminal device includes but is not limited to a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of a terminal device 3 and does not constitute a limitation on the terminal device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0122] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0123] The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used to store the computer program and other programs and data required by the roaming control device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0124] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0125] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0126] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0127] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0128] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0131] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0132] In the embodiments provided by the present invention, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units.
[0134] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0135] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0136] As used in the present specification and the appended claims, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to monitoring, depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is monitored" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is monitored" or "in response to monitoring [described condition or event]", depending on the context.
[0137] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0138] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0139] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A digital human AI accounting system, characterized in that: The digital human AI accounting system includes a data recognition module, an automatic accounting module and a security encryption module; The data recognition module is used to obtain numeric characters in the text data to be recognized; The data recognition module is used to obtain a preset number of characters to be recognized located before and after the numeric character respectively; The data recognition module is used to perform word segmentation and preprocessing on the characters to be recognized to obtain a plurality of first target words; the preprocessing includes deleting stop words and punctuation marks; Obtain a preset key word library, and match the key words that are the same as the first target words in the key word library; obtain the encoding, word spacing, word relevance and word ranking of each first target word, and construct a first feature matrix based on the encoding, word spacing, word relevance and word ranking of each first target word; The data recognition module is used to perform word segmentation and preprocessing on the characters to be recognized to obtain a plurality of second target words; The preprocessing includes deleting stop words and punctuation marks; encoding the second target word by an encoder to obtain the encoding of the second target word; Calculate the context embedded vectors corresponding to the second target words and the key words respectively; construct a second feature matrix based on the encoding, context embedded vector and word order of each second target word; The data recognition module is used to input the first feature matrix or the second feature matrix into the recognition model to obtain the classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the digital character; The data identification module is used to treat the numeric characters and the accounting data types corresponding to the numeric characters as accounting data; The automatic accounting module is used to match different types of accounting data with different preset accounting formulas, calculate the accounting data according to the preset accounting formulas, and obtain the accounting results; The security encryption module is used to encrypt accounting data and calculation results through multiple encryption technologies.
2. A method for accounting digitization, characterized in that: The method of accounting digitization includes: Get the numeric characters in the text data to be recognized; Respectively obtain a preset number of characters to be recognized that are located before and after the numeric character; The characters to be recognized are subjected to word segmentation processing and preprocessing to obtain a plurality of first target words; the preprocessing includes deleting stop words and punctuation marks; Obtaining a preset key word library, and matching the key words identical to the first target words in the key word library; Obtaining the encoding, word spacing, word relevance, and word order of each first target word, and constructing a first feature matrix based on the encoding, word spacing, word relevance, and word order of each first target word; The characters to be recognized are subjected to word segmentation processing and preprocessing to obtain a plurality of second target words; the preprocessing includes deleting stop words and punctuation marks; encoding the second target word by an encoder to obtain a code of the second target word; Calculate the context embedded vectors corresponding to the second target word and the key word respectively; Constructing a second feature matrix based on the encoding, context embedded vector and word ranking of each second target word; Inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the digital character; The numeric characters and the accounting data types corresponding to the numeric characters are used as accounting data.
3. The method for accounting digitization as claimed in claim 2, characterized in that: The step of obtaining the encoding, word spacing, word relevance and word order of each first target word comprises: encoding the first target word by an encoder to obtain a code of the first target word; Calculating the number of words between the first target word and the key word to obtain the word spacing; Calculate the context embedded vectors corresponding to the first target word and the key word respectively; The word relevance is calculated based on the word ranking and context embedded vector corresponding to each of the first target word and the key word.
4. The method for accounting digitization as claimed in claim 3, characterized in that: The step of calculating the word relevance according to the word ranking and context embedded vector corresponding to each of the first target word and the key word comprises: Substitute the word ranking and context embedded vector corresponding to the first target word and the key word into the following formula to obtain the word relevance; in, Indicates the word relevance, Represents the context embedded vector corresponding to the key words, represents the context embedded vector corresponding to the first target word, The word order indicating the key words, represents the word ranking of the first target word, represents the adjustment factor, represents the attenuation coefficient, and n represents the number of target words.
5. A device for digitalizing accounting, characterized in that: The device for digitalizing accounting includes: A first acquisition unit, used for acquiring numeric characters in the text data to be recognized; A second acquisition unit is used to respectively acquire a preset number of characters to be recognized located before and after the numeric character; A first judgment unit is used to perform word segmentation and preprocessing on the characters to be recognized to obtain a plurality of first target words; the preprocessing includes deleting stop words and punctuation marks; obtaining a preset key word library, and matching the key words that are the same as the plurality of first target words in the key word library; obtaining the encoding, word spacing, word relevance and word ranking of each first target word, and constructing a first feature matrix based on the encoding, word spacing, word relevance and word ranking of each first target word; A second judgment unit is used to perform word segmentation and preprocessing on the characters to be recognized to obtain a plurality of second target words; the preprocessing includes deleting stop words and punctuation marks; encoding the second target words through an encoder to obtain the encoding of the second target words; calculating the context embedded vectors corresponding to the second target words and the key words respectively; and constructing a second feature matrix based on the encoding, context embedded vector and word order of each second target word; A recognition unit, used for inputting the first feature matrix or the second feature matrix into a recognition model to obtain a classification result output by the recognition model; the classification result is used to indicate the accounting data type corresponding to the digital character; A confirmation unit is used to use the numeric characters and the accounting data type corresponding to the numeric characters as accounting data.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 2 to 4 are implemented.
Citation Information
Patent Citations
Two-stage semantic word vector generation method
CN111027595A
Spoken language element recognition method and device and alarm condition analysis system
CN112016313A
Medical named entity recognition modeling method based on fusion attention
CN113536799A
Text detection method, device, computer equipment and readable storage medium
CN113569041A
User matching method and device based on user collection information and storage medium
CN116522164A
