Fig. 2

Feature extraction and classification pipeline. The global average pooling layer averages the feature maps of the last convolutional layer to generate a feature vector. For example, the 1st element of the feature vector is the average of the 1st feature map.