arXiv:2608.26607cs.CVAug 2026

Manuscript Offprint

arXiv:2608.26607

FU-Mamba: A Frequency-Enhanced Dynamic Scanning Framework for Oralscan Image Segmentation

Xinxin Zhao, Jinpeng Ye, Bo Wei, Liqin Wu, Mahmoud Hassaballah, Karen Egiazarian, Aura Conci, Victor Hugo C. de Albuquerque, Abdulkadir Sengur, Leszek Rutkowski, Yan Tian

Abstract

Oralscan image segmentation is essential for computer-aided diagnosis and treatment planning in digital dentistry. However, existing visual state space models (SSMs) often rely on manually designed scanning orders to flatten image patches into sequences, which disrupts the semantic spatial continuity and hinders coherent feature extraction from key foreground regions. Moreover, elements such as inconsistent lighting, reflective surfaces, and noise during data acquisition disrupt the frequency distribution by diminishing high-frequency details while enhancing low-frequency components, consequently hindering the accurate localization of boundaries. In response to these challenges, we introduce FU-Mamba, an innovative framework that incorporates dynamic scanning and frequency domain enhancement within the SSM architecture. Specifi-

*Corresponding author

Email address: tianyan@zjgsu.edu.cn (Yan Tian) cally, the Dynamic Mamba Block (DMB) adaptively learns sampling offsets via a trainable offset prediction network and performs flexible bilinear interpolation, enabling content-aware scanning that preserves spatial coherence. Furthermore, a frequency domain enhancement block balances spectral components through wavelet-guided decomposition and spectrum pooling, improving robustness under adverse imaging conditions. Experimental findings indicate that FU-Mamba attains a notable enhancement in segmentation accuracy, evidenced by a 1.1% increase in the mean intersection over union (mIoU) metric when evaluated on the dental segmentation dataset. Project page: https://byte2bite.github.io/FU-Mamba/

Keywords: Image Segmentation, Digital Dentistry, Linear Attention Mechanism, Computer Vision

1. Introduction

Tooth segmentation plays a vital role in digital dentistry, with potential applications in disease diagnosis [1], treatment monitoring [2, 3], and image-based clinical analysis. Effective segmentation enhances the detection of dental conditions [4], including caries, periodontal disease, and various oral abnormalities, thus allowing for more prompt and accurate diagnoses.

State space models (SSMs) [5], as exemplified by Mamba [6], have garnered significant interest in recent times due to their ability to selectively retain or discard information across sequences via the S6 block while offering both linear-time computation and a global receptive field. Inspired by Mamba's success in natural language processing, several works, such as Vim [7], have broadened its applicability to the field of computer vision by transforming two-dimensional images into one-dimensional sequences through the implementation of diverse scanning methodologies. This approach illustrates the capabilities of SSMs in visual tasks. As demonstrated in Fig. 1(a), PlainMamba [8] contends that traditional raster scanning fails to account for the significance of spatial continuity in images. Consequently, it proposes a continuous scanning approach aimed at maintaining the correlation between neighboring patches. Likewise, as shown in Fig. 1(b), LocalMamba [9] proposes a local scanning strategy to better capture spatial positional relationships. Nevertheless, these scanning approaches disrupt the spatial adjacency of semantic structures after flattening [10], leading to the loss of critical structural information. By contrast, as shown in Fig. 1(c), our approach adaptively determines the scanning order based on image content. While recent advances like DefMamba [11] have explored deformable state spaces for natural images, our approach uniquely synergizes this content-aware dynamic scanning with frequency balancing, enabling more flexible modeling capabilities tailored for complex dental artifacts. To demonstrate our scanning approach, the figure displays six sample points, though the full process includes additional points.

Figure

(a) Continuous Scanning

Figure

(b) Local Scanning

Figure

(c) Dynamic Scanning

Figure

(d) Original Image

Figure

(e) U-Mamba

Figure

(f) FU-Mamba

