Lightweight Underwater Acoustic Vessel Classification for Embedded Deployment
Organizations: ICNS, Western Sydney University, Sydney, Australia
Abstract
We propose a Raspberry Pi-based underwater vessel classification system for edge deployment under limited connectivity, bandwidth and power in offshore acoustic surveillance. Using ShipsEar, we compare six classifiers on a Raspberry Pi 5 through a complete audio-to-prediction pipeline. We assess classification performance, processing latency, CPU utilisation, memory consumption and monitored power. Supporting experiments examine acoustic feature selection, statistical pooling and Transformer patch configurations. The two-layer convolutional neural network (CNN) achieved a mean macro-F1 of (99.14 \textpm{} 0.32)% across five random seeds. The radial basis function support vector machine (RBF-SVM) achieved 98.83%, with a median end-to-end latency of 28.109ms compared with 120.655ms for the CNN. This favourable trade-off motivated RBF-SVM deployment on the Raspberry Pi Zero 2 W. It maintained the same classification performance with a median end-to-end latency of 349.09~ms and a sustained throughput of 2.962 classifications/s, or 14.8 times the rate required for consecutive five-second audio segments.
Figures & tables
| Configuration | Input / Patches | Params | Macro-F1 (%) |
|---|---|---|---|
| CNN: Statistical pooling | |||
| Without pooling | 302,080 | 1,668,000 | 89.87 |
| Mean + std | 5,120 | 183,237 | 96.98 |
| Transformer: Patch geometry | |||
| Local ( ) | 368 | 201,349 | 74.53 |
| Full freq. ( ) | 23 | 464,389 | 96.85 |
| Model | Acc. (%) | Macro-F1 (%) | Size (KiB) | Infer. (ms) | E2E (ms) |
|---|---|---|---|---|---|
| CNN (2-layer) | 723.08 | 91.050 | 120.655 | ||
| Patch Transformer | 1824.11 | 2.776 | 29.738 | ||
| MLP | 1179.03 | 0.901 | 27.772 | ||
| Linear SVM | 17.25 | 0.614 | 27.179 | ||
| Logistic regression | 12.39 | 0.652 | 27.270 | ||
| RBF-SVM † | 2428.27 | 1.193 | 28.109 |
| Model | CPU (%) | RAM (MiB) | PMIC (W) | Max. temp. ( ∘ C) |
|---|---|---|---|---|
| CNN (2-layer) | 54.56 | 490.52 | 5.193 | 54.50 |
| Patch Transformer | 30.48 | 452.11 | 4.153 | 50.10 |
| MLP | 25.16 | 287.25 | 3.960 | 50.15 |
| Linear SVM | 25.15 | 291.19 | 3.895 | 52.35 |
| Logistic regression | 25.56 | 290.69 | 4.014 | 52.35 |
| RBF-SVM | 25.16 | 293.14 | 3.863 | 48.50 |
| Metric | Pi 5 | Pi Zero 2 W |
|---|---|---|
| Feature extraction (ms) | 26.10 | 327.88 |
| SVM inference (ms) | 1.19 | 9.40 |
| Peak process RAM (MB) | 307.4 | 119.02 |
| RAM / device capacity (%) | 7.7 | 24.4 |
| Mean process CPU (%) | 25.07 | 25.25 |
Audio Classification
Audio classification assigns recordings to categories such as speech, music, animal calls, acoustic scenes, and health-related events.
See all 149 papers