RPPG signal extraction model training method and rPPG signal extraction method

By performing spatial and frequency enhancement on facial videos, a sample set is generated for rPPG signal extraction model training, which solves the problem of strong label dependence in the existing technology, achieves label-free training and non-contact vital signs monitoring, and reduces the cost of data collection. cost and improved user experience.

CN118568486AActive Publication Date: 2024-08-30TONGJI UNIV

Patent Information

Application Number
CN202410490747.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-30
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

The existing remote photoplethysmo graphy (rPPG) signal extraction model training scheme is highly label-dependent and requires wearing contact sensors, resulting in cumbersome data collection, high cost and poor user experience, which limits the popularization and application of the technology. promotion.

Method used

By performing spatial enhancement and frequency enhancement on the facial video, a set of positive and negative samples is generated, and the rPPG signal extraction model is input for training, which eliminates the dependence on PPG signal labels. The feature encoding backbone network and the hybrid expert model are used for parameter updating, using Self-supervised learning framework for model training.

Benefits of technology

It realizes model training without PPG signal tags, reduces data collection costs, realizes non-contact vital sign monitoring, and improves user experience and monitoring convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568486A
    Figure CN118568486A
Patent Text Reader

Abstract

The embodiment of the invention provides an rPPG signal extraction model training method and an rPPG signal extraction method, and the method comprises the steps: carrying out the spatial enhancement of a face video slice, obtaining a plurality of positive samples with the same frequency as the rPPG signal of the face video slice, generating a positive sample set, carrying out the frequency enhancement of the face video slice, and generating a positive sample set; the method comprises the following steps: obtaining a plurality of negative samples with different rPPG signal frequencies, generating a negative sample set, inputting the positive sample set and the negative sample set into an rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set, updating parameters of the rPPG signal extraction model, and continuously repeating the operations until a training stop condition is met. And completing training, and subsequently extracting rPPG signals from the face video based on a trained model to realize non-contact vital sign monitoring. In this way, model training can be conducted without PPG signal labels, signal label dependence is avoided, and meanwhile non-contact vital sign monitoring can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rPPG signal extraction, and in particular to an rPPG signal extraction model training method and an rPPG signal extraction method. Background Art

[0002] The current training scheme of remote photoplethysmograph (rPPG) signal extraction model usually has a high label dependency, which requires first collecting facial videos and synchronously recorded photoplethysmograph (PPG) signals, and then in the model training process, using PPG signals as labels to model the mapping relationship between facial videos and PPG signal labels. This requires users to wear contact sensors, such as wearable and finger-clip devices, while shooting facial videos, which makes the process of collecting data annotation very cumbersome and the subject experience extremely poor, making it difficult to form large-scale data, and in order to ensure the synchronous collection of facial videos and PPG signals, an independent system needs to be developed, which not only generates high data collection costs, but more importantly, the algorithm performance is limited due to the errors in the PPG signal labels themselves. This dependency limits the user-friendliness of the technology and brings a large amount of data collection costs, which limits its popularization and promotion in practical applications. Summary of the invention

[0003] The embodiments of the present invention provide an rPPG signal extraction model training method and an rPPG signal extraction method.

[0004] In a first aspect, an embodiment of the present invention provides a rPPG signal extraction model training method, the method comprising:

[0005] Perform spatial enhancement on the facial video slices to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices, and generate a positive sample set based on them;

[0006] Perform frequency enhancement on facial video slices to obtain multiple negative samples with different rPPG signal frequencies, and generate a negative sample set based on them;

[0007] Inputting the positive sample set and the negative sample set into the rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set;

[0008] Updating the parameters of the rPPG signal extraction model according to the positive sample rPPG signal set and the negative sample rPPG signal set;

[0009] Repeat the above steps until the training stop condition is met.

[0010] In some implementations of the first aspect, spatially enhancing the facial video slice to obtain a plurality of positive samples having the same rPPG signal frequency as the facial video slice includes:

