Related Experiment Video
Updated: Jun 3, 2026

Ultrasonic-Assisted Preparation of Biodiesel Products from Vegetable Oils
Published on: April 19, 2024
Biodiesel classification by base stock type (vegetable oil) using near infrared spectroscopy data
Roman M Balabin1, Ravilya Z Safieva
1Department of Chemistry and Applied Biosciences, ETH Zurich, Switzerland. balabin@org.chem.ethz.ch
Near-infrared (NIR) spectroscopy quickly classifies biodiesel by its vegetable oil source. Machine learning methods like K-nearest neighbors (KNN) and support vector machines (SVM) achieve high accuracy, enabling efficient biofuel quality control.
Area of Science:
- Analytical Chemistry
- Spectroscopy
- Chemical Engineering
Background:
- Biofuels, including bioethanol and biodiesel, are increasingly used.
- Near-infrared (NIR) spectroscopy offers a cost-effective and rapid method for quality control compared to traditional techniques.
- Real-time, on-line analysis is feasible with NIR spectroscopy.
Purpose of the Study:
- To establish a correlation between NIR spectra and biodiesel base stock (originating vegetable oil).
- To classify biodiesel samples into 10 distinct groups based on their feedstock.
- To evaluate the effectiveness of various machine learning techniques for this classification task.
Main Methods:
- Near-infrared (NIR) spectroscopy was employed to obtain spectral data from biodiesel samples.
- Principal Component Analysis (PCA) was used for outlier detection and dimensionality reduction.
- Four multivariate data analysis techniques were applied: Regularized Discriminant Analysis (RDA), Partial Least Squares-Discriminant Analysis (PLS-DA), K-nearest Neighbors (KNN), and Support Vector Machines (SVMs).
Main Results:
- Biodiesel classification based on feedstock type was successfully achieved using NIR spectroscopy and machine learning.
- K-nearest Neighbors (KNN) and Support Vector Machines (SVMs) demonstrated high effectiveness in classifying biodiesel by feedstock oil type.
- An SVM-based approach achieved a classification error (E) below 5%, while KNN offered a practical alternative with E=6.2%.
Conclusions:
- Modern machine learning techniques combined with NIR spectroscopy provide a robust solution for classifying biodiesel by its feedstock.
- SVMs offer superior accuracy, whereas KNN presents a computationally efficient option for industrial implementation.
- The methodology proves relatively simple and effective for biodiesel classification, distinguishing it from other fuels like gasoline and motor oil.
Related Concept Videos
Biofuels
UV–Vis Spectroscopy: Woodward–Fieser Rules
Infrared (IR) Spectroscopy: Overview
Different compounds display unique properties due to their...
IR Spectrum
Transmittance is defined as the ratio of the radiant power passing through a sample to that from the radiation's source. Multiplying the transmittance by 100 gives the percent transmittance (%T), which varies between 100% (no absorption) and 0% (complete...
Classification of Titrimetric Analysis Based on Reaction Types
Titrations between an acid and a base lead to neutralization reactions that form...
IR and UV–Vis Spectroscopy of Aldehydes and Ketones

