FAFarhan Ali

Farhan Ali

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Farhan Ali has a total of 6 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    FocusNet: Feature Oriented Contextual Understanding via Bidirectional Supervision for Surface Defect Detection

    by Muhammad Hamza Ali, Farhan Ali, Zaid Muhammad

    Surface defect segmentation in metallic materials presents significant challenges due to irregular defect shapes, extreme scale variations ranging from small blowholes to large uneven regions, and low contrast with complex background textures. While Convolutional Neural Networks excel at local feature extraction, their limited receptive fields hinder effective global context modeling. Conversely, Vision Transformers capture long-range dependencies but struggle with fine-grained boundary details critical for accurate defect localization. To address these limitations, we propose FocusNet, a novel architecture integrating multi-scale feature refinement, hybrid attention mechanisms, and progressive decoding with bidirectional supervision for robust metallic surface defect segmentation. FocusNet introduces a Feature Refinement Module combining Residual Feature Enhancement Blocks and Atrous Spatial Pyramid Pooling to capture multi-scale contextual information while preserving fine-grained details. A Hybrid Attention Mechanism synergistically fuses channel, spatial, and coordinate attention to enhance discriminative feature representations across both global and local scales. The Bidirectional Feature Pyramid Network enables efficient weighted multi-scale feature fusion, facilitating robust detection across diverse defect characteristics. Our progressive decoder employs deep supervision at multiple hierarchical levels, enforcing intermediate representations to learn defect patterns and improving boundary localization accuracy. Extensive experiments on the MT-Defect benchmark demonstrate state-of-the-art performance with 81.6% mIoU, surpassing LGGFormer (80.0%) and SegFormer (66.1%). Notably, FocusNet achieves particularly strong gains on challenging defect categories, including Crack (70.7% vs. 64.9%) and Break (74.3% vs. 72.4%) compared with the best-performing prior method LGGFormer, demonstrating robust segmentation across defects with diverse scales, orientations, and boundary complexities.


  • MAFNet: Multi-level Attention Fusion Network for Precise Prominence Analysis in Visual Sensing Systems

    by Farhan Ali, Muhammad Ali, Zaid Muhammad

    Salient object detection aims to identify and segment the most visually prominent objects in images. Despite significant advances in deep learning, existing methods struggle to balance global context modeling, boundary preservation, and multi-scale feature integration. To address these limitations, we propose MAFNet (Multi-level Attention Fusion Network), a novel attention-driven framework that leverages specialized attention mechanisms tailored to different semantic levels. Our approach employs a Tokens-to-Token (T2T) Transformer backbone for hierarchical feature extraction, capturing both local structural details and global contextual relationships. The core contribution lies in a comprehensive attention framework comprising six specialized modules: Contextual Feature Extraction (CFE) for multi-scale context refinement, Contour Aware Attention (CAA) for boundary preservation, Pyramidal Spatial Attention (PSA) for hierarchical spatial reasoning, Efficient Multi-Head Attention (EMHA) for semantic enhancement, Semantic Relation Attention (SRA) for global context modeling, and Frequency Channel Attention (FCA) for frequency-domain feature enhancement. These refined features are integrated through a parallel multi-path decoder that efficiently fuses information from different semantic levels. Extensive experiments on six benchmark datasets (ECSSD, PASCAL-S, SOD, DUTS-TE, HKU-IS, and DUT-OMRON) demonstrate that MAFNet achieves state-of-the-art performance, with particular strengths in handling complex object configurations and preserving fine-grained boundaries.


  • Open Access

    Enhanced Deepfake Detection Through Multi-Attention Mechanisms: A Comprehensive Framework for Synthetic Media Identification

    by Farhan Ali, Zainab Ghazanfar

    The proliferation of deepfake technology poses significant threats to digital media authenticity, necessitating robust intelligent detection systems to combat manipulated content. This paper presents a novel attention-based framework for deepfake detection that systematically integrates multiple complementary attention mechanisms to enhance discriminative feature learning. Our approach combines spatial attention, multi-head self-attention, and channel attention modules with a VGG-16 backbone to capture comprehensive representations across different feature spaces. The spatial attention mechanism focuses on discriminative facial regions, while multi-head self-attention captures long-range spatial dependencies and global contextual relationships. Channel attention further refines feature representations by emphasizing the most informative channels for detection. Extensive experiments on FaceForensics++ and Celeb-DF datasets demonstrate the effectiveness of our progressive attention integration strategy. The proposed framework achieves competitive performance with 92.67% accuracy and 99.30% Area Under the Curve (AUC) on FF++, while maintaining solid generalization capabilities with 82.35% accuracy and 82.7% AUC on the challenging Celeb-DF dataset. Comprehensive ablation studies validate the contribution of each attention component and justify key design choices, including the optimal 3×3 kernel size for spatial attention. Comparison with state-of-the-art methods demonstrates that our approach achieves competitive detection performance while maintaining architectural simplicity and computational efficiency. The modular design of our framework provides interpretability and flexibility for deployment across various computational environments, making it suitable for practical artificial media detection applications.


  • Open Access

    Lightweight Cascaded Feature Reweighting for Fall Detection through Context-Aware YOLOv8 Architecture

    by Farhan Ali, Alexandros Gazis, Faryal Zahoor

    Falls represent a significant global health concern, particularly among older adults, with delayed detection often leading to severe medical complications. Although computer vision-based fall detection systems offer promising solutions, they usually struggle with diverse real-world scenarios and computational efficiency. This paper introduces a novel lightweight cascaded feature reweighting approach that enhances YOLOv8 for reliable fall detection through a context-aware architecture. We strategically integrate three complementary attention mechanisms: Squeeze-and-Excitation blocks in the early stages, Spatial Attention modules in the later stages, and Efficient Channel Attention in the neck section, creating a progressive feature refinement pipeline that leverages the bilateral symmetry properties of human posture. Our approach achieves significant performance improvements, with an mAP of 0.878, an increase of 1.5% over the baseline YOLOv8, while maintaining minimal computational overhead. This makes it well-suited for real-world deployment in resource-constrained environments. Comprehensive evaluations across two diverse datasets, including DiverseFall and CAUCAFall, demonstrate that our model outperforms state-of-the-art (SOTA) detectors, including Faster R-CNN and earlier YOLO variants. Our approach shows particularly pronounced advantages under challenging and varied environmental conditions. Ablation studies confirm the effectiveness of our architectural design choices, demonstrating that each attention mechanism makes a unique contribution to overall performance improvement. The proposed lightweight architecture represents a significant advancement in vision-based fall detection, striking a balance between high accuracy and computational efficiency while maintaining robust performance in diverse real-world scenarios.