[0011] Different spatial enhancement mechanisms are used to transform the facial video slices frame by frame to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices.

[0012] In some implementations of the first aspect, frequency enhancement is performed on facial video slices to obtain multiple negative samples with different rPPG signal frequencies, including:

[0013] Randomly sampling multiple different target frequency ratios within a preset frequency ratio range;

[0014] According to multiple different target frequency ratios, the facial video slices are frequency modulated to obtain multiple negative samples with different rPPG signal frequencies.

[0015] In some implementations of the first aspect, frequency modulation is performed on facial video slices according to a plurality of different target frequency ratios to obtain a plurality of negative samples with different rPPG signal frequencies, including:

[0016] The facial video slices are processed through a three-dimensional convolutional layer, a three-dimensional residual module and a downsampling module to generate multi-scale visual features. At each scale, the target frequency ratio and the visual features corresponding to the scale are input into the frequency modulation block to modulate the rPPG signal frequency, and the spatial dimension is unified through the upsampling module. Finally, the facial video slices are reconstructed through a three-dimensional convolutional layer to obtain negative samples corresponding to the target frequency ratio.

[0017] In some implementations of the first aspect, the rPPG signal extraction model includes: a feature encoding backbone network and a hybrid expert model.

[0018] In some implementations of the first aspect, inputting the positive sample set and the negative sample set into the rPPG signal extraction model to obtain the positive sample rPPG signal set and the negative sample rPPG signal set includes:

[0019] Input the positive sample set and the negative sample set into the rPPG signal extraction model;

[0020] The feature encoding backbone network performs feature encoding on the input samples and generates the corresponding visual feature map;

[0021] The hybrid expert model evenly divides the generated visual feature map into L sub-regions in the spatial dimension, extracts effective information from each sub-region, and uses it as the corresponding local expert, thereby obtaining the local experts E corresponding to the L sub-regions. 1,…,E l ,…,E L , through the internal spatiotemporal gating network for the local expert E 1 ,…,E l ,…,E L Assign different spatiotemporal weights and use them to aggregate different local experts to obtain the rPPG signal corresponding to the sample;

[0022] According to the rPPG signal corresponding to each positive sample, a positive sample rPPG signal set is generated, and according to the rPPG signal corresponding to each negative sample, a negative sample rPPG signal set is generated.

[0023] In some implementations of the first aspect, updating parameters of the rPPG signal extraction model according to the positive sample rPPG signal set and the negative sample rPPG signal set includes:

[0024] According to the positive sample rPPG signal set, the negative sample rPPG signal set, and the preset loss function, the loss value is calculated, and the parameters of the rPPG signal extraction model are updated accordingly.

[0025] In some implementations of the first aspect, the loss function includes:

[0026] Frequency contrast loss function, frequency ratio consistency loss function, cross-video frequency consistency loss function, video reconstruction loss function.

[0027] In a second aspect, an embodiment of the present invention provides a method for extracting an rPPG signal, the method comprising:

[0028] Get the facial video to be processed;

[0029] The facial video is input into the rPPG signal extraction model to obtain the corresponding rPPG signal, wherein the rPPG signal extraction model is obtained based on the above rPPG signal extraction model training method.

[0030] In some implementations of the second aspect, the method further includes:

[0031] The rPPG signal is analyzed to obtain the corresponding vital sign information.

[0032] In the embodiment of the present invention, model training can be performed without PPG signal labels, which gets rid of the dependence of the prior art on signal labels and can greatly reduce the cost of data collection. At the same time, rPPG signals can be extracted from facial videos based on the trained model to achieve non-contact vital signs monitoring, making vital signs monitoring more convenient.

[0033] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are provided for a better understanding of the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0035] Figure 1 A flowchart of a rPPG signal extraction model training method provided by an embodiment of the present invention is shown;

