Amir Farmanesh

Mr. Amir Farmanesh

orcid

Research Focus & Metrics

Academic Career Length

3Years (2024-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
12 May 2025 in Sensors
Verified
Journal Article
Open access
PDF file
Amir FarmaneshAmir Farmanesh
Amir Farmanesh
RSRaúl G. Sanchis
Raúl G. Sanchis
Joaquín Ordieres-MeréJoaquín Ordieres-Meré
Joaquín Ordieres-Meré
AI-oriented quality inspection in manufacturing often faces highly imbalanced data, as defective products are rare, and there are limited possibilities for data augmentation. This paper presents a systematic comparison between Deep Transfer Learning (DTL) and Contrastive Learning (CL) under such challenging conditions, addressing a critical gap in the industrial machine learning literature. We focus on a galvanized steel coil quality classification task with acceptable vs. defective classes, where the vast majority of samples (>95%) are acceptable. We implement a DTL approach using strategically fine-tuned YOLOv8 models pre-trained on large-scale datasets, and a CL approach using a Siamese network with multi-reference design to learn robust similarity metrics for one-shot classification. Experiments employ k-fold cross-validation and a held-out gold-standard test set of coil images, with statistical validation through bootstrap resampling. Results demonstrate that DTL significantly outperforms CL, achieving higher overall accuracy (81.7% vs. 61.6%), F1-score (79.2% vs. 62.1%), and precision (91.3% vs. 61.0%) on the challenging test set. Computational analysis reveals that DTL requires 40% less training time and 25% fewer parameters while maintaining superior generalization capabilities. We provide concrete guidance on when to select DTL over CL based on dataset characteristics, demonstrating that DTL is particularly advantageous when data augmentation is constrained by domain-specific spatial patterns. Additionally, we introduce a novel adaptive inspection framework that integrates human-in-the-loop feedback with domain adaptation techniques for continuous model improvement in production environments. Our comprehensive comparative analysis offers empirically validated insights into performance trade-offs between these approaches under extreme class imbalance, providing valuable direction for practitioners implementing industrial quality inspection systems with limited, skewed datasets.

1 February 2026 in Digital Health
Verified
Journal Article
Open access
Amir FarmaneshAmir Farmanesh
Amir Farmanesh
JOJoaquín Ordieres-Meré
Joaquín Ordieres-Meré
RSRaúl G. Sanchis
Raúl G. Sanchis
YAYolanda Aladro-Benito
Yolanda Aladro-Benito
Background: Wearable gait monitoring can support neurological follow-up, but raw inertial time-series are difficult to interpret clinically. Objective: To evaluate a semantic pipeline that converts raw wearable streams into structured gait events for free-living monitoring. Methods: Instrumented smart socks captured tri-axial accelerometer and gyroscope signals from a bilateral inertial measurement unit (IMU) configuration. Data were stored as raw time-series. A deterministic rule-based pipeline derived time-bounded events (per-limb sensor-reception intervals, concurrent bilateral candidate intervals, per-limb effective-movement intervals, and bilateral gait episodes) in a relational database. The semantic layer was published as a Web Ontology Language (OWL) ontology with an Ontop ontology-based data access (OBDA) mapping and reusable SPARQL Protocol and RDF Query Language (SPARQL) queries. Feasibility was evaluated in 44 participants (31 people with multiple sclerosis (PwMS) and 13 controls) across 257 monitoring sessions. Results: The pipeline identified 6,224 gait episodes (∼60.8 hours walking). Episode counts were right-skewed (mean 141.5 episodes/participant, 95% CI 109–174). Most participants (80%) showed low left–right asymmetry (mean index 0.069, 95% CI 0.040–0.107), while elevated imbalance was concentrated in low-data participants. Against standardised in-clinic tests, positive-interval detection sensitivity was 85% (50/59 intervals with bilateral data) after per-session clock alignment using the same annotations; this potentially optimistic estimate does not establish specificity or free-living false-positive performance. In the frozen analysis snapshot, semantic-consistency checking confirmed that 100% of the 6,224 reported gait episodes were temporally contained within concurrent bilateral candidate intervals ( activity_all ). Conclusions: Hierarchical semantic temporal events enable transparent, scalable, and interpretable real-world gait monitoring. By releasing the ontology, OBDA mapping, and queries, the pipeline supports longitudinal assessment, limb balance analysis, and interoperable health-system integration. The same approach is applicable beyond gait to other wearable-derived digital biomarkers and rehabilitation-monitoring tasks. This work does not deliver a validated clinical gait assessment tool, but demonstrates reusable digital health representations.


18 March 2026
Verified
Conference Paper
Closed access
Joaquín Ordieres-MeréJoaquín Ordieres-Meré
Joaquín Ordieres-Meré
Amir FarmaneshAmir Farmanesh
Amir Farmanesh
AGAntonio Bello García
Antonio Bello García
BPBojan Prlinčević
Bojan Prlinčević
The convergence of Building Information Modeling (BIM) and Internet of Things (IoT) is critical for the development of Digital Twins in smart buildings. However, a significant gap remains between the static, structured nature of BIM data and the dynamic, unstructured nature of high-frequency IoT telemetry. This paper presents the “WiseBuild” architecture deployed at the CeDInt research centre, which bridges this gap using an Ontology-Based Data Access (OBDA) approach. We detail the deployment of a comprehensive sensor network consisting of 29 BatMeter energy analyzers and environmental sensors integrated into a ThingsBoard infrastructure. Using Ontop Command Line Interface (CLI) and a custom domain ontology aligned with Building Topology Ontology (BOT) and Sensor, Observation, Sample, and Actuator (SOSA), we expose a Virtual Knowledge Graph (VKG) that enables semantic querying of Structured Query Language (SQL)-based time-series data. We validate this architecture through a practical use case: an end-to-end Energy Forecasting Toolkit that consumes semantically enriched data to train Deep Learning models such as Long Short Term Memory models (LSTM) and Transformers, without requiring hard-coded sensor identifiers.


19 February 2025
Verified
Conference Paper
Closed access
Amir FarmaneshAmir Farmanesh
Amir Farmanesh
ISIrene Pereda Serrano
Irene Pereda Serrano
JOJoaquín Ordieres-Meré
Joaquín Ordieres-Meré
SBSlobodan Bojanic
Slobodan Bojanic
BPBojan Prlinčević
Bojan Prlinčević
Energy loss in power distribution networks remains a significant economic and environmental concern, often exacerbated by a lack of transparent data and limited realtime visibility. This paper introduces an Internet of Things (IoT) based monitoring system designed to capture, analyze, and securely store granular information on energy flow across a distribution grid. Through strategically and intervally placed sensors and a decentralized data ledger, the proposed system not only improves the spatial resolution of loss detection but also provide trust among stakeholders by preventing data tampering. Unlike traditional solutions reliant on centralized architectures, this approach combines lowcost hardware, scalable communication protocols, and immutable record, keeping to pinpoint inefficiencies in real time. A demonstration scenario validates its potential to identify localized anomalies, stemming from voltage drops, resistive heating, or other factors, more accurately than conventional methods, thereby enabling proactive maintenance and informed resource allocation. By striking a balance between affordability, security, and operational insight, the system lays the groundwork for more resilient and transparent energy distribution networks.