Figure 1: Comparison of different scanning strategies in visual state space models. (a) Continuous scanning strategy proposed by PlainMamba; (b) Local scanning strategy proposed by LocalMamba; (c) Our proposed dynamic scanning strategy; (d) Original dental image under poor lighting conditions; (e) Low-quality segmentation mask produced by U-Mamba; (f) Segmentation mask generated by our approach. Yellow dots indicate reference points, and yellow arrows represent the scanning order.

Effectively segmenting images with complex and variable frequency characteristics remains a challenging task, particularly in dental image analysis, where the input is often affected by uneven lighting, reflective surfaces like enamel and metal restorations, motion blur, and noise during image capture. These artifacts modify the original frequency distribution of the image by attenuating high-frequency components, such as edges and textures, while redistributing the overall energy towards lower frequencies. Consequently, the model struggles to precisely detect subtle features like tooth edges and gum shapes. As shown in Fig. 1(e), U-Mamba fails to effectively balance high- and low-frequency components, resulting in inaccurate tooth boundary segmentation and an inability to completely segment the tooth under poor lighting conditions. In comparison, as demonstrated in Fig. 1(f), our approach attains a more effective equilibrium among frequency components and successfully delineates the entire tooth region, even under less than ideal illumination conditions.

Our work is inspired by recent advances in visual state space modeling and frequency-aware representation learning. In computer vision applications, the Mamba approach breaks down 2D images into smaller patches. These patches are then converted into several 1D sequences by employing specific scanning techniques from different angles. This approach successfully integrates the Mamba model for visual applications, achieving strong results and demonstrating the promise of SSMs in computer vision. In parallel, WTConv [12] utilizes wavelet-based decomposition to improve the network's capacity to identify hierarchical spatial patterns. This approach is especially advantageous for the representation of large-scale structural information in natural images. SPAM [13] introduces a frequency-aware convolutional mixer that adaptively integrates spectral cues into spatial representations, thereby strengthening feature discriminability.

To address the challenges of spatial structure disruption and frequency imbalance in dental image segmentation, we propose a novel framework named FU-Mamba, which integrates a dynamic scanning mechanism and frequency-domain enhancement within a state space model. Specifically, we introduce a DMB that adaptively learns sampling positions and scanning sequences during training. By dynamically adjusting the scanning path to prioritize important information, this block improves the acquisition and processing of pertinent input features. As a result, the model attains enhanced flexibility in its modeling capabilities while preserving linear computational complexity and a comprehen-sive global modeling capacity. Additionally, to augment the model's proficiency in managing intricate frequency characteristics, we integrate a frequency domain enhancement block (FEB) specifically engineered to equilibrate various frequency components. This module integrates a wavelet-guided spectral pooling module (WSPM), which not only amplifies frequency-domain information but also emphasizes mid-frequency signals aligned with human visual sensitivity. Fig. 2 presents a comprehensive depiction of the methodology we have proposed.

The key contributions of this study are delineated as follows:

  • A unified approach named FU-Mamba is developed by integrating dynamic scanning and frequency-aware modeling into a visual state space model for accurate and efficient dental image segmentation.

  • A DMB is introduced to adaptively adjust sampling positions and scanning sequences based on input features, thereby preserving spatial continuity and enhancing structural representation.

  • A frequency domain enhancement block is proposed to balance high- and low-frequency components by integrating wavelet-based decomposition and spectrum pooling, improving robustness under challenging imaging conditions.

Experimental results on the dental segmentation dataset (DSD) [14] and OralVision [15] dataset demonstrate that the proposed FU-Mamba framework effectively generates high-quality segmentation masks.

The layout of the subsequent sections is as follows: Section 2 offers a summary of studies focused on vision mamba and frequency domain analysis. Section 3 outlines the proposed methodology in detail. Section 4 presents the findings from the experiments conducted. Finally, Section 5 concludes the paper and explores possible avenues for future research.

References (43)