[0036] Figure 2 An overall framework diagram provided by an embodiment of the present invention is shown;

[0037] Figure 3 A schematic diagram of a frequency enhancement submodule provided by an embodiment of the present invention is shown;

[0038] Figure 4 A schematic diagram of an rPPG signal extraction model provided by an embodiment of the present invention is shown;

[0039] Figure 5 A flow chart of a rPPG signal extraction method provided by an embodiment of the present invention is shown;

[0040] Figure 6 A structural diagram of an exemplary electronic device capable of implementing an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0043] In response to the problems in the background technology, the embodiments of the present invention provide a rPPG signal extraction model training method and an rPPG signal extraction method. Specifically, the facial video slices are spatially enhanced to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices, and a positive sample set is generated thereby, the facial video slices are frequency enhanced to obtain multiple negative samples with different rPPG signal frequencies, and a negative sample set is generated thereby, the positive sample set and the negative sample set are input into the rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set, and then the parameters of the rPPG signal extraction model are updated thereby, the above operations are continuously repeated until the training stop condition is met, the training is completed, and the rPPG signal is subsequently extracted from the facial video based on the trained model to achieve non-contact vital signs monitoring.

[0044] In this way, model training can be performed without PPG signal labels, which gets rid of the existing technology's dependence on signal labels and can significantly reduce data collection costs. At the same time, rPPG signals can be extracted from facial videos based on the trained model to achieve non-contact vital signs monitoring, making vital signs monitoring more convenient.

[0045] In the following, in conjunction with the accompanying drawings, a rPPG signal extraction model training method and an rPPG signal extraction method provided by an embodiment of the present invention are described in detail through specific embodiments.

[0046] Figure 1 FIG. 4 is a flowchart of a method for training an rPPG signal extraction model provided by an embodiment of the present invention. Figure 1 As shown, the rPPG signal extraction model training method 100 may include the following steps:

[0047] S110, spatially enhance the facial video slice to obtain a plurality of positive samples having the same rPPG signal frequency as the facial video slice, and generate a positive sample set based on the obtained positive samples.

[0048] In some embodiments, different spatial enhancement mechanisms such as image rotation (0°, 90°, 180°, 270°), image flipping (horizontal, vertical), etc. can be used to transform the facial video slices frame by frame to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices, and thereby generate a positive sample set.

[0049] The principle of the above operation is that these spatial enhancement mechanisms will not change the image color information, but only change the spatial position of the pixels. Therefore, the skin color change process caused by heartbeat in the facial video slice will not be disturbed, that is, the rPPG signal frequency will not change.

[0050] S120, frequency enhancement is performed on the facial video slices to obtain a plurality of negative samples with different rPPG signal frequencies, and a negative sample set is generated based on the frequencies.

[0051] In some embodiments, multiple different target frequency ratios can be randomly sampled within a preset frequency ratio range, and the facial video slices can be frequency modulated according to the multiple different target frequency ratios to obtain multiple negative samples with different rPPG signal frequencies, thereby generating a negative sample set.

[0052] Exemplarily, facial video slices can be processed through a three-dimensional convolution layer (3D Conv), a three-dimensional residual module (3D RB) and a down sampling module (Down Sampling) to generate multi-scale visual features. At each scale, the target frequency ratio and the visual features corresponding to the scale are input into a frequency modulation block (FMB) to modulate the rPPG signal frequency, and the spatial dimension is unified through an up sampling module. Finally, the facial video slices are reconstructed through a three-dimensional convolution layer to obtain negative samples corresponding to the target frequency ratio. Due to different target frequency ratios, the negative samples obtained based on the above operations have different rPPG signal frequencies.

[0053] S130, inputting the positive sample set and the negative sample set into the rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set.

