Heart rate is a crucial physiological indicator for fish, but current measurement methods are often invasive or require delicate manipulation. In this study, we introduced two non-invasive and easy-to-operate methods based on photoplethysmography, namely reflectance-type photoplethysmography (PPG) and remote photoplethysmography (rPPG), which we applied to the large yellow croaker (Larimichthys crocea). PPG showed perfect synchronization with electrocardiogram (ECG), with a Pearson's correlation coefficient of 0.99999. For rPPG, the results showed good agreement with ECG. Under active provision of green light, the Pearson's correlation coefficient was 0.966, surpassing the value of 0.947 under natural light. Additionally, the root mean square error was 0.810, which was lower than the value of 1.30 under natural light, indicating not only that the rPPG method had relatively high accuracy but also that green light may have the potential to further improve its accuracy.

Heart rate is an important physiological indicator for understanding the metabolic state of fish and the effects of environmental changes on fish (Lefrançois and Claireaux, 2003; Campbell et al., 2007; Campbell and Egginton, 2007; Anttila et al., 2014; Joyce et al., 2016; Lonthair et al., 2017). Nevertheless, existing methods for measuring heart rate in fish are often invasive, causing injury, or requiring delicate manipulation, making the measurements not efficient enough. For electrocardiogram (ECG) in fish, the conventional methods include invasive, implantable and non-invasive approaches. However, both invasive and implantable ECG could cause damage to the fish, because the invasive method involves inserting electrodes near the fish's heart (Shelton and Randall, 1962; Zhao et al., 2019) and the implantable method requires surgical implantation of a bio-logger (Arvén Norling, 2017; Hvas et al., 2020). Although the non-invasive method only involves placing the fish on an electrode grid without electrode insertion (Altimiras and Larsen, 2000; Casselman et al., 2012), the devices used for non-invasive ECG are more complicated compared with the other two methods. Overall, all three ECG methods require expertise and are not simplified enough in their operation. Alternative methods, either invasive or requiring delicate manipulation, have also been used to measure fish heart rate. For instance, Brodeur et al. (2001) employed a Doppler flow probe placed around the ventral aorta of the fish, and this approach necessitates surgery. Hafner and Lubecke (2010) utilized a Doppler radar sensor to measure the heart rate of fish. Benslimane et al. (2019) and Muir et al. (2021) adapted the mice Doppler echocardiography platform to assess the cardiac function of fish. Furthermore, researchers have employed microscopic video analysis to study embryos or small-sized fish, but this method typically required the subject to be transparent, as demonstrated in studies by Nepstad et al. (2017), Puybareau et al. (2017) and Mousavi and Patil (2020).

Here, we introduce two non-invasive and simple methods for measuring fish heart rate based on traditional photoplethysmography (PPG) and remote photoplethysmography (rPPG). PPG involves measuring heart rate by detecting blood volume changes in the heart or blood vessels (Ismail et al., 2021). In fish, PPG can be performed by both non-invasive and implantable methods. The implantable method requires implanting the device into the fish, which can cause injury (Svendsen et al., 2021a,b). The non-invasive method of PPG is of either transmittance or reflectance type according to the relative position between the light source and the photodetector. In the transmittance type, the light source is placed opposite to the photodetector, allowing the emitted light to pass through the tissue and be detected by the photodetector. In the reflectance type, the light source and the photodetector are placed on the same side, with the light being reflected by the tissue before being captured by the photodetector (Ismail et al., 2021). Most of current non-invasive PPG methods for fish are of the transmittance type. Yoshida et al. (2009) and Naderi et al. (A. M. Naderi, R. S. T. Torres, Z. Zhang and H. Cao, unpublished data) adopted the transmittance-type PPG to measure the heart rate of zebrafish (Brachydanio rerio), medaka (Oryzias latipes), goldfish (Carassius auratus) and largemouth bass (Micropterus salmoides). When the experimental fish were small in size, superior heart rate signals were obtained, but when the experimental fish were large in size, the quality of their heart rate signals diminished. Moreover, the transmittance-type PPG device requires the light source and photodetector to be separated, which is inconvenient. In contrast, the reflectance-type PPG integrates the light source and photodetector into a single sensor, making it simpler and more efficient. For example, in shellfish studies, a single sensor placed close to the heart region on the shell was used for heart rate measurements (Chen et al., 2016; Dong et al., 2021). Therefore, in this study, we introduced the reflectance-type PPG for measuring the heart rate of fish.

rPPG involves measuring heart rate by detecting the subtle color variation of the human skin tissue from videos (Verkruysse et al., 2008; Lin and Lin, 2017; Jaiswal and Meenpal, 2020). Studies of rPPG in fish have not been reported, and only related studies have measured heart rate in transparent zebrafish using imaging PPG (Pylatiuk et al., 2014; De Luca et al., 2015; Martin et al., 2019; Machikhin et al., 2020; Volkov et al., 2022). The application of rPPG for fish heart rate measurements offers improved convenience, as it requires only a camera and an appropriate light source for non-invasive measurements, without the need for special equipment. Relevant studies have been conducted to improve the accuracy of rPPG in humans, which can benefit our research. For example, Anderson et al. (2010) demonstrated that the joint blind source separation (JBSS) outperformed blind source separation (BSS) in exploiting the dependencies of sources across datasets. A JBSS method called independent vector analysis–gaussian (IVA-G) was employed for rPPG (Zhang et al., 2021; Cheng et al., 2021). Independent component analysis (ICA) is a method utilized for feature extraction and signal separation (Hyvärinen and Oja, 2000). A computationally efficient algorithm of ICA called fast fixed-point independent component analysis (FastICA), developed by Hyvarinen (1999), was applied for rPPG (Karmuse et al., 2022). Additionally, empirical mode decomposition (EMD) is an adaptive method introduced for analyzing non-linear and non-stationary signals (Torres et al., 2011), serving as an advanced signal processing method for rPPG (Al-Naji et al., 2017; Al-Naji and Chahl, 2018).

