SpikeDS: Double Sparsity to Predict Perineural Invasion in 3D MRI

Discover SpikeDS, a double-sparsity spike neural network that predicts perineural invasion in 3D MRI with high accuracy and minimal power consumption.

miércoles, 15 de julio de 2026 • 6 min read • Q2BSTUDIO Team

SpikeDS: efficiency and accuracy in perineural invasion prediction

In the field of precision oncology, early detection of tumor invasion patterns remains one of the biggest challenges for radiologists and computer-aided diagnostic systems. Perineural invasion (IPN) in cholangiocarcinoma, a type of bile duct cancer, is directly related to a worse prognosis, but its identification by three-dimensional magnetic resonance imaging (3D MRI) is extremely complex due to the subtlety and spatial heterogeneity of the signals at the periphery of the tumor. Classic deep learning approaches, while powerful, face prohibitive computational costs when processing entire volumes of medical images, limiting their implementation in real clinical settings. Faced with this problem, SpikeDS (Dual Sparsity Spikformer) emerged, an espiking neural network architecture that jointly exploits activation sparsity – derived from the binary communication of peaks – and spatial sparsity, through window pruning based on firing rates. This approach not only improves energy efficiency dramatically, but also maintains competitive diagnostic capacity, as demonstrated by results obtained in a clinical cohort of 139 patients with cholangiocarcinoma, where SpikeDS achieved an AUC of 0.753 consuming only 14.4 mJ.

To understand the true impact of this innovation, it is necessary to first analyze the clinical problem. Perineural invasion is a process in which tumor cells spread along nerves, a phenomenon that is especially aggressive in cholangiocarcinoma. Detecting this invasion in 3D MRI images requires identifying extremely fine patterns that often take up only a few voxels in a volume of millions of data. Radiologists train their eye for years to recognize these signals, but eye strain and interobserver variability are inevitable. Automated systems based on 3D convolutional networks have proven to be useful, but their high computational consumption – both in memory and processing time – makes them impractical for hospital workflows where every minute counts. In addition, traditional models treat all voxels equally, without prioritizing those regions that actually contain relevant information, resulting in unnecessary resource saturation.

This is where SpikeDS introduces a paradigm shift. Spiking neural networks (SNNs) mimic the biological behavior of neurons: they only transmit information when they reach a threshold, generating binary spikes. This drastically reduces the number of activations and thus energy consumption. However, the real qualitative leap comes with the concept of double parsity. On the one hand, activation sparsity is inherent to SNNs; on the other hand, spatial sparsity is introduced through a window pruning mechanism that identifies those regions of the 3D volume with the highest firing rate, i.e. the areas where the changes are most significant. Only those windows are processed by attention, while "pruned" windows are maintained as sources of keys and values in an asymmetrical scheme of cross-window self-attention. This not only reduces computational cost, but also allows you to maintain a global context without the need to process the entire volume densely.

The SpikeDS architecture is composed of two main modules: the Window-based Expert Mixture Spiking Attention (W-EMSA) and the Cross-Window Spiking Self-Attention (CW-SSA). The former applies attention only to windows identified as relevant by their high firing rate, using a mix of experts within those windows to capture complex local patterns. The second, through an asymmetrical scheme, allows pruned windows to continue to contribute as a source of keys and values, ensuring that contextual information is not completely lost. This combination achieves an optimal balance between efficiency and precision. In practical terms, a model like this could run on low-power hardware, such as clinical workstations without specialized GPUs, or even on peripheral devices connected to MRI equipment.

The numerical results support the proposal. In a five-iteration cross-validation on a real-world cohort of 139 patients, SpikeDS achieved an area under the ROC curve (AUC) of 0.753, outperforming the most advanced baselines in both diagnostic accuracy and energy efficiency. The consumption of only 14.4 mJ per analysis is a reduction of several orders of magnitude compared to traditional 3D convolutional models, which may require integer joules. This opens the door to real-time deployments, where the radiologist could be automatically alerted to suspected IPN within seconds, without interrupting workflow.

Beyond the specific application in cholangiocarcinoma, the principle of double sparsity has profound implications for the field of artificial intelligence applied to medical imaging. Many pathologies present focal or peripheral patterns that are scarce in the total volume: microcalcifications on mammograms, incipient lung nodules on CT scans or early brain lesions on MRIs. The ability of SNNs with double parsity to concentrate computational resources only where it really matters could accelerate the adoption of artificial intelligence in clinical practice, reducing reliance on expensive infrastructure and allowing hospitals with limited resources to access cutting-edge tools.

From a business perspective, the development of architectures such as SpikeDS represents an opportunity for healthcare technology companies looking to offer tailored software solutions for assisted diagnosis. Deploying models of this type requires a deep understanding of both spiking neural networks and optimization for specific hardware. It is not just a matter of copying open source, but of adapting the architecture to the particular clinical data, integrating it with hospital information systems (HIS) and ensuring compliance with regulations such as HIPAA or GDPR. This is where a company like Q2BSTudio can make a difference. With a strong track record in developing custom applications for the healthcare sector, Q2BSTudio offers the ability to design and implement complete AI pipelines ranging from preprocessing medical images to visualizing results in interactive dashboards. In addition, integration with AWS and Azure cloud services allows these systems to scale without compromising the security of sensitive data, a critical aspect in healthcare environments.

Artificial intelligence for companies, and in particular for the pharmaceutical and hospital industry, is evolving towards more efficient and explainable models. SNNs with dual parsity fit perfectly into that trend, as their low power makes them ideal for edge computing deployments, where data must be processed close to the point of acquisition without sending it to the cloud. This not only reduces latency, but minimizes cybersecurity risks by keeping data within the local network. In addition, the binary nature of SNNs makes it easy to deploy in neuromorphic hardware, an emerging field that promises to revolutionize low-power computing.

In the context of the digital transformation of organizations, having a technology partner that understands both the clinical and technical sides is critical. Q2BSTudio offers Power BI-based business intelligence services so that hospital managers can monitor the performance of AI models in real time, detect deviations and make informed decisions. In addition, the development of AI agents that automate repetitive tasks—such as initial volume segmentation or preliminary radiology reporting—allows healthcare professionals to focus on what really matters: the patient. The combination of efficient architectures such as SpikeDS with robust custom software platforms creates an ecosystem where technology is not only a support, but a driver of continuous improvement.

In conclusion, the double sparsity represented by SpikeDS is not only a technical breakthrough in the field of spiking neural networks, but a bridge to a more sustainable and accessible artificial intelligence in diagnostic imaging. The ability to predict perineural invasion in cholangiocarcinoma with minimal energy consumption demonstrates that it is possible to achieve high levels of accuracy without the need for massive infrastructure. For companies looking to implement AI solutions in healthcare, understanding these technologies and partnering with experienced developers is the safest path. Q2BSTudio, with its expertise in custom applications, cloud services, and automation, is ready to accompany organizations on this journey towards data-driven precision medicine.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.