[Paper Review] Semi-supervised on-device neural network adaptation for remote and portable laser-induced breakdown spectroscopy
This paper proposes MLP-LIBS-ADAPT, a lightweight semi-supervised on-device neural network for portable and remote laser-induced breakdown spectroscopy (LIBS) that adapts to domain shifts without labeled data. Using a two-hidden-layer MLP with unsupervised domain adaptation via gradient reversal, it achieves 89.3% average accuracy during data streaming and up to 2.1% higher accuracy than non-adapting models, with inference and retraining times of 0.097s and 599s respectively on a Google Pixel 2.
Laser-induced breakdown spectroscopy (LIBS) is a popular, fast elemental analysis technique used to determine the chemical composition of target samples, such as in industrial analysis of metals or in space exploration. Recently, there has been a rise in the use of machine learning (ML) techniques for LIBS data processing. However, ML for LIBS is challenging as: (i) the predictive models must be lightweight since they need to be deployed in highly resource-constrained and battery-operated portable LIBS systems; and (ii) since these systems can be remote, the models must be able to self-adapt to any domain shift in input distributions which could be due to the lack of different types of inputs in training data or dynamic environmental/sensor noise. This on-device retraining of model should not only be fast but also unsupervised due to the absence of new labeled data in remote LIBS systems. We introduce a lightweight multi-layer perceptron (MLP) model for LIBS that can be adapted on-device without requiring labels for new input data. It shows 89.3% average accuracy during data streaming, and up to 2.1% better accuracy compared to an MLP model that does not support adaptation. Finally, we also characterize the inference and retraining performance of our model on Google Pixel2 phone.
Motivation & Objective
- To address the challenge of deploying lightweight, accurate ML models in resource-constrained, battery-operated portable LIBS systems.
- To enable on-device model adaptation to domain shifts—caused by environmental noise or unseen data distributions—without requiring labeled data from remote deployments.
- To optimize model performance under strict memory and power constraints typical of embedded devices like smartphones.
- To characterize inference and retraining performance of the model on a real-world embedded processor (Google Pixel 2).
- To propose a heterogeneous hardware accelerator architecture to efficiently support on-device inference and adaptation for future deployment.
Proposed method
- Proposes a lightweight two-hidden-layer MLP (MLP-LIBS) with 64 neurons per layer for LIBS spectral classification.
- Extends MLP-LIBS to MLP-LIBS-ADAPT by adding two auxiliary layers for unsupervised domain adaptation using gradient reversal (Ganin & Lempitsky, 2015).
- Employs a semi-supervised adaptation strategy where labeled long-term memory (LLTM) and unlabeled short-term memory (USTM) are used during on-device retraining.
- Uses data streaming evaluation with 10 chunks of test data, where USTM is updated continuously and the model is fine-tuned without labels.
- Performs model adaptation via standard backpropagation on the embedded device, minimizing computational overhead.
- Proposes a heterogeneous accelerator architecture with DRAM for raw spectra, NVM (e.g., ReRAM) for read-only LLTM, and SRAM for USTM, plus a specialized MLP accelerator for low-power training and inference.
Experimental results
Research questions
- RQ1Can a lightweight neural network be effectively adapted on-device for LIBS in the absence of labeled data from new environments?
- RQ2How does the size of the labeled long-term memory (LLTM) affect on-device adaptation performance in domain shift scenarios?
- RQ3What is the inference and retraining latency of the adapted model on a consumer-grade embedded processor like the Google Pixel 2?
- RQ4How does the accuracy of the on-device adapted model compare to a non-adapting baseline model under streaming data conditions?
- RQ5What hardware architecture enables efficient on-device inference and adaptation for portable LIBS systems?
Key findings
- MLP-LIBS-ADAPT achieves an average accuracy of 89.3% during data streaming on a well-known LIBS dataset with 12 mineral classes.
- The model improves accuracy by up to 2.1% compared to the non-adapting MLP-LIBS baseline under domain shift conditions.
- On the Google Pixel 2, the average inference time per data chunk is 0.097 seconds, and the average retraining time across 10 streaming chunks is 599 seconds.
- Optimal performance is achieved with an LLTM size equal to the initial offline training data (18,000 samples), as smaller LLTM sizes (e.g., 4,500) result in significant accuracy loss (85.6%).
- The configuration 18000i-18000L-100U achieves the best balance of accuracy, memory usage, and retraining time on the Pixel 2.
- The study identifies the need for a heterogeneous hardware accelerator combining NVM for LLTM, SRAM for USTM, and a specialized MLP training accelerator to support efficient on-device adaptation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.