Manuscript Offprint
arXiv:2610.39371Lightweight Underwater Acoustic Vessel Classification for Embedded Deployment
Abishek Soti, Thura Pyae Sone, Naqib Ibnul, Jim Huang, Sergio Chevtchenko, Henry Zhong, Gregory Cohen, Ying Xu
ICNS, Western Sydney University
Sydney, Australia
A.soti@westernsydney.edu.au, T.Sone@westernsydney.edu.au
n.ibnul@westernsydney.edu.au, J.Huang5@westernsydney.edu.au
S.Chevtchenko@westernsydney.edu.au, H.Zhong@westernsydney.edu.au
G.Cohen@westernsydney.edu.au, ying.xu@westernsydney.edu.au
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 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.109 ms compared with 120.655 ms 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.
Index Terms—underwater acoustic classification, embedded systems, edge inference, lightweight machine learning, performance evaluation, Raspberry Pi
I. INTRODUCTION
Shore-connected passive acoustic monitoring systems enable continuous observation of underwater soundscapes, but their dependence on coastal infrastructure can restrict monitoring locations [1]. Deploying hydrophones offshore can extend monitoring coverage, although transmitting acoustic recordings may be impractical due to limited connectivity, bandwidth and power [2]. Processing these recordings directly on embedded devices offers an alternative by enabling local vessel classification and reducing reliance on continuous transmission.
However, high classification accuracy alone does not establish suitability for embedded deployment, where processing time, memory and power constraints must also be considered. Recent research has highlighted the importance of acoustic representation and classifier architecture in underwater acoustic target recognition [3]. Previous work has demonstrated real-time acoustic processing using embedded hydrophone systems [4], while Vasconcelos et al. [5] investigated low-power maritime monitoring architectures that separate continuous vessel detection from classification. Park et al. [6] further demonstrated lightweight ship-radiated sound classification on a Raspberry Pi, highlighting the importance of measured inference efficiency. These studies establish the potential of embedded acoustic monitoring and motivate the selection of classifiers that balance classification performance with hardware resource requirements. To select a suitable classifier, we must consider the computational cost of both acoustic preprocessing and model inference [5]. Comparing complete audio-to-prediction pipelines on the same device allows us to assess these costs alongside classification performance and identify suitable deployment trade-offs.
To investigate these trade-offs, we implemented and evaluated six underwater vessel classifiers on a Raspberry Pi 5, spanning linear models, nonlinear classifiers and neural networks. Using the ShipsEar benchmark [7], we compared classification performance, processing latency and hardware resource usage. Supporting experiments examined Short-Time Fourier Transform (STFT) configuration, statistical pooling and neural architecture choices to inform the design of classifiers for embedded deployment. The resulting comparison informed the selection of a radial basis function support vector machine (RBF-SVM) for deployment on a Raspberry Pi Zero 2 W. The main contributions of this work are:
• Systematic embedded evaluation: We implement and benchmark six vessel classification models on a Raspberry Pi 5 under a unified audio-to-prediction pipeline, enabling direct comparison of classification accuracy, end-to-end latency, CPU utilisation, memory consumption, and monitored power.
• Representation and computational trade-off analysis: We investigate the impact of acoustic feature configurations and model architectures on classification performance and computational requirements. Our measurements identify feature extraction as the dominant processing cost for classical classifiers, identifying a practical target for reducing end-to-end latency.
- Resource-constrained deployment validation: We demonstrate that an RBF-SVM achieves near-CNN classification accuracy with a median end-to-end processing latency approximately 76.7% lower than that of the CNN on Raspberry Pi 5. Its deployment on Raspberry Pi Zero 2 W further demonstrates sufficient throughput for processing consecutive five-second audio segments in a resource-constrained environment.
We adopted the Short-Time Fourier Transform (STFT) as the common acoustic representation for all classifiers. We evaluated different FFT sizes and frequency-bin configurations using a consistent one-layer Convolutional Neural Network (CNN) architecture. A baseline of 2048-point FFT with 64 frequency bins served as the reference, while our final configuration uses a 4096-point FFT with 128 bins. This established a common acoustic representation for benchmarking classification performance and computational requirements on the Raspberry Pi 5.
We selected the classifiers to compare linear and nonlinear models using pooled acoustic features with neural models operating directly on spectrograms. We used logistic regression and a linear Support Vector Machine (SVM) to establish computationally lightweight classification baselines. We then used a Radial Basis Function-SVM (RBF-SVM) and a Multilayer Perceptron (MLP) to investigate whether nonlinear modelling could improve classification performance sufficiently to warrant additional computational cost on embedded hardware. To reduce feature dimensionality, we applied temporal mean and standard deviation pooling, a statistical aggregation approach also used in acoustic representation learning [9]. The mean summarises the typical spectral response of each frequency bin, while the standard deviation captures its variation over time. Concatenating both statistics across the spectrogram produces a 256-dimensional feature vector.
Building on the statistical classification approaches, we investigated CNNs operating directly on spectrograms, varying kernel geometry, pooling and dropout to develop a compact two-layer architecture. Square kernels were examined for local time-frequency patterns, while rectangular kernels with greater temporal extent were evaluated for longer-duration acoustic variation, following previous work on time-frequency convolutional kernel design [10]. We also applied temporal mean and standard deviation pooling to intermediate convolutional feature maps, aggregating each channel-frequency response across time before classification.
To complement convolution-based feature extraction, a compact patch transformer with self-attention is used to model relationships between acoustic features across different temporal intervals. Similarly to the Audio Spectrogram Transformer [11], the spectrogram was divided into patches, projected into embeddings and processed using self-attention. Patch geometry is then investigated because the number and dimensions of patches influence both the acoustic information represented and the computational requirements of attention. Local patches were compared with full-frequency and patches, producing 368, 23 and 47 patches, respectively. Full-frequency temporal patches [12] incorporate all 128 frequency bins within each temporal interval, allowing spectral components to be represented together while reducing the sequence length compared with local patching. Varying temporal widths were examined to investigate the balance between temporal resolution and the number of patches. To evaluate embedded performance, all six classifiers were implemented on a Raspberry Pi 5 using a shared audio-to-prediction pipeline. The CNN and Patch Transformer processed spectrograms, while the remaining four classifiers used 256-dimensional temporally pooled features. We trained all six classifiers across five random seeds and report their mean accuracy and macro-F1 with standard deviations. Logistic regression, linear SVM and RBF-SVM produced identical classification scores across these runs.

