TLDR: FM-BFF-Net is a novel hybrid deep learning model combining CNNs and transformers for medical image segmentation. It uses a Focal Modulation-based ConvFormer Attention Block (FMCAB) for context awareness and a Bidirectional Feature Fusion Module (BiFFM) for efficient multi-scale feature interaction. Tested on eight public datasets (polyp, skin lesion, ultrasound), it consistently outperforms existing methods, offering improved accuracy and robustness in segmenting complex anatomical structures.
Medical image segmentation is a critical process in healthcare, providing essential information for disease diagnosis, treatment planning, and monitoring disease progression. It involves precisely outlining anatomical structures, lesions, or abnormalities within various medical images like MRI, CT, ultrasound, and X-rays. Accurate segmentation directly influences clinical decisions, making it a cornerstone of modern medical practice.
Traditionally, Convolutional Neural Networks (CNNs) have been widely used and have shown significant improvements in this field. However, CNNs face inherent limitations. Their operations are primarily local, meaning they struggle to capture global contextual information and long-range dependencies across an entire image. This limitation impacts their ability to accurately segment structures with complex borders and a wide variety of sizes, which are common challenges in medical imaging due to differences in image quality, contrast, and anatomical variations.
To address these challenges, a new approach called the Focal Modulation and Bidirectional Feature Fusion Network for Medical Image Segmentation, or FM-BFF-Net, has been proposed. This innovative network combines the strengths of both convolutional neural networks and transformer-based architectures. Transformers are particularly effective at capturing global context and long-range dependencies through their self-attention mechanisms, making them a valuable addition to CNNs.
How FM-BFF-Net Works
The FM-BFF-Net is designed with several key components that work together to enhance segmentation accuracy:
- Hybrid Architecture: It integrates both CNN and transformer components. CNNs are excellent at extracting local features, while transformers provide global context awareness, allowing the network to leverage the best of both worlds.
- Focal Modulation-based ConvFormer Attention Block (FMCAB): This module refines the network’s understanding of context. It uses dynamic attention to focus on crucial regions within an image and adaptively modulates feature representations for those regions, improving the model’s adaptability and segmentation performance.
- Bidirectional Feature Fusion Module (BiFFM): This module facilitates efficient interaction between the encoder (which extracts features) and decoder (which reconstructs the segmented image) representations across different scales. By merging features from both skip connections and the decoder, it helps balance intricate local details with broader contextual information.
- Vision Transformer Module (ViTM): Strategically placed in the bottleneck layer of the network, this module capitalizes on transformers’ ability to capture extensive, long-range dependencies and dynamic interactions among features, further enhancing contextual understanding.
- EfficientNetV2S1 Backbone: The model uses EfficientNetV2S1 as its backbone, chosen for its superior performance and computational efficiency, ensuring that the network remains practical for various applications.
The network processes input images through an encoder, which extracts feature information. These features are then refined by the FMCAB and passed through the Vision Transformer. The decoder then reconstructs the segmented image, with the BiFFM ensuring that rich, multi-scale contextual information is utilized throughout the process.
Also Read:
- MedAlign: A New AI Framework for Accurate and Efficient Medical Imaging Analysis
- Advanced AI for Apple Leaf Disease Detection in Orchards
Impressive Performance Across Diverse Medical Datasets
The effectiveness of FM-BFF-Net was rigorously tested on eight publicly available datasets covering a range of medical imaging tasks, including polyp detection, skin lesion segmentation, and ultrasound imaging (for breast lesions and thyroid nodules). The results consistently showed that FM-BFF-Net surpassed recent state-of-the-art methods in key evaluation metrics such as the Jaccard index and Dice coefficient.
For instance, in polyp segmentation, FM-BFF-Net achieved significant improvements in the Jaccard index on datasets like Kvasir-SEG, CVC-300, and CVC-ColonDB. Similarly, for skin lesion segmentation on ISIC 2016, 2017, and 2018 datasets, it consistently outperformed existing approaches. In ultrasound image segmentation for both breast cancer and thyroid nodules, the model also demonstrated superior capabilities, producing segmentation results that closely matched ground truth data, even in complex cases involving irregular shapes and size variations.
The model’s robustness was particularly evident in challenging scenarios, such as images with low contrast, multiple lesions, irregular shapes, varying lesion sizes, occlusions, and black backgrounds. While the network generally performs exceptionally well, it does face some limitations in images with extremely subtle boundaries between lesions and healthy tissue. Future work aims to adapt FM-BFF-Net for 3D volumetric and multimodal medical images and integrate uncertainty quantification mechanisms to provide confidence estimates alongside predictions, further enhancing its clinical utility.
In conclusion, FM-BFF-Net represents a significant advancement in medical image segmentation, offering a robust and adaptable solution with the potential to greatly improve diagnostic accuracy and treatment planning in various clinical settings. For more technical details, you can refer to the full research paper here.


