Nanoparticle Classification Using Frequency Domain Analysis on Resource-Limited Platforms

Mikail Yayla, Anas Toma, Kuan-Hsun Chen, Jan Eric Lenssen, Victoria Shpacovitch, Roland Hergenröder, Frank Weichert, Jian-Jia Chen2019

TL;DR

This paper presents a resource-efficient method for classifying virus nanoparticles using frequency domain analysis (Fourier and Haar wavelets) on mobile and embedded platforms. The proposed approach significantly reduces computational cost compared to state-of-the-art Convolutional Neural Networks (CNNs), enabling real-time virus detection on low-power devices without sacrificing substantial accuracy.

What Problem Does This Paper Address?

The increasing emergence and evolution of viruses, coupled with global travel, necessitates accessible, mobile, real-time virus detection systems. While biosensors like PAMONO show promise for rapid diagnosis in various settings, analyzing the sensor's image data often relies on computationally intensive methods like Convolutional Neural Networks (CNNs). These CNNs, despite achieving high accuracy, demand significant computational resources (e.g., high-performance GPUs), making them unsuitable for resource-constrained mobile and embedded platforms. This creates a gap between the need for real-time, on-site virus detection and the limitations of current analysis techniques.

Methods

The core of this work lies in modifying the image analysis pipeline of the PAMONO biosensor to employ frequency domain analysis for nanoparticle classification. Instead of complex CNNs, the authors leverage Fourier Transform (FFT) and Haar Wavelet Transform (FWT) to extract features from image patches. These features are then fed into a simple decision tree (DT) classifier.

Key methodological aspects include:

  • Frequency Domain Feature Extraction:
    • Fourier Features: The 2D Discrete Fourier Transform (DFT) is used to analyze periodic patterns. Features like "Srad" (sums of magnitudes over semicircles) and "Sang" (sums of magnitudes along radial lines) are extracted, along with their mean, maximum, variance, and location of the maximum.
  • Haar Wavelet Features: The 2D Haar Wavelet Transform is applied for multiresolution analysis. The energy of different channels (low-frequency and high-frequency components) is computed to capture blob-like and periodic patterns.
  • Resource-Efficient Classification: A simple decision tree (DT) classifier with limited depth is used, which is known for its efficiency and ease of deployment on embedded systems.
  • Platform Evaluation: The methods were evaluated on various platforms:
  • Intel Core i7-4600U with integrated GPU (using OpenCL and deepRacin framework).
  • Intel Core i7-4600U CPU-only.
  • ARM Cortex-A9 on a Zedboard (embedded platform).
  • Feature Selection: Principal Component Analysis (PCA) was used to explore feature subsets, aiming to reduce computational load with minimal accuracy loss.

Datasets

The study utilized synthetic datasets generated using the Synthesis-Optimization-Analysis (SynOpSis) approach. These datasets were derived from real PAMONO sensor images and annotated by experts. The datasets contained image patches of polystyrene particles (PPs) of sizes 100 nm and 200 nm. A train-test split of 19,526 images for training and 19,345 for testing was used. The paper notes that PPs were used due to their ease of handling and similar detection characteristics to virus-like particles (VLPs).

Key Insights and Ideas

  • Frequency Domain Analysis as a Viable Alternative to CNNs: The paper demonstrates that frequency domain features, combined with simple classifiers, can achieve competitive accuracy for nanoparticle classification, significantly outperforming CNNs in terms of computational efficiency.
  • Trade-off Between Accuracy and Resource Usage: A clear trade-off exists. While using all extracted features yields the highest accuracy, selecting a smaller subset (e.g., two FFT features) drastically reduces computation time (by ~83.5%) with only a minor drop in accuracy (to >93%). This flexibility is crucial for resource-limited applications.
  • Embedded Platforms are Sufficient: The classification can be effectively run on simple ARM Cortex-A9 CPUs without the need for expensive hardware accelerators like GPUs or FPGAs, making the technology more accessible.
  • Synchronization Overhead is a Bottleneck: When using GPUs for acceleration, the synchronization overhead between the CPU and GPU significantly dominates the execution time, making CPU-only implementations surprisingly competitive for feature extraction.
  • Platform-Specific Training is Necessary: Decision trees trained on features extracted from one platform (e.g., MATLAB on CPU) are not directly transferable to another platform (e.g., deepRacin on GPU) due to differences in floating-point arithmetic and computation environments.

Key Results

  • Execution Time:
    • On an Intel Core i7-4600U CPU-only: 29 µs/image for Fourier features, 17 µs/image for Haar wavelet features.
  • On an ARM Cortex-A9: 376 µs/image for Fourier features, 88 µs/image for Haar wavelet features.
  • In comparison, a CNN-based method on the same Intel platform with GPU acceleration took 3370 µs/image.
  • Accuracy:
    • The proposed methods achieved accuracies above 96.5%, with the best combination of FFT and FWT features reaching 97.78%.
  • The CNN method achieved a higher accuracy of 99.5%, but at a significantly higher computational cost. The difference in accuracy was 1-2.5 percentage points.
  • Speedup: The spectral analysis approach was 2.63 times faster than the CNN, and the wavelet approach was 1.83 times faster.
  • Feature Subset Impact: Extracting only two FFT features saved ~83.5% computation time while maintaining >93% accuracy. Extracting four more FFT features saved ~40% computation time with only a ~2% accuracy sacrifice.

Limitations and Future Work

  • Accuracy Gap: The frequency domain methods, while efficient, are 1-2.5 percentage points lower in accuracy compared to the state-of-the-art CNN.
  • Platform-Specific Training: Decision trees need to be retrained for each specific platform to achieve optimal accuracy, which adds complexity to deployment.
  • FFTW vs. xfft IP: The xfft IP core on the Zedboard was found to be slower than the FFTW library due to data transfer overheads and limited PL clock speed. However, the authors suggest that for larger image sizes or faster FPGA platforms, the xfft IP might become more beneficial.
  • Future Work: The authors plan to:
  • Evaluate efficient detection stage methods.
  • Improve feature extraction techniques.
  • Include classification of smaller particles.
  • Develop a small, fast, low-power, and low-cost embedded system for nanoparticle classification.
  • Further explore optimization of execution in HDL for the xfft IP.

Summary updated

BibTeX
@misc{yayla2019nanoparticle,
  author = {Mikail Yayla and Anas Toma and Kuan-Hsun Chen and Jan Eric Lenssen and Victoria Shpacovitch and Roland Hergenröder and Frank Weichert and Jian-Jia Chen},
  title = {{Nanoparticle Classification Using Frequency Domain Analysis on Resource-Limited Platforms}},
  year = {2019},
  doi = {10.3390/s19194138},
}
Figure