Document classification method, device, electronic device and storage medium

Through the fusion of image features and text features, document classification is performed based on the features, which solves the problem of low accuracy of document image classification in financial review and other services, and achieves higher classification accuracy and efficiency.

CN113377958BActive Publication Date: 2024-08-23BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202110768945.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-07
Publication Date
2024-08-23
Estimated Expiration
2041-07-07

AI Technical Summary

Technical Problem

In businesses such as financial auditing, due to the high similarity of document materials, it is difficult to achieve high-accuracy classification of document images with existing technology, resulting in inaccurate classification results.

Method used

The image features and text features in the image to be classified are obtained for fusion, and the result of the feature fusion is combined to classify the document, taking into account image features such as the number of tables, the number of seals, the proportion of handwritten text and printed text, and specified text features, such as title to improve classification accuracy.

Benefits of technology

It significantly improves the accuracy of document classification results, reduces the amount of calculation, saves costs, and improves the document classification effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113377958B
    Figure CN113377958B
Patent Text Reader

Abstract

The present disclosure provides a document classification method, device, electronic device, storage medium and computer program product, and particularly relates to the field of image processing. The specific implementation scheme is: obtaining image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified; performing feature fusion on the image features and the text features to obtain fusion features; and obtaining the document classification result corresponding to the image to be classified based on the fusion features. The scheme of the present disclosure, in order to obtain the document classification result corresponding to the image to be classified, simultaneously considers the image features related to the audit business in the image to be classified, and the text features corresponding to the specified text in the image to be classified. Therefore, the accuracy of the document classification result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, specifically to the field of computer vision and image processing technology, and further to a document classification method, device, electronic device and storage medium. Background Art

[0002] With the vigorous promotion of "Internet + Government Services", more and more residents or enterprises are starting to handle various businesses online. When residents or enterprises handle various businesses online, they often need to convert the documents required for handling the business into images and upload them. Taking the handling of financial audit business as an example, when residents or enterprises handle financial audit business online, they need to take photos of checks, deposit agreements, etc., scan them into images, and upload them to the business handling platform.

[0003] When processing business based on images uploaded by residents or enterprises, it is often necessary to classify the images first. However, for images converted from document materials required for audit business, the accuracy of document classification results is often low because many document materials required for audit business are similar. Summary of the invention

[0004] The present disclosure provides a document classification method, device, electronic device, storage medium and computer program product to improve the accuracy of document classification results.

[0005] According to a first aspect of the present disclosure, a document classification method is provided, the method comprising:

[0006] Acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified;

[0007] Performing feature fusion on the image features and the text features to obtain fused features;

[0008] According to the fusion feature, a document classification result corresponding to the image to be classified is obtained.

[0009] According to a second aspect of the present disclosure, a document classification device is provided, the device comprising:

[0010] An image feature acquisition module, used to acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified;

[0011] A fusion feature acquisition module, used for performing feature fusion on the image feature and the text feature to obtain a fusion feature;

[0012] The classification result obtaining module is used to obtain the document classification result corresponding to the image to be classified according to the fusion feature.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform any method of the present disclosure.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method of the present disclosure.

[0018] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, any method of the present disclosure is implemented.

[0019] The above scheme disclosed in the present invention first fuses the image features related to the audit business in the image to be classified and the text features corresponding to the specified text in the image to be classified, and then obtains the document classification result corresponding to the image to be classified based on the fused features. In order to obtain the document classification result corresponding to the image to be classified, the image features related to the audit business in the image to be classified and the text features corresponding to the specified text in the image to be classified are considered at the same time. Therefore, the accuracy of the document classification result is improved.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 A flowchart of a document classification method provided in an embodiment of the present disclosure;

[0023] Figure 2 A flowchart of a method for obtaining document classification results provided in an embodiment of the present disclosure;

[0024] Figure 3A flowchart of another method for obtaining document classification results provided in an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of a document classification process provided in an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a document classification device provided in an embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0029] The document classification method provided in the embodiments of the present disclosure is as follows: Figure 1 As shown, it is a flowchart of a document classification method provided by an embodiment of the present disclosure. The method includes:

[0030] Step S101: acquiring image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified.

[0031] Step S102: performing feature fusion on image features and text features to obtain fused features.

[0032] Step S103: Obtain the document classification result corresponding to the image to be classified according to the fusion features.

[0033] The document classification method provided in the embodiments of the present disclosure may be executed by a client, which is an electronic device used to run a target application or software, and the target application or software is a target application or software that can implement the document classification method provided in the embodiments of the present disclosure.

[0034] The document classification method provided in the embodiments of the present disclosure may also be executed by a server, which is a computing device that provides data processing and other services for a client that runs a specified application or software. The specified application or software is an application or software that has at least the function of obtaining document classification results.

[0035] The so-called electronic devices include, but are not limited to, mobile phones, computers, etc.

[0036] The so-called server-side implementation is generally a server or a server cluster.

[0037] The so-called applications or software include, but are not limited to, mobile applications, computer applications or software, and web applications or software.

[0038] When obtaining the document classification results corresponding to the images to be classified, since many images to be classified are relatively similar, using only image features for document classification often results in low accuracy of the document classification results for the images to be classified. Using only text features will result in too much document content, making document classification more complicated. Therefore, the document classification effect is often poor.

[0039] The document classification method provided in the embodiment of the present disclosure first fuses the image features related to the audit business in the image to be classified and the text features corresponding to the specified text in the image to be classified, and then obtains the document classification result corresponding to the image to be classified based on the fused features. In order to obtain the document classification result corresponding to the image to be classified, the image features related to the audit business in the image to be classified and the text features corresponding to the specified text in the image to be classified are considered at the same time. Therefore, the accuracy of the document classification result is improved, thereby improving the document classification effect.

[0040] The so-called image to be classified may refer to an image including text used for auditing business. The image to be classified generally includes: an image converted from a document material used for auditing business, and an image used for auditing business, etc.

[0041] The so-called audit business generally refers to the business of reviewing and verifying the materials used to handle related business to ensure the accuracy of the materials. Common audit businesses include financial audit business, etc.

[0042] In order to facilitate clear and concise determination of which image features are image features related to the audit business, so as to provide a reference for obtaining image features related to the audit business in the images to be classified, the image features related to the audit business can be determined in advance before obtaining the image features related to the audit business in the images to be classified.

[0043] In an embodiment of the present disclosure, the image features related to the audit business include at least one of the following image features: a feature used to represent the number of tables in the image to be classified, a feature used to represent the proportion of the image area of ​​the table in the image to be classified, a feature used to represent the proportion of handwritten text in the total text in the image to be classified, and a feature used to represent the proportion of printed text in the total text in the image to be classified.

[0044] The features of the number of tables in the image to be classified can be obtained in the following manner: first, the image to be classified is input into a pre-trained table detection model to obtain the tables in the image to be classified; then, the number of tables in the image to be classified is determined; finally, feature encoding is performed on the number of tables in the image to be classified to obtain features for representing the number of tables in the image to be classified.

[0045] The pre-trained table detection model is obtained by training the table detection model using sample images and corresponding annotated tables.

[0046] The features of the number of seals in the image to be classified can be obtained in the following manner: first, the image to be classified is input into a pre-trained seal detection model to obtain the seals in the image to be classified; then, the number of seals in the image to be classified is determined; finally, feature encoding is performed on the number of seals in the image to be classified to obtain features for representing the number of seals in the image to be classified.

[0047] The pre-trained seal detection model is obtained by training the seal detection model using sample images and corresponding annotated seals.

[0048] The feature for representing the image area ratio of the table in the image to be classified is obtained in the following manner: first, based on the image attributes of the image to be classified, the area of ​​the image to be classified is obtained; second, the areas of the tables in the image to be classified are summed to obtain the sum of the areas of the tables in the image to be classified; third, based on the sum of the areas and the area of ​​the image to be classified, the image area ratio of the table in the image to be classified is determined; finally, feature encoding is performed on the image area ratio of the table in the image to be classified to obtain the feature for representing the image area ratio of the table in the image to be classified.