[0054] Exemplarily, the rPPG signal extraction model may include: a feature encoding backbone network and a hybrid expert model. To this end, the positive sample set and the negative sample set may be input into the rPPG signal extraction model, and the feature encoding backbone network performs feature encoding on the input samples to generate a corresponding visual feature map. Then, the hybrid expert model evenly divides the generated visual feature map into L sub-regions in the spatial dimension, extracts effective information from each sub-region, and uses it as the corresponding local expert, thereby obtaining the local experts E corresponding to the L sub-regions. 1 ,…,E l ,…,E L , and then through the internal spatiotemporal gating network for the local expert E 1 ,…,E l ,…,E L Different spatiotemporal weights are assigned and different local experts are aggregated to obtain the rPPG signals corresponding to the samples. Finally, a positive sample rPPG signal set is generated based on the rPPG signal corresponding to each positive sample, and a negative sample rPPG signal set is generated based on the rPPG signal corresponding to each negative sample.

[0055] S140: Update the parameters of the rPPG signal extraction model according to the positive sample rPPG signal set and the negative sample rPPG signal set.

[0056] In some embodiments, a loss value can be calculated based on a set of positive sample rPPG signals, a set of negative sample rPPG signals, and a preset loss function, and the parameters of the rPPG signal extraction model can be updated accordingly.

[0057] It is worth noting that the loss functions here can include: frequency contrast loss function, frequency ratio consistency loss function, cross-video frequency consistency loss function, and video reconstruction loss function.

[0058] S150, repeat the above operation until the training stop condition is met.

[0059] The training stop condition may be that the number of iterations reaches a preset threshold or the loss value is less than a preset threshold, which is not limited here.

[0060] The following is combined with Figure 2-4 , the rPPG signal extraction model training method 100 provided by the embodiment of the present invention is described in detail in the form of functional modules, as shown below:

[0061] (1) Data enhancement module, including frequency enhancement sub-module and spatial enhancement sub-module.

[0062] (1.1) Spatial enhancement submodule: Different spatial enhancement mechanisms such as image rotation (0°, 90°, 180°, 270°) and image flipping (horizontal and vertical) are used to transform the facial video slices frame by frame to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices, and then generate a positive sample set.

[0063] Here, in each iteration of model training, two spatial enhancement mechanisms are randomly selected and applied to facial video slices to obtain positive samples with the same rPPG signal frequency as the facial video slices, and a positive sample set is generated based on this.

[0064] (1.2) Frequency enhancement submodule: This module is designed as a pyramid structure. It processes facial video slices through three-dimensional convolutional layers (3D Conv), three-dimensional residual blocks (3D RB) and down sampling modules to generate multi-scale visual features. At each scale, the rPPG signal frequency is modulated by the frequency modulation block (FMB). After frequency modulation, the spatial dimension is unified through the up sampling module. Finally, the facial video slices are reconstructed through the 3D convolutional layer to obtain negative samples.

[0065] Frequency Modulation Block (FMB): The input of FMB is the visual feature s at a certain scale a and the target frequency ratio ri , aiming to a The rPPG signal frequency changes from f a Modulate to r i ×f a Specifically, s is firstly transformed into s by 3D global average pooling (3D GAP) and 1D convolution. a The spatial and channel dimensions of are compressed to obtain a rough signal z, which can be regarded as an approximate expression of the rPPG signal. In order to change the frequency of z, r i Copy it to the T dimension and concatenate it with z. Then design a 1D residual block (1D RB) with a convolutional layer and ReLU nonlinear activation function to perform local frequency transformation on z, and further implement global frequency transformation and frequency error elimination of z from the complete time series based on the bidirectional LSTM (BiLSTM) layer. The frequency modulation vector output by BiLSTM is Each value in can be regarded as a multiplier of the corresponding moment component in z, which is equivalent to s a The multiplier of the corresponding time frame in m. i Multiply by s a , s can be converted to a The frequency of the rPPG signal changes from f a Modulate to r i ×f a , thus generating negative samples It is worth noting that in order to i m is calculated from the concatenated features of and z i The required transformation is nonlinear, that is, the nonlinear activation functions such as ReLU, Sigmoid and hyperbolic tangent function (Tanh) in the 1D RB and BiLSTM layers are used to realize the nonlinear transformation of the signal, which is determined by the nature of the signal frequency modulation.

