Manuscript Offprint
arXiv:2609.08914CoSA: Correlation-Guided Change A ttention with Learnable Residual Gating for Remote Sensing Change Detection
DATA-EFFICIENT CROSSWALK SEGMENTATION FROM OVERHEAD CCTV VIA CONFIDENCE- AND GEOMETRY-GUIDED PSEUDO-LABELING
Preprint, September 2026
Abdirashid Omar and Jonghyuk Park
Department of Data Science, Graduate School of Kookmin University
Seoul 02707, Republic of Korea
ABSTRACT
Pixel-level annotation of fixed traffic-camera imagery is expensive, while crosswalk models trained from street-level imagery face a substantial viewpoint and appearance shift when applied to elevated CCTV. We investigate a data-efficient target-domain pipeline using 241 manually annotated CCTV images and 5,926 unlabeled CCTV frames. A source-domain experiment trains a 31.0M-parameter custom U-Net on 3,300 first-person-view (FPV) images and obtains 93.05% IoU on its 330-image FPV test split. This result is a source baseline, not transferred performance: the released CCTV notebook instantiated a 42.0M-parameter DeepLabV3-ResNet50 from torchvision weights, and no compatible mapping from the U-Net checkpoint is implemented. Training on 201 manual CCTV images and selecting on 40 held-out manual masks yields 88.91% IoU. The model then predicts all unlabeled frames; image-level certainty and a largest-component area prior rank the candidates, and the top 1,000 attain mean certainty 0.976 and mean combined score 0.988. A repository audit shows that the reported second-stage 98.52% IoU was measured on a 150-image split containing only teacher-generated pseudo-masks: because of a directory-layout mismatch, the executed combined-data loader found zero manual samples and split 1,000 pseudo-labeled samples into 850/150. We therefore report 98.52% as internal pseudo-label agreement rather than human-ground-truth accuracy. The defensible target-domain result is 88.91% IoU on the 40 manual validation images. Batch-one FP32 inference at 512×512 requires 12.98 ms (77.03 FPS) on an NVIDIA RTX A6000 48 GB. These findings support the practicality of confidence-and-geometry filtering, while also showing why pseudo-label evaluation must remain isolated from the labels used for self-training.
Keywords crosswalk segmentation · CCTV · pseudo-labeling · semi-supervised learning · domain shift · intelligent transportation
Collecting target-domain video is easy, but dense annotation is not. This asymmetry motivates a simple question: can a small manually labeled CCTV set and a larger unlabeled target-domain pool support useful binary crosswalk segmentation under FPV-to-CCTV shift? We study that question in the public rashiedomar/crosswalk-cctv project. The empirical pipeline trains a supervised CCTV model, predicts 5,926 unlabeled frames, rejects implausible masks with confidence and foreground-area checks, and uses the highest-ranked masks for a second training stage.
This paper is deliberately conservative. Saved notebook outputs provide strong evidence for the supervised target model and for real-time throughput, but they do not provide an independent human-annotated evaluation of the second-stage checkpoint. Our audit additionally identifies a loader mismatch that excluded all manual samples from the executed second stage. Accordingly, the paper separates three different quantities: source-domain FPV test IoU, held-out manual CCTV validation IoU, and agree-
ment with generated pseudo-masks. Mixing them would overstate the evidence.
Our contributions are:
- an empirical characterization of the FPV-to-overhead-CCTV viewpoint gap for binary crosswalk segmentation;
- a lightweight pseudo-label ranking rule that combines pixel certainty with a crosswalk-area prior, selecting 1,000 samples from 5,926 unlabeled frames;
- a reproducible audit of dataset construction and evaluation semantics, including a clear distinction between 88.91% manual-mask IoU and 98.52% internal pseudo-mask agreement; and
- a measured batch-one throughput of 77.03 FPS at 512×512 on an RTX A6000.
2 RELATED WORK
2.1 Crosswalk perception
Crosswalk detection has been studied from mobile, vehicle, and overhead viewpoints. Ivanchenko et al. used line grouping and figure-ground reasoning on a camera phone [1]. Berriel et al. used automatically collected street and map imagery and emphasized cross-database evaluation [2]. Liang and Seo combined SegNet-style decoding with residual features for zebra-crossing segmentation [3], while Verma and Ukkusuri detected crossings in satellite imagery for pedestrian-network completion [4].

