A Hybrid Multi-Well Hopfield-CNN with Feature Extraction and K-Means for MNIST Classification

Ahmed Farooq
7/11/2025
cs.CVcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

This study presents a hybrid model for classifying handwritten digits in the MNIST dataset, combining convolutional neural networks (CNNs) with a multi-well Hopfield network. The approach employs a CNN to extract high-dimensional features from input images, which are then clustered into class-specific prototypes using k-means clustering. These prototypes serve as attractors in a multi-well energy landscape, where a Hopfield network performs classification by minimizing an energy function that balances feature similarity and class assignment.The model's design enables robust handling of intraclass variability, such as diverse handwriting styles, while providing an interpretable framework through its energy-based decision process. Through systematic optimization of the CNN architecture and the number of wells, the model achieves a high test accuracy of 99.2% on 10,000 MNIST images, demonstrating its effectiveness for image classification tasks. The findings highlight the critical role of deep feature extraction and sufficient prototype coverage in achieving high performance, with potential for broader applications in pattern recognition.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{farooq2025hybrid,
  title  = {A Hybrid Multi-Well Hopfield-CNN with Feature Extraction and K-Means for MNIST Classification},
  author = {Ahmed Farooq},
  year   = {2025},
  eprint = {2507.08766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.08766v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.08766.svg)](https://codeofpaper.com/paper/2507.08766)

Discussion