A portable spectrometer that can acquire and process arc spectrum data in real-time is designed.
An innovative method based on spectral analysis is proposed to perform porosity defect detection.
The relationship between features extracted from spectral lines and porosity size is investigated.
A GA-SVM model is built to classify different types of porosity.
Experiments based on X-ray inspection are carried out to verify the proposed technique.