Fig. 1. Raspberry Pi 5 underwater vessel classification pipeline. Five-second audio segments are converted into a STFT representation. The CNN and Patch Transformer use spectrograms; the other four classifiers use 256-dimensional mean and standard deviation features.
We measured the total time for the complete audio-to-prediction pipeline using the same 445 test segments. Processing time was separated into audio loading, feature extraction and model inference, with median latencies reported for all six classifiers, with a 95th-percentile inference latency. A separate 60-second sustained workload was used to examine throughput, CPU utilisation, memory consumption and processor temperature. Power usage was estimated using the Raspberry Pi 5's monitored Power Management Integrated
Circuit (PMIC) rails. Process-level and system-wide measurements were recorded separately to characterise the hardware requirements of each classifier.
III. RESULTS AND DISCUSSION
The Raspberry Pi 5 evaluation demonstrated that the relationship between classification performance and computational efficiency is not always straightforward, as more accurate or complex models do not necessarily incur higher inference latency. To understand these differences, we first examine the effects of feature configuration and architectural optimisation before comparing the classification performance, execution time and hardware requirements of the six deployed models.
We investigated the effect of STFT parameters on classification performance using a consistent one-layer CNN architecture. Increasing the FFT size from 2048 to 4096 and the frequency bins from 64 to 128 improved macro-F1 from 88.41 to 93.84 while increasing model parameters from 1,893 to 3,173.
Table I presents the effects of statistical pooling on CNN classifier dimensionality and the influence of patch geometry on Transformer complexity and classification performance. These experiments investigate two approaches to improving neural classification while controlling model complexity, examining practical performance on embedded hardware.
TABLE I EFFECT OF CNN STATISTICAL POOLING AND TRANSFORMER PATCH GEOMETRY ON SHIPSEAR CLASSIFICATION.
| 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 (8 × 20) | 368 | 201,349 | 74.53 |
| Full freq. (128 × 20) | 23 | 464,389 | 96.85 |
| Full freq. (128 × 10) | 47 | 303,621 | 97.11 |
Notes: Input denotes CNN classifier features or Transformer patch counts. CNN feature dimensions are without pooling and with pooling. Results are from exploratory experiments.
As shown in Table I, temporal statistical pooling reduced the CNN classifier input from 302,080 to 5,120 features and the overall parameter count by approximately , while increasing macro-F1 from to . These exploratory results suggest that temporal aggregation retained sufficient discriminative information while reducing the size of the fully connected classification head.
For the patch transformer, patch geometry influenced how spectral information was represented and processed. The improvement in macro-F1 from to suggests that representing cross-frequency relationships within individual patches is beneficial for distinguishing vessel sounds. Although this configuration reduced the sequence from 368 to 23 patches, the parameter count increased, demonstrating that fewer tokens do not necessarily produce a smaller model. Furthermore, the exploratory configuration achieved a slightly higher macro-F1 of 0.9711 with fewer parameters than the configuration.
In table II we compare classification performance, model storage and execution time for all six models on the Raspberry Pi 5. Across five seeds, the two-layer CNN achieved a mean accuracy of and macro-F1 of , compared with accuracy and macro-F1 for the RBF-SVM. Their median end-to-end latencies were 120.655 ms and 28.109 ms, respectively.
TABLE II SHIPSEAR CLASSIFICATION PERFORMANCE AND LATENCY ON RASPBERRY PI 5.
| Model | Acc. (%) | Macro-F1 (%) | Size (KiB) | Infer. (ms) | E2E (ms) |
|---|---|---|---|---|---|
| CNN (2-layer) Patch | 99.06 ± 0.33 | 99.14 ± 0.32 | 723.08 | 91.050 | 120.655 |
| Transformer | 96.40 ± 0.71 | 96.48 ± 0.63 | 1824.11 | 2.776 | 29.738 |
| MLP | 96.05 ± 0.79 | 96.08 ± 0.71 | 1179.03 | 0.901 | 27.772 |
| Linear SVM Logistic | 90.34 ± 0.00 | 89.70 ± 0.00 | 17.25 | 0.614 | 27.179 |
| regression | 87.87 ± 0.00 | 88.03 ± 0.00 | 12.39 | 0.652 | 27.270 |
| RBF-SVM | 98.88 ± 0.00 | 98.83 ± 0.00 | 2428.27 | 1.193 | 28.109 |
Notes: Classification scores are mean ± sample SD across five seeds on 445 test segments. Latencies are medians; E2E includes audio loading, feature extraction and inference. Bold indicates the best value per metric. Selected for Raspberry Pi Zero 2 W deployment.
The RBF-SVM achieved a end-to-end speedup over the CNN, with only 0.31 percentage points lower macro-F1, supporting its selection for resource-constrained deployment. Examining the processing-time breakdown, median STFT feature-extraction times averaged 25.89 ms across the six classifiers, reflecting their shared preprocessing configuration. For the RBF-SVM, feature extraction accounted for approximately of end-to-end processing time, while inference required only 1.193 ms. Its 95th-percentile (P95) inference latency was 1.243 ms, only above the median. This demonstrates that informative spectral features can support high classification accuracy with relatively inexpensive model inference. In contrast, CNN inference accounted for approximately of its total processing time, making its slightly higher mean classification performance considerably more expensive on the Raspberry Pi 5. The Patch Transformer also exhibited much faster inference than the CNN despite having more parameters, although the cause of this difference remains unresolved without operator-level profiling. These results show that embedded deployment suitability depends on how the complete processing pipeline executes on the target hardware, over model complexity alone.
Beyond processing latency, Table III shows the hardware resource requirements during sustained operation. Compared with the RBF-SVM, the CNN required 2.17 times greater system CPU utilisation, approximately more process memory and higher monitored PMIC power. The RBF-SVM maintained near-CNN classification accuracy with substantially lower hardware demands. The results provide a controlled comparison of classification performance and computational requirements under consistent benchmark conditions.
TABLE III HARDWARE RESOURCE UTILISATION ON RASPBERRY PI 5.
| 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 |
Notes: Measurements taken during 60-second sustained execution. CPU is mean system utilisation; RAM is process memory. PMIC power covers monitored rails, not total input power. Bold indicates the lowest value per metric.
The processing time for the model on Raspberry Pi 5 further showed that model size does not directly determine computational cost. As shown in Fig. 2, the RBF-SVM achieved comparable accuracy to the CNN while requiring 4.29 times less end-to-end processing time. This favourable accuracy-latency trade-off motivated its selection for deployment on the more resource-constrained Raspberry Pi Zero 2W.