In this study, the large yellow croaker (Larimichthys crocea) was used in our experiments because of its prominent economic significance and highest yield among mariculture fishes in China (Chen et al., 2020). Therefore, it served as a representative fish for our research. The development of these two PPG heart rate measurement methods will bring several benefits as listed below. Firstly, the non-invasive methods mitigate the stress response of the fish during measurements, leading to a more accurate reflection of their physiological condition. Secondly, it eliminates the need for surgical implantation of devices in fish, minimizing the harm to animals during the research process and complying with animal welfare and ethical principles. Thirdly, the simplicity of the PPG method enhances measurement throughput, which is particularly advantageous for genetic studies on fish heart rate and physiology. Our original aim in developing PPG methods was to investigate the genetics of cardiac function in the large yellow croaker.

Ethics approval statement

All experiment procedures were approved by the Animal Care and Use Committee at the College of Ocean and Earth Sciences, Xiamen University, in accordance with the Guidelines for the Care and Use of Animals for Scientific Purposes set by the Ministry of Science and Technology, Beijing, China (no. 398, 2006), the National Standards for Biosafety Laboratories (GB19489–2008), and the Care and Use of Laboratory Animals published by the US National Institutes of Health (NIH publication no.85–23, revised 1996).

Experimental animals

Large yellow croakers were obtained from Fufa Aquatic Products Co., Ltd (Ningde, Fujian, China) and cultured in seawater (Fufa Aquatic Products Co., Ltd). The fish were held in a tank (length: 5 m, width: 2 m, height: 1.4 m) with the water level maintained at 0.5 m. They were fed once a day in the morning and the seawater was changed daily with filtered seawater. The water temperature was maintained at 13±0.2°C, following the natural light cycle.

PPG experiment

A group of fish (n=6, mass: 13.9–54.2 g, body length: 9.2–14.4 cm) was randomly selected for the PPG experiment. Each fish was anesthetized (130 ppm MS222 buffered with NaHCO3) until the equilibrium was completely lost and the opercular movement was reduced. Subsequently, the fish was placed in the custom-made apparatus, ventral side up, with continuous gill irrigation with aerated seawater containing a maintenance anesthetic concentration (110 ppm MS222 buffered with NaHCO3), by inserting a tube into the fish's mouth at a water flow rate of 200 ml min−1. The 110 ppm MS222 was the minimum concentration for maintained anesthesia as determined by us in preliminary experiments. During the experiment, the fish remained fully submerged in the water. To capture the PPG signal, a reflectance-type infrared sensor with both an infrared emitter and receiver was positioned in the heart area on the ventral surface of the fish, as shown in Fig. 1A. The infrared emitter has a wavelength of 940 nm and a power of 10 mW. The infrared sensor was connected to an amplifier (Amp 03, Newshift), which, in turn, was connected to a data acquisition system (Powerlab, ADInstruments). Software (Labchart8, ADInstruments) was used to set the filtering parameters, with a low-pass filter set at 5 Hz, and the sampling rate was set at 1000 Hz. Additionally, ECG measurement was conducted simultaneously to evaluate the accuracy of PPG. Three electrodes were used for ECG signal capture. The positive electrode was inserted near the heart, the negative electrode was inserted into the body or placed into the seawater, and the reference electrode was placed into the seawater, as depicted in Fig. 1A. The electrodes were connected to an amplifier (Bio Amp, ADInstruments) which was connected to the data acquisition system (Powerlab, ADInstruments). The filtering parameters were set using software (Labchart8, ADInstruments) with the low-pass filter set at 100 Hz and the high-pass filter set at 10 Hz, maintaining the sampling rate at 1000 Hz. Each fish underwent a 5 min measurement period. After the measurement, the fish was placed in non-anesthetic seawater for recovery before returning to another tank with the same conditions as described in ‘Experimental animals’. Upon completion of the experiment, the fish was returned to Fufa Aquatic Products Co., Ltd for further commercial cultivation.

rPPG experiment

