TBSD: Texture Basis Integrated Smooth Decomposition
- TBSD is a method that decomposes images into smooth backgrounds, quasi-periodic textures, and sparse anomaly components, enabling precise anomaly detection.
- It employs a two-stage pipeline—texture basis learning with convex optimization and anomaly detection via soft-thresholding—to robustly separate normal textures from defects.
- TBSD demonstrates superior performance over methods like RPCA, SSD, and FFT by achieving higher true-positive rates and lower false-positive rates on both simulated and real datasets.
Texture Basis Integrated Smooth Decomposition (TBSD) is a methodology for decomposing images with complex textured backgrounds into smooth, texture, and anomaly components, optimally designed for anomaly detection tasks in high-dimensional, textured images with smooth backgrounds and potentially sparse anomalies. The distinguishing feature of TBSD is the explicit integration of quasi-periodic texture models into the decomposition, which robustly separates normal texture from true anomalies and reduces misidentification rates relative to prior approaches (Song et al., 23 Dec 2025).
1. Mathematical Formulation and Decomposition Model
Let represent the observed image. TBSD decomposes as follows: where:
- : low-rank, smooth background,
- : high-rank, quasi-periodic texture,
- : sparse anomaly component,
- : i.i.d. noise.
TBSD operates via a two-stage pipeline:
- Texture Basis Learning: Estimates texture bases from defect-free images.
- Anomaly Detection: Uses learned bases to decompose new images and isolate anomalies.
Texture Basis Learning
Given defect-free and a smooth basis (e.g., tensor-product B-splines), coefficients and residual texture are estimated by minimizing: with a discrete roughness matrix (for smoothness). Updates use block coordinate descent with closed-form iterates: Here, is the entrywise soft-thresholding operator.
Post extraction, is decomposed into directional subspaces, yielding an overcomplete dictionary , where indexes dominant texture directions identified through statistical tests.
Anomaly Detection
For a new (possibly faulty) image , using learned and , the following is solved: with iterative updates for , , and , ultimately yielding the anomaly map .
2. Quasi-Periodicity in Texture Modeling
TBSD formally characterizes image textures via quasi-periodicity. For a finite 1D signal , periodicity is defined by strict repetition: . Quasi-periodicity generalizes this, permitting small bounded deviations: 2D quasi-periodicity is constructed via orientations of 1D quasi-periodic samples. Linear combinations preserve quasi-periodicity, given appropriate coefficient and tolerance bounds (via Cauchy–Schwarz).
Detection of dominant directions exploits the difference in standard deviation of line samples (transverse vs. along ridges). These directions, , define the axes for dictionary construction, ensuring texture bases capture quasi-repetitive structure.
3. Algorithmic Workflow
The TBSD methodology proceeds through distinct algorithmic stages:
a. Low-Rank Decomposition (Algorithm 1)
- Input: defect-free , smooth basis , penalties .
- Alternate minimization:
- Update via ridge regression on background.
- Refine via soft-thresholding.
Convergence due to strict convexity.
b. Direction Detection (Algorithm 2; LSERA + std-dev test)
- Rotate a sampling line by increments through .
- For each angle , compute .
- Select directions where exceeds threshold , yielding .
c. Mode-Clustering (Algorithm 3)
- For each , trace in direction , extract segments of length up to , and cluster patterns.
- Cluster centroids become dictionary atoms in .
Each subproblem (ridge, -soft-thresholding, density clustering) is convex, ensuring global convergence to a stationary point via block-coordinate descent.
4. Anomaly Detection Pipeline and Decision Rules
The detection pipeline is structured as follows:
- Project onto the background, removing .
- Reconstruct textures using sparse coding over :
- Apply soft-thresholding to the residual to obtain .
- Pixels with are labeled as anomalous. The fraction of anomalous pixels may be used for image-level decisions versus a global threshold .
5. Benchmarking and Quantitative Performance
TBSD has been empirically evaluated across both simulated and real data settings. Key metrics are true-positive rate (TPR) and false-positive rate (FPR). The principal benchmarks are Robust PCA (RPCA), Sum of Squared Differences (SSD), and Fast Fourier Transform (FFT) baselines.
Results Summary
| Dataset | Method | TPR | FPR |
|---|---|---|---|
| Simulation | TBSD | 0.43 | 0.09 |
| RPCA | 0.28 | 0.25 | |
| SSD | 0.29 | 0.075 | |
| FFT | 0.066 | 0.10 | |
| Real (MVTec) | TBSD | 0.58 | 0.022 |
| TBSD (best 5) | TBSD | 0.76±0.08 | 0.024±0.010 |
| RPCA | 0.33 | 0.246 | |
| SSD | 0.43 | 0.242 | |
| FFT | 0.46 | 0.082 |
TBSD consistently achieves superior TPR and lower FPR, particularly notable on real-world MVTec wood patches, where it reduces mis-detection of quasi-periodic textures and improves anomaly recall (Song et al., 23 Dec 2025).
6. Practical Considerations and Applications
Key characteristics of TBSD in practical deployments include:
- Training Data Requirements: Robust dictionary learning is achieved with small sets (5–10) of defect-free patches.
- Robustness: The method accommodates moderate variations in texture spacing, orientation, and illumination due to its quasi-periodic modeling.
- Parameter Tuning: Recommended ranges—
- (background smoothness): 0.05–0.2,
- (texture sparsity): 0.1–0.3,
- (anomaly sparsity): 0.01–0.1,
- (direction increments): .
- Degradation with parameter deviation is gradual.
- Application Domains: Wood-grain inspection, steel-rolling defect detection, anomaly detection in 3D printed surfaces, and non-destructive testing of aviation composites.
- Methodological Distinction: TBSD augments classical smooth + sparse decompositions with a learned quasi-periodic texture prior, nearly eliminating misclassification of normal texture and yielding state-of-the-art detection performance.
7. Context and Significance
TBSD addresses the limitations of prior anomaly detection methods on textured images, notably their higher rates of misidentification and dependence on extensive, structured datasets. The incorporation of a learned quasi-periodic texture prior enables efficient operation with small training sets and robust discrimination between quasi-periodic normal textures and true anomalies. The approach is theoretically justified via the properties of quasi-periodic signals and empirically validated with benchmark beating results on both synthetic and real-world datasets. This suggests a significant advance in industrial applications where textured backgrounds complicate conventional defect detection workflows (Song et al., 23 Dec 2025).