-
The most difficult stage to automate was determining the document type.
-
To implement these tasks, we tested several hypotheses.
-
The first hypothesis was image processing.
-
We planned to train a neural network on a specific set of patterns that correspond to document forms.
-
By comparing a scan of a specific document with reference patterns stored in memory, the neural network was supposed to determine the document type and the counterparty named in it.
-
Practice showed that this was a poor approach.
-
For many documents, such as waybills, there is no single widely accepted format.
-
The number of fields, the relative placement of elements, and the completion of required fields differ.
-
Even long training that required significant system resources would not deliver an acceptable result, and identifying each document would take longer than manual processing.
-
Such a solution would not have been cost-effective from the customer's business perspective.
-
So instead of images, we decided to work with text.
-
Regardless of the format used by the counterparty, the goods and transport waybill always contains the document title, the TTN number, shipment and contract numbers, and other text information that makes correct processing possible. iCdocs uses random forest machine learning and vector analysis of word positions by metric to determine document types.
-
This approach proved to be more effective.
-
By analyzing the presence of the "right" words, we were able to reach nearly 78% right from the start, and iCdocs could identify the document type on its own - the operator only had to confirm the results.