True wireless stereo (TWS) earbuds are evolving into multifunctional wearable devices, offering opportunities not only for audio streaming but also for health-related applications. A fundamental requirement for such devices is the ability to accurately detect whether they are being worn, yet conventional proximity sensors remain limited in both reliability and functionality. This work explores the use of photoplethysmography (PPG) sensors, which are widely applied in heart rate and blood oxygen monitoring, as an alternative solution for wearing detection. A PPG sensor was embedded into a TWS prototype to capture blood flow changes, and the wearing status was classified in real time using a lightweight k-nearest neighbor (k-NN) algorithm on an edge AI processor. Experimental evaluation showed that incorporating a validity check enhanced classification performance, achieving F1 scores above 0.95 across all wearing conditions. These results indicate that PPG-based sensing can serve as a robust alternative to proximity sensors and expand the capabilities of TWS devices.
On edge devices, convolutional neural network (CNN) inference is bottlenecked mainly by memory bandwidth, owing to the frequent memory accesses to feature maps and parameters. To address this challenge, we propose a memory-efficient hardware accelerator for depthwise separable convolution that minimizes off-chip memory traffic and parameter storage. The proposed architecture employs three key techniques: (1) a 64-bit run-length coding (RLC) packet compression that exploits feature-map sparsity after ReLU, (2) a mixed-precision scheme that represents feature maps and weights at different precisions, and (3) separated depthwise and pointwise convolution units. In particular, feature maps are transferred in RLC-compressed form, which reduces the amount of data exchanged with the host. The compressed data are decoded row by row, so the on-chip buffers hold only the rows required for computation rather than a complete feature map. In software simulation on ImageNet, the mixed-precision scheme reduced the parameter storage by 49.22% at a cost of 6.24 percentage points (pp) in Top-1 accuracy, and the RLC reduced the data by up to 56.07% in the deeper layers. Implemented on a Xilinx ZCU-104 FPGA, the proposed accelerator performs the depthwise separable convolution with a small number of logic resources and on-chip memory, confirming its feasibility for resource-constrained edge devices.