Figure 1: Audited experimental pipeline. The FPV model is a source-domain reference; the released code does not implement a verified U-Net-to-DeepLab parameter transfer. Green denotes human-annotated target-domain training and validation, orange denotes pseudo-label generation, and the dashed red note records the executed second-stage protocol.
Fixed urban CCTV is neither street-level nor near-orthographic: crosswalks may be distant, oblique, partly outside the frame, or repeatedly occluded by vehicles.
2.2 Segmentation and semi-supervision
U-Net established an encoder-decoder design with skip connections for dense prediction [5]; residual learning enabled deeper visual backbones [6]. DeepLabV3 uses atrous convolution and multi-scale context [7], and DeepLabV3+ adds an explicit decoder [8].
Pseudo-labeling treats confident predictions as targets [9]. Mean Teacher stabilizes targets through weight averaging [10], while FixMatch couples thresholded predictions with strong augmentation [11]. Dense prediction has motivated segmentation-specific methods including ClassMix [12], Cross Pseudo Supervision [13], and selective self-training in ST++ [14]. Under domain shift, AdaptSegNet aligns structured outputs [15], CyCADA combines cycle-consistent adaptation [16], and DACS mixes source and target samples while using pseudo-labels [17]. Our method is intentionally simpler: a single teacher ranks whole CCTV images by certainty and a binary geometry prior.
3 METHOD
3.1 Problem formulation
Let denote labeled target-domain images and binary masks, and let denote unlabeled CCTV frames. A network produces a foreground probability map
and the binary prediction is .
3.2 Source-domain baseline
The saved FPV notebook partitions 3,300 images into 2,640 training, 330 validation, and 330 test samples. Contrary to the repository README's "U-Net + ResNet34" description, the executable notebook defines a custom four-level U-Net with channels 64–128–256–512, a 1,024-channel bottleneck, and 31,043,521 parameters; no ResNet encoder is instantiated. It trains for 30 epochs with Adam at , batch size 8, and the same binary objective used below. The best validation IoU is 92.44% at epoch 21 (one-indexed), and the restored checkpoint obtains 93.05% on the FPV test set.
The CCTV notebook separately instantiated torchvision DeepLabV3-ResNet50 with default pretrained weights and replaces the final output layer for one class. It attempts to load the custom U-Net state dictionary with strict=False, but does not record matched keys or implement a parameter mapping. Because the module namespaces and tensors belong to different architectures, the available implementation does not establish meaningful checkpoint transfer. We therefore treat the FPV experiment only as a source-domain baseline.
3.3 Supervised CCTV model
The target model is DeepLabV3 with a ResNet50 backbone [6,7]. Images and masks are resized to . The 241 human-labeled images are split with seed 42 into 201 training and 40 validation samples. The training loader uses batch size 8 and drops one incomplete sample, so 200 examples are processed per epoch. Optimization uses AdamW [18], learning rate , weight decay , and 30 epochs.
For pixels indexed by k, the objective is
The notebook applies color jitter and random horizontal flipping to training images. Its horizontal flip is not synchronized with the mask, however, and therefore adds alignment noise. This defect should be corrected in any rerun; it does not change the provenance of the archived validation score.
3.4 Confidence- and geometry-guided selection
For each unlabeled image, the teacher produces and pseudo-mask . The implementation defines image-level certainty as the mean distance from the binary decision boundary,
It extracts the largest contour in , computes its area ratio
and assigns
DOMAIN GAP: FPV Training Data vs AI Hub CCTV Testing Data