Similarly, a group of fish (n=6, mass: 36.3–66.8 g, body length 12.5–15.7 cm) was also randomly selected for the rPPG experiment. The anesthesia induction and maintenance for each fish were identical to the procedures for the PPG experiment. The ventral side of each fish was recorded using a camera (Intel RealSense Depth Camera D435), with videos captured at 30 frames s−1. The video recording software used was Intel RealSense Viewer (https://github.com/IntelRealSense/librealsense/releases/tag/v2.42.0). Subsequently, the rPPG signal was acquired using the analytical process described below (‘The analytical process of the proposed rPPG’). Before the analysis, the recorded videos were converted into image sequences using the conversion software rs_bag2image (https://github.com/UnaNancyOwen/rs_bag2image). To determine whether green light could enhance the accuracy of the rPPG method, videos were recorded under both natural light and green light conditions. Simultaneously, ECG measurements were conducted under both light conditions to evaluate the accuracy of the rPPG, as described above (‘PPG experiment’). Each fish was recorded for a duration of 5 min under each light condition. After completion of the measurement, the treatment of the fish was identical to that described for the PPG experiment.

Data analysis

The analytical process of the proposed rPPG

The framework of the rPPG method is shown in Fig. 2. Initially, the regions of interest (ROI) for the ventral side of the fish and the background are selected, as illustrated in Fig. 1C. The signal matrix of two ROIs is presented by average pixel intensity of the RGB channels. Subsequently, ambient noise of the two ROIs is removed based on IVA-G (Anderson et al., 2011). According to the dichromatic model (Wang et al., 2017), the signal matrix of fish can be considered to contain specular reflection from skin surface, diffuse reflection from skin tissues, and illumination from the light source. Following this, illumination from the light source is removed by projecting the signal matrix to a specific orthogonal plane. After that, ICA is performed using Fast-ICA (Hyvarinen, 1999). The candidate independent component with the highest correlation with the green channel of the signal sequences is selected. Subsequently, the time–frequency decomposition of the candidate independent component is performed using EMD (Colominas et al., 2014), culminating in the obtention of the intrinsic mode function with the highest match to the heart rate range. Finally, the heart rate information is presented based on the intrinsic mode function. The algorithms for rPPG were executed in MATLAB. The details of the rPPG method are introduced below.

Acquisition of signal matrix from video image sequence

After obtaining k frames of the video image sequence of the ventral side of the fish, the signal matrix of the two selected ROIs was presented as follows. In each channel, the average pixel intensity of the ROI in each frame is calculated by summing all pixel values of the ROI and dividing by the number of pixels of the ROI. The average pixel intensities of the ROI for each frame are combined in time order to obtain the signal sequences of the ROI.

The formula for the signal matrix of the ROI of fish's ventral side is shown in Eqn 1:
(1)
where is the signal matrix of the ROI of fish's ventral side, and , and are the signal sequences consisting of the average pixel intensities of the R, G and B color channels in the video image sequence of the ROI on the ventral side of the fish, respectively.
The formula for the signal matrix of the ROI of the background is shown in Eqn 2:
(2)
where is the signal matrix of the ROI of the background, and , and are the signal sequences consisting of the average pixel intensities of the R, G and B color channels in the video image sequence of the ROI of the background, respectively.
Ambient noise removal based on JBSS
The measurements of rPPG are often influenced by ambient light and, usually, the sources of light in the target ROI (Eqn 1) and background ROI (Eqn 2) are the same, so this interference can be eliminated by zeroing out the common ambient noise component in both. IVA-G, proposed by Anderson et al. (2011), was used to implement the JBSS framework to obtain the source component vector (SCV). In this study, IVA-G is used to isolate the ambient noise components in the target ROI and background ROI. The signal matrix of the fish and background can be decomposed into multiple SCVs according to the formula shown in Eqn 3:
(3)
where is the source component matrix, each row of the SCM is a SCV, is the demixing matrix and is the ROI signal matrix consisting of Xhr and Xbg vertically stitched together.
SCVs decomposed from the signal matrix of fish and background can be expressed as the left side of Eqn 4:
(4)
where , and are the SCVs of the ROI of the fish's ventral side, and , and are the SCVs of the ROI of the background.

Next, to find the common ambient noise component in the SCVs, the linear correlation between the SCVs of the two ROIs is evaluated by calculating the 3×3 correlation matrix. The largest value in this matrix is found and used to zero out the two SCVs corresponding to it. This results in a new SCM, which is denoted as .

Assuming that the maximum value in the 3×3 correlation matrix is in the first row and column, it implies that SCVhr1 and SCVbg1 exhibit the strongest correlation among the SCVs. These two SCVs are treated as ambient noise components and set to zero to obtain SCMnew as shown on the right side of Eqn 4, where 0∈ℝk represents the zero vector.

The reconstructed SCMnew is subsequently inserted into Eqn 3 to obtain the updated X. The first three rows of X, representing the target ROI signal matrix, are taken as . Xnew represents the signal matrix after the removal of the common ambient noise component.

Dimensionality reduction of signal based on dichromatic model

According to the dichromatic model proposed by Wang et al. (2017), Xnew, the signal matrix representing the ROI of the fish's ventral side after removing common ambient noise, can be regarded as a linear combination of specular reflection from the skin, diffuse reflection associated with the absorption and scattering of the light from the skin tissues, and illumination from the light source. To reduce signal dimensionality and eliminate noise from illumination of the light source, Xnew is projected onto a plane orthogonal to the illumination of light source.

In this way, another new X(t), , which only contains specular and diffuse reflection, is obtained as shown in Eqn 5:
(5)
where is the plane orthogonal to illumination of the light source, and and are orthogonal to each other.
Extraction of heart rate signal based on ICA
Given that specular reflection and diffuse reflection contained in Xrflct are generated from distinct physical processes, they can be considered as independent components and separated using ICA. In this study, an efficient method called Fast-ICA proposed by Hyvärinen and Oja (2000) was adopted. The independent component of Xrflct can be obtained according to the formula in Eqn 6:
(6)
where is the demixing matrix and S∈ℝk is the independent component matrix of Xrflct, and s consists of two independent components and .

Next, the correlation coefficients between s1, s2 and Ghr are calculated separately. The independent component with the highest correlation with Ghr is selected because of the presence of hemoglobin in the blood of the large yellow croaker (Gu and Xu, 2011), which exhibits strong absorption of green light (Roggan et al., 1999). Lastly, given the known frame rate of the video and setting the signal's start time to 0, this independent component can be converted into the time series Sgreen(t).

Time–frequency decomposition of signal based on EMD
The Sgreen(t) contains various frequency bands besides heart rate signal, which are noises from other sources. Prior to the selection of the candidate frequency bands, time–frequency decomposition needs to be conducted. EMD is capable of decomposing non-linear and non-stationary signals (Torres et al., 2011). In this study, an improved method of EMD called ICEEMDAN, as proposed by Colominas et al. (2014), was adopted to perform time–frequency decomposition of Sgreen(t). According to ICEEMDAN, Sgreen(t) can be expressed as shown in Eqn 7:
(7)
where imf(t) is the intrinsic mode function and r(t) is the residual term.
Output of heart rate information
Following the time–frequency decomposition, the imf(t) with different time–frequency scales are obtained. However, not all the imf(t) contain the desired heart rate information. Therefore, the desired imf(t) that best fits the distribution interval of the fish's heart rate needs to be further selected. The selected imf(t) will subsequently serve as the data source for calculating the heart rate information. We measured ECG in 20 large yellow croaker in pre-experiments, and their heart rates ranged from 17.89 to 37.47 beats min−1, with a mean of 27.70±5.06 beats min−1. Based on this, we set the expected heart rate range here to 10–40 beats min−1, which corresponds to a frequency range of 0.167–0.667 Hz. To identify the imf(t) that contains the heart rate information, each imf(t) is transformed into the frequency domain, and its energy distribution in the frequency domain is analyzed. The imf(t) exhibiting the highest energy within the frequency range of 0.167–0.667 Hz, denoted as imfHR(t), is selected as the basis for heart rate calculation. The frequency value corresponding to the maximum amplitude, fmax, is obtained from the spectrum according to the imfHR(t). This fmax is considered as the heart rate frequency, as shown in Fig. 1E. Finally, the heart rate is obtained by multiplying fmax by 60 s, as shown in Eqn 8:
(8)
where fmax is the heart rate frequency.

Heart rate calculation of PPG and ECG

Firstly, the average interval time between two adjacent peaks of PPG or two adjacent R wave peaks of ECG within a 60 s duration is calculated by dividing the time from the first to the last wave within a 60 s period by the number of intervals within a 60 s period. Subsequently, 60 s is divided by the average interval time calculated above as shown in Eqn 9:
(9)
where t is time (in s) from the first to the last wave within a 60 s period and n is the number of intervals within a 60 s period.

Statistical analysis

The average heart rate within a 60 s period was used as a single record. Therefore, there were a total of 30 measurements for PPG, 30 measurements for rPPG under natural light conditions, and 30 measurements for rPPG under green light conditions. Bland–Altman plots (Bland and Altman, 1986) were adopted to assess agreement between PPG and ECG, as well as between rPPG and ECG, by plotting the differences between the methods against their average values, as depicted in Fig. 3D–F. Prior to conducting the Bland–Altman plots, the difference between PPG and ECG, as well as between rPPG and ECG, was assessed by using the Shapiro–Wilk test. In addition, the accuracy of PPG and rPPG was assessed through the Pearson's correlation coefficient (r), mean absolute error (MAE) and root mean square error (RMSE). All statistical analyses were performed in R.

As shown in Fig. 1B, the PPG signal exhibited complete synchronization with the ECG signal measured simultaneously. Moreover, the Bland–Altman plot demonstrated that all data points were within 95% limits of agreement (Fig. 3D), and the Pearson's correlation coefficient (r) between PPG and ECG reached 0.999999 (Fig. 3A). During the 5 min measurement, PPG data fluctuated in tandem with ECG, displaying a slight decreasing trend (Fig. S1). We attributed this to an accumulated effect of anesthesia, whereby, as the measurements progressed, the concentration of anesthetic within the fish's body exceeded the initial concentration, leading to a slight decrease in heart rate. Research conducted by Casselman et al. (2012) demonstrated a decrease in fish heart rate with an increase in anesthetic levels. These results corroborate the high accuracy of the reflectance-type PPG we developed. Yoshida et al. (2009) measured the heart rate of goldfish simultaneously with transmittance-type PPG and ECG, which also showed complete synchronization between the PPG and ECG signals. In fact, the waveforms of reflectance-type PPG and transmittance-type PPG are inverted relative to each other (Saritas et al., 2019). Therefore, if the PPG waveforms in the study of Yoshida et al. (2009) were inverted, the results would be almost identical to ours. Moreover, comparable results were observed in studies utilizing implantable PPG in fish (Svendsen et al., 2021a,b).

In this study, a 940 nm infrared emitter was utilized. Theoretically, light with a wavelength of 940 nm can penetrate human tissue to a depth of 5 mm or more (Finlayson et al., 2022). The PPG measurement position, as shown in Fig. 1A, and its surface is about 4–5 mm away from the heart. This distance allowed the infrared light to potentially reach the heart, leading us to presume that the PPG signal obtained was affected by the motion of the heart. The pulse transit time (PTT) was assessed by calculating the time interval between the R wave of the ECG and the P wave of the PPG here (Fig. 1B). The average PTT within a 60 s period for all individuals was a maximum of 100.13±7.67 ms (Table S2). There were no reported data on PTT associated with ECG and PPG in fish, making it difficult to evaluate whether the observed PTT duration was long or short. Consequently, relying solely on PTT duration made it difficult to speculate whether our PPG signal accurately captured the motion of the heart. Further studies are needed to confirm whether our PPG signal indeed reflects cardiac activity. Furthermore, in human studies, factors such as heart rate, blood pressure and anesthesia could affect the PTT of PPG signals (Drinnan et al., 2001; Ye and Jeong, 2010; Mukkamala et al., 2015). Moreover, in our research, PTT also exhibited variation over time, as indicated in Table S2.

For rPPG, as depicted in Fig. 1D, the waveform exhibited good synchronization with ECG. However, unlike the PPG waveform, the rPPG waveform appeared smoother and lacked the dicrotic notch (Fig. 1B,D). This observation aligned with the findings of Das et al. (2022), which also indicated that the rPPG waveform was smoother compared with the PPG waveform. This could be attributed to the potential filtering out of certain signals during the heart rate extraction process. The Bland–Altman plot results between rPPG and ECG showed that almost all data points were within 95% limits of agreement, regardless of natural light conditions or green light conditions (Fig. 3E,F). Furthermore, the Pearson's correlation coefficient (r) between rPPG and ECG was 0.946669 under natural light conditions and 0.965625 under green light conditions; MAE was 0.964 beats min−1 under natural light conditions and 0.634 beats min−1 under green light conditions; RMSE was 1.30 beats min−1 under natural light conditions and 0.810 beats min−1 under green light conditions (Table S1). These results indicate that rPPG exhibited high accuracy.

During the 5 min measurements, the rPPG data were identical to the PPG data in that they fluctuated with the ECG and exhibited a slight decreasing trend (Fig. S1). Currently, there are no reports on rPPG in fish, as the focus has primarily been on the imaging photoplethysmography (iPPG) method. In fact, the principles of rPPG and iPPG are similar, as both involve heart rate measurement using video or images (Verkruysse et al., 2008; Pylatiuk et al., 2014). iPPG research in fish has mainly focused on the embryonic stage (Pylatiuk et al., 2014; De Luca et al., 2015; Martin et al., 2019; Machikhin et al., 2020, 2022), achieving high accuracy with a Pearson's correlation coefficient between measured and true values of over 0.97 (Pylatiuk et al., 2014; Martin et al., 2019). This technique has been also applied to adult zebrafish but with relatively lower accuracy, as observed in the study by Mousavi and Patil (2020), where the Pearson's correlation coefficient ranged from 0.88 to 0.95. Therefore, compared with iPPG studies conducted during the embryonic stage, the accuracy of our proposed rPPG method was lower but still relatively high.

We also compared our findings with studies conducted in humans. Song et al. (2020) provided a summary of statistical parameters for various rPPG methods in human studies, reporting a range from 0.50 to 0.97 for Pearson's correlation coefficient, 1.53 to 14.86 beats min−1 for MAE and 3.23 to 20.09 beats min−1 for RMSE. In comparison, our results exhibited a relatively higher Pearson's correlation coefficient and lower MAE as well as RMSE. These differences may be attributed to the limited number of fish (only 6) used in our experiments, as opposed to the several hundred videos analyzed in human studies. Additionally, the more consistent conditions of our video recording may have contributed to these differences, in contrast to the varying recording conditions present in human video datasets.

Furthermore, as shown in Table S1, the Pearson's correlation coefficient (r) under green light conditions was higher compared with that under natural light conditions. Additionally, MAE and RMSE under green light conditions were lower than those observed under natural light conditions, indicating that the accuracy of the rPPG method could be improved by offering green light. This improvement may be attributed to the presence of hemoglobin in the blood of large yellow croaker (Gu and Xu, 2011), which strongly absorbs green light (Roggan et al., 1999). The green light-enhanced condition facilitated increased absorption of green light by the blood, thereby enhancing the rPPG signal. Studies conducted in humans have also shown that green light provides the most significant improvement compared with fluorescent light (Lin and Lin, 2017). Consequently, the active provision of green light can be employed to enhance rPPG signals as needed. Although our rPPG method demonstrated promising results through frequency domain analysis, noticeable noise persisted in the time domain results, highlighting a need for improving the signal-to-noise ratio. Future studies could benefit from incorporating emerging technologies such as deep learning and convolutional neural networks (Niu et al., 2018; Song et al., 2020).

Overall, PPG demonstrated higher accuracy than rPPG, as evidenced by its greater agreement (Fig. 3D–F), higher Pearson correlation coefficient (Fig. 3A–C) and lower MAE and RMSE values (Table S1). However, rPPG was capable of estimating heart rate from a greater distance away from the fish. In practice, the most challenging aspect of developing the methods was not improving the sensor or algorithm, but rather identifying the location with the strongest heart rate signal. Once the location was determined, obtaining the heart rate signal using either sensors or algorithms became relatively straightforward. Therefore, when applying this method, it is essential to first determine the measurement location and subsequently adjust the device or algorithm accordingly. In cases where fish with higher heart rates or darker ventral colors are being measured, increasing the light source intensity or raising the data sampling rate and video frame rate may be appropriate.

We thank Prof. Caihuan Ke for providing instrumentation assistance, which was the data acquisition system (Powerlab, ADInstruments).

Author contributions

Conceptualization: Y.D., T.H., P.X.; Methodology: Y.D., T.H., J.C., J.Y., R.Z.; Validation: Y.D., T.H., J.Z., Q.K.; Formal analysis: Y.D., T.H., Y.C., R.L.; Writing - original draft: Y.D.; Writing - review & editing: Y.D., J.C., J.Y., L.M., R.Z., P.X.; Supervision: P.X.; Project administration: P.X.; Funding acquisition: R.Z., P.X.

Funding

This study was supported by the National Science Fund for Distinguished Young Scholars (32225049), the National Key Research and Development Program of China (2022YFD2401002), the Project of Industry-College-Institute Cooperation between Ningde City and Xiamen University (2020C003), the Open Research Fund Project of Fujian Key Laboratory of Genetics and Breeding of Marine Organisms (Xiamen University) (MGB2021RS01), the XMU Training Program of Innovation and Enterpreneurship for Undergraduates (S202210384457) and the Science and Technology Projects of Innovation Laboratory for Sciences and Technologies of Energy Materials of Fujian Province (IKKEM) (HRTP202231).

Data availability

Data are available on reasonable request.

Al-Naji
,
A.
and
Chahl
,
J.
(
2018
).
Remote optical cardiopulmonary signal extraction with noise artifact removal, multiple subject detection & long-distance
.
IEEE Access
6
,
11573
-
11595
.
Al-Naji
,
A.
,
Perera
,
A. G.
and
Chahl
,
J.
(
2017
).
Remote monitoring of cardiorespiratory signals from a hovering unmanned aerial vehicle
.
Biomed. Eng. Online
16
,
101
.
Altimiras
,
J.
and
Larsen
,
E.
(
2000
).
Non-invasive recording of heart rate and ventilation rate in rainbow trout during rest and swimming. Fish go wireless!
.
J. Fish Biol.
57
,
197
-
209
.
Anderson
,
M.
,
Li
,
X.-L.
and
Adalı
,
T.
(
2010
).
Nonorthogonal independent vector analysis using multivariate Gaussian model
. In
Latent Variable Analysis and Signal Separation. LVA/ICA 2010. Lecture Notes in Computer Science
, vol.
6365
(ed.
V.
Vigneron
,
V.
Zarzoso
,
E.
Moreau
,
R.
Gribonval
and
E.
Vincent
), pp.
354
-
361
.
Springer
.
Anderson
,
M.
,
Adali
,
T.
and
Li
,
X.-L.
(
2011
).
Joint blind source separation with multivariate Gaussian model: algorithms and performance analysis
.
IEEE Trans. Signal Process.
60
,
1672
-
1683
.
Anttila
,
K.
,
Couturier
,
C. S.
,
Øverli
,
Ø.
,
Johnsen
,
A.
,
Marthinsen
,
G.
,
Nilsson
,
G. E.
and
Farrell
,
A. P.
(
2014
).
Atlantic salmon show capability for cardiac acclimation to warm temperatures
.
Nat. Commun.
5
,
4252
.
Arvén Norling
,
T.
(
2017
).
Remotely monitoring heart-rate and feeding behaviour of fish by using electronic sensor-tags
.
Master's thesis
,
Swedish University of Agricultural Sciences. https://stud.epsilon.slu.se/10662/
Benslimane
,
F. M.
,
Alser
,
M.
,
Zakaria
,
Z. Z.
,
Sharma
,
A.
,
Abdelrahman
,
H. A.
and
Yalcin
,
H. C.
(
2019
).
Adaptation of a mice doppler echocardiography platform to measure cardiac flow velocities for embryonic chicken and adult zebrafish
.
Front. Bioeng. Biotechnol.
7
,
96
.
Bland
,
J. M.
and
Altman
,
D.
(
1986
).
Statistical methods for assessing agreement between two methods of clinical measurement
.
Lancet
327
,
307
-
310
.
Brodeur
,
J. C.
,
Dixon
,
D. G.
and
McKinly
,
R. S.
(
2001
).
Assessment of cardiac output as a predictor of metabolic rate in rainbow trout
.
J. Fish Biol.
58
,
439
-
452
.
Campbell
,
H. A.
and
Egginton
,
S.
(
2007
).
The vagus nerve mediates cardio-respiratory coupling that changes with metabolic demand in a temperate nototheniod fish
.
J. Exp. Biol.
210
,
2472
-
2480
.
Campbell
,
H. A.
,
Fraser
,
K. P. P.
,
Peck
,
L. S.
,
Bishop
,
C. M.
and
Egginton
,
S.
(
2007
).
Life in the fast lane: The free-ranging activity, heart rate and metabolism of an Antarctic fish tracked in temperate waters
.
J. Exp. Mar. Biol. Ecol.
349
,
142
-
151
.
Casselman
,
M. T.
,
Anttila
,
K.
and
Farrell
,
A. P.
(
2012
).
Using maximum heart rate as a rapid screening tool to determine optimum temperature for aerobic scope in Pacific salmon Oncorhynchus spp
.
J. Fish Biol.
80
,
358
-
377
.
Chen
,
N.
,
Luo
,
X.
,
Gu
,
Y.
,
Han
,
G.
,
Dong
,
Y.
,
You
,
W.
and
Ke
,
C.
(
2016
).
Assessment of the thermal tolerance of abalone based on cardiac performance in Haliotis discus hannai, H. gigantea and their interspecific hybrid
.
Aquaculture
465
,
258
-
264
.
Chen
,
Y.
,
Huang
,
W.
,
Shan
,
X.
,
Chen
,
J.
,
Weng
,
H.
,
Yang
,
T.
and
Wang
,
H.
(
2020
).
Growth characteristics of cage-cultured large yellow croaker Larimichthys crocea
.
Aquac. Rep.
16
,
100242
.
Cheng
,
J.
,
Wang
,
P.
,
Song
,
R.
,
Liu
,
Y.
,
Li
,
C.
,
Liu
,
Y.
and
Chen
,
X.
(
2021
).
Remote heart rate measurement from near-infrared videos based on joint blind source separation with delay-coordinate transformation
.
IEEE Trans. Instrum. Meas.
70
,
1
-
13
.
Colominas
,
M. A.
,
Schlotthauer
,
G.
and
Torres
,
M. E.
(
2014
).
Improved complete ensemble EMD: a suitable tool for biomedical signal processing
.
Biomed. Signal Proc. Control
14
,
19
-
29
.
Das
,
M.
,
Choudhary
,
T.
,
Bhuyan
,
M.
and
Sharma
,
L.
(
2022
).
Non-contact heart rate measurement from facial video data using a 2d-vmd scheme
.
IEEE Sens. J.
22
,
11153
-
11161
.
De Luca
,
E.
,
Zaccaria
,
G. M.
,
Hadhoud
,
M.
,
Rizzo
,
G.
,
Ponzini
,
R.
,
Morbiducci
,
U.
and
Santoro
,
M. M.
(
2015
).
ZebraBeat: a flexible platform for the analysis of the cardiac rate in zebrafish embryos
.
Sci. Rep.
4
,
4898
.
Dong
,
Y.
,
Han
,
G.
and
Li
,
X.
(
2021
).
Heart Rate Measurement in Mollusks
.
Springer Singapore
.
Drinnan
,
M. J.
,
Allen
,
J.
and
Murray
,
A.
(
2001
).
Relation between heart rate and pulse transit time during paced respiration
.
Physiol. Meas.
22
,
425
.
Finlayson
,
L.
,
Barnard
,
I. R. M.
,
McMillan
,
L.
,
Ibbotson
,
S. H.
,
Brown
,
C. T. A.
,
Eadie
,
E.
and
Wood
,
K.
(
2022
).
Depth penetration of light into skin as a function of wavelength from 200 to 1000 nm
.
Photochem. Photobiol.
98
,
974
-
981
.
Gu
,
X.
and
Xu
,
Z.
(
2011
).
Effect of hypoxia on the blood of large yellow croaker (Pseudosciaena crocea)
.
Chin. J. Oceanol. Limnol.
29
,
524
-
530
.
Hafner
,
N.
and
Lubecke
,
V.
(
2010
).
Fish Heart Motion Measurements with a Body-Contact Doppler Radar Sensor
.
IEEE Sensors Journal
,
1416
-
1419
.
Hvas
,
M.
,
Folkedal
,
O.
and
Oppedal
,
F.
(
2020
).
Heart rate bio-loggers as welfare indicators in Atlantic salmon (Salmo salar) aquaculture
.
Aquaculture
529
,
735630
.
Hyvarinen
,
A.
(
1999
).
Fast and robust fixed-point algorithms for independent component analysis
.
IEEE Trans. Neural Netw.
10
,
626
-
634
.
Hyvärinen
,
A.
and
Oja
,
E.
(
2000
).
Independent component analysis: algorithms and applications
.
Neural Netw.
13
,
411
-
430
.
Ismail
,
S.
,
Akram
,
U.
and
Siddiqi
,
I.
(
2021
).
Heart rate tracking in photoplethysmography signals affected by motion artifacts: a review
.
EURASIP J. Adv. Signal Process.
2021
,
5
.
Jaiswal
,
K. B.
and
Meenpal
,
T.
(
2020
).
Continuous Pulse Rate Monitoring from Facial Video Using rPPG
.
Proceedings of the 2020 11th International Conference on Computing, Communication and Networking Technologies (ICCCNT), Kharagpur, India, 1–3 July 2020
, pp.
1
-
5
.
Joyce
,
W.
,
Simonsen
,
M.
,
Gesser
,
H.
and
Wang
,
T.
(
2016
).
The effects of hypoxic bradycardia and extracellular HCO3/CO2 on hypoxic performance in the eel heart
.
J. Exp. Biol.
219
,
302
-
305
.
Karmuse
,
S. M.
,
Kakhandki
,
A. L.
and
Anandhalli
,
M.
(
2022
).
Video-Based Heart Rate Measurement Using FastICA Algorithm
.
Springer Nature Singapore
.
Lefrançois
,
C.
and
Claireaux
,
G.
(
2003
).
Influence of ambient oxygenation and temperature on metabolic scope and scope for heart rate in the common sole Solea solea
.
Mar. Ecol. Prog. Ser.
259
,
273
-
284
.
Lin
,
Y.-C.
and
Lin
,
Y.-H.
(
2017
).
A study of color illumination effect on the SNR of rPPG signals
.
Proceedings of the 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), 2017
, pp.
4301
-
4304
.
Lonthair
,
J.
,
Ern
,
R.
and
Esbaugh
,
A. J.
(
2017
).
The early life stages of an estuarine fish, the red drum (Sciaenops ocellatus), are tolerant to high pCO2
.
ICES J. Mar. Sci.
74
,
1042
-
1050
.
Machikhin
,
A. S.
,
Burlakov
,
A. B.
,
Volkov
,
M. V.
and
Khokhlov
,
D. D.
(
2020
).
Imaging photoplethysmography and videocapillaroscopy enable noninvasive study of zebrafish cardiovascular system functioning
.
J. Biophotonics
13
,
e202000061
.
Machikhin
,
A.
,
Guryleva
,
A.
,
Selyukov
,
A.
,
Burlakov
,
A.
,
Bukova
,
V.
,
Khokhlov
,
D.
,
Efremova
,
E.
and
Rudenko
,
E.
(
2022
).
Spatio-temporal segmentation of image sequences for non-invasive analysis of cardiovascular structure and function in Whitefish embryos
.
Micron
163
,
103360
.
Martin
,
W. K.
,
Tennant
,
A. H.
,
Conolly
,
R. B.
,
Prince
,
K.
,
Stevens
,
J. S.
,
Demarini
,
D. M.
,
Martin
,
B. L.
,
Thompson
,
L. C.
,
Gilmour
,
M. I.
,
Cascio
,
W. E.
et al. 
(
2019
).
High-throughput video processing of heart rate responses in multiple wild-type embryonic zebrafish per imaging field
.
Sci. Rep.
9
,
145
.
Mousavi
,
S. E.
and
Patil
,
J. G.
(
2020
).
Light-cardiogram, a simple technique for heart rate determination in adult zebrafish, Danio rerio
.
Comp. Biochem. Physiol. A: Mol. Integr. Physiol.
246
,
110705
.
Muir
,
C. A.
,
Neff
,
B. D.
and
Damjanovski
,
S.
(
2021
).
Adaptation of a mouse Doppler echocardiograph system for assessing cardiac function and thermal performance in a juvenile salmonid
.
Conserv. Physiol.
9
,
coab070
.
Mukkamala
,
R.
,
Hahn
,
J.-O.
,
Inan
,
O. T.
,
Mestha
,
L. K.
,
Kim
,
C.-S.
,
Toreyin
,
H.
and
Kyal
,
S.
(
2015
).
Toward ubiquitous blood pressure monitoring via pulse transit time: theory and practice
.
IEEE Trans. Biomed. Eng.
62
,
1879
-
1901
.
Nepstad
,
R.
,
Davies
,
E.
,
Altin
,
D.
,
Nordtug
,
T.
and
Hansen
,
B. H.
(
2017
).
Automatic determination of heart rates from microscopy videos of early life stages of fish
.
J. Toxicol. Environ. Health A
80
,
932
-
940
.
Niu
,
X.
,
Han
,
H.
,
Shan
,
S.
and
Chen
,
X.
(
2018
).
SynRhythm: Learning a Deep Heart Rate Estimator from General to Specific
.
2018 24th International Conference on Pattern Recognition (ICPR), Beijing, China, 2018
, pp.
3580
-
3585
.
Puybareau
,
E.
,
Genest
,
D.
,
Barbeau
,
E.
,
Léonard
,
M.
and
Talbot
,
H.
(
2017
).
An automated assay for the assessment of cardiac arrest in fish embryo
.
Comput. Biol. Med.
81
,
32
-
44
.
Pylatiuk
,
C.
,
Sanchez
,
D.
,
Mikut
,
R.
,
Alshut
,
R.
,
Reischl
,
M.
,
Hirth
,
S.
,
Rottbauer
,
W.
and
Just
,
S.
(
2014
).
Automatic zebrafish heartbeat detection and analysis for zebrafish embryos
.
Zebrafish
11
,
379
-
383
.
Roggan
,
A.
,
Friebel
,
M.
,
Dörschel
,
K.
,
Hahn
,
A.
and
Mueller
,
G. J.
(
1999
).
Optical properties of circulating human blood in the wavelength range 400-2500 nm
.
J. Biomed. Opt.
4
,
36
-
46
.
Saritas
,
T.
,
Greber
,
R.
,
Venema
,
B.
,
Puelles
,
V. G.
,
Ernst
,
S.
,
Blazek
,
V.
,
Floege
,
J.
,
Leonhardt
,
S.
and
Schlieper
,
G.
(
2019
).
Non-invasive evaluation of coronary heart disease in patients with chronic kidney disease using photoplethysmography
.
Clin. Kidney J.
12
,
538
-
545
.
Shelton
,
G.
and
Randall
,
D. J.
(
1962
).
The relationship between heart beat and respiration in teleost fish
.
Comp. Biochem. Physiol.
7
,
237
-
250
.
Song
,
R.
,
Zhang
,
S.
,
Li
,
C.
,
Zhang
,
Y.
,
Cheng
,
J.
and
Chen
,
X.
(
2020
).
Heart Rate Estimation From Facial Videos Using a Spatiotemporal Representation With Convolutional Neural Networks
.
IEEE Trans. Instrum. Meas.
69
,
7411
-
7421
.
Svendsen
,
E.
,
Fore
,
M.
,
Randeberg
,
L. L.
and
Alfredsen
,
J. A.
(
2021a
).
Design of a novel biosensor implant for farmed Atlantic salmon (Salmo salar)
.
2021 IEEE Sensors, Sydney, Australia, 2021
, pp.
1
-
4
. .
Svendsen
,
E.
,
Økland
,
F.
,
Føre
,
M.
,
Randeberg
,
L. L.
,
Finstad
,
B.
,
Olsen
,
R. E.
and
Alfredsen
,
J. A.
(
2021b
).
Optical measurement of tissue perfusion changes as an alternative to electrocardiography for heart rate monitoring in Atlantic salmon (Salmo salar)
.
Anim. Biotelemetry
9
,
41
.
Torres
,
M. E.
,
Colominas
,
M. A.
,
Schlotthauer
,
G.
and
Flandrin
,
P.
(
2011
).
A complete ensemble empirical mode decomposition with adaptive noise
.
2011 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Prague, Czech Republic, 2011
, pp.
4144
-
4147
.
Verkruysse
,
W.
,
Svaasand
,
L. O.
and
Nelson
,
J. S.
(
2008
).
Remote plethysmographic imaging using ambient light
.
Opt. Express
16
,
21434
-
21445
.
Volkov
,
M.
,
Machikhin
,
A.
,
Bukova
,
V.
,
Khokhlov
,
D.
,
Burlakov
,
A.
and
Krylov
,
V.
(
2022
).
Optical transparency and label-free vessel imaging of zebrafish larvae in shortwave infrared range as a tool for prolonged studying of cardiovascular system development
.
Sci. Rep.
12
,
20884
.
Wang
,
W.
,
Den Brinker
,
A. C.
,
Stuijk
,
S.
and
De Haan
,
G.
(
2017
).
Algorithmic Principles of Remote PPG
.
IEEE Trans. Biomed. Eng.
64
,
1479
-
1491
.
Ye
,
S.-Y.
and
Jeong
,
D.-U.
(
2010
).
Relation between heart rate variability and pulse transit time according to anesthetic concentration
.
5th International Conference on Computer Sciences and Convergence Information Technology, 2010
, pp.
566
-
569
.
Yoshida
,
M.
,
Hirano
,
R.
and
Shima
,
T.
(
2009
).
Photocardiography: a novel method for monitoring cardiac activity in fish
.
Zoolog. Sci.
26
,
356
-
361
.
Zhang
,
B.
,
Li
,
H.
,
Xu
,
L.
,
Qi
,
L.
,
Yao
,
Y.
and
Greenwald
,
S. E.
(
2021
).
Noncontact heart rate measurement using a webcam, based on joint blind source separation and a skin reflection model: for a wide range of imaging conditions
.
J. Sens.
2021
,
1
-
18
.
Zhao
,
Y.
,
Yun
,
M.
,
Nguyen
,
S. A.
,
Tran
,
M.
and
Nguyen
,
T. P.
(
2019
).
In vivo surface electrocardiography for adult zebrafish
.
J. Vis. Exp
.
2019
.

Competing interests

The authors declare no competing or financial interests.

Supplementary information