Skip to main content
QUICK REVIEW

[Paper Review] The relationship between Fully Connected Layers and number of classes for the analysis of retinal images

Ajna Ram, Constantino Carlos Reyes‐Aldasoro|arXiv (Cornell University)|Apr 7, 2020
Retinal Imaging and AnalysisMedicine11 references14 citations
TL;DR

This study investigates how the number of fully connected (FC) layers in convolutional neural networks (CNNs) affects classification performance on retinal fundus images from the ODIR-2019 dataset, focusing on four classes: normal, cataract, AMD, and myopia. It finds that increasing FC layers harms performance on complex, overlapping data, with networks often collapsing to single-class predictions, while simpler, linearly separable data may benefit from additional FC layers.

ABSTRACT

This paper experiments with the number of fully-connected layers in a deep convolutional neural network as applied to the classification of fundus retinal images. The images analysed corresponded to the ODIR 2019 (Peking University International Competition on Ocular Disease Intelligent Recognition) [9], which included images of various eye diseases (cataract, glaucoma, myopia, diabetic retinopathy, age-related macular degeneration (AMD), hypertension) as well as normal cases. This work focused on the classification of Normal, Cataract, AMD and Myopia. The feature extraction (convolutional) part of the neural network is kept the same while the feature mapping (linear) part of the network is changed. Different data sets are also explored on these neural nets. Each data set differs from another by the number of classes it has. This paper hence aims to find the relationship between number of classes and number of fully-connected layers. It was found out that the effect of increasing the number of fully-connected layers of a neural networks depends on the type of data set being used. For simple, linearly separable data sets, addition of fully-connected layer is something that should be explored and that could result in better training accuracy, but a direct correlation was not found. However as complexity of the data set goes up(more overlapping classes), increasing the number of fully-connected layers causes the neural network to stop learning. This phenomenon happens quicker the more complex the data set is.

Motivation & Objective

  • To analyze the relationship between the number of fully connected (FC) layers and classification accuracy in CNNs for retinal image analysis.
  • To evaluate how data complexity—measured by the number and overlap of classes—affects the utility of additional FC layers.
  • To determine whether increasing FC layers improves feature mapping or leads to training instability in deep networks.
  • To compare network performance across multiple data subsets with varying class counts: two-class (NC), three-class (NCA), and four-class (NCAM) configurations.
  • To identify optimal FC layer configurations for retinal disease classification, particularly for challenging classes like AMD and myopia.

Proposed method

  • Trained multiple CNN architectures with identical convolutional feature extractors but varying numbers of fully connected (FC) layers (2 to 6) on retinal image data.
  • Used the ODIR-2019 dataset, selecting only four classes: normal, cataract, age-related macular degeneration (AMD), and myopia.
  • Evaluated models on three data splits: NC (2 classes), NCA (3 classes), and NCAM (4 classes), each with distinct class separability.
  • Measured performance using standard metrics: accuracy, precision, recall, F1-score, and true/false positive/negative counts.
  • Monitored training behavior, including convergence and single-class prediction anomalies, to detect network collapse.
  • Reported average accuracy and per-class metrics across multiple runs to ensure robustness of findings.

Experimental results

Research questions

  • RQ1How does increasing the number of fully connected layers affect classification accuracy in CNNs for retinal image analysis?
  • RQ2Does the performance impact of additional FC layers vary with data complexity and class overlap?
  • RQ3At what point do additional FC layers begin to degrade model performance or cause training failure?
  • RQ4Can a higher number of FC layers improve feature mapping for non-linearly separable retinal disease classes?
  • RQ5Why do some networks collapse to predicting a single class during training, and how does this relate to FC layer count and data complexity?

Key findings

  • For the two-class NC dataset (normal vs. cataract), which is linearly separable, increasing FC layers did not degrade performance and training accuracy remained high (up to 81.3% for NN-2).
  • In the three-class NCA dataset (normal, cataract, AMD), the best-performing network was NN-2 (2 FC layers), achieving an average accuracy of 0.858, while networks with more FC layers (e.g., NN-3, NN-4) showed significantly lower performance.
  • For the four-class NCAM dataset (normal, cataract, AMD, myopia), NN-2 achieved the highest average accuracy of 0.883, while NN-3, NN-4, and NN-6 collapsed to single-class predictions, resulting in only 25% accuracy.
  • Networks with more FC layers (especially NN-3, NN-4, NN-6) exhibited severe training instability, frequently predicting only one class during training, indicating failure to learn class distinctions.
  • NN-5 showed anomalous behavior with 53% accuracy on NCAM, despite high precision (0.948) and recall (0.702) for cataracts, suggesting poor generalization for normal, AMD, and myopia classes.
  • The study found no direct correlation between number of FC layers and accuracy, but observed that increased FC layers consistently degraded performance on complex, overlapping data, with collapse occurring more rapidly as class complexity increased.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.