[0066] In general, for the generation of negative sample sets, the frequency enhancement submodule randomly samples k target frequency ratios R = {r 1 ,…,r k} and use it as input to generate x a k negative samples The rPPG signal frequencies implied are {r 1 f a ,…,r k f a}.

[0067] (2) The rPPG signal extraction model, also known as the regional expert aggregation module, includes a feature encoding backbone network and a hybrid expert model.

[0068] (2.1) Feature encoding backbone network: Use 3D ResNet residual network to encode the input facial video and generate a visual feature map.

[0069] (2.2) Hybrid Expert Model: The visual feature map is evenly divided into L sub-regions in the spatial dimension, and then effective information is extracted from each sub-region and defined as a local expert E l Specifically, two 3D RBs are first used to encode the cardiac features of each region. At the same time, a regional attention block is embedded between the two 3D RBs to capture information from the skin region with rich cardiac features. Then, a 3D GAP layer and a 1D Conv layer are used to project the features into a one-dimensional vector. After obtaining the local expert set E corresponding to the L sub-regions, 1 ,…,E l ,…,E L After that, build a spatiotemporal gating network The different expert results are fused into the final estimated rPPG signal. The spatiotemporal gating network is described below:

[0070] Considering that some facial regions can better express cardiac characteristics during systole, while other regions are more sensitive to cardiac pulsation during diastole, any local expert E l Different weights should be given at different times. Therefore, a spatiotemporal gating network is designed. Can be a local expert 1 ,…,E l ,…,E L Assign different spatiotemporal weights and achieve feature fusion. It includes two 3D Conv layers, a 3D GAP layer, a 1D Conv layer and a normalized exponential function (Softmax) layer. Output L weight vectors G corresponding to L sub-regions 1 ,…,G l ,…,G L , and the dimension of each vector is 1×T, that is, The calculation method of Softmax is to normalize the weights of different experts at each moment, that is, Finally, each G l The corresponding expert E l Perform element-wise multiplication and weighted summation to obtain the final rPPG signal:

[0071]

[0072] The signal extraction module is applied to the positive sample set X p ={x p} and negative sample set X n ={x n}, thereby generating the corresponding positive sample signal set and negative sample signal set These signals have different frequency distributions, based on which the model parameters can be optimized through the subsequent model optimization module.

[0073] (3) Model optimization module, used to calculate the loss value according to the loss function and update the model parameters based on it. The loss functions include: frequency contrast loss function, frequency ratio consistency loss function, cross-video frequency consistency loss function, and video reconstruction loss function.

[0074] (3.1) Frequency contrast loss function The key to training the model on unlabeled data based on the contrastive learning mechanism is to close the positive sample signal set (Y p ={y p}), and push it away from the negative sample signal set (Y n ={y n}), by comparing the frequency distribution between the two, the model is guided to focus on the frequency commonalities and differences of the positive and negative sample sets, helping the rPPG signal extraction model to discover and encode the heartbeat features with periodic regularity in the video. Therefore, the frequency contrast loss is defined based on the InfoNCE loss function commonly used in contrastive learning mechanism

[0075]

[0076] Where d(·,·) is the mean square error (MSE) of the power spectral density (PSD) of the two signals. This distance function can be used to measure the difference in signal frequency distribution, and τ is a hyperparameter constant term.

[0077] (3.2) Frequency ratio consistency loss function This loss function constrains any pair of positive and negative sample signals (y p and n ) should be consistent with the corresponding frequency ratio r of the input frequency enhancement submodule. The formula is:

[0078]

