The invention relates to the technical field of
computer vision and
deep learning, and discloses an image classification
system and method fusing a space attention mechanism and long and short-
term memory network
sequence modeling, which combines the
feature extraction capability of a
convolutional neural network and space attention and
time sequence attention mechanisms. And
processing the spatial position sequence by using a long-short-
term memory network. Firstly, advanced spatial features of an image are extracted through a
feature extraction module by adopting a pre-trained
convolutional neural network with a frozen weight, then a spatial attention module is introduced, a spatial attention graph is generated through channel dimension statistics, and important region features are enhanced. After the spatial attention is weighted, a dual-path feature is utilized, one path enters a
feature transformation module, and a convolutional layer is used for reducing dimensionality and enhancing feature expression ability. Then, a
sequence modeling module is carried out, the spatial features are flattened into a position sequence, a spatial position dependency relationship is modeled by adopting a bidirectional long-short-
term memory network, and learnable attention vector dynamic aggregation key position features are introduced; the other path retains spatial global features. And outputting the dual-path features to a
feature fusion module, extracting spatial global features and sequence aggregation features in parallel, and designing a gating mechanism to adaptively fuse the dual-path features. And finally, entering a classification module, and realizing end-to-end image classification based on fusion features.