[0049] The features used to represent the proportion of handwritten text in the entire text in the image to be classified are obtained in the following manner: first, using OCR (Optical Character Recognition) technology, etc., to obtain the text, text coordinates and text content in the image to be classified; then, the proportion of handwritten text in the text in the image to be classified is obtained; finally, feature encoding is performed on the proportion of handwritten text in the text in the image to be classified to obtain features used to represent the proportion of handwritten text in the entire text in the image to be classified.

[0050] The features used to represent the proportion of printed text in the entire text in the image to be classified are obtained in the following manner: first, using OCR technology, etc., to obtain the text, text coordinates and text content in the image to be classified; then, the proportion of the printed text in the text in the image to be classified is obtained; finally, feature encoding is performed on the proportion of the printed text in the text in the image to be classified to obtain the features used to represent the proportion of printed text in the entire text in the image to be classified.

[0051] The so-called text features refer to the features obtained after feature encoding of the specified text in the image to be classified.

[0052] The so-called designated text includes at least one of the title in the image to be classified and the text of the designated number of characters pre-selected according to the order in which the text is arranged. That is, the designated text may be only the title in the image to be classified, or only the text of the designated number of characters pre-selected according to the order in which the text is arranged, or both the title in the image to be classified and the text of the designated number of characters pre-selected according to the order in which the text is arranged.

[0053] The so-called designated number of words may be 250 words, 100 words, etc. The designated number of words is generally predetermined based on a priori values ​​and the overall number of words in the image to be classified.

[0054] Since the title is generally a short sentence that identifies the document or other materials, the title in the image to be classified is used as the designated text, which can often accurately identify the type of document. The text features corresponding to the designated text are used as the basis for obtaining the document classification result, which can greatly improve the accuracy of the document classification result.

[0055] The text with a specified number of words is pre-selected according to the order in which the texts are arranged as the specified text. Selecting the text with a specified number of words can reduce the amount of calculation and save costs.

[0056] In addition, since the text arranged in the front of the document is often used to give a simple and accurate summary of the document content, the text of a specified number of words pre-selected in the order of text arrangement in the image to be classified is used as the specified text, and the specified text can often accurately identify the type of the document. Using the text features corresponding to the specified text as the basis for obtaining the document classification result can greatly improve the accuracy of the document classification result.

[0057] In order to ensure the simplicity of the fusion feature acquisition operation, in the embodiments of the present disclosure, feature fusion is performed on image features and text features.

[0058] In the embodiments of the present disclosure, the so-called feature fusion is to merge the image features and the text features into one feature, such as splicing the image features and the text features into one feature. For example, if the feature vectors corresponding to the image features and the text features are of the same dimension, the feature vectors corresponding to the image features and the text features are added with corresponding elements.

[0059] The specific implementation method of splicing the image features and the text features into one feature is: superimposing the image features and the text features, and using the superimposed features as fusion features.

[0060] In addition, in the embodiments of the present disclosure, other methods other than feature superposition may be used to obtain fusion features, which will not be described in detail here. That is to say, in the embodiments of the present disclosure, other methods other than feature superposition may be used to achieve feature fusion.

[0061] The so-called feature superposition refers to the superposition of image features and text features into one feature. Specifically, if the image feature is regarded as X and the text feature is regarded as Y, then the feature of X and Y is superimposed, and the feature obtained after feature superposition is (X, Y). The superposition of features is reflected in the feature vector dimension as follows: for example, the feature vector corresponding to X is expressed as (X1, X2, X3), and the feature vector corresponding to Y is expressed as (Y1, Y2). Then the feature vector corresponding to the feature (X, Y) after feature superposition is expressed as (X1, X2, X3, Y1, Y2).

[0062] Step S103 of the present disclosure can be respectively Figure 2 or Figure 3 Any corresponding step can be used to implement it. Figure 2 A flowchart of a method for obtaining document classification results provided in an embodiment of the present disclosure is shown. Figure 3 The present invention is a flowchart of another method for obtaining document classification results provided in an embodiment of the present invention.

[0063] like Figure 2 As shown, step S201: obtaining image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified.

[0064] Step S202: performing feature fusion on the image features and the text features to obtain fused features.

