Abstract
Standard fMRI analysis often relies on a binary classification between "active" and "resting" states. However, the definition of a true resting state is problematic due to continuous background cognitive processes. This paper investigates the application of one-class machine learning techniques—specifically Bottleneck Neural Networks (BN-NN) and One-class Support Vector Machines (SVM)—to identify brain activity using only positive (active) training data. Our results demonstrate that while two-class models provide a performance ceiling, one-class methods offer a viable alternative when negative samples are unreliable or unavailable.
Introduction
Functional Magnetic Resonance Imaging (fMRI) is a cornerstone of modern neuroscience, typically analyzed by comparing brain oxygenation during a task against a baseline "resting" state. In machine learning terms, this is framed as a two-class problem. However, the "resting" state is rarely a clean baseline; the brain remains active with internal processes, making negative data noisy and potentially non-representative.
This study explores whether reliable classification can be achieved using one-class classification. By learning the boundary of the "active" state alone, we can identify deviations as "inactive" or outliers. This approach is more robust for real-world scenarios where the task-related activity is well-defined, but the non-task state is ambiguous.
Methodology
We evaluated two primary one-class learning architectures and compared them against a standard two-class SVM baseline:
- Bottleneck Neural Networks (BN-NN): These autoencoders are trained to reconstruct input brain slices through a compressed hidden layer. The hypothesis is that the network learns to efficiently reconstruct "active" patterns. High reconstruction error on new data indicates an "inactive" state.
- One-class SVM: This algorithm maps data into a high-dimensional feature space and finds a hyperplane that separates the data from the origin, effectively enclosing the "positive" class. We tested both Linear and Radial Basis Function (RBF) kernels.
- Two-class SVM: A supervised model trained on both active and inactive labels, serving as a performance benchmark.
The models processed entire brain slices directly, without manual feature selection or pre-filtering, to test their ability to handle high-dimensional, noisy fMRI data.
Experimental Setup
The dataset consisted of fMRI scans from a single volunteer performing a right-index-finger flexing task. We used 12 T2*-weighted image slices per scan, totaling 200 scans (100 active, 100 inactive). Preprocessing was minimal, involving only the manual cropping of non-brain background, resulting in approximately 8,300 features per slice.
Results and Discussion
The experimental results indicate that one-class methods are feasible for fMRI analysis, though they naturally lag behind two-class models that benefit from labeled negative data.
As shown in Figure 1, the two-class SVM achieved the highest accuracy at 68.06%. Among the one-class methods, the SVM with an RBF kernel reached 59.18%, while the BN-NN achieved 56.19%. The performance gap of approximately 9-12% is considered acceptable given the increased difficulty of the one-class constraint and the use of raw, unfiltered data.
Sensitivity vs. Specificity
A deeper analysis of the error types reveals distinct behaviors between the models.
Figure 3 highlights that the BN-NN was highly sensitive, achieving a True-Positive rate of 78.96%. However, it suffered from a low True-Negative rate (33.42%), indicating a tendency to over-classify slices as "active." In contrast, the two-class SVM maintained a more balanced profile with a significantly higher True-Negative rate (65.64%).
Kernel Sensitivity
Kernel choice proved critical for the one-class SVM. The RBF kernel (59.18%) significantly outperformed the Linear kernel (49.12%). Interestingly, the inverse was true for the two-class SVM, where the Linear kernel was superior. This suggests that the "active" state's geometry is better captured by non-linear boundaries when negative data is not available to guide the decision hyperplane.
Conclusion
This research demonstrates the potential of one-class machine learning for fMRI data analysis. By relaxing the requirement for a well-defined "resting" state, these methods align more closely with the biological reality of continuous brain activity. Future work will focus on generalizing these findings across multiple subjects and implementing automated feature reduction to improve classification robustness.
Summary updated