Abstract
Floc images are characterised by small targets, dense distributions, indistinct boundaries, defocus, and local adhesion. These characteristics can cause conventional image-processing methods and general object detectors to miss targets, produce false positives, and localise instances unreliably. This study proposes FLOCUS-DET for instance-level detection of dense and defocused flocs. In the backbone, C2DTME, a composite feature-enhancement module, combines dynamic feature calibration, attention modelling, multi-scale context aggregation, and frequency-domain enhancement to strengthen the representation of weak-textured, tiny, and defocused flocs. OAMF-RFPN performs adaptive multi-scale feature fusion to improve cross-scale information transfer while preserving small-object details in dense regions and areas with adhered flocs. FQLE-Head introduces quality-aware localisation estimation based on bounding-box regression distributions and calibrates classification confidence, thereby improving the localisation and ranking of proposals with blurred boundaries and dense targets. On a self-constructed dataset derived from real raw-water coagulation experiments, FLOCUS-DET achieved a precision of 91.8%, recall of 88.8%, F1-score of 90.3%, mean average precision of 96.1% at an intersection-over-union threshold of 0.5, and 86.9% when averaged over thresholds from 0.5 to 0.95, with an inference time of approximately 4.4 ms per image. Trends in model-derived floc indicators were generally consistent with changes observed during coagulation, and reflected dynamic variation during sedimentation. FLOCUS-DET provides a practical method for quantitative floc-image analysis and visual monitoring of coagulation processes under complex conditions.
1. Introduction
Coagulation–flocculation and sedimentation are essential processes for surface-water purification and advanced treatment of urban wastewater. According to classical coagulation theory, the destabilisation of suspended colloidal particles is primarily governed by four mechanisms: double-layer compression, charge neutralisation, interparticle bridging, and sweep flocculation [1,2]. Flocs undergo aggregation, growth, and breakage under hydraulic shear, and their morphological changes directly affect effluent turbidity, sedimentation efficiency, and chemical consumption [3]. Real-time variations in raw-water quality, organic components, and hydraulic conditions necessitate dynamic adjustment of coagulant dosage [4]. Insufficient dosing leads to substandard effluent, whereas excessive dosing increases chemical costs and excess sludge production [5]. Currently, online sensing systems for turbidity, pH, and ultraviolet absorbance at 254 nm (UV254) are widely applied in water-treatment plants for dosing regulation. However, long-term immersion causes dirt and biofouling on sensor probes, requiring regular manual calibration. During stormwater shock inflows and seasonal water-quality changes, delayed sensor data can easily result in uncontrolled chemical dosing. Therefore, rapid and stable quantitative characterisation of floc parameters is key to optimising the operation and management of coagulation processes.
Early quantitative analyses of flocs generally combined image pre-processing, threshold segmentation, and morphological operations. Flocs were separated from the background according to greyscale differences, and particle parameters were then statistically analysed [6,7]. Such methods are easy to implement, but highly dependent on manual parameter settings. In the presence of uneven illumination, stacked and adhered flocs, and slight lens defocus, these methods can easily cause missed detections of tiny flocs and incorrect segmentation of floc clusters, leading to limited generalisability in practical applications.
Recent studies have used machine learning and floc-image analysis to assess coagulation performance, characterise floc behaviour, and inform dosage regulation [8,9,10,11,12,13]. Related work has investigated floc-size distributions, image-texture relationships, and data-driven process modelling [14,15,16]. However, these approaches do not consistently provide reliable instance-level localisation and sizing of individual flocs under dense, adhered, or defocused imaging conditions. Meanwhile, most existing intelligent-recognition models are trained on high-quality, ideal images and are difficult to adapt to practical scenarios involving dense tiny flocs, image blur, and mutual floc adhesion.
To address these engineering limitations, this study develops FLOCUS-DET as a novel visual analysis tool capable of quantitatively revealing the previously hard-to-measure evolutionary dynamics of flocculation. Improvements are implemented in three dimensions: backbone feature extraction, multi-scale information fusion, and detection-result screening. From an optical perspective, defocus blur can be described by the point spread function (PSF), and the observed image can be expressed as
where Ib(x,y) is the blurred image, Is(x,y) is the ideal sharp image, h(x,y) denotes the PSF, n(x,y) represents image noise, and ∗ denotes convolution. In the frequency domain, the corresponding relationship is
where H(u,v) is the frequency response of the PSF. Defocus suppresses high-frequency components associated with floc boundaries and fine textures, thereby weakening the representation of small and blurred flocs [17,18].
Ib(x,y) = Is(x,y) ∗ h(x,y) + n(x,y),
B(u,v) = S(u,v)H(u,v) + N(u,v).
Comparative experiments with representative deep-learning detectors, traditional segmentation methods, module-ablation tests, and full-cycle sedimentation-monitoring experiments verify the reliability of the proposed method.
This work enables instance-level quantification of floc quantity and particle size, providing a feasible technical route for on-site, online floc monitoring and coagulation-process optimisation in water-treatment plants. Accordingly, the main objectives of this study are the following:
- (1)
- To develop an instance-level detection method for small, dense, adhered, and defocused flocs under complex imaging conditions;
- (2)
- To improve feature extraction, multi-scale feature fusion, and localisation-quality estimation, while maintaining a lightweight detection framework;
- (3)
- To evaluate the proposed method through comparative and ablation experiments and to investigate the use of model-derived floc indicators for characterising temporal changes during coagulation and sedimentation.
2. Materials and Methods
2.1. Data Preparation
2.1.1. Image Acquisition Conditions
To limit image distortion while maintaining consistent experimental conditions, a transparent vessel with internal dimensions of 12 cm × 10 cm × 18 cm was used as the reaction vessel, as illustrated in Figure 1. Polyaluminium chloride was used as the coagulant (PAC; 10% liquid solution; Jingmen Yangfeng Yuanda Water Purification Materials Co., Ltd., Jingmen, China). Coagulation and flocculation experiments were conducted using a ZR4-6 coagulation test stirrer (Shenzhen Zhongrun Water Industry Technology Development Co., Ltd., Shenzhen, China).
Figure 1.
Schematic diagram of the floc image-acquisition system.
Natural untreated raw water was collected from the cooperating water-treatment plant over multiple sampling events. For each batch of raw water, jar tests were carried out in the plant laboratory so that the PAC dosage could be adjusted according to the corresponding raw-water conditions. After the mixing and flocculation processes, the samples were transferred to the imaging system for image acquisition.
Floc images were acquired using the rear camera of a OnePlus 13 smartphone (model PJZ110; OnePlus, Shenzhen, China) as part of the imaging system. The imaging chamber was equipped with reflector panels, while the bottom and rear surfaces were covered with a matte black background to minimise unwanted reflections. Two auxiliary lamps were positioned on both sides of the imaging chamber, and their angles were adjusted according to water transparency, to provide stable illumination.
To confine the effective imaging depth, a black PVC baffle was placed 2 cm behind the front clear acrylic panel of the reaction chamber. The baffle created a permanent imaging zone for image recording. It decreased the number of flocs present in the optical path concurrently, and avoided too much overlap of the objects of interest, due to the chamber being thick. Consequently, floc images appropriate for further processing were obtained.
The collected images are highly consistent with on-site imaging characteristics, thereby improving the engineering applicability of the dataset.
2.1.2. Image Preprocessing and Dataset Construction
The original images were acquired at a resolution of 4096 × 3072 pixels and subsequently cropped into sub-images of 800 × 600 pixels. Images containing severe distortion, strong overexposure, or other obvious acquisition artefacts were excluded, whereas samples with slight defocus, weak reflection, and local illumination variation were deliberately retained, to preserve the diversity of practical imaging conditions. The dataset was annotated through a combination of manual annotation and AI-assisted pre-labelling, to improve annotation efficiency. All annotations were subsequently reviewed and corrected manually, to ensure labelling accuracy and consistency. Flocs with a minimum bounding-box side length of 2 pixels were annotated, whereas extremely small bright spots below this threshold were excluded, to reduce ambiguity with image noise. All annotated objects were assigned to a single class, flocs.
The final dataset consisted of 2004 images containing a total of 164,540 annotated floc instances. The dataset was randomly divided into training, validation, and test sets, at a ratio of 8:1:1. According to the number of annotated flocs in each image, the samples were further grouped into sparse, medium-density, and dense scenes. Specifically, 786 images contained 19–60 flocs, 885 images contained 61–120 flocs, and 333 images contained at least 121 flocs. This distribution ensured that the dataset covered a wide range of floc concentrations and spatial densities.
Representative samples from the constructed dataset are shown in Figure 2. The dataset contains three particularly common and challenging visual characteristics: dense floc distributions, adhered or partially overlapping flocs, and defocused flocs. In dense scenes, numerous small and medium-sized flocs are distributed within a limited field of view, resulting in small inter-instance distances. The adhered-floc samples display the fact that the neighbouring flocs are in close contact or partially overlapping, but, on the other hand, the defocused samples show that there exist multiple levels of edge blurring and contrast degradation. The enlarged areas of Figure 2 demonstrate that there are substantial changes in floc sizes, morphology, brightening of the flocs, and floc boundaries, which are illustrated in these samples. These samples show that the obtained database reflects the complexities associated with floc imaging, because it does not just consist of well-focused and isolated objects.
Figure 2.
Representative images of dense, adhered, and defocused flocs in the constructed dataset.
2.2. Construction of FLOCUS-DET for Instance-Level Floc Detection
2.2.1. Overall Architecture of FLOCUS-DET
The model of choice for being the baseline model is YOLO11 [19] because it offers a very good detection efficiency with its compact one-stage design architecture. In addition, it is ideal for our case, as it meets the necessary balance between great detection performance, computational cost, and efficiency in inference. The reason the detection system is important is that floc-monitoring systems can be deployed in devices where the availability of resources is limited. Moreover, the model has a modular architecture which provides great opportunities for the required modifications of the model with respect to feature extraction, multi-scale feature fusion, and detection-head development. Nevertheless, being a general-purpose object detector model, YOLO11 cannot perform reliable detection of small flocs and precise localization of the targets in cases of insufficient texture, presence of adhesion, and defocus blur. Nevertheless, three improvements were suggested regarding the design of FLOCUS-DET.
The overall architecture of FLOCUS-DET is illustrated in Figure 3. To address the challenges of scale variation, dense distributions, and local defocus in floc images, targeted modifications are introduced into the backbone–neck–head framework of YOLO11. The input image first passes through the backbone, where Conv and C3k2 modules progressively downsample the feature maps to extract representations at different scales. At the end of the backbone, high-level features processed by SPPF are then fed into the C2DTME module, to enhance the representation of weak-textured, densely distributed, and defocused flocs. In the neck, an OAMF-RFPN multi-scale feature-fusion structure is constructed to improve the original YOLO11 feature-aggregation scheme based on upsampling, concatenation, and convolutional downsampling. Feature pyramid networks and path aggregation networks are established approaches to multi-scale feature fusion [20,21]. First, the high-level P5 features are upsampled by SFA and fused with P4 features through AMF, followed by a C3k2 module for further feature refinement. The resulting features are then upsampled again by SFA and integrated with P3 features and shallow P2 features downsampled by FGR, enabling three-branch feature fusion through AMF. Specifically, FGR performs space-to-depth downsampling, to reduce the loss of fine-grained information during reductions in spatial resolution. The fused features are subsequently processed by COE and C3k2, to strengthen the representation of small-scale flocs. In the bottom-up aggregation stage, ESCF is employed for downsampling, while AMF progressively integrates features from different levels, producing three detection-feature maps at P3, P4, and P5. Finally, the FQLE-Head receives the three-scale feature maps as inputs for floc classification and bounding-box regression while incorporating the estimation of the quality of localisation to estimate the reliability of predicted bounding boxes. Consequently, FLOCUS-DET combines high-level semantics with low-level fine-grained features, to enhance the detection and localisation of the extremely dense and small flocs.
Figure 3.
Overall architecture of FLOCUS-DET. C2DTME denotes the proposed composite feature-enhancement module, OAMF-RFPN denotes the proposed multi-scale feature-fusion neck, and FQLE-Head denotes the proposed quality-sensing detection head. FGR denotes Fine-grained Feature Reorganization, SFA denotes Soft Feature Alignment, AMF denotes Adaptive Multi-scale Fusion, ESCF denotes Efficient Spatial-Channel Fusion, and COE denotes Cross-scale Omni-kernel Enhancement.
2.2.2. C2DTME Module
Characteristics of floc images include lack of textures, small defocus, dense occlusions, and local reflections. From an optical perspective, defocus blur acts as a low-pass filter because of the point spread function, and leads to the significant loss of high-frequency information such as sharp contours [17,18]. Such degradations result in pseudo-responses on the level of semantic features that disturb multi-scale fusion and bounding-box regression. To solve the identified problem, we proposed the composite enhancement module C2DTME, which was placed after the SPPF layer at the end of YOLO11 backbone. Since the application of C2DTME was related to feature re-screening at a deep semantic level, we achieved background noise suppression and better visibility of floc-related structures without disturbing the extraction of shallow fine-grained texture.
As illustrated in Figure 4, the proposed C2DTME module adopts a CSPNet-inspired split-and-fuse architecture [22]. To enhance feature representation for dense, small-scale, and defocused flocs while maintaining a lightweight design, we propose four task-oriented submodules: Dynamic Feature Calibration (DFC), Token Statistical Interaction (TSI), Multi-scale Morphological Enhancement (MME), and Enhanced Frequency Refinement (EFR). The enhancement branch integrates these submodules so that the feature representation gradually improves through the activation’s calibration, statistical interactions, multi-scale spatial aggregation and frequency-domain refinement processes. The residual connections are used to maintain information of the features during the process of enhancement. In conclusion, a convolution is used to fuse the enhanced features that are concatenated with the features emitted by the bypass branch.
Figure 4.
Structure of the C2DTME module. DFC denotes Dynamic Feature Calibration, TSI denotes Token Statistical Interaction, MME denotes Multi-scale Morphological Enhancement, and EFR denotes Enhanced Frequency Refinement. FFT and IFFT denote fast Fourier transform and inverse fast Fourier transform, respectively.
The overall process is expressed as
where the input feature is , B denotes batch size, and C1, H and W represent channel number, feature map height and width, respectively.
c = ⌊eC1⌋, x2c = Conv1×1(x), [a,b] = Split(x2c)
y = Conv1×1(Concat(a,(n)(b)))
The split cross-stage fusion design follows the idea of CSPNet [22], which improves learning efficiency and gradient stability with low extra overhead, and is especially suitable for floc-detection tasks with a large number of instances per image and strong background interference.
In the enhancement branch, the module operates according to the following path: dynamic calibration → selection of tokens → aggregation over multiple scales → enhancement in frequency domain and use of gating → re-aggregation. Inspired by Dynamic Tanh [23], DFCs applied prior to the attention and feed-forward branches, in order to adaptively reduce the amplitudes of responses and calibrate channels. It suppresses the abnormal activities generated by the fluctuations of illumination and reflections from objects present in the scene, and avoids the failure of the subsequent attention mechanism caused by bright places or noise.
The formulation of DFC is
where α is a learnable scaling coefficient, γ and β are channel-wise affine parameters, and ⊙ denotes element-wise multiplication.
DFC(x) = tanh(αx)⊙γ + β,
Then, using TSI, the distinctive characteristics are flattened into spatial tokens to enable selective feature modelling. The TSI model generates weight according to the qualities of tokens that lead to the essential features of flocs, despite the background masking and the adhesion that blocks the features. The input features are analysed and set up in several attention heads through a linear projection. Subsequently, token-level statistical weights are calculated through feature normalisation, squared activation aggregation, and Softmax normalisation. These weights are combined with second-order feature statistics to generate adaptive attention coefficients, which are used to recalibrate token representations. Finally, the refined features are integrated through a linear projection. Unlike conventional self-attention, TSI avoids explicit pairwise token-similarity computation, reducing computational complexity, while enhancing statistical feature representation [24].
The formulation of TSI is
where X and Y denote the input and output features, respectively, Wh represents the projected features of the h−th attention head, denotes the normalized features, πh represents the token statistical weights, ηh is a learnable scaling parameter, N and d denote the number of tokens and the feature dimension per attention head, respectively, Ah represents the adaptive attention coefficients, ε is a small constant for numerical stability, Linear denotes linear projection, Concat represents feature concatenation, and ⊙ denotes element-wise multiplication.
The MME module employs multi-kernel depthwise convolutions (3/5/7) and lightweight projection to aggregate multi-scale context [25]. MME is based on a multi-scale filtering strategy. First, the input features are normalised and projected into a lower-dimensional space to reduce computational complexity. Subsequently, three parallel depthwise convolutions with kernel sizes of 3 × 3, 5 × 5, and 7 × 7 extract spatial features at different scales. The resulting features are aggregated through average fusion and residual connections, followed by a 1 × 1 convolution for channel interaction. Finally, the refined features are projected back to the original channel dimension and combined with the input features, to enhance multi-scale feature representation.
The formulation of MME is
where X and Y denote the input and output features, respectively, LN represents layer normalization, s1 and s2 are learnable scaling parameters, D and U denote channel down-projection and up-projection operations, respectively, DWConvk×k resents depthwise convolution with a kernel size of k × k, and Conv1×1 denotes pointwise convolution for channel-wise feature fusion.
The EFR module introduces patch-level FFT frequency-domain modulation on the basis of gated feed-forward enhancement [26]. Learnable frequency-domain weights adaptively enhance different frequency bands, compensating for high-frequency attenuation caused by defocus and strengthening edge and weak-texture responses of tiny flocs. First, the input features are processed by a 1 × 1 convolution and a 3 × 3 depthwise convolution, to extract local spatial information. The produced characteristics are separated into two segments and combined using the GELU-based gating mechanism. A 1 × 1 convolution to contribute to the channel-projection operation follows. After that, the characteristics are shaped and changed into frequency domain-utilizing FFT techniques, and where learnable frequency weights are applied to influence some of the frequency components in a selective way. Finally, the modulated frequency-domain features are reconstructed through the inverse FFT and reshaped to their original spatial dimensions.
The formulation of EFR is
There is also a new MME module used in the process of RE-Aggregation, in order to reduce excess sharpening and noise amplification and thereby assist with stabilising the detection head regression.
Thus, it was demonstrated that the C2DTME process provides directed improvement in relation to pressing issues of floc detection (such as the size of the target, its high density, and defocused image), while preserving the overall size of the output and the number of channels.
2.2.3. OAMF-RFPN Neck for Multi-Scale Fusion
In order to achieve what is required for floc pictures with specific properties like small targets that are closely located, very small amount of blur, adhesion of particles, or influence of background, we offer OAMF-RFPN Neck to optimize multi-scale fusion of features. As shown in Figure 5, we applied a bi-directional pyramid model to make cross-scale communication stronger, but within narrow constraints of computational efficiency [27]. The Neck needs four feature maps from P2/4, P3/8, P4/16, and P5/32. To facilitate feature saving and quality of fusion, we built five different task-oriented submodules: Fine-grained Feature Reorganization (FGR), Soft Feature Alignment (SFA), Adaptive Multi-scale Fusion (AMF), Efficient Spatial-Channel Fusion (ESCF), and Cross-scale Omni-kernel Enhancement (COE). Of all submodules, it is SFA that calibrates features after up-sampling so that the influence of high-level semantic information that may disturb tight details in space is mitigated. AMF allows us to make the contributions of different levels of pyramid adjustable and complementary, integrating different features of shallow space and deep semantic information at the same time, making the representation of information obtained in floc fields better.
Figure 5.
Structure of the OAMF-RFPN neck. FGR denotes Fine-grained Feature Reorganization, SFA denotes Soft Feature Alignment, AMF denotes Adaptive Multi-scale Fusion, ESCF denotes Efficient Spatial-Channel Fusion, and COE denotes Cross-scale Omni-kernel Enhancement.
FGR employs space-to-depth downsampling [28] to preserve fine-grained information during feature transformation and reduce information loss for small targets.SFA relies on scale-related calibration of upsampled features, to limit interference resulting from different levels. ESCF on the other hand, mixes the standard and depth convolutions along with channel shuffling [29].
There is also the idea of AMF being proposed for further improvement, taking into consideration different features coming from distinct pyramid levels. Firstly, pointwise convolutions are applied for alignment of the input features and unification. Secondly, global average pooling and MLP are used for obtaining general contextual information and for generating some adaptive attention weights with the help of SoftMax.
The formulation of AMF is
where Fi and denote the input and aligned features of the i-th branch, respectively, 𝓡i represents spatial resolution alignment, 𝓒1×1 denotes pointwise convolution, S represents the aggregated feature map, GAP and MLP denote global average pooling and multilayer perceptron, respectively, Ω represents the adaptive feature modulation weights, and ⊙ denotes element-wise multiplication.
Furthermore, we introduce COE to strengthen feature representation for defocused flocs with indistinct boundaries. COE integrates CSP-style feature partitioning with multi-receptive-field enhancement [30]. Specifically, we divide the input features into an enhancement branch and a bypass branch. The enhancement branch captures complementary spatial information across different receptive fields, while the bypass branch retains the original feature information. Finally, we concatenate the enhanced features with the bypass features, and apply pointwise convolution to obtain refined multi-scale representations for subsequent detection.
The formulation of COE is
where X and FCOE denote the input and output feature maps, respectively, Splitc represents channel-wise feature partitioning, 𝓒1×1 denotes pointwise convolution, Ze and Zb represent the enhancement and bypass features, respectively, G and L denote the global and large-receptive-field features, DCAM and FSAM represent dual-domain channel attention and frequency-based spatial attention, respectively, DWConv1×1 denotes depthwise convolution with a kernel size of (p,q),∈𝓚 represents the set of convolutional kernel configurations, K denotes the large-kernel size, H represents the aggregated multi-receptive-field features, and ‖ denotes feature concatenation.
In summary, the OAMF-RFPN Neck enhances cross-scale information flow and fusion alignment while maintaining controllable computational overhead, provides more stable multi-scale feature inputs to the subsequent detection head, and is particularly beneficial for the recall and localisation stability of dense, small flocs.
2.2.4. Detect_FQLE Quality-Sensing Detection Head
The overall architecture of FQLE-Head is illustrated in Figure 6. To address the detection challenges posed by densely distributed small flocs, narrow inter-object spacing, indistinct boundaries, and mild defocus, we propose the FQLE-Head to improve localisation reliability and detection-confidence estimation. Based on the YOLO11 [19] decoupled detection head, we introduce a lightweight quality-aware mechanism at three detection scales, P3, P4, and P5. The FQLE-Head collects statistical data from bounding-box regression distributions, which are used to characterize localization uncertainty based on maximum-probability values and means statistics [31,32]. We then use a lightweight multilayer perceptron to estimate localization quality, and combine this with classification confidence to produce quality-aware detection scores. The overall goal of the design is to improve the ranking of candidate bounding boxes while decreasing the mis-suppression of precisely localizing flocs during non-maximum suppression, thus improving instance-level detection reliability for dense and defocused scenarios.
Figure 6.
Structure of the FQLE-Head. MLP denotes multilayer perceptron, and BBox denotes bounding box.
The formulation of FQLE-Head is
where Rw and Pw denote the regression logits and probability distributions for each bounding-box side, respectively, TopKk and μk represent the top-K probabilities and their mean, Z denotes the distribution statistics, W1 and W2 are learnable weight matrices, Δ and σ denote ReLU and Sigmoid, q represents the estimated localization quality, and Scls and SFQLE denote the classification and quality-aware confidence scores, and ⊙ denotes element-wise multiplication.
3. Results and Analyses
3.1. Experimental Environment
The experiments in this paper were conducted on the Windows 11 operating system using an Intel(R) Core(TM) i9-13900KF CPU (Intel Corporation, Santa Clara, CA, USA), an NVIDIA GeForce RTX 4090 GPU (NVIDIA Corporation, Santa Clara, CA, USA), and 24 GB of video memory. The software environment primarily consisted of Python 3.11.11, PyTorch 2.6.0, CUDA 12.4, and Ultralytics 8.3.9. The training, validation and inference for all studied models were conducted on the same experimental platform. The comparisons between various models, data splits used and evaluation measures were held constant, while the evaluation involved detection accuracy statistics, number of parameters used, computational costs, and time for a single-image inference.
3.2. Evaluation Criteria
The calculation formulas are given below:
where TP denotes the number of correctly detected floc targets, FP denotes the number of background or non-target regions that are mistakenly detected as floc targets, and FN denotes the number of real floc targets that are not detected. P stands for the precision rate, R is the recall rate, AP represents the average precision of a certain category using various confidence thresholds, and mAP represents the average of APs for different categories. Since the current case pertains to the detection task of only one category (i.e., flocs), n is equal to 1.
In object detection, mAP is widely used as a standard metric for evaluating detection performance. In this work, we employ two mAP metrics based on Intersection over Union (IoU). The first is mAP@0.5, where a predicted bounding box is considered a true positive if its IoU with a ground-truth box is at least 0.5, subject to one-to-one matching. This relatively lenient IoU threshold places greater emphasis on target detection, rather than highly precise bounding-box localisation. The second is mAP@0.5:0.95, which calculates the average AP across ten IoU thresholds ranging from 0.5 to 0.95 in increments of 0.05. By incorporating stricter IoU thresholds, these metrics place higher requirements on bounding-box localisation accuracy and provide a more comprehensive evaluation of detection performance. Therefore, mAP@0.5:0.95 is particularly useful for evaluating floc-detection models in complex scenes characterised by densely distributed small targets, blurred boundaries, and overlapping or adhered flocs.
3.3. Comparative Experiments with Mainstream Deep-Learning Models
In order to compare FLOCUS-DET with other mainstream object-detection models, different classes of object-detection systems were chosen. The classes include the classical two-stage object-detection systems Faster R-CNN [33] and Cascade R-CNN [34], the one-stage object-detection systems EfficientDet [35], RetinaNet [36], and TOOD [37], and the end-to-end transformer-based system, RT-DETR [38]. Moreover, the lightweight designs YOLOv5n, YOLOv8n, YOLOv9t [39], YOLOv10n [40], YOLO11, and YOLOX-Nano [41] were also taken into account. The recent improvements in the system are brought by the newly proposed architectures such as YOLO-RACE, Gold-YOLO-N [42] and YOLO-RECAP.
The comparison results can be further seen in Table 1, where it can clearly be seen that there are differences in performances among the detection systems. The two-stage detector, Faster R-CNN, has a mAP@0.5:0.95 value of 72.2%, but the number of parameters used along with the value of GFLOPs parameters are quite high, with the values being 41.299 M and 133.9GFLOPs, respectively. The mAP values of Cascade R-CNN and RetinaNet are lower than that of Faster R-CNN, since the values obtained by the two systems are 64.5% and 58.6%, respectively. On the other hand, the TOOD system has a recall of 86.9% and F1-score of 86.1%, as well.
Table 1.
Comparison of mainstream deep-learning models.
Nevertheless, it should be pointed out that the EfficientDet system has a low computational number; however, the mAP obtained is only 56.0%, lower than the detection obtained by RT-DETR system, which is 82.1%. The lightweight designs performed better than other computer systems, with the mAP values of YOLOv8n and YOLO11 being equal to 83.3% and 82.8%, repectively. YOLO9t and YOLO10n have an equivalent amount of parameter values that are, respectively, equal to 1.730 M and 2.265 M, alongside the mAP values of 80.4% and 80.9%.
YOLOX-Nano achieves a high Recall of 92.9%, but its relatively low Precision of 64.1% indicates a considerable number of false-positive detections. YOLO-RACE and the re-implemented YOLO-RECAP achieve mAP@0.5:0.95 values of 78.6% and 79.2%, respectively, while Gold-YOLO-N reaches 66.7%. Although Gold-YOLO-N achieves the highest Recall, of 95.1%, its Precision is only 69.7%, indicating a trade-off between target recovery and false-positive suppression.
In comparison, FLOCUS-DET achieves mAP@0.5 and mAP@0.5:0.95 values of 96.1% and 86.9%, respectively, with 2.856 M parameters and 9.1 GFLOPs. These results are higher than those of all compared models on both mAP metrics. Compared with the original YOLO11 baseline, the two metrics increase by 4.4 and 4.1 percentage points, respectively, demonstrating improved overall detection accuracy.
3.4. Experimental Comparison of Traditional Image-Recognition Methods and FLOCUS-DET
To further verify the advantages of FLOCUS-DET over traditional image-analysis methods, four typical traditional image processing workflows, namely Otsu-Contour, Adaptive-Contour, Watershed and Particle Analysis workflow, were selected as controls. These represent the common analysis approaches of global threshold segmentation, local threshold segmentation, adhesion target separation and particle statistics, respectively. The experiments were conducted on the same validation set, which contains 200 floc images and 14,347 labelled examples, with an average of 71.74 floc targets per image.
The comparison results are presented in Table 2. Overall, the traditional image-analysis methods showed limited and unstable performance in floc detection. Otsu-Contour has a reasonably high recall, of 72.51%, while displaying a low value in terms of precision, at 39.97%, which shows a large number of overestimated floc counts. The performance of Adaptive-Contour was found to be below average, since the precision, recall, and F1-score reached very low values, of 0.15%, 0.96%, and 0.26%, respectively. The method proved to be very sensitive to illumination conditions and background noise. The best performance among the methods used belonged to Watershed, with precision of 67.73% and recall of 53.34%, as shown in the F1-score of 59.68%. However, it was also found to be underestimated in terms of floc count. Particle Analysis achieves a lower floc-count MAE than Otsu-Contour and Adaptive-Contour. However, its Precision and Recall remain relatively low, at 33.9% and 45.5%, respectively, indicating limited instance-level detection accuracy.
Table 2.
Results of the comparison of traditional methods.
In contrast, FLOCUS-DET showed clear advantages in detection accuracy and stability, with its Precision, Recall and F1-score reaching 91.80%, 88.80% and 90.28%, respectively, exceeding those of the four traditional methods. Relative to those of Watershed, which has the best overall performance among the traditional methods, the Precision, Recall and F1-score of FLOCUS-DET were higher by 24.07, 35.46 and 30.60 percentage points, respectively. Although Otsu-Contour has the shortest average processing time, of 1.94 ms/img, FLOCUS-DET maintains high detection efficiency, with a single-image processing time of about 4.4 ms/img. Taken together, the traditional image-analysis methods rely on threshold settings, grey-scale distributions and morphological parameters, and have difficulty consistently handling dense, small-scale floc images with ambiguous boundaries; FLOCUS-DET can identify complex flocculent targets more consistently through data-driven feature learning and multi-scale target characterisation, and is more suitable as a core method for flocculent image detection and subsequent morphological analysis.
Recent research has established the usefulness of floc images for data-driven coagulation monitoring. Deep-learning methods often treat the floc image as a representation of process status, and use image-level information to predict coagulation performance, effluent turbidity, flocculation state, and coagulant dosage [8,9,10,11,12,13,16]. While these methods are effective for image-level or process-level prediction, they generally do not explicitly localise and quantify individual flocs. Yet this distinction is important, since residual flocs and their population characteristics are associated with coagulation performance and residual turbidity [12,15].
At the same time, traditional methods of particle-level image analysis permit measurements of individual flocs, but obtaining accurate geometric measurements of flocs in this way remains challenging. Earlier research using image-analysis methods has excluded out-of-focus particles and very small particles that could not be measured reliably [43]. Even though such filtering improves the accuracy of floc-size measurements, it does not allow the complete original floc population to be included in a subsequent analysis. FLOCUS-DET sets a different goal.
3.5. Ablation Experiments
According to Table 3, under the same training strategy and validation-set settings, the baseline YOLO11 achieves a Precision of 87.3%, Recall of 85.3%, mAP@0.5 of 91.7%, and mAP@0.5:0.95 of 82.8%. Single-module ablation shows that Precision and Recall improve to 89.8% and 86.7% after adding C2DTME, and mAP@0.5 improves to 94.7%, while mAP@0.5:0.95 increases to 83.2%. After Detect_FQLE is incorporated independently, Precision/Recall reach 88.5%/87.4%, with mAP@0.5 at 94.6% and mAP@0.5:0.95 at 83.9%. When the OAMF-RFPN Neck is integrated independently, mAP@0.5:0.95 improves to 84.3%, while mAP@0.5 reaches 92.3%. In the combined experiments, the mAP@0.5:0.95 values for C2DTME + Neck and Neck + Head are 84.8% and 85.4%, respectively. Finally, the full model, FLOCUS-DET, achieves the best performance across all detection accuracy metrics: 91.8% for Precision, 88.8% for Recall, 96.1% for mAP@0.5, and 86.9% for mAP@0.5:0.95, indicating that the three improvements jointly achieve superior overall detection performance. To further evaluate the contribution of individual components, fine-grained ablation experiments were conducted on C2DTME (Table 4) and OAMF-RFPN (Table 5). Ablated lightweight components were replaced with conventional operations where necessary, to maintain structural consistency; therefore, ablation does not necessarily reduce model complexity. For C2DTME, removing TSI, DFC, MME, or EFR decreased mAP@0.5:0.95 from 83.2% to 82.3%, 82.1%, 82.2%, and 82.6%, respectively, indicating that these components make complementary contributions to enhancing overall detection performance. In OAMF-RFPN, AMF has the largest impact on detection accuracy, as removing it reduced mAP@0.5:0.95 from 84.3% to 82.2%, while increasing the parameters and FLOPs from 2.774 M/9.0 GFLOPs to 3.099 M/12.3 GFLOPs, indicating its contribution to both instance feature fusion and computational efficiency. Removal of FGR reduced mAP@0.5:0.95 to 83.9%, while removing SFA and COE reduced it to 83.8% and 84.0%, respectively, indicating that these components also contribute to detection performance. These results suggest that the components have different effects on detection accuracy and computational efficiency, with AMF making the most substantial contribution to the overall performance of OAMF-RFPN.
Table 3.
Main module-ablation experiment results.
Table 4.
Component-level ablation results of C2DTME.
Table 5.
Component-level ablation results of OAMF-RFPN.
The proposed modules differ in their contributions to detection performance. C2DTME is inserted after SPPF, to enhance high-level feature representations, particularly for weak-textured and mildly defocused flocs. Its introduction improves Precision, Recall, and mAP@0.5. Although mAP@0.5 increases by 3.0 percentage points, mAP@0.5:0.95 increases by only 0.4 percentage points. This suggests that improved feature representation and target recognition do not necessarily lead to equally large improvements in bounding-box localisation accuracy under stricter IoU thresholds. In contrast, OAMF-RFPN enhances cross-scale feature alignment and multi-source feature fusion, improving mAP@0.5:0.95 by 1.5 percentage points over the baseline, when used independently.
Detect_FQLE introduces localisation-quality estimation, to improve candidate bounding-box ranking. Although it improves Precision and mAP@0.5, its independent contribution to high-IoU localisation accuracy is relatively limited. The combined experiments also show that the performance gains of individual modules are not simply additive, which may be associated with interactions between feature enhancement, multi-scale fusion, and detection-score calibration. Nevertheless, the complete FLOCUS-DET model achieves the highest overall detection accuracy, indicating that these modules provide complementary benefits in the complete architecture.
3.6. Visualisation and Analysis of the Model
In order to assess the performance of FLOCUS-DET in the context of detection and its capability in feature representation, this section presents qualitative visual analysis from three perspectives. These perspectives include evidence regarding the detection performance of leading deep-learning models, comparisons made with classical methods of image processing, and a study of visual representation of feature outputs coming from various configurations of the model. The analyses provide supporting visual evidence for the working of FLOCUS-DET with regard to detection of dense, sticking, and unfocused flocs.
3.6.1. Visualisation of Mainstream Deep-Learning Model Results
To fully illustrate detection abilities of different models in complex floc situations, the threshold of prediction confidence was lowered properly for visualization, in order to conserve detection results for defocused, low-contrast, and weakly textured flocs. All models were tested under the same visualization parameters, so that the results could be properly compared. YOLO family, RT-DETR, and EfficientDet have been tested with the confidence threshold of 0.1 and IoU threshold of 0.30, if applicable. The parameters were used solely for visualization, and did not impact the final objective evaluation. Only bounding boxes were used in the results without displaying category labels and degree of confidence. SSD300 was excluded from visualization comparisons, due to the fact that it produced nearly zero valid floc detections.
As seen from Figure 7, three typical detection errors were identified: missing detection, false detection, and duplicate detection. Missing detection happens typically with small-sized, weakly textured or defocused flocs; false detection indicates false identification of background areas as flocs, and duplicate detection means that multiple bounding boxes are assigned to a particular target. Moreover, closely located or touching flocs may be either detected as a single detection or misplaced.
Figure 7.
Comparison of mainstream deep-learning model visualisations.
To summarize, the visualization results show that different models have different statistics concerning detection errors in complicated floc situations. Faster R-CNN and EfficientDet showed rather poor results in dense situations, as they missed more small-sized flocs when compared with YOLO series. Although YOLO-based models exhibit better results concerning detection of small flocs, they still show a certain number of missed detections, false detections, and incorrect localization of adhered flocs. Among the other comparison models, TOOD achieves a detection performance comparable to that of the YOLO series, while the remaining models exhibit greater limitations in complex floc scenes.
On the other hand, FLOCUS-DET showed more precise and stable detection results in adhered, dense, and defocused floc cases. FLOCUS-DET identifies small and low-contrast flocs, distinguishes targets that touch one another much better, and effectively minimizes the number of misses and duplicates.
3.6.2. Visualisation of Traditional Image-Recognition Methods
In order to examine the effectiveness of classic image-recognition techniques in the contexts of complicated flocculation processes, this section will present the results of the implementations carried out based on the four different conventional image-processing methods, that is, Otsu-Contour, Adaptive-Contour, Watershed, and Particle Analysis, among others. The methodologies are tested in the same conditions of validation set and image input as the ones mentioned in the preceding section. Otsu-Contour uses global Otsu threshold segmentation combined with contour detection to generate target frames, Adaptive-Contour uses local adaptive thresholding for foreground extraction, and Watershed combines the distance transform and the watershed algorithm based on threshold segmentation, to separate adherent targets; Particle Analysis, on the other hand, refers to the traditional particle analysis process, and generates target regions through background deduction, threshold segmentation, and particle statistics. Since traditional image-analysis methods usually do not output confidence-based prediction results, the visual comparison in this section is based primarily on the final generated bounding boxes.
As shown in Figure 8, three typical types of detection errors in traditional image-recognition methods are labelled in this paper: missed detection, false detection, and localization error. Missed detection mainly occurs when the model fails to identify weakly textured, small-scale, or out-of-focus flocs; false detection mainly occurs when bright spots in the background, local noise, and floc edge fragments are mistakenly recognised as targets; and localization error mainly occurs when the prediction frame fails to cover the entire real floc region, and only parts of the boundaries are detected or there is an obvious localization bias. Compared with the deep-learning detection model, the traditional image-recognition method is less likely to produce repeated detections, but its target boundary-positioning stability is clearly insufficient, and it is prone to target-separation failure and incomplete local positioning in complex scenes.
Figure 8.
Visualisation comparison of the traditional method.
According to the examination results of the visualisation process, Adaptive-Contour is presented with the worst detection success rate. The analysis proves that Adaptive-Contour is very sensitive to the changes in the local in the dense floc scenes. Along with the background noise interference, Adaptive-Contour produces many fragmented detections that are invalid. As for out-of-focus scenes, blurry edges contribute to even greater fluctuations in the local threshold, thus increasing the number of false detections and fragmented contours. In comparison, Otsu-Contour, Watershed and Particle Analysis methods are more successful in dense floc scenes. They are capable of reacting to the medium-scale presence of flocs. However, their performance in relation to the detection process still fails when compared to the performance of YOLO series and other advanced models one creates with the use of deep-learning technologies.
The analysis of behaviour of traditional image-based methods in out-of-focus scenarios shows that they lack accuracy when determining flocs that are out of focus. During the demonstration of the model in the out-of-focus scenes, in which grey scales become unclear, the traditional methods frequently misclassify unsatisfactorily textured flocs as the background. Moreover, the analysis reveals that traditional methods are not reliable enough in separating the targets at the point of adhesion of numerous flocs at the margins of the shadows. Some detection frames cover only local regions of the flocs, and therefore cannot identify the flocs completely or fully characterise the true target boundaries. In addition, when both large-scale and small-scale flocs appear in the same image, traditional methods are less adaptable to cross-scale targets, and small target regions are more likely to be neglected because of the influence of thresholds and morphological parameters.
The reviewing of the relevant results of this broad visualization indicates that traditional methods of image analysis can perform mediocre floc segmentation in certain high-contrast conditions of image capturing, but they show much dependence upon thresholding level, grey-scale distribution, and morphological parameters, which greatly limits their use in complex conditions of observation. Meanwhile, the differences in productivity are demonstrated more vividly for the FLOCUS-DET in this research regarding out-of-focus floc detection, as well as separating adhered flocs and detecting target objects across scales.
3.6.3. EigenCAM-Based Visualization of Module Ablation
Eigen CAM [44] has been used to better understand the contributions of the proposed modules through the visualization of feature responses in typical images of flocs with different densities, sizes, stickiness, and focus conditions. Unlike Grad-CAM [45], EigenCAM does not require gradient information.More particularly, as we can see from Figure 9, feature responses captured using the YOLO11 baseline appear to be quite diffuse in comparison, especially in images with small and weak-textured flocs. When C2DTME (A) is used, in addition, the responses concentrate more on floc targets showing better feature representation. The use of OAMF-RFPN (A + B) adds to the advantage, increasing the spatial responses with regard to flocs of different scales, especially in highly sticky areas. Finally, the FLOCUS-DET model (A + B + C) shows targeted responses and less interference from the background for a variety of scenes, as compared to earlier cases. The above results, combined with the ablation tests, thus prove the complementary role of the proposed modules in improving performance in the detection of flocs.
Figure 9.
Feature-response visualizations of floc images under different combinations of the proposed modules. (a) Flocs of varying sizes at medium density; (b) relatively dense flocs; (c) dense small-scale flocs; (d) large-scale and adhered flocs; (e) high-contrast flocs; (f) defocused flocs. Original denotes the input images, and Base represents the baseline YOLO11 model. A, B, and C denote C2DTME, OAMF-RFPN, and FQLE-Head, respectively. A + B represents the combination of C2DTME and OAMF-RFPN, while A + B + C corresponds to the complete FLOCUS-DET model. Warmer colours indicate relatively stronger feature responses in the EigenCAM visualizations.
3.7. Instance-Level Dynamic Analysis of the Natural Floc-Settlement Process
As illustrated in Figure 10, during the static settling period from 0 to 1665 s, one image frame was recorded every 5 s using a fixed region of interest (ROI) of 1200 × 900 pixels. Supernatant samples were collected from the cylinder at equal time intervals, and turbidity was measured using a Hach 2100Q portable turbidimeter (Hach Company, Loveland, CO, USA). The turbidity measurements were analysed together with four model-derived indicators, namely, total floc number, total bounding-box area, median bounding-box area, and the proportion of large flocs, to characterise the temporal evolution of the settling process. The bounding-box-derived area was used as an approximate geometric indicator, and does not represent the true projected area of irregular flocs. For the temporal analysis, flocs with a bounding-box area below 100 pixels2 were classified as small flocs, whereas those with a bounding-box area of at least 500 pixels2 were classified as large flocs. Flocs with bounding-box areas between 100 and 500 pixels2 were treated as intermediate-sized flocs. The large-floc ratio was calculated as the number of large flocs divided by the total number of detected flocs in each frame.
Figure 10.
Dynamic analysis of natural sedimentation processes.
In the swift settling stage from 0 to 900 s, dense flocs settled quickly and moved out of the observation region, which led to a reduction in the overall floc count and total bounding-box area in the ROI. The share of large flocs reduced as well, which correlated with the sharp reduction in the turbidity of the supernatant. Very few minor flocs were still floating, and there was a decrease in the median bounding-box area, as well.
In the next phase of settling, from 900 to 1665 s, most of the flocs that were likely to settle had already left the observation area, and only minor floating particles were visible in the water. The number of flocs and the total bounding-box area remained relatively stable, whereas the level of turbidity continued to decrease slowly.
Crucially, the instance-level detection capability may provide quantitative indicators that help distinguish patterns associated with two fundamentally different physical processes: floc breakage and floc settling. By tracking temporal changes in the detected floc population, we examined two empirical indicators based on the rate of change in median bounding-box area (ΔAmedian/Δt) and the generation rate of small flocs (ΔNsmall/Δt). During the 0–900 s rapid-sedimentation stage, the decrease in total floc count was primarily driven by settling. This was characterised by a gradual decrease in median bounding-box area (ΔAmedian/Δt ≈ −0.5 pixels2/s) as large, dense flocs left the observation window, while the number of small flocs remained relatively stable or decreased slowly. In contrast, a pattern potentially associated with floc breakage under excessive shear would be expected to involve a sharper decrease in median bounding-box area (ΔAmedian/Δt < −2.0 pixels2/s), accompanied by a sudden increase in the number of small flocs (ΔNsmall/Δt > +10 flocs/s). These instance-level indicators may provide additional information for identifying potential process disturbances beyond conventional bulk turbidity measurements. However, these thresholds should be regarded as empirical observations from the present experiment rather than validated universal criteria. Because no independent microscopic or particle-size measurements were performed, the proposed patterns provide indicative evidence only, and require further validation before they can be used as definitive criteria for distinguishing floc breakage from settling.
3.8. Limitations
Although the dataset was constructed from untreated natural raw water sampled from a cooperating water-treatment facility on different occasions, the experiments were conducted under laboratory settings with controlled imaging conditions and solely PAC as a coagulant. Therefore, additional validation in this scenario is necessary for a wider variety of raw-water characteristics, coagulants used, hydraulic conditions, and field-imaging conditions. In practical situations, there could also be interference from algae, air bubbles, suspended particles, changes in light conditions, and different floc colours and morphological forms.
The current model employs rectangular boxes for the detection of instances and for characterizing their relative size. Hence, it should be noted that the area defined in the bounding box is not the actual area of the eccentric flocs, but, rather, a geometrical approximation. No systematic testing of other geometrical approaches was implemented in this study—for instance, Minimum Enclosing Circle or contours obtained from instance segmentation—thus making it unclear whether they could be more applicable for understanding the floc geometry. However, future research is planned to compare different geometrical approaches with the help of reliable boundary annotations and proper measurement of geometrical parameters.
The current measurement of inference speed was conducted using a desktop graphics processing unit, rather than embedded hardware. Therefore, practical deployment will proceed gradually. To begin with, the first step is to deploy FLOCUS-DET on an edge-computing system, where an NVIDIA Jetson device (NVIDIA Corporation, Santa Clara, CA, USA) will be used to evaluate inference speed, power consumption, memory requirements, and system stability. Next, the imaging system will be installed under field conditions at water-treatment plants for continuous monitoring. Finally, model-derived indicators will be compared with conventional water-quality measurements and available operational records, to evaluate the reliability of the floc-monitoring approach.
4. Conclusions
- (1)
- FLOCUS-DET can be used to detect and quantify different floc populations, according to their visual characteristics. Verification experiments showed that feature enhancement, multi-scale feature fusion, and localisation-quality estimation all contributed positively to detection performance.
- (2)
- According to the results of the static sedimentation experiment, the model can quantify floc number and relative size using bounding-box-based measurements that reflect temporal changes during the settling process.
- (3)
- Instance-level floc detection provides a basis for characterising floc populations and may support coagulation monitoring and subsequent dosage assessment. However, because the present results were obtained under controlled laboratory conditions, further field validation is required.
- (4)
- Future studies will focus on field experiments under a wider range of raw-water conditions and coagulant types, as well as on improved geometric characterisation of irregular flocs.
Author Contributions
R.T.: Project administration, methodology, software, validation, data curation, writing—original draft. H.G.: conceptualization, supervision, writing—review and editing. J.S.: resources, conceptualization. J.P.: investigation, validation. B.Y.: investigation. Z.W.: investigation, visualization. Z.S.: investigation, methodology. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The information backing the conclusions arrived at from this study, containing its unedited floc pictures and model training and validation data, is part of a research inquiry that has so far included unpublished analyses. Representative samples of the data may be provided by the corresponding author, Hong Gao, upon reasonable solicitation for academic-, educational-, or research-related purposes. The requests for data provision will be processed within a reasonable period of time.
Conflicts of Interest
Jinchao Shi was employed by Kunming CGE Water Supply Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
- Jiang, J.-Q. The role of coagulation in water treatment. Curr. Opin. Chem. Eng. 2015, 8, 36–44. [Google Scholar] [CrossRef] [Scilit]
- Gregory, J.; Duan, J. Hydrolyzing metal salts as coagulants. Pure Appl. Chem. 2001, 73, 2017–2026. [Google Scholar] [CrossRef] [Scilit]
- Jarvis, P.; Jefferson, B.; Gregory, J.; Parsons, S.A. A review of floc strength and breakage. Water Res. 2005, 39, 3121–3137. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Environmental Protection Agency (Ireland). Water Treatment Manuals: Coagulation, Flocculation & Clarification; Environmental Protection Agency: Wexford, Ireland, 2002; Available online: https://www.epa.ie/publications/compliance--enforcement/drinking-water/advice--guidance/water-treatment-manuals---coagulation-flocculation--clarification.php (accessed on 25 November 2026).
- Ratnaweera, H.; Fettig, J. State of the art of online monitoring and control of the coagulation process. Water 2015, 7, 6574–6597. [Google Scholar] [CrossRef] [Scilit]
- Otsu, N. A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man. Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef] [Scilit]
- Daraei, H.; Akyol, B.; Khedher, M.; Bertone, E.; Awad, J.; Stewart, R.A.; Chow, C.W.K.; Duan, J.; van Leeuwen, J. Continuous floc image analyser (C-FIA) for tracking floc particle dynamics during coagulation–flocculation–settling processes. Environ. Sci. Water Res. Technol. 2023, 9, 1331–1341. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Liu, Y.; Wang, Z.; Dou, C.; Zhao, W.; Shu, H. Constructing a visual detection method for coagulation effect based on image feature machine learning. J. Water Process Eng. 2024, 68, 106354. [Google Scholar] [CrossRef] [Scilit]
- Yokoyama, H.; Yamashita, T.; Kojima, Y.; Nakamura, K. Deep learning-based flocculation sensor for automatic control of flocculant dose in sludge dewatering processes during wastewater treatment. Water Res. 2024, 260, 121890. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yamamura, H.; Putri, E.U.; Suzuki, A.; Ariesyady, H.D.; Ling, H.; Nemoto, Y. Seasonal evaluation of a convolutional neural network for coagulation assessment using floc images at operating water treatment plants. Water Res. 2026, 308, 127050. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liu, H.; Chen, Y.; Pan, X.; Zhang, J.; Huang, J.; Lichtfouse, E.; Zhou, G.; Ge, H. Image recognition enhances efficient monitoring of the coagulation-settling in drinking water treatment plants. J. Clean. Prod. 2024, 482, 144251. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Liu, Y.; Wang, Z.; Guo, P.; Dou, C.; Zhao, W. Interpretable machine learning model based on floc images for monitoring the coagulation process. Process Saf. Environ. Prot. 2026, 205, 108153. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Long, Y.; Zhu, G.; Hursthouse, A.S. Application of artificial intelligence in the management of coagulation treatment engineering system. Processes 2024, 12, 1824. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Liu, Y.; Wang, Z.; Dou, C.; Zhao, W.; Shu, H. Characteristic analysis of floc size distribution and image texture evolution in chemical coagulation process. Process Saf. Environ. Prot. 2025, 199, 107298. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Liu, Y.; Wang, Z.; Shu, H.; Zhao, W.; Sun, L.; Dou, C. Association analysis between floc image information and coagulation efficiency based on partial least squares. Environ. Technol. 2026, 47, 2569–2583. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, Z.; Wang, B.; Huang, Z.; Wu, X.; Yang, W.; Guo, G.; Qiu, S.; Yang, J.; Zhou, A. Floc image-driven deep learning enhanced by temporal windows and transformers for carbon emission reduction in drinking water treatment plants. Water Res. 2026, 289, 124868. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, C.; Nayar, S.K. What are good apertures for defocus deblurring? In 2009 IEEE International Conference on Computational Photography (ICCP); IEEE: New York, NY, USA, 2009; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
- Sezan, M.I.; Pavlovic, G.; Tekalp, A.M.; Erdem, A.T. On modeling the focus blur in image restoration. In Proceedings of ICASSP; IEEE: New York, NY, USA, 1991; pp. 2485–2488. [Google Scholar] [CrossRef] [Scilit]
- Jocher, G.; Qiu, J. Ultralytics YOLO11, Version 11.0.0 [Computer software]; Ultralytics. 2024. Available online: https://github.com/ultralytics/ultralytics (accessed on 25 November 2026).
- Lin, T.-Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2017; pp. 2117–2125. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path aggregation network for instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2018; pp. 8759–8768. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.-Y.; Liao, H.-Y.M.; Wu, Y.-H.; Chen, P.-Y.; Hsieh, J.-W.; Yeh, I.-H. CSPNet: A new backbone that can enhance learning capability of CNN. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW); IEEE: New York, NY, USA, 2020; pp. 1571–1580. [Google Scholar] [CrossRef] [Scilit]
- Zhu, J.; Chen, X.; He, K.; LeCun, Y.; Liu, Z. Transformers without normalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 10–17 June 2025; IEEE: New York, NY, USA, 2025; pp. 14901–14911. [Google Scholar] [CrossRef] [Scilit]
- Wu, Z.; Ding, T.; Lu, Y.; Pai, D.; Zhang, J.; Wang, W.; Yu, Y.; Ma, Y.; Haeffele, B.D. Token statistics transformer: Linear-time attention via variational rate reduction. In Proceedings of the International Conference on Learning Representations (ICLR); IEEE: New York, NY, USA, 2025; Available online: https://proceedings.iclr.cc/paper_files/paper/2025/hash/5fcd540792da599adf1b932624e98f1f-Abstract-Conference.html (accessed on 25 November 2026).
- Yin, D.; Hu, L.; Li, B.; Zhang, Y.; Yang, X. 5%>100%: Breaking performance shackles of full fine-tuning on visual recognition tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 10–17 June 2025; IEEE: New York, NY, USA, 2025; pp. 20071–20081. [Google Scholar] [CrossRef] [Scilit]
- Kong, L.; Dong, J.; Tang, J.; Yang, M.-H.; Pan, J. Efficient visual state space model for image deblurring. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 10–17 June 2025; IEEE: New York, NY, USA, 2025; pp. 12710–12719. [Google Scholar] [CrossRef] [Scilit]
- Li, H. Rethinking features-fused-pyramid-neck for object detection. In Proceedings of the European Conference on Computer Vision (ECCV); IEEE: New York, NY, USA, 2024. [Google Scholar] [CrossRef] [Scilit]
- Sunkara, R.; Luo, T. No more strided convolutions or pooling: A new CNN building block for low-resolution images and small objects. In Machine Learning and Knowledge Discovery in Databases (ECML PKDD 2022); LNCS 13715; Springer: Berlin/Heidelberg, Germany, 2023; pp. 443–459. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Li, J.; Wei, H.; Liu, Z.; Zhan, Z.; Ren, Q. Slim-neck by GSConv: A lightweight-design for real-time detector architectures. J. Real-Time Image Process. 2024, 21, 62. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Ren, W.; Knoll, A. Omni-kernel network for image restoration. Proc. AAAI Conf. Artif. Intell. 2024, 38, 1426–1434. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Wang, W.; Wu, L.; Chen, S.; Hu, X.; Li, J.; Tang, J.; Yang, J. Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection. Adv. Neural Inf. Process. Syst. 2020, 33, 21002–21012. Available online: https://papers.nips.cc/paper/2020/hash/f0bda020d2470f2e74990a07a607ebd9-Abstract.html (accessed on 25 November 2026).
- Li, X.; Wang, W.; Hu, X.; Li, J.; Tang, J.; Yang, J. Generalized focal loss V2: Learning reliable localization quality estimation for dense object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2021; pp. 11632–11641. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. Available online: https://proceedings.neurips.cc/paper/2015/hash/14bfa6bb14875e45bba028a21ed38046-Abstract.html (accessed on 25 November 2026).
- Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving into high quality object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2018; pp. 6154–6162. [Google Scholar] [CrossRef] [Scilit]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and efficient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2020; pp. 10781–10790. [Google Scholar] [CrossRef] [Scilit]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal loss for dense object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2017; pp. 2980–2988. [Google Scholar] [CrossRef] [Scilit]
- Feng, C.; Zhong, Y.; Gao, Y.; Scott, M.R.; Huang, W. TOOD: Task-aligned one-stage object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2021; pp. 3510–3519. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs beat YOLOs on real-time object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2024; pp. 16965–16974. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.-Y.; Yeh, I.-H.; Liao, H.-Y.M. YOLOv9: Learning what you want to learn using programmable gradient information. In Proceedings of the European Conference on Computer Vision (ECCV); IEEE: New York, NY, USA, 2024. [Google Scholar] [CrossRef] [Scilit]
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-time end-to-end object detection. Adv. Neural Inf. Process. Syst. 2024, 37, 107984–108011. Available online: https://papers.neurips.cc/paper_files/paper/2024/hash/c34ddd05eb089991f06f3c5dc36836e0-Abstract-Conference.html (accessed on 25 November 2026). [PubMed]
- Ge, Z.; Liu, S.; Wang, F.; Li, Z.; Sun, J. YOLOX: Exceeding YOLO series in 2021. arXiv 2021, arXiv:2107.08430. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.; He, W.; Nie, Y.; Guo, J.; Liu, C.; Wang, Y.; Han, K. Gold-YOLO: Efficient object detector via gather-and-distribute mechanism. Adv. Neural Inf. Process. Syst. 2023, 36, 51094–51112. [Google Scholar] [CrossRef] [Scilit]
- Sun, S.; Weber-Shirk, M.; Lion, L.W. Characterization of flocs and floc size distributions using image analysis. Environ. Eng. Sci. 2016, 33, 25–34. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Muhammad, M.B.; Yeasin, M. Eigen-CAM: Class activation map using principal components. In International Joint Conference on Neural Networks (IJCNN); IEEE: New York, NY, USA, 2020; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2017; pp. 618–626. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.













