arXiv:2610.33679cs.ROOct 2026

Manuscript Offprint

arXiv:2610.33679

Energy-Based Fault Detection and Isolation Framework for Flat Port-Hamiltonian Mechanical Systems

Johnny Garcia, Nicolas Salguero, Naveed Iqbal, Brahim Brahmi, Ramy Rashad

Johnny Garcia, Nicolas Salguero, Naveed Iqbal, Brahim Brahmi, and Ramy Rashad

Abstract—Fault diagnosis during regulated motion requires informative signals even when feedback attenuates tracking deviations. This paper develops an energy-based diagnostic framework that constructs mechanical port-power residuals without a dedicated dynamic observer. Spectral Hamiltonian Algebraic Power Evaluation (SHAPE) combines port-Hamiltonian variables and differential flatness to generate nominal power references from planned motion for fully actuated mechanical systems with collocated actuation. Subtracting these references from commanded effort multiplied by measured flow yields residuals whose final evaluation requires neither recursive observer updates nor measured-state dynamics calculations. Continuous wavelet transform (CWT) scalograms and a shared-encoder convolutional neural network assess their ability to distinguish nominal operation, actuator loss of effectiveness, anomalous friction, and vibration from complete trajectories. Evaluation uses a simulated six-degree-of-freedom Kinova manipulator under model predictive control and fixed plant-model mismatch, with single faults at a specified joint. Across five training seeds and 3000 held-out test runs, SHAPE-CWT achieves a mean accuracy of 84.69 percent, versus 81.67 percent for torque residuals and 97.17 percent for the generalized momentum observer under common CWT processing. The respective sample standard deviations are 0.70, 0.70, and 0.37 percentage points. These results demonstrate useful fault-type discrimination from algebraic power residuals, while severity-excitation profiles and offline velocity perturbations reveal limits to their diagnostic capability.

Index Terms—Differential flatness, energy-based diagnosis, fault detection and isolation (FDI), physics-guided machine learning, port-Hamiltonian systems, wavelet scalograms.

I. INTRODUCTION

F AULT detection and isolation (FDI) supports the reliable operation of mechanical systems by identifying faults during commanded motion. This task is challenging under feedback control; the controller can compensate for degradation and disturbances while maintaining tracking performance, masking fault signatures in the tracking error [1]. Small tracking deviations can therefore coexist with abnormal operation, creating a need for diagnostic signals that remain informative during regulated motion.

Data-driven methods learn fault signatures from measured signals and their representations. Convolutional neural networks (CNNs), combined with time-frequency representations such as continuous wavelet transform (CWT) scalograms, are widely used to extract diagnostic patterns in machinery [2], [3]. Their performance depends on the information available in the selected inputs. Physics-guided diagnosis incorporates model knowledge into the learning pipeline [4], motivating the construction of diagnostic inputs that express discrepancies from physically defined nominal behavior.

Model-based residuals provide such discrepancies. Generalized-momentum observers support actuator FDI and sensorless collision detection without acceleration measurements [5], [6], and residual-driven observers can reconstruct actuator fault profiles [7]. For sufficiently accurate trajectory tracking, another approach compares measured joint torque with the nominal torque calculated along the desired motion [8].

An energetic perspective relates diagnostic signals to power exchange, storage, and dissipation. The port-Hamiltonian (pH) framework makes these relationships explicit through interconnected physical subsystems and effort–flow ports [9], [10]. Energy-aware control illustrates the value of this perspective: energy tanks can regulate energy exchange to support stable and safe interaction [11]. For diagnosis, unknown-input Hamiltonian observers generate residuals and estimate faults in linear pH systems under observer-existence and disturbance-decoupling conditions [12]. Mechanical energy observers also detect external interactions through a dynamically updated energy discrepancy [13]. These developments motivate exploiting energetic structure to construct diagnostic signals, while exploring how much of this task can be achieved without a dedicated dynamic observer.

Manuscript dated 10 October 2026. This work was supported by King Fahd University of Petroleum and Minerals (KFUPM). (Corresponding author: Johnny Garcia.)

Johnny Garcia and Nicolas Salguero are with the Electrical Engineering Department, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia (e-mail: g202427540@kfupm.edu.sa; g202426740@kfupm.edu.sa).

Naveed Iqbal is with the Electrical Engineering Department and the Interdisciplinary Research Center for Communication Systems and Sensing, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia (e-mail: naveediqbal@kfupm.edu.sa).

Brahim Brahmi is with the Electrical Engineering Department and the Interdisciplinary Research Center for Intelligent Manufacturing and Robotics, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia (e-mail: brahim.brahmi@kfupm.edu.sa).

Algebraic diagnosis and power monitoring provide complementary precedents. Differential flatness supplies analytical redundancy through discrepancies between measurements and reconstructed states or inputs [14]. Polynomial-approximation operators permit algebraic reconstruction of residuals or additive faults, with filtering and computable error bounds [15].

Ramy Rashad is with the Control and Instrumentation Engineering Department and the Interdisciplinary Research Center for Smart Mobility and Logistics, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia (e-mail: ramy.rashad@kfupm.edu.sa).

Power-consumption diagnosis compares healthy electrical-consumption profiles with measurements and combines model fitting with neural-network classification [16].

The objective pursued here is to use mechanical port power for fault diagnosis without synthesizing a dedicated dynamic observer. For systems with planned motion, differential flatness parameterizes nominal states and inputs through reference outputs and their finite derivatives [17], [18], offering a basis for algebraic nominal power references. Establishing which fault types these power discrepancies can distinguish under feedback, model mismatch, and measurement errors is essential to assessing their diagnostic value.

To address this objective, this paper introduces the Spectral Hamiltonian Algebraic Power Evaluation (SHAPE) framework for fully actuated, differentially flat pH mechanical systems with collocated actuation ports. SHAPE combines pH port variables and flatness-based nominal references to construct a power residual at each actuation port. Subtracting nominal port power from commanded effort multiplied by measured port flow yields physically interpretable diagnostic inputs. With nominal references available, residual evaluation requires neither recursive observer updates nor dynamics evaluation at the measured state.

The diagnostic realization maps synchronized port residuals into CWT scalograms and processes them with a shared-encoder CNN. The evaluation classifies complete trajectories of a simulated six-degree-of-freedom (6-DoF) manipulator under flatness-based model predictive control (MPC), with single faults injected at a specified joint.

The main contributions are as follows:

  1. Algebraic port-wise power residuals: A nominal reference generator based on pH port variables and differential flatness, together with a commanded-power residual and a decomposition organizing fault, dynamic-mismatch, and measurement contributions under the stated assumptions.

  2. Physics-guided diagnostic realization: A CWT and shared-encoder CNN pipeline using synchronized port-power residuals to distinguish nominal operation, actuator loss of effectiveness (LoE), anomalous friction, and oscillatory disturbances.

  3. Comparative diagnostic characterization: An evaluation of four residual formulations under common CWT processing and three complete SHAPE representation pipelines, distinguishing correct fault-type identification, fault-type confusion, and missed detection. Joint severity–excitation profiles and complementary vibration experiments characterize where diagnostic coverage is retained or limited, while offline sensor perturbations reveal changes in failure mode. These empirical profiles are interpreted alongside residual-construction requirements.

Section II presents the mathematical preliminaries, and Section III develops SHAPE. Sections IV and V describe the simulation protocols and diagnostic results, respectively. Section VI concludes the paper.

References (27)