This repository contains the implementation of RNFS (Robust Nature-Inspired Feature Selection), a feature selection algorithm that combines the strengths of Fox Optimization Algorithm (FOA) and Whale Optimization Algorithm (WOA). RNFS enhances feature selection efficiency, leading to improved results in remote sensing image classification.
|-- code/
| |-- main.m # Entry point for running RNFS
| |-- F.m # Implements the base FOX Optimization Algorithm (FOA)
| |-- jWOA.m # Implements the base Whale Optimization Algorithm (WOA)
| |-- RNFS.m # RNFS algorithm combining the strengths of FOA and WOA
| |-- initialization.m # Initializes population for the optimization algorithms
| |-- jFitnessFunction.m # Evaluates feature subsets using KNN
| |-- jKNN.m # KNN function used in the optimization process
| |-- jKNNTest.m # KNN function for testing selected features
| |-- statsOfMeasure.m # Computes performance metrics (accuracy, precision, recall, F1-score)
|-- datasets/ # Contains remote sensing image datasets
| |-- RS19/ # RS19 dataset folder
| |-- RSSCN7/ # RSSCN7 dataset folder
| |-- UCM/ # UCM dataset folder
|-- matfiles/ # Stores .mat files generated from 60 Monte Carlo trials
|-- evaluation/ # Contains classification models for final evaluation
| |-- WNN.m # Wide Neural Network classifier
| |-- CKNN.m # Cosine KNN classifier
| |-- QSVM.m # Quadratic SVM classifier
|-- results/ # Stores final results computed from evaluation scripts
|-- README.md # Documentation file (this file)
git clone https://github.com/your-repo/rnfs.git
code/ directory and run the script.To execute the RNFS algorithm, run the main script in MATLAB:
main
Ensure that the dataset is correctly placed in the datasets/ folder.
Note: Edit the paths in the scripts accordingly if needed.
To reproduce the results:
datasets/ folder.RNFS.m)..mat files in the matfiles/ folder..mat files to compute the average performance results, which are stored in the results/ folder.The performance of the selected features was assessed using three classification models:
The classification accuracy and feature selection quality were evaluated using standard metrics, including:
The evaluation method involves:
.mat files.results/ folder.If you use this code, please cite:
For questions or contributions, please contact [Your Name] at [Your Email].