2.2 SVM Algorithm Theory
Support vector machine (SVM) is a supervised
learning algorithm based on statistical learning
theory, which can be classified and regressed tasks.
The SVM is based on the construction of a hyperplane
that splits the data into different classes
(Kavoliunaite-Ragauskiene, 2024) and maximizes
the spacing between the classes. SVM can effectively
deal with complex linear indivisibility problems in
high-dimensional spaces, and by using kernel
functions, SVMs map low-dimensional data to high-
dimensional spaces to find an optimal classification
boundary in this space (Li, Hua, et al. 2023). In the
EDA recognition task, SVM can classify different
emotional states based on the analysis of changes in
skin conductance signals. It has the advantage of
being able to process high-dimensional data and
avoid overfitting. SVM has a global optimal decision
boundary, so it performs well in sentiment
classification (Miller, 2023).
2.3 Theory of Embedded EDA
Recognition Technology
EDA recognition technology is based on monitoring
the electrical activity of the skin to reflect the
physiological and emotional state of the human body.
EDA signaling is reflected by changes in skin
conductance caused by sweat gland activity, which
fluctuates with mood (Ortiz-Clavijo, Gallego-Duque,
et al. 2023), especially when stressed, anxious, or
excited, with a significant increase in conductance.
This technology is based on sensors to collect skin
conductance signals in real time, and combines signal
preprocessing and feature extraction methods to
perform noise and interference and extract effective
emotion recognition features (Wang, Wang, et al.
2023). These features will be classified by the
classifier and, ultimately, the different emotional
states will be identified in real time. The real-time
nature and low power consumption of embedded
systems will enable EDA identification technology to
be widely applied to portable health monitoring
devices (Xiong, Yin, et al. 2023).
3 METHODS
3.1 Introduction of Embedded EDA
Identification Technology Based on
STM32 Microcontroller
The function of the signal acquisition module is to
collect the skin conductance signal in real time and
convert it into a digital signal. It is responsible for
collecting small changes in skin conductance based
on sensors, and then converts the analog signal into a
digital signal using the STM32 interface, ensuring
high-frequency sampling to capture subtle
conductance fluctuations. It provides a stable data
source for subsequent modules to process. The
function of the signal pre-processing module is to
denoise and filter the collected signal to filter out the
environmental noise and high-frequency interference
in the EDA number. The signal is then low-pass
filtered to retain the key low-frequency components.
At the same time, it can also be based on
standardization to make the signal suitable for feature
extraction and classification. It ensures maximum
purity and reliability of the input signal. The function
of the feature extraction module is to extract key
features from the preprocessed signal for recognition,
and it will recognize the rate of change of skin
conductance and the baseline value as the basis for
recognition. In its work, it also calculates the
instantaneous spikes and durations of EDA signals to
extract emotional state cues. It also has the ability to
convert the extracted features into vector inputs that
the model can process, which provides the most
discriminating signal features for the classification
model. The function of the classification model
module is to use the extracted features to classify and
identify emotional states. It uses the trained model to
classify the input signals in real time, and
distinguishes different emotional states based on
algorithms such as support vector machines. The
current emotional state is judged according to the
output probability value of the model, and the
corresponding emotional label such as "nervous" or
"relaxed" can be output according to the classification
results. The function of the Feedback & Storage
module is to provide feedback based on the
recognition results and store historical data. It feeds
back the current emotional state to the user based on
the LED display or sound alarm to provide the user
with a visual sentiment trend chart. The Feedback &
Storage module stores the identified emotional states
and the corresponding EDA signals locally or in the
cloud. This provides strong historical data support for
subsequent data analysis and model optimization. At
the same time, it also helps users to track long-term
mood changes and manage emotions.
3.2 Design of Embedded EDA
Identification Technology
In the embedded EDA recognition system based on