Fig. 2. Classification accuracy versus median end-to-end latency for six classifiers on the Raspberry Pi 5. The RBF-SVM achieved accuracy compared with for the CNN, while providing a 4.29-fold speedup.
A. Raspberry Pi Zero 2 W Implementation
TABLE IV RBF-SVM PROCESSING PERFORMANCE AND RESOURCE USAGE ON RASPBERRY PI 5 AND ZERO 2 W USING SHIPSEAR.
| 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 |
Table IV compares feature extraction, model inference, and resource usage on both devices. On the Raspberry Pi Zero 2 W, the RBF-SVM maintained accuracy and macro-F1 across 445 ShipsEar test recordings. The device achieved a median end-to-end latency of 349.09 ms, including WAV loading, feature extraction, and inference, with a sustained throughput of 2.962 classifications/s. This exceeds the 0.2 classifications/s required for consecutive five-second recordings by 14.8 times. During inference across the full test set, we measured an average device power consumption of 1.17 W, compared with 0.55 W at idle, representing an additional 0.62 W under load.
Previous ShipsEar studies reported accuracies of using ACNN-DRACNN (0.61M parameters) [13], using CAPSE-ViT (1.90M) [14], and using SSA-CACNN (0.26M) [15]. Our two-layer CNN achieved a mean accuracy of across five seeds using only 0.183M parameters on the adopted ShipsEar split. Our earlier investigation evaluated vessel classification on both ShipsEar and DeepShip, including recording-level partitioning on DeepShip [16]. The present study extends this work through classification and hardware performance evaluation on Raspberry Pi devices.
IV. CONCLUSION
Our findings demonstrate that careful acoustic feature selection and model optimisation can support accurate and computationally efficient underwater vessel classification on embedded hardware. Experiments with CNNs showed that optimising STFT parameters improved classification performance, while statistical pooling improved performance and reduced model complexity. Full-frequency Transformer patching also improved performance while reducing the number of patches, reinforcing the importance of architectural design.
The Raspberry Pi 5 evaluation demonstrated how these design choices translate into practical edge performance. Across five seeds, the CNN achieved the highest mean accuracy of , while the RBF-SVM achieved a comparable accuracy with faster end-to-end processing and only 1.19 ms for classifier inference. These results demonstrate that classical classifiers, such as the RBF-SVM, supported by effective feature engineering, can approach the performance of deep learning models at substantially lower inference costs. This motivated its deployment on the more resource-constrained Raspberry Pi Zero 2 W, where it maintained the same classification accuracy and achieved 14.8 times the throughput required for consecutive five-second recordings. These results demonstrate the feasibility of CPU-only vessel classification on low-resource embedded hardware, supporting local acoustic monitoring while reducing reliance on continuous data transmission to shore.
REFERENCES
[1] C. Pierpoint, J. Morrish, and D. Hedgeland, “Real-time remote monitoring of underwater soundscapes,” in The Effects of Noise on Aquatic Life IV. Springer, 2026.
[2] A. Pal, F. Campagnaro, K. Ashraf, M. R. Rahman, A. Ashok, and H. Guo, “Communication for underwater sensor networks: A comprehensive summary,” ACM Transactions on Sensor Networks, vol. 19, no. 1, pp. 1–44, 2022.
[3] N. Müller, J. Reermann, and T. Meisen, “Navigating the depths: A comprehensive survey of deep learning for passive underwater acoustic target recognition,” IEEE Access, vol. 12, pp. 154 092–154 118, 2024.
[4] D. M. Toma, I. Masmitja, J. del Rio, E. Martinez, C. Artero-Delgado, A. Casale, A. Figoli, D. Pinzani, P. Cervantes, P. Ruiz, S. Meme, and E. Delory, “Smart embedded passive acoustic devices for real-time hydroacoustic surveys,” Measurement, vol. 125, pp. 592–605, 2018.
[5] H. M. Vasconcelos, P. J. S. C. P. Sousa, S. Dias, J. P. Pinto, I. D. van Golde, P. J. Tavares, and P. M. G. P. Moreira, “A low-power architecture for passive acoustic autonomous maritime surveillance,” Journal of Marine Science and Engineering, vol. 14, no. 9, p. 815, 2026.
[6] S. Park, D. Kim, S.-H. Byun, and S. Park, “Ultra-lightweight ship-radiated sound classification for real-time embedded inference,” IEEE Embedded Systems Letters, 2026.
[7] D. Santos-Domínguez, S. Torres-Guijarro, A. Cardenal-López, and A. Pena-Gimenez, “ShipsEar: An underwater vessel noise database,” Applied Acoustics, vol. 113, pp. 64–69, 2016.
[8] C. Hashemi, T. Stout, A. Hoogs, and J. Parham, “UniqueShip: Mitigating data leakage in acoustic ship classification benchmark datasets,” 2026. [Online]. Available: https://arxiv.org/abs/2609.13659
[9] D. Snyder, D. Garcia-Romero, G. Sell, D. Povey, and S. Khudanpur, "X-Vectors: Robust DNN embeddings for speaker recognition," in 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2018, pp. 5329–5333.
[10] J. Pons and X. Serra, “Designing efficient architectures for modeling temporal features with convolutional neural networks,” in 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2017, pp. 2472–2476.
[11] Y. Gong, Y.-A. Chung, and J. R. Glass, “AST: Audio spectrogram transformer,” in Proceedings of Interspeech, 2021, pp. 571–575.
[12] A. Makineni, B. Geng, and Q. Tian, “Full-frequency temporal patching and structured masking for enhanced audio classification,” 2025.
[13] J. Ni, F. Ji, S. Lu, and W. Feng, “An auditory convolutional neural network for underwater acoustic target timbre feature extraction and recognition,” Remote Sensing, vol. 16, no. 16, p. 3074, 2024.
[14] Najamuddin, U. U. Sheikh, and A. Z. Sha'ameri, "CAPSE-ViT: A lightweight framework for underwater acoustic vessel classification using coherent spectral estimation and modified vision transformer," Archives of Acoustics, vol. 50, no. 2, pp. 161–171, 2025.
[15] F. Ji, S. Lu, J. Ni, Z. Li, and W. Feng, “Underwater target recognition method based on singular spectrum analysis and channel attention convolutional neural network,” Sensors, vol. 25, no. 8, p. 2573, 2025.
[16] A. Soti, T. P. Sone, N. Ibnul, H. H. Aung, H. Zhong, G. Cohen, and Y. Xu, “Towards deployable underwater vessel classification,” 2026. [Online]. Available: https://arxiv.org/abs/2609.29179