arXiv:2610.21402cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21402

Fault Detection and Bit-Error Rate Diagnostics in Optical Wireless Links Using Edge-AI

Sarthak Bhattarai, Sheshadri Shikhar Bandyopadhyay, Suprabh Dhakal, Jitendra Kumar Manandhar

Sarthak Bhattarai, Sheshadri Shikhar Bandyopadhyay, Suprabh Dhakal, Jitendra Kumar Manandhar

Department of Electronics and Computer Engineering

Pulchowk Campus, Institute of Engineering, Tribhuvan University

Lalitpur, Nepal

Email: {080bei038.sarthak, 080bei040.sheshadri, 080bei043.suprabh}@pcampus.edu.np, mejiten@ioe.edu.np

Abstract—Optical Wireless Communication (OWC) systems provide high-bandwidth, spatially secure, and RF-interference-free digital transmission. However, direct free-space optical links suffer from extreme sensitivity to line-of-sight disruptions, optical attenuation, high ambient light saturation, and transmitter-receiver misalignment. Traditional channel diagnostic frameworks rely on external computing nodes or cloud-based processing, which introduces severe diagnostic latency and reduces edge node autonomy. This paper presents an autonomous, self-diagnosing optical wireless receiver node that integrates physical-layer signal telemetry extraction with an on-device TinyML classification engine. Built around an ESP32-S3 microcontroller, the receiver recovers 1000 bit/s On-Off Keying (OOK) digital payloads using a 5-sample majority voting mechanism while concurrently extracting real-time channel features: Bit Error Rate (BER), received signal voltage ( VsignalV_{signal}), Signal-to-Noise Ratio ( SNRdBSNR_{dB}), and ambient light baseline ( LambientL_{ambient}). Evaluated against a Random Forest baseline (77.22% accuracy) and a floating-point neural network (78.48% accuracy), a post-training INT8 quantized TensorFlow Lite Micro model occupying only 3.32 kB of SRAM runs directly on the receiver firmware. The quantized model achieves 74.68% overall accuracy across four distinct operational conditions: normal transmission, optical filter attenuation, ambient light interference, and severe obstruction/misalignment. On-device deployment tests confirm real-time, deterministic fault classification, establishing a practical approach for self-aware optical IoT nodes.

Index Terms—Optical Wireless Communication, Edge-AI, TinyML, Bit Error Rate, Link Diagnostics, ESP32-S3, TensorFlow Lite Micro, Random Forest, Line-of-Sight.

I. INTRODUCTION

Optical Wireless Communication (OWC), encompassing Visible Light Communication (VLC) and Free-Space Optics (FSO), uses optical spectrum frequencies to transmit digital data [1]. Offering immunity to radio-frequency (RF) interference, high spatial reuse, and strict spatial confinement, OWC serves as an ideal supplement to congested indoor RF networks [3]. However, narrow-beam directed optical links depend on strict Line-of-Sight (LOS) alignment between the optical emitter and photodetector [2]. Physical misalignments, transient human or structural blockages, optical signal attenuation, and high background illumination degrade communication quality or cause silent channel failure [4].

In conventional OWC architectures, physical-layer health parameters (e.g., Bit Error Rate or Received Signal Strength) remain unmonitored or offload to external host computers or

Figure

Fig. 1. Complete physical hardware setup of the autonomous optical wireless communication testbed.

cloud infrastructure [2]. Offloading introduces network transmission overhead, processing latency, and total dependency on external infrastructure. Figure 1 demonstrates our physical experimental testbed designed to eliminate external computing dependencies.

Figure

Fig. 2. Transmitter circuit schematic showing GPIO interfacing, transistor switching logic, and laser driver circuit.

To resolve these challenges, we present a fully integrated, edge-based optical communication and diagnostic system. Operating entirely on an ultra-low-power ESP32-S3 microcontroller, the receiver recovers digital data payloads while

Figure

Fig. 3. Receiver circuit schematic depicting BPW34 PIN photodiode photodetector, LM358 op-amp conditioning, and ESP32-S3 ADC acquisition.

extracting physical-layer telemetry parameters [7]. The physical circuit schematics of the transmitter and receiver front-ends are shown in Fig. 2 and Fig. 3, respectively. A lightweight neural network quantized to 8-bit integers (INT8) executes directly on the receiver firmware using TensorFlow Lite Micro, enabling real-time, autonomous fault classification without external computation.