[0065] Step S203: input the fusion features into the trained image classification model to obtain the document classification result corresponding to the image to be classified.

[0066] Using a trained image classification model to obtain document classification results can ensure the accuracy of the document classification results.

[0067] In order to obtain a high-precision image classification model to get document classification results, before inputting the fusion features into the trained image classification model, it is necessary to use the sample fusion features and the corresponding annotated sample document classification results to train the image classification model to obtain a trained image classification model.

[0068] During the model training process, you can pre-set the end conditions of the model training, including but not limited to: the training reaches a specified number of times, or the accuracy of the document classification results of the image classification model reaches a corresponding threshold.

[0069] In order to obtain the document classification result corresponding to the image to be classified more simply and clearly, in the embodiment of the present disclosure, the following method can also be used: Figure 3 The document classification result method shown is used to obtain the document classification result.

[0070] Step S301: Acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified.

[0071] Step S302: performing feature fusion on image features and text features to obtain fused features.

[0072] Step S303: according to the fusion feature, find the corresponding relationship between the fusion feature and the document classification result, and obtain the corresponding document classification result as the document classification result corresponding to the image to be classified.

[0073] The so-called corresponding relationship between the fusion features and the document classification results is generally that each fusion feature corresponds to one document classification result, that is, there is generally a one-to-one correspondence between the fusion features and the document classification results.

[0074] The so-called document classification result generally refers to the document type result obtained after dividing the document type of the classified image. The document classification result includes but is not limited to: liability business approval form, interbank deposit agreement, special business voucher, handwritten check, special transfer voucher, and fee approval form.

[0075] When the execution subject is the server, the document classification process is as follows Figure 4 As shown, it is a schematic diagram of a document classification process provided in an embodiment of the present disclosure. The specific process is as follows:

[0076] First, the server 401 receives a document classification request message sent by the client 402 for the image to be classified.

[0077] Second, the server 401 obtains image features related to the audit business in the image to be classified and text features corresponding to the specified text in the image to be classified in response to the document classification request message.

[0078] The image to be classified may be sent by the client 402 to the server 401 , or may be stored in a storage device within the server 401 .

[0079] Third, the server 401 performs feature fusion on the image features and the text features to obtain fused features.

[0080] Fourth, the server 401 inputs the fused features into the trained image classification model to obtain the document classification result corresponding to the image to be classified.

[0081] Figure 4 In the example, the classification result is a handwritten check.

[0082] Fifth, the server 401 provides the document classification result to the client 402 .

[0083] Sixth, the client 402 displays the document classification result.

[0084] Taking the server as the execution body can reduce the amount of computation on the client side and ensure the performance of the client side.

[0085] In addition, after obtaining the document classification result corresponding to the image to be classified, the document classification result is provided to the client, so that the user can understand the document classification result more intuitively.

[0086] In addition, the user can understand the document classification result more intuitively. When the execution subject is a user terminal running the target application or software, the document classification result can be directly displayed after obtaining the document classification result.

[0087] Since the image to be classified is a kind of data in the form of image, the text in it is often not directly extractable. In order to facilitate relevant personnel to obtain keywords in the image to be classified, it is often necessary to determine the keyword extraction model used for keyword extraction of the image to be classified according to the document classification results corresponding to the image to be classified, so as to extract keywords from the image to be classified. The so-called keyword extraction model is a model used to extract keywords from images corresponding to document classification results.

[0088] Specifically, the images to be classified corresponding to different document classification results generally have different document contents and forms in the images, as well as different layouts of the images. In order to ensure the accuracy of keyword extraction, different keyword extraction models need to be selected for different types of images to be classified to extract keywords from the images to be classified, so as to obtain keywords in the images to be classified.

[0089] The so-called determining the keyword extraction model for extracting keywords from the image to be classified according to the document classification result may be: according to the document classification result, in the pre-trained text extraction model, selecting and obtaining the keyword extraction model for extracting keywords from the image corresponding to the document classification result, to extract keywords from the image to be classified. For example, for a debt business approval form, a keyword extraction model for extracting keywords from the business approval form is required to extract keywords. When the document classification result corresponding to the image to be classified is a debt business approval form, it is necessary to select the keyword extraction model for extracting keywords from the business approval form from the pre-trained text extraction model to extract keywords from the image to be classified.

