1. Introduction
Movement ecology is a cross-disciplinary academic field focused on the study of movement. Its aim is to enhance the comprehensive theory of biological movement in order to gain a better understanding of the mechanisms, patterns, causes, and impacts of all movement phenomena [
1]. Moreover, ecologists strive to explore the impact of habitat change and climate change on the future by studying the causes and consequences of individual movement, understanding individual behavior and the spatial dynamics of groups at higher organizational levels. They also focus on the interactions between individuals and the environment [
2].
Biologgers are a common type of sensor microsystem based on Lagrangian methods. They are typically composed of microcontrollers, microsensors, data storage units, data transmission units, and other combinations based on specific requirements. Using a biological recorder for non-proximity sampling not only reduces the impact of human activities on wildlife but also tracks and observes the movement status and physiological indicators of target individuals.
Migratory birds are birds that migrate periodically with the changing seasons. Among the existing 10,000 species of birds, more than 1800 are migratory birds. The number of individual birds migrating globally has reached billions or even tens of billions. This massive movement of bird populations is not only a specific manifestation of global climate change but also has a significant impact on the maintenance and stability of the global ecosystem structure and function [
3]. Migration is a complex phenomenon that involves a series of physiological changes. It is characterized by predictable, continuous, and directional movements of animals, such as migratory birds, between different environments. This behavior allows organisms to maximize their adaptability to the environment by taking advantage of the productivity benefits offered by different seasons and locations [
4]. Therefore, tracking and sampling the movement status and physiological indicators, known as “biologging”, of migratory birds can help biologists understand the natural movement patterns of birds, and is of great significance for studying the survival status of migratory birds, carrying out ecological protection of migratory birds, and observing global ecosystem changes.
Figure 1 shows our research object, the spotted goose, as well as some biologger studies applied to birds. Research [
5] described an implantable instrument deployed in a project studying the high altitude Himalayan migrations of bar-headed geese, which can collect motion and ECG information for years. However, compared to implantable devices, wearable biological recorders (such as sensing tags [
6]) have a smaller impact on the health of migratory birds.
Barometric pressure is an important environmental parameter that is influenced by various factors, including temperature, geographical coordinates, altitude, and weather. As a result, it can be used to measure relevant environmental variables in the fields of meteorological monitoring, aerospace, and equipment manufacturing. In bird biological recording scenarios, barometric pressure can describe the environmental meteorological conditions and also indicate the flight altitude of birds when combined with positional information. This makes it an important factor in measuring 3D position information during bird migration. Large migratory birds can migrate up to tens of thousands of kilometers, flying up to roughly 3000–4000 m above sea level at speeds of up to 80 km/h. During migration, these birds navigate across plateaus and encounter highly dynamic and challenging high-altitude environments characterized by wide swings in temperature and pressure [
8,
9]. Therefore, a set of barometric pressure monitoring methods that can handle complex, temperature-varying environments is required to meet the field biological recording needs of large migratory birds. These methods should also be small, reliable, and easy to deploy in an embedded system. This is particularly important when considering the limited mass, volume, and power consumption of the biological recorders that can be carried by migratory birds.
In recent years, there has been rapid development in and widespread use of various types of micro-electromechanical systems (MEMS) barometric pressure sensors thanks to the advancement of MEMS technology. Based on their operating mechanisms, these sensors can be classified into different categories, such as capacitive, piezoresistive, resonant, and piezoelectric sensors [
10]. Compared to capacitive barometric pressure sensors that exhibit low sensitivity and a nonlinear input-output relationship, resonant barometric pressure sensors that can be expensive, and piezoelectric barometric pressure sensors that have weak anti-jamming performance, piezoresistive barometric pressure sensors, designed and produced by utilizing the piezoresistive effect of semiconductor materials, offer several advantages. These sensors provide high sensitivity, good linearity, excellent stability, and low cost, and as a result are more suitable for barometric pressure monitoring in biological recording scenarios [
11]. However, the detection performance of piezoresistive barometric pressure sensors is significantly influenced by temperature due to the thermal properties of semiconductor materials. Liu et al. showed that the error of the barometric pressure sensor becomes more pronounced as the temperature gets closer to the low-temperature condition [
12]. Additionally, the error of the barometric pressure sensor in a low-pressure environment is influenced by temperature more than in a high-temperature environment. Therefore, it is necessary to calibrate the temperature compensation of barometric pressure sensors in biological recording scenarios to minimize the impact of complex dynamic environments with high and low temperatures on barometric pressure measurement accuracy.
Existing barometric pressure sensor temperature compensation methods can be divided into two categories: hardware compensation and software compensation. Due to the high cost, limited universality, and technical complexity, hardware compensation alone cannot fully meet the demands of engineering applications [
13,
14,
15]. As a result, researchers and scholars worldwide are actively exploring different software compensation algorithms. Liu employed artificial neural networks to mitigate temperature drift in pressure sensors with promising outcomes [
16]. Another approach described by Wang et al. involved the use of segmental fusion that combined linear fitting with a particle swarm-optimized radial basis function (RBF) neural network method [
17]. This approach demonstrated improved results in terms of fitting error and computation time. Another study by Qiao explored the optimization of a BP (Back Propagation) neural network using an artificial fish school-frog hopping algorithm to fit barometric data, showing superiority over traditional genetic algorithms [
18]. In the context of barometric altitude detection, Jia et al. proposed the use of wavelet functions to enhance the performance of the BP neural network, thereby reducing barometric nonlinear error [
19].
Among the existing methods, the mainstream idea is to use intelligent algorithms to optimize RBF or BP neural networks. The RBF neural network has several advantages over other feedforward neural network models, such as its simple structure, fast training speed, and strong generalizability. Additionally, the RBF neural network radial basis function local response characteristics align well with the requirements of the barometric sensor for fitting local nonlinear errors caused by high and low temperatures. Unfortunately, the current compensation methods are designed for static states and do not address the issue of response hysteresis in complex temperature change environments, and their high algorithm complexity makes them unable to meet the requirements of low power consumption, fast response, and stable deployment in migratory bird biological recording scenarios.
To overcome current limitations in RBF neural network methods for migratory bird biological recording, we propose an improved air pressure compensation algorithm in this paper. The algorithm, based on the existing low-power bird wearable physiological information acquisition system [
20], is designed to address the challenges posed by complex temperature-variable environments, such as low-pressure, low-temperature, and high-dynamic working conditions using the limited computational resources of embedded devices. The temperature-pressure fitting model can enhance the sensor’s robustness in a dynamic temperature-variable environment, and the improved loss function can achieve a balance between model accuracy and complexity, ensuring real-time monitoring of the equipment’s field environment.
The chapters of this paper are introduced as follows: In
Section 2, the dynamic temperature change model and an improved dynamic quantum particle swarm optimization (DQPSO) algorithm are introduced. In
Section 3, the new compensation algorithm is verified by the dynamic environment simulation experiment, data analysis, and embedded platform deployment.
Section 4 is the conclusion of this paper.
2. Dynamic Quantum Particle Swarm Optimization Radial-Based Neural Network Algorithm
In this section, a local thermodynamic equivalent model of the sensing device is established, and an improved dynamic quantum particle swarm optimization (DQPSO) algorithm is proposed to optimize a radial basis function (RBF) neural network. The algorithm incorporates a temperature-pressure fitting model that includes terms for temperature rate of change and gradient reference, as well as a loss function that balances fitting accuracy and complexity.
2.1. Dynamic Temperature Change Model
For modeling temperature-varying environments, which is common in the study of crystal oscillators and gyroscopes, two influences are generally considered: the temperature gradient and rate of change [
21,
22,
23]. In temperature-changing environments, errors in piezoresistive pressure sensors are mainly caused by thermal zero drift, changes in thermal sensitivity, and thermal hysteresis effects [
24].
Heat conduction is not uniform with rapid changes in ambient temperature due to the presence of a protective shell for the device and the varying thermal time constants between the barometric pressure sensor and the temperature sensor. This leads to a localized temperature gradient and hysteresis in relation to the ambient temperature, and the thermodynamic equivalent model is illustrated in
Figure 2. The temperature sensors we used were usually MEMS Si band-gap temperature sensors with a digital processor integrated, and the pressure sensors were chosen due to their performance in sensitivity, linearity, stability, and cost. The change in barometric pressure can be considered instantaneous, but the hysteresis of temperature disrupts the coupling relationship between the local temperature of the sensor and the barometric pressure, introducing errors in the measurement of barometric pressure.
At time
t, the temperature at the barometric pressure sensor and temperature sensor can be expressed, respectively, as
where
and
denote the thermal time constants of the temperature and barometric pressure sensors, respectively, and
denotes a slight change in time (
). Commonly, the ambient temperature,
, is calculated based on the temperature sensor output temperature,
, which is
When the ambient temperature changes, the change in temperature at the temperature sensor and at the pressure sensor is not equal due to different thermal time constants and thermal gradient distributions, as shown in
Figure 1. Moreover, the temperature variation pattern at the same location in the device is not always the same, due to the randomness of the heating mode and local heat conduction process of the equipment. Therefore, it is not sufficient to only consider the temperature rate of change to accurately model the temperature field in its entirety in the traditional model. It is also necessary to include a description of the temperature gradient between the barometric pressure sensor and the environment, and this can be achieved by introducing additional temperature measurement points with fixed relative positions. This leads to our dynamic temperature change model. In practice, temperature sensors and barometric pressure sensors are often placed on the same circuit board, and we assume that all temperature measurement points would be on the same geometric plane as the barometric pressure sensor. The distribution of temperature gradients measured at multiple locations can be considered a map of the temperature distribution between the barometric pressure sensor and the ambient temperature, and the introduction of multiple temperature point measurements can capture the distribution of temperature gradients as a factor that influences barometric pressure compensation. In general, the dynamic temperature change model incorporates a greater number of temperature measurement points and takes into account the distribution of local temperature gradients in the device. This provides more environmental information for pressure temperature compensation compared to the traditional model. In our model, the estimation error of pressure is influenced not only by the resolution, sensitivity, and stability of the sensor itself, but also by the dynamic distribution of heat in time and space. In fact, this applies to any sensor that is affected by temperature.
2.2. Quantum Particle Swarm Optimization Algorithm
Particle swarm is a classical algorithm for intelligent optimization proposed by Kenney and Eberhart in 1995 [
25]. The algorithm was developed based on the flight behavior in bird flocks and incorporates the concepts of individual evolution and knowledge transfer through the continuous cooperation and competition of many particles. Each particle continuously updates its position based on the individual optimal value and the group optimal value to realize the search for the global optimal solution in a complex space. Compared to other swarm intelligent optimization algorithms, the particle swarm algorithm is simple to operate, fast to train, and avoids complex genetic mutation and other processes, and since the algorithm was proposed, researchers have made various detailed improvements to the speed and position update process [
25,
26]. In this paper, we optimize the structural and computational parameters of the radial-based neural network using the quantum particle swarm algorithm [
27,
28,
29]. The algorithm establishes a particle swarm model based on quantum and potential wells, which introduces more randomness to the model, improves global convergence performance, reduces the number of control parameters, and enhances optimization searching ability.
There are N initialized particles, and the execution process of the algorithm is as follows:
Step 1: Randomly initialize the positions of all particles,
, and calculate the initial global optimal position,
, and the initial average optimal position,
, of all particles according to the objective fitness function
where
denotes the optimal position of the
ith particle of the nth theory evolution.
Step 2: Randomly update the position of each particle according to
where the summed proportional weights are chosen randomly for the individual and global optimal solutions so that
(uniform distribution between 0 and 1). In the last part of Equation (4),
is the innovation parameter. It has been proven by theory and random simulation experiments that in the algorithm with the evolution Equation (4), the necessary and sufficient condition for the convergence of a single particle is
[
27]. In addition,
can generate a randomized positional term based on potential wells, so the sign before alpha in Equation (4) is chosen at random with a 50% probability of a positive sign or a negative sign.
Step 3: According to the target fitness function, update the current fitness values of all particles as well as the individual optimal position, the global optimal position, and the global average optimal position.
Step 4: Check if the iteration end condition has been met, and if so, end the optimization search process; otherwise, repeat steps 2 and 3.
2.3. Temperature-Pressure Fitting Model with Loss Function
Piezoresistive barometric sensors produce nonlinear errors in both high- and low-temperature regions, and temperature compensation essentially involves solving a nonlinear function fitting problem. Radial basis neural networks map low-dimensional data inputs to higher dimensions by means of radial basis functions, thus transforming a problem that is not linearly differentiable in low-dimensional space into a linearly differentiable problem in high-dimensional space [
30]. It has been proven that on a compact set, the radial basis neural network can approximate any nonlinear function with arbitrary accuracy [
31]. Compared with other feed-forward neural network models, the radial basis neural network has the advantages of simple structure, fast training speed, and strong generalizability. Furthermore, the radial basis function has the characteristic of local response, which is beneficial for the high- and low-temperature nonlinear error fitting requirements of barometric sensors.
Synthesizing the theoretical analysis outlined in the previous two sections, this paper proposes an innovative four-input and two-output radial basis neural network model. The model incorporates the temperature rate of change and temperature gradient as inputs and improves the iterative loss function by synthesizing the constraints on the model’s fitting accuracy and complexity, as shown in
Figure 3. The input variables include raw data for air pressure, raw data for multi-temperature points, the temperature rate of change, and the temperature gradient. The output variables are the ambient temperature and ambient air pressure.
The radial basis neural network is highly influenced by the choice of the centers of the hidden layer basis function, which are generally selected using the K-means algorithm. However, in the case of barometric sensor temperature and pressure calibration points, they are uniformly spaced dot matrix inputs. The position of the clustering center can be adjusted by manipulating the density distribution of the input data, which helps optimize the performance of local nonlinear fitting. Therefore, the distribution of the basis function centers can be adjusted to be more uniform and more densely distributed in high- and low-temperature nonlinear regions. In this paper, the optimization parameters for the model are selected as the number of nodes in the hidden layer and the variance of the Gaussian radial basis function. The iteration end condition is set to reach the maximum number of iterations or the loss function no longer decreases.
The quantum particle swarm algorithm is utilized to optimize these two variables globally on the fitness function set, ultimately obtaining the temperature-pressure fitting model with optimal accuracy and complexity. In order to distinguish it from the method of optimizing radial basis function neural networks using traditional particle swarm optimization algorithms (QPSO-RBF), the method proposed in this paper is named Dynamic QPSO-RBF (DQPSO-RBF). The model training would need to be completed in a lab environment prior to sensor field deployment.
If the true value of ambient barometric pressure for the
ith data set is
and the model fit barometric pressure value is
, the average mean square error given by:
and the average absolute error given by:
can be used to assess the model’s accuracy. By analyzing the output error results, the fitness function, or loss function, is constructed to maintain a comparable order of magnitude between the model error MSE and the number of nodes P in the hidden layer of the network. The loss function is given by:
where
is the penalty term for the number of nodes in the hidden layer, which is
in this paper.
In summary, the steps for constructing the temperature and pressure fitting model of the particle swarm algorithm-optimized radial basis neural network designed in this paper are shown in
Figure 4.