Figure 2: Examples recovered from the repository's FPV-versus-AI-Hub comparison. FPV imagery (left) is near-horizontal and crosswalk-centered; fixed CCTV imagery (right) is elevated, wider, and more cluttered. The overlaid confidence text comes from the source-model analysis and is not ground-truth IoU on CCTV.
Candidates with are sorted, and at most 1,000 are retained. All selected samples satisfy the area rule. Their certainty is approximately 0.976, while the combined score has mean 0.9882, median 0.9882, and range 0.9879–0.9888. This distinction resolves inconsistent uses of “confidence” in the saved summary and README.
3.5 Second-stage training and protocol audit
The intended design combines human and pseudo-labeled data. The executed notebook does not realize that design. Its initial manual-data loader searches recursively and finds finetuning/images and finetuning/masks. The second-stage loader instead iterates over immediate subdirectories and searches for an additional images/masks pair below each one. It consequently prints Original: 0, Pseudo: 1000, and then randomly splits only the pseudo-labeled set into 850 training and 150 validation images. A later “1,241 samples” message is a hard-coded string, not the loaded dataset length.
The model continues from the supervised checkpoint and trains for 20 epochs with AdamW at . Its best 98.52% IoU at epoch 19 measures overlap with pseudo-masks generated by its own teacher lineage. It is useful as a self-training diagnostic but cannot establish an accuracy gain. The public repository excludes the images and model checkpoints, so the second-stage checkpoint cannot be reevaluated here on the 40 manual masks.
Table 1: Dataset composition and executed use.
| Subset or pool | Images | Role |
|---|---|---|
| FPV train / val / test | 2,640 / 330 / 330 | source |
| Manual CCTV train | 201 | supervised |
| Manual CCTV validation | 40 | human eval. |
| Unlabeled CCTV pool | 5,926 | teacher input |
| Selected pseudo-labels | 1,000 | stage two |
| Nominal combined pool | 1,241 | documented intent |
| Executed stage-two pool | 1,000 | 0 human + 1,000 pseudo |
| Executed train / val | 850 / 150 | pseudo only |
4 EXPERIMENTAL SETUP
4.1 Data
The CCTV frames derive from the AI-Hub urban-road traffic CCTV resource [19]. Table 1 distinguishes recorded data from intended and executed stage-two pools. The unlabeled frames are used only for teacher prediction and pseudo-label selection.

Figure 3: Six high-ranked pseudo-labels recovered from the repository. Red overlays are automatically generated masks, not human ground truth. The displayed score averages pixel certainty (about 0.976) and the binary geometry score (1.0), yielding about 0.988. Occluding vehicles remain visible beneath the translucent masks.
4.2 Metrics and implementation
For binary masks, the reported intersection-over-union is
Dice/F1 is related by Dice = 2IoU / (1 + IoU) [20], but the archived experiments report IoU. Notebook validation averages batch-level IoUs rather than accumulating a dataset-wide confusion matrix. The manual validation set contains exactly five full batches; the pseudo-only validation set ends with a smaller batch and is therefore not strictly sample-weighted.
Experiments ran with PyTorch on an NVIDIA RTX A6000 with 48 GB VRAM. The CCTV notebook reports 41.99M trainable parameters, which we round to 42.0M; the README's "approximately 39M" is not consistent with the saved model printout. No mixed-precision context appears in the timing cell, so Table 2 describes FP32 inference.
5 RESULTS
Table 3 presents each value with its actual protocol. The 93.05% FPV test result establishes in-domain source performance. The 88.91% CCTV result is the strongest target-domain number
Table 2: Recorded inference configuration.
| Item | Value |
|---|---|
| Model | DeepLabV3-ResNet50 |
| Parameters | 41.99M |
| Input / batch | 512×512 RGB / 1 |
| Precision | FP32 (no autocast recorded) |
| Hardware | NVIDIA RTX A6000, 48 GB |
| Warm-up / timed runs | 10 / 100 |
| Latency | 12.98 ms per image |
| Throughput | 77.03 FPS |
backed by human masks: the best of 30 epochs on the fixed 40-image validation set. Because that split also selects the checkpoint, it should be called validation, not an independent test set.
The pseudo-label statistics show that the ranking rule selects highly certain, area-valid masks. The 98.52% second-stage value is numerically higher but answers a different question. It measures how well the continued model fits teacher-generated targets in a pseudo-only split and must not be presented as a 9.61-point target-domain improvement.
Figure 4 confirms that the supervised CCTV model can follow several crosswalk components, including oblique boundaries,