[0079] Where P(·) is the main frequency of the signal, and the calculation method is to perform fast Fourier transform (FFT) on the given signal and select the frequency component with the maximum power. and All come from positive samples, so theoretically they should have the same frequency. Represents negative sample signal With positive sample signal The main frequency ratio, if the ratio is equal to r i , indicating that the frequency enhancement submodule successfully generates negative samples with the target rPPG signal frequency Therefore, this loss function helps to constrain the frequency enhancement submodule to realize its frequency enhancement function and further improve the frequency enhancement effect.

[0080] (3.3) Cross-video frequency consistency loss function The loss function is designed based on the prior knowledge that the frequency of the rPPG signal will not change rapidly in the short term. Considering the input video x a The signal of should have similar frequency distribution as the signal of its neighboring slices, so x a The neighboring slices of are also calculated by the rPPG signal extraction model to obtain the neighboring slice signal set Y b ={y b}, and design cross-video frequency consistency loss To constrain the positive sample signal set Y p and Y b Frequency consistency between:

[0081]

[0082] Where J is x a The total number of neighboring slices of , d(·,·) is the MSE of the PSD of the two signals. This loss function corrects the signal estimation bias and enhances the periodicity of the estimated signal with the help of the contextual information of the facial video.

[0083] The total loss function is a linear combination of the above loss functions and the video reconstruction loss function:

[0084]

[0085] Based on the rPPG signal extraction model training method provided by the embodiment of the present invention, the embodiment of the present invention also provides an rPPG signal extraction method, such as Figure 5 As shown, the rPPG signal extraction method 500 may include the following steps:

[0086] S510, obtaining a facial video to be processed.

[0087] S520, input the facial video into the rPPG signal extraction model to obtain the corresponding rPPG signal.

[0088] Among them, the rPPG signal extraction model is obtained based on the rPPG signal extraction model training method as described above.

[0089] Furthermore, the rPPG signal can be analyzed here to obtain corresponding vital signs information, such as heart rate, respiratory rate, heart rate variability, etc.

[0090] According to the embodiments of the present invention, at least the following technical effects are achieved:

[0091] Through the self-supervised learning framework, the accuracy and generalization ability of vital sign signal detection such as heart rate, respiratory rate, and heart rate variability are improved, the computing cost is reduced, and new possibilities are brought to the field of medical health monitoring.

[0092] In the absence of a synchronously recorded PPG signal, the heart rate, respiratory rate, and heart rate variability can be effectively estimated from facial videos, thereby improving the accuracy of detection and making vital sign monitoring more convenient. At the same time, since the present invention does not rely on a synchronously recorded PPG signal, the user does not need to wear any contact device during the detection, which protects the user's privacy to a certain extent and makes the monitoring process more natural and seamless.

[0093] It will help promote the development of telemedicine and personal health monitoring technology, especially in the fields of home medical care, emergency medical response and public health monitoring, and has broad application prospects.

[0094] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0095] Figure 6 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown. Electronic device 600 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0096] like Figure 6As shown, the electronic device 600 may include a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 may also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0097] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0098] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as method 100 or method 500. For example, in some embodiments, method 100 or method 500 may be implemented as a computer program product, including a computer program, which is tangibly contained in a computer-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method 100 or method 500 described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the method 100 or the method 500 in any other appropriate manner (eg, by means of firmware).

[0099] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.

[0100] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A rPPG signal extraction model training method, It is characterized in that The method comprises: Perform spatial enhancement on the facial video slices to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices, and generate a positive sample set based on them; Perform frequency enhancement on facial video slices to obtain multiple negative samples with different rPPG signal frequencies, and generate a negative sample set based on them; Inputting the positive sample set and the negative sample set into an rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set; Updating parameters of the rPPG signal extraction model according to the positive sample rPPG signal set and the negative sample rPPG signal set; Repeat the above steps until the training stop condition is met.