[0090] The so-called determining a keyword extraction model for extracting keywords from images to be classified based on document classification results may also be: determining a keyword extraction model for extracting keywords from images corresponding to the document classification results based on document classification results, training and acquiring the keyword extraction model.

[0091] Since the image features related to the audit business in the image to be classified and the text features corresponding to the specified text in the image to be classified are considered at the same time when obtaining the document classification results corresponding to the image to be classified, the accuracy of the document classification results can be improved. Therefore, selecting a keyword extraction model based on the document classification results can also improve the accuracy of the keyword extraction model selection.

[0092] According to an embodiment of the present disclosure, the present disclosure also provides a document classification device, such as Figure 5 As shown, it is a schematic diagram of a document classification device provided in an embodiment of the present disclosure. The device includes:

[0093] The image feature acquisition module 501 is used to acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified;

[0094] A fusion feature acquisition module 502 is used to perform feature fusion on the image feature and the text feature to obtain a fusion feature;

[0095] The classification result obtaining module 503 is used to obtain the document classification result corresponding to the image to be classified according to the fusion feature.

[0096] In one implementation, the fusion feature acquisition module 502 further includes:

[0097] The feature superposition submodule is used to superimpose features on the image features and the text features, and use the superimposed features as the fusion features.

[0098] In one implementation, the classification result obtaining module 503 further includes:

[0099] The first classification result obtaining submodule is used to input the fusion feature into the trained image classification model to obtain the document classification result corresponding to the image to be classified.

[0100] In one implementation, the classification result obtaining module 503 further includes:

[0101] The model training submodule is used to train the image classification model using the sample fusion features and the corresponding annotated sample document classification results to obtain the trained image classification model.

[0102] In one implementation, the classification result obtaining module 503 further includes:

[0103] The second classification result obtaining submodule is used to find the corresponding relationship between the fusion feature and the document classification result according to the fusion feature, and obtain the corresponding document classification result as the document classification result corresponding to the image to be classified.

[0104] In one embodiment, the image feature includes at least one of the following image features:

[0105] A feature for representing the number of tables in the image to be classified;

[0106] A feature for representing the number of seals in the image to be classified;

[0107] A feature used to represent the image area ratio of the table in the image to be classified;

[0108] A feature used to represent the proportion of handwritten text in the entire text in the image to be classified;

[0109] A feature used to represent the proportion of printed text in the entire text in the image to be classified.

[0110] In one embodiment, the specified text includes at least one of the following: a title in the image to be classified; or a text of a specified number of words pre-selected in the order in which the text is arranged.

[0111] In one implementation, the image feature acquisition module 501 further includes:

[0112] A request message receiving submodule, used for receiving a document classification request message sent by a client for the image to be classified;

[0113] The image feature acquisition submodule is used to obtain image features related to the audit business in the image to be classified and text features corresponding to the specified text in the image to be classified in response to the document classification request message.

[0114] In one embodiment, the device further comprises:

[0115] The keyword extraction model selection module is used to determine the keyword extraction model used for extracting keywords from the image to be classified according to the document classification result.

[0116] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0117] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0118] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0119] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 606 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0120] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0121] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the document classification method. For example, in some embodiments, the document classification method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the document classification method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the document classification method in any other appropriate manner (e.g., by means of firmware).

[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0123] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0126] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0127] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0129] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A document classification method, characterized in that: include: Acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified; Performing feature fusion on the image features and the text features to obtain fused features; According to the fusion features, a document classification result related to the audit business corresponding to the image to be classified is obtained; The specified text includes at least one of the following: a title in the image to be classified; a text of a specified number of words pre-selected in the order of text arrangement; the image features include at least one of the following image features: a feature for indicating the number of tables in the image to be classified; a feature for indicating the number of seals in the image to be classified; a feature for indicating the image area ratio of the table in the image to be classified; a feature for indicating the ratio of handwritten text in the image to be classified to the total text; a feature for indicating the ratio of printed text in the image to be classified to the total text; the table in the image to be classified is obtained based on a preset table detection model, and the seal in the image to be classified is obtained based on a preset seal detection model; Also includes: According to the document classification result, a keyword extraction model for extracting keywords from an image corresponding to the document classification result is determined.