Figure 4: Qualitative evidence with provenance kept explicit. The upper grid shows four samples from the 40-image human-annotated CCTV validation set used for the supervised model: each group contains input, human ground-truth overlay (green), and prediction overlay (red). The lower strip shows the FPV source model's near-empty response to a difficult night CCTV frame; it has no human mask and is included only as a domain-shift failure example. The upper panel is not an iteration-two evaluation.
Table 3: Results separated by label source and evaluation protocol. Values across rows are not directly comparable when the domains or targets differ.
| Stage | Evaluation target and split | IoU |
|---|---|---|
| FPV baselineSupervised CCTV | Human FPV masks; 330 test | 93.05% |
| Human CCTV masks; 40 validation | 88.91% | |
| Pseudo selection | No human targets; top 1,000 | — |
| Stage-two internal | Teacher pseudo-masks; 150 validation | 98.52% |
| Stage two, human CCTV | Checkpoint/data unavailable; not run | — |
crowded scenes, and nighttime imagery. It also exposes the failure mode that motivated target-domain supervision: the FPV-only source model can return almost no foreground under distant, dark CCTV conditions. Figure 3 shows plausible selected masks, but visual plausibility is not a substitute for human-mask evaluation.
6 DISCUSSION AND LIMITATIONS
The reliable conclusion is narrower than the repository README suggests. A modest manual target set is sufficient to train a strong CCTV validation model, and the teacher can generate visually plausible masks at scale. The certainty-plus-area rule is inexpensive and domain-specific: it removes masks with a largest foreground component below 5% or above 40% of the frame. At the same time, high certainty can reflect calibration or class imbalance rather than correctness, and an area prior cannot detect a confidently segmented road region of plausible size.
Four limitations determine the next experiment. First, 40 validation images are too few for a definitive estimate and are
used for checkpoint selection. Second, the executed second stage contains no manual masks, so it is not the intended semi-supervised mixture. Third, random splitting of nearby video frames may leak scene and temporal redundancy; future splits should be camera- or sequence-disjoint. Fourth, unsynchronized image/mask flipping introduces training noise. These issues are implementation and evaluation limitations, not merely presentation details.
A corrected evaluation should (i) keep the same 40 manual frames fixed for comparison, or preferably add a camera-disjoint manual test set; (ii) train on exactly 201 manual plus 1,000 pseudo-labeled samples; (iii) apply geometric transforms jointly to image and mask; (iv) report confidence calibration and pseudo-mask quality on a manually audited subset; and (v) provide per-camera results with bootstrap confidence intervals. Ablations should compare manual-only training, all pseudo-labels, certainty-only selection, geometry-only selection, and their combination. Only such an experiment can establish whether filtered pseudo-labels improve human-ground-truth IoU.
The recorded 77.03 FPS demonstrates server-GPU feasibility, not embedded deployment. It excludes video decoding, resizing, transfer, and post-processing, and should not be extrapolated to edge devices without end-to-end measurement.
7 CONCLUSION
We examined a practical pipeline for crosswalk segmentation under FPV-to-CCTV domain shift. A custom U-Net reaches 93.05% IoU on FPV test data, while a separately initialized DeepLabV3-ResNet50 reaches 88.91% IoU on 40 human-annotated CCTV validation images after training on 201 manual examples. Confidence and a 5–40% largest-component area prior select 1,000 visually plausible pseudo-labels from 5,926 unlabeled frames. The reported 98.52% second-stage score, however, is pseudo-only internal agreement because the executed loader omitted all manual samples. The study therefore supports the efficiency and real-time practicality of pseudo-label generation, but does not yet prove a human-ground-truth accuracy gain from self-training. Corrected mixed-data training and camera-disjoint manual evaluation are the essential next steps.
DATA AND CODE AVAILABILITY
Code, notebooks, numerical summaries, pseudo-label metadata, and the experiment figures used in this paper are publicly available at rashiedomar/crosswalk-cctv. The repository commit audited for this manuscript is 7e4a9d7f59e7de56f867a2e49ab971408e5007a0. Large datasets and trained checkpoints are excluded by the repository's ignore rules; consequently, the final checkpoint could not be independently rerun on the manual CCTV masks from the public artifacts alone. The source CCTV resource is described by AI-Hub [19] and remains subject to its access and use terms.
REFERENCES
[1] V. Ivanchenko, J. Coughlan, and H. Shen, “Detecting and locating crosswalks using a camera phone,” in IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1–8, 2008.
[2] R. F. Berriel, F. S. Rossi, A. F. de Souza, and T. Oliveira-Santos, “Automatic large-scale data acquisition via crowdsourcing for crosswalk classification: A deep learning approach,” Computers & Graphics, vol. 68, pp. 32–42, 2017.
[3] H. Liang and S. Seo, “Detection of zebra-crossing areas based on deep learning with combination of SegNet and ResNet,” Journal of the Korean Society of Surveying, Geodesy, Photogrammetry and Cartography, vol. 39, no. 3, pp. 141–148, 2021.
[4] R. Verma and S. V. Ukkusuri, “Crosswalk detection from satellite imagery for pedestrian network completion,” Transportation Research Record: Journal of the Transportation Research Board, vol. 2678, no. 7, pp. 845–856, 2024.
[5] O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional networks for biomedical image segmentation,” in Medical Image Computing and Computer-Assisted Intervention, pp. 234–241, 2015.
[6] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016.
[7] L.-C. Chen, G. Papandreou, F. Schroff, and H. Adam, “Re-thinking atrous convolution for semantic image segmentation,” arXiv preprint arXiv:1706.05587, 2017.
[8] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam, “Encoder-decoder with atrous separable convolution for semantic image segmentation,” in Proceedings of the European Conference on Computer Vision, pp. 801–818, 2018.
[9] D.-H. Lee, “Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks,” in ICML Workshop on Challenges in Representation Learning, 2013.
[10] A. Tarvainen and H. Valpola, “Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results,” in Advances in Neural Information Processing Systems, vol. 30, pp. 1195–1204, 2017.
[11] K. Sohn, D. Berthelot, C.-L. Li, Z. Zhang, N. Carlini, E. D. Cubuk, A. Kurakin, H. Zhang, and C. Raffel, “FixMatch: Simplifying semi-supervised learning with consistency and confidence,” in Advances in Neural Information Processing Systems, vol. 33, pp. 596–608, 2020.
[12] V. Olsson, W. Tranheden, J. Pinto, and L. Svensson, “ClassMix: Segmentation-based data augmentation for semi-supervised learning,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1369–1378, 2021.
[13] X. Chen, Y. Yuan, G. Zeng, and J. Wang, “Semi-supervised semantic segmentation with cross pseudo supervision,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2613–2622, 2021.
[14] L. Yang, W. Zhuo, L. Qi, Y. Shi, and Y. Gao, “ST++: Make self-training work better for semi-supervised semantic segmentation,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4268–4277, 2022.
[15] Y.-H. Tsai, W.-C. Hung, S. Schulter, K. Sohn, M.-H. Yang, and M. Chandraker, “Learning to adapt structured output space for semantic segmentation,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7472–7481, 2018.
[16] J. Hoffman, E. Tzeng, T. Park, J.-Y. Zhu, P. Isola, K. Saenko, A. A. Efros, and T. Darrell, “CyCADA: Cycle-consistent adversarial domain adaptation,” in Proceedings of the 35th International Conference on Machine Learning, pp. 1989–1998, 2018.
[17] W. Tranheden, V. Olsson, J. Pinto, and L. Svensson, “DACS: Domain adaptation via cross-domain mixed sampling,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1379–1389, 2021.
[18] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in International Conference on Learning Representations, 2019.
[19] National Information Society Agency, “Ai-hub: Cctv traffic video for solving traffic problems (urban roads).” AI-Hub dataset no. 165, 2021. Accessed 8 September 2026.
[20] L. R. Dice, “Measures of the amount of ecologic association between species,” Ecology, vol. 26, no. 3, pp. 297–302, 1945.