Vision-based document language identification by joint supervision
Abstract
The present embodiments relate to a language identification system for predicting a language and text content of text lines in an image-based document. The language identification system uses a trainable neural network model that integrates multiple neural network models in a single unified end-to-end trainable architecture. A CNN and an RNN of the model can process text lines and derive visual and contextual features of the text lines. The derived features can be used to predict a language and text content for the text line. The CNN and the RNN can be jointly trained by determining losses based on the predicted language and content and corresponding language labels and text labels for each text line.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computer-implemented method comprising: training a model using one or more image-based documents to generate a trained model, wherein the training comprises: for each text line of multiple text lines included in a first image-based document in the one or more image-based documents: processing the text line using a convolutional neural network (CNN) to derive visual features from the text line, processing the visual features using a recurrent neural network (RNN) to extract contextual features of the text line, predicting a predicted language of the text line by processing the contextual features of the text line, deriving a language prediction loss based on a comparison between the predicted language and a known language of the text line, predicting a predicted set of text for the text line, deriving a text prediction loss based on a difference between the predicted set of text for the text line and known text for the text line, and training the model using the language prediction lo
- Claim 2Depends on #1
The method of claim 1, wherein the training further comprises: for each text line included in the first image-based document, performing a text localization process to identify the text line in the first image-based document, wherein the text line is bounded by a bounding box specifying a position of the text line in the first image-based document.
- Claim 3Depends on #1
The method of claim 1, wherein the training further comprises: deriving a predicted language for the first image-based document based upon the predicted language of each text line of the multiple text lines in the first image-based document.
- Claim 4Depends on #1
The method of claim 1, wherein the RNN includes a series of Bi-Directional Long Short Term Memory (Bi-LSTM) layers.
- Claim 5Depends on #1
The method of claim 1, wherein predicting the predicted language is performed using a linear layer, a one-dimensional global average pooling (GAP) layer, and a soft-max activation layer.
- Claim 6Depends on #1
The method of claim 1, wherein the language prediction loss comprises a cross-entropy (CE) loss.
- Claim 7Depends on #1
The method of claim 1, wherein the text prediction loss is a connectionist temporal classification (CTC) loss.
- Claim 8Depends on #1
The method of claim 1, wherein the training further comprises: jointly training the CNN and the RNN using both the language prediction loss and the text prediction loss.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63/238,009, filed Aug. 27, 2021, the entirety of which is incorporated by reference herein. BACKGROUND Identifying the language of a document is crucial for many document analysis systems and applications. These documents can include either text-based documents or image-based (e.g., scanned or imaged) documents. Text-based documents are computer files that contain native character (e.g., Unicode) sequences. On the other hand, image-based documents (e.g., documents that are electronically scanned using a scanner) are made up of collections of image pixels and text content and characters are represented by pixels and pixel values. Identifying or classifying the languages from image-based documents is very challenging. SUMMARY The present disclosure relates to language identification techniques, and more particularly to using machine learning based techniques for automatically identifying languages in image-based documents. Various embodiments are described herein, including methods, systems, non-transitory computer-readable storage media storing programs, code, or instructions executable by one or more processors, and the like. A first example embodiment relates to a method for predicting a language included in text lines of an image-based document using a model. The method can include receiving an image-based document including multiple text lines. The method can also include executing, for each text line included in the image-based document, a model to perform a language prediction process. Executing the model can include processing the text line using a convolutional neural network (CNN) to derive visual features from the text line. Executing the model can also include processing the visual features using a recurrent neural network (RNN) to extract contextual features of the text line. Executing the model can also include predicting, using a language
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (7)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- International Application No. PCT/US2022/075543, International Preliminary Report on Patentability mailed on Mar. 7, 2024, 8 pages.
- International Application No. PCT/US2022/075543, International Search Report and Written Opinion mailed on Dec. 9, 2022, 11 pages.