2. The method according to claim 1, It is characterized in that The spatial enhancement of the facial video slice to obtain a plurality of positive samples having the same rPPG signal frequency as the facial video slice includes: Different spatial enhancement mechanisms are used to transform the facial video slices frame by frame to obtain multiple positive samples with the same rPPG signal frequency as the facial video slices.

3. The method according to claim 1, It is characterized in that The frequency enhancement of the facial video slices to obtain a plurality of negative samples with different rPPG signal frequencies includes: Randomly sampling multiple different target frequency ratios within a preset frequency ratio range; According to multiple different target frequency ratios, the facial video slices are frequency modulated to obtain multiple negative samples with different rPPG signal frequencies.

4. The method according to claim 3, It is characterized in that The method of frequency modulating the facial video slices according to a plurality of different target frequency ratios to obtain a plurality of negative samples with different rPPG signal frequencies includes: The facial video slices are processed through a three-dimensional convolutional layer, a three-dimensional residual module and a downsampling module to generate multi-scale visual features. At each scale, the target frequency ratio and the visual features corresponding to the scale are input into the frequency modulation block to modulate the rPPG signal frequency, and the spatial dimension is unified through the upsampling module. Finally, the facial video slices are reconstructed through a three-dimensional convolutional layer to obtain negative samples corresponding to the target frequency ratio.

5. The method according to claim 1, It is characterized in that The rPPG signal extraction model includes: a feature encoding backbone network and a hybrid expert model.

6. The method according to claim 5, It is characterized in that The step of inputting the positive sample set and the negative sample set into an rPPG signal extraction model to obtain a positive sample rPPG signal set and a negative sample rPPG signal set includes: Inputting the positive sample set and the negative sample set into an rPPG signal extraction model; The feature encoding backbone network performs feature encoding on the input sample to generate a corresponding visual feature map; The hybrid expert model evenly divides the generated visual feature map into L sub-regions in the spatial dimension, extracts effective information from each sub-region, and uses it as the corresponding local expert, thereby obtaining the local experts E corresponding to the L sub-regions. 1 ,…,E l ,…,E L , through the internal spatiotemporal gating network for the local expert E 1 ,…,E l ,…,E L Assign different spatiotemporal weights and use them to aggregate different local experts to obtain the rPPG signal corresponding to the sample; According to the rPPG signal corresponding to each positive sample, a positive sample rPPG signal set is generated, and according to the rPPG signal corresponding to each negative sample, a negative sample rPPG signal set is generated.

7. The method according to claim 1, It is characterized in that The updating of the parameters of the rPPG signal extraction model according to the positive sample rPPG signal set and the negative sample rPPG signal set includes: According to the positive sample rPPG signal set, the negative sample rPPG signal set, and a preset loss function, a loss value is calculated, and the parameters of the rPPG signal extraction model are updated accordingly.

8. The method according to claim 7, It is characterized in that The loss function includes: Frequency contrast loss function, frequency ratio consistency loss function, cross-video frequency consistency loss function, video reconstruction loss function.

9. A method for extracting rPPG signals, It is characterized in that The method comprises: Get the facial video to be processed; The facial video is input into an rPPG signal extraction model to obtain a corresponding rPPG signal, wherein the rPPG signal extraction model is obtained based on the rPPG signal extraction model training method according to any one of claims 1 to 8.

10. The method according to claim 9, It is characterized in that The method further comprises: The rPPG signal is analyzed to obtain corresponding vital sign information.

Citation Information

Patent Citations

  • Face living body detection method and system and medium

    CN114612965A

  • Multi-modal fusion learning method and system for sleep management

    CN117789931A

  • System, method and apparatus for training a machine learning model

    US20220180123A1

  • KR20240048063A

Cited By

  • Non-contact body physiological signal acquisition system and method

    CN119184643A

  • Non-contact vital sign detection method and device based on self-supervised learning

    CN119380140A

  • Non-contact body physiological signal acquisition system and method

    WO2026091503A1