Stroke-Aware Max-Min Pooling for LSTM OCR

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Recurrent neural networks (RNNs), specifically long short-term memory (LSTM) networks, are computationally complex and difficult to deploy in resource-constrained environments for real-time OCR processing, and existing methods to reduce complexity often compromise recognition accuracy, especially when dealing with varied fonts.

Innovation Solution

A text image processing method that applies stroke-aware max-min pooling to pre-process text images before inputting them into an LSTM network, reducing computational complexity and improving recognition accuracy by adapting pooling operations based on stroke thickness, using either max or minimum pooling depending on the thickness relative to an average stroke thickness.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If LSTM networks are used for OCR processing, then recognition accuracy is improved, but computational complexity increases

Engineering Contradiction:
Improverecognition accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the text image processing into distinct stages: stroke detection, stroke thickness calculation, and conditional pooling operations. By dividing the complex LSTM processing into manageable segments with specialized operations for different stroke types, the computational complexity is reduced while maintaining recognition accuracy across varied fonts.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies different pooling operations (max pooling vs. minimum pooling) based on local characteristics of text regions - specifically whether stroke thickness exceeds the average. This local adaptation allows the system to optimize processing for each region's specific features, improving accuracy without uniformly increasing complexity across the entire image.

Inventive Principle:
Principle #3Local quality

2Productivity

If parameter reduction techniques are applied to RNN, then computational cost is reduced, but recognition accuracy degrades

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidrecognition accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent changes the parameter being processed by applying pooling operations that modify pixel values based on stroke thickness characteristics. By transforming the input data representation through conditional pooling before LSTM processing, the system maintains information quality while reducing the dimensional parameters that LSTM must process, thereby improving efficiency without sacrificing accuracy.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If a generalized model is created to handle multiple fonts, then adaptability is improved, but model complexity increases

Engineering Contradiction:
Improvefont variability handlingVSAvoidmodel complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces dynamic adaptability by calculating stroke thickness for each text line and conditionally applying different pooling operations based on whether the stroke thickness exceeds the average. This dynamic adjustment allows the same model structure to adapt to different font characteristics without requiring separate models for each font type, managing complexity through runtime parameter adjustment rather than structural complexity.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20190266443A1Text image processing using stroke-aware max-min pooling for OCR system employing artificial neural network
Publication Date: 2019.08.29 KONICA MINOLTA SYSTEMS LABORATORY INC
  • US20190266443A1 patent drawing
  • US20190266443A1 patent drawing
  • US20190266443A1 patent drawing

AI summary

In an optical character recognition (OCR) method for digitizing printed text images using a long-short term memory (LSTM) network, text images are pre-processed using a stroke-aware max-min pooling method before being fed into the network, for both network training and OCR prediction. During training, an average stroke thickness is computed from the training dataset. Stroke-aware max-min pooling is applied to each text line image, where minimum pooling is applied if the stroke thickness of the line is greater than the average stroke thickness, while max pooling is applied if the stroke thickness is less than or equal to the average stroke thickness. The pooled images are used for network training. During prediction, stroke-aware max-min pooling is applied to each input text line image, and the pooled image is fed to the trained LSTM network to perform character recognition.