2. The method according to claim 1, characterized in that The step of fusing the image features and the text features to obtain fused features includes: The image features and the text features are superimposed, and the superimposed features are used as the fusion features.

3. The method according to claim 1, characterized in that The step of obtaining a document classification result corresponding to the image to be classified according to the fusion feature includes: The fusion features are input into a trained image classification model to obtain a document classification result corresponding to the image to be classified.

4. The method according to claim 3, characterized in that The method further comprises: The image classification model is trained using the sample fusion features and the corresponding annotated sample document classification results to obtain the trained image classification model.

5. The method according to claim 1, characterized in that The step of obtaining a document classification result corresponding to the image to be classified according to the fusion feature includes: According to the fusion feature, the corresponding relationship between the fusion feature and the document classification result is found, and the corresponding document classification result is obtained as the document classification result corresponding to the image to be classified.

6. The method according to claim 1, characterized in that The obtaining of image features related to the audit business in the image to be classified and text features corresponding to the specified text in the image to be classified includes: Receiving a document classification request message sent by a client for the image to be classified; In response to the document classification request message, image features related to the audit business in the image to be classified and text features corresponding to the specified text in the image to be classified are obtained.

7. A document classification device, characterized in that: include: An image feature acquisition module, used to acquire image features related to the audit business in the image to be classified, and text features corresponding to the specified text in the image to be classified; A fusion feature acquisition module, used for performing feature fusion on the image feature and the text feature to obtain a fusion feature; A classification result obtaining module, used for obtaining the document classification result related to the audit business corresponding to the image to be classified according to the fusion feature; The specified text includes at least one of the following: a title in the image to be classified; a text of a specified number of words pre-selected in the order in which the text is arranged; The image feature includes at least one of the following image features: a feature for indicating the number of tables in the image to be classified; a feature for indicating the number of seals in the image to be classified; a feature for indicating the proportion of the image area of ​​the table in the image to be classified; a feature for indicating the proportion of the handwritten text in the image to be classified to the total text; a feature for indicating the proportion of the printed text in the image to be classified to the total text; The table in the image to be classified is obtained based on a preset table detection model, and the seal in the image to be classified is obtained based on a preset seal detection model; The keyword extraction model selection module is used to determine, based on the document classification result, a keyword extraction model for extracting keywords from an image corresponding to the document classification result.

8. The device according to claim 7, characterized in that The fusion feature acquisition module includes: The feature superposition submodule is used to superimpose features on the image features and the text features, and use the superimposed features as the fusion features.

9. The device according to claim 8, characterized in that The classification result obtaining module comprises: The first classification result obtaining submodule is used to input the fusion feature into the trained image classification model to obtain the document classification result corresponding to the image to be classified.

10. The device according to claim 9, characterized in that The classification result obtaining module further includes: The model training submodule is used to train the image classification model using the sample fusion features and the corresponding annotated sample document classification results to obtain the trained image classification model.

11. The device according to claim 7, characterized in that The classification result obtaining module comprises: The second classification result obtaining submodule is used to find the corresponding relationship between the fusion feature and the document classification result according to the fusion feature, and obtain the corresponding document classification result as the document classification result corresponding to the image to be classified.

12. The device according to claim 7, characterized in that The image feature acquisition module comprises: A request message receiving submodule, used for receiving a document classification request message sent by a client for the image to be classified; The image feature acquisition submodule is used to obtain image features related to the audit business in the image to be classified and text features corresponding to the specified text in the image to be classified in response to the document classification request message.

13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Image classification method, apparatus, terminal device, and storage medium

    CN109522942A

  • Document management method and system for intelligent stamper machine

    CN110490183A

  • Information extraction method and system for medical photograph

    CN111783710A

  • Text classification method based on multi-modal information fusion and related equipment thereof

    CN112685565A

  • Social media sentiment analysis method and system based on tensor fusion network

    CN113064968A