METHOD FOR DETECTING DIAPER WETNESS BASED ON RATIO SIGNAL TECHNOLOGY

Information

  • Patent Application
  • 20250012738
  • Publication Number
    20250012738
  • Date Filed
    November 21, 2022
    2 years ago
  • Date Published
    January 09, 2025
    a day ago
Abstract
A method for detecting diaper wetness based on a ratio signal technology comprises: sending a frequency-modulated continuous wave signal to a diaper through a radar device to obtain a transmission signal ST(t) and a return signal SR(t); detecting a static environment factor and a dynamic environment factor, and obtaining continuous radar snapshots; eliminating interference of environmental factors by using a filtering template based on the continuous radar snapshots and object respiration; obtaining an outline of the diaper by using wavelet synchronous compression transformation, and dividing into a training sample set and a testing sample set; and inputting the training sample set and the test sample set into a heuristic mobility network for training until a loss function is converged, obtaining the trained heuristic mobility network, and obtaining diaper wetness of the test sample set.
Description
TECHNICAL FIELD

The present invention relates to the technical field of intelligent health detection, and in particular to a method for detecting diaper wetness based on a ratio signal technology.


BACKGROUND

The existing diaper wetness detection method comprises: using a visual aid as a wetness indicator, placing a Bluetooth sensor on the diaper; and installing a radio-frequency identification (RFID) tag on the diaper. The above detection solution for diaper wetness is actually an active inspection of the diaper or the installation of a specific sensor on the diaper, which brings a lot of burdens to the user. Therefore, how to detect the diaper wetness without installing any sensor is a problem that is continuously studied by those skilled in the art.


Radio frequency is a non-contact automatic identification technology. Compared with traditional magnetic card and IC card technology, the radio frequency technology has the characteristics of non-contact, high reading speed, no abrasion, and the like. The radio frequency technology performs non-contact bidirectional data transmission between the reader and the radio frequency card to achieve the purpose of target identification and data exchange. Compared with the traditional barcode, magnetic card and IC card, the radio frequency card has the characteristics of non-contact, high reading speed, no environmental influence, long service life, and convenient use, and simultaneously has the anti-collision function and can simultaneously process a plurality of cards.


To achieve a passive, comfortable, ubiquitous, and radio frequency-based diaper wetness detection solution, several problems are faced: 1. how to extract a representation of a wet diaper from a radio frequency signal, 2. how to eliminate external mobile and static interferences, and 3. how to adapt the solution to a newcomer in a new family; and the above problems are technical problems to be solved urgently by those skilled in the art.


SUMMARY

In view of this, the present invention provides a method for detecting diaper wetness based on a radio signal technology, which can effectively extract a representation of a wet diaper from a radio frequency signal, eliminate external mobile and static interferences, train an excellent model to detect diaper wetness through a heuristic mobility network, and can be well adapted to a newcomer in a new family.


In order to achieve the above objective, the present invention provides the following technical solutions.


A method for detecting diaper wetness based on a ratio signal technology comprises the following steps:

    • sending a frequency-modulated continuous wave signal to a diaper through a radar device to obtain a transmission signal ST(t) and a return signal SR(t) of the radar device;
    • detecting a static environment factor and a dynamic environment factor based on the transmission signal ST(t) and the return signal SR(t), and obtaining continuous radar snapshots;
    • eliminating interference of the static environment factor and the dynamic environment factor by using a filtering template based on the continuous radar snapshot and object respiration;
    • obtaining an outline of the diaper by using wavelet synchronous compression transformation, and dividing into a training sample set and a testing sample set; and
    • inputting the training sample set and the test sample set into a heuristic mobility network for training until a loss function is converged, obtaining the trained heuristic mobility network, and obtaining diaper wetness of the test sample set.


Optionally, expressions of the transmission signal ST(t) and the return signal SR(t) of the radar device are as follows:










S
T

(
t
)

=


cos

(



0
t



f

(

t


)


dt


)

=

cos

(

2


π

(



f
c


t

+



B
s



t
2



2


T
s




)


)



;







S
R

(
t
)

=



S
T

(

t
-
τ

)

=

cos

(

2


π

(



f
c

(

t
-
τ

)

+




B
s

(

t
-
τ

)

2


2


T
s




)


)



;





wherein fc is a start frequency, Bs represents a scanning bandwidth, Ts represents scanning time, τ represents reflection delay of the transmission signal, and attenuation of an amplitude is ignored.


Optionally, the obtaining continuous radar snapshots comprises the following steps:

    • multiplying the transmission signal ST(t) and the return signal SR(t), and filtering apart with the highest frequency to obtain a signal SM1(t);









S

M

1


(
t
)

=

cos

(

2


π

(



f
c


τ

-



B
s

(


τ
2

-

2

t

τ


)


2


T
s




)


)


;






    • detecting the static environment factor through range-fast Fourier transform to obtain a signal SM2(t),









S
M2(t)=rangeFFT(SM1(t));

    • detecting the static environment factor and the dynamic environment factor through Doppler-fast Fourier transform to obtain continuous radar snapshots CRS(t);








CRS

(
t
)

=

dopplerFFT

(


S

M

2


(


t
1

,

t
2

,


,

t
64


)

)


;






    • wherein SM2(t1, t2, . . . , t64) represents a time sequence of SM2.





Optionally, the eliminating interference of the static environment factor and the dynamic environment factor is specifically as follows:

    • due to multipath interference that is complex and difficult to model, using a background noise elimination method, and filtering multipath interference by collecting dot products of a CRS0 filtering template on an empty bed and signals of the continuous radar snapshots:








CRS


=

CRS
*

CRS
0



;






    • due to the fact that the diaper is always worn and the individual's breath is also included in the CRS, filtering noise and interference of the static environment and dynamic environment factors by collecting dot products of a CRSb filtering template in which a user lies on a bed without wearing a diaper and signals of the continuous radar snapshots:











CRS


=


CRS


*

CRS
b



;






    • wherein CRS0 is CRS of an empty bed, and CRSb is CRS in which the user lies on the bed without wearing the diaper.





Optionally, the obtaining an outline of the diaper comprises the following steps:

    • eliminating smearing on a time-frequency diagram of the diaper by using wavelet synchronous compression transformation to obtain a first representation of the outline of the diaper;









Wsst
f

(


w
b

,
τ

)

=



(

Δ

w

)


-
1








a
k

:
A





W
f

(


a
k

,
τ

)





a
k

-

3
2



(

Δ

a

)

k





;






    • wherein wb is a central value of










[



w
b

-


1
2


Δ

w


,


w
b

+


1
2


Δ

w



]

,
τ




represents a resolution time domain, Δw=wb−wb-1, ak represents a discrete value of the scale, and A represents











"\[LeftBracketingBar]"



w

(


a
k

,
τ

)

-

w
b




"\[RightBracketingBar]"





Δ

w

2


;


W
f

=


a
k

-

1
2







R



f

(
t
)



ψ

(


t
-
τ


a
k


)


dt





,




f(t) represents a signal corresponding to the wet diaper, ψ( ) represents a wavelet basis function, (Δa)k=ak−ak-1;

    • refining a time-frequency representation through a plurality of wavelet synchronous compression transformations to obtain a second representation of the diaper outline;









Wsst

[
M
]


(


w
l

,
τ

)

=




-



+






Wsst
f

(


w
b

,
τ

)



δ

(


w
l

-



w
~

b

[
M
]


(


w
b

,
τ

)


)



dw
b




;






    • wherein wl represents an instantaneous frequency, δ( ) represents the Kronecker Dirac function, and {tilde over (w)}b[M](wb, τ) represents instantaneous frequency estimation of Wsst[M] section;

    • limiting a value of M by the following constraint conditions;














-



+







-



+







"\[LeftBracketingBar]"





w
~

b

[
M
]


(


w
b

,
τ

)

-



w
~

b

[

M
-
1

]


(


w
b

,
τ

)




"\[RightBracketingBar]"



d

τ


dw
b




<
ε

;






    • wherein ε is a very small threshold set to 1e-8.





Optionally, the obtaining the trained heuristic mobility network comprises the following steps:

    • inputting the training sample set and the test sample set into a heuristic mobility network for training;
    • extracting feature representation by using a Resnet network;
    • representing a migration difference between the training sample set and the testing sample set through the heuristic mobility network, eliminating the migration difference by using a generative adversarial network mechanism until a loss function of the heuristic mobility network is converged to obtain the trained heuristic mobility network, and obtaining diaper wetness of the testing sample set in feature presentation;
    • wherein the loss function L(Ttm) of the heuristic mobility network is:









L

(
Ttm
)

=


L
Rem

+

L
Pro



;






L
Rem

=



E


x
i
n



D
N





log



D

(

F
i

)


+


E


x
j
a



D
A






log
[

1
-

D

(

F
i

)


]




;






L
Pro

=


L
CrossEntropy

(



F
i

-

H

(

x
i

)


,

y
i


)


;







    • wherein LRem represents a loss function to eliminate the migration difference, LPro represents a loss function to predict diaper wetness; Fi represents the extracted features, H(xi) represents the migration difference,









E


x
i
n



D
N






represents expectation of a source domain, D(Fi) represents distribution of the extracted features,






E


x
j
a



D
A






represents expectation of a target domain, LCrossEntropy represents calculating cross entropy of two variables, yi represents sample labels, xin represents a signal from the source domain, DN represents a source domain set, xaj represents a signal from the target domain, and DA represents a target domain set.


It can be seen from the above technical solutions, compared with the prior art, the present invention discloses and provides a method for detecting diaper wetness based on a ratio signal technology, and the method has the following beneficial effects: the present invention detects diapers through frequency-modulated continuous wave (FMCW) signals, senses static environment information and dynamic environment information in a radar field of view (FOV) by using the continuous radio snapshot (CRS) extracted from reflected radio signals, eliminates irrelevant static reflection and irrelevant mobile reflection through a filtering template based on CRS and object respiration, and extracts an outline of the diaper through wavelet synchronous compression transformation; and the technical solutions of the present invention can effectively extract a representation of a wet diaper from radio frequency signals, and eliminate external mobile and static interference; and meanwhile a heuristic mobility network can well solve the problem of adapting to a newcomer in a new family.





BRIEF DESCRIPTION OF THE DRAWINGS

In order to more clearly illustrate the technical solutions in the embodiments of the present invention or in the prior art, the drawings required to be used in the description of the embodiments or the prior art are briefly introduced below. It is obvious that the drawings in the description below are merely embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings according to the drawings provided without creative efforts.



FIG. 1 is a schematic flow chart of a method for detecting diaper wetness according to the present invention;



FIG. 2 is a continuous radio snapshot of a dry diaper;



FIG. 3 is a continuous radio snapshot of a wet diaper; and



FIG. 4 is a network structure diagram of a heuristic mobility network.





DETAILED DESCRIPTION OF THE EMBODIMENTS

The following clearly and completely describes the technical solutions in embodiments of the present invention with reference to the accompanying drawings in embodiments of the present invention. It is clear that the described embodiments are merely a part rather than all of embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.


First, by studying the feasibility of radio signals to capture the wetness of a diaper on a subject, it is found that the diaper outline extracted from the radio signals presented a unique pattern for different wet diapers. Base on this, an embodiment of the present invention provides a method for detecting diaper wetness based on a ratio signal technology, as shown in FIG. 1, which comprises the following steps:

    • sending a frequency-modulated continuous wave signal to a diaper through a radar device to obtain a transmission signal ST(t) and a return signal SR(t) of the radar device;
    • detecting a static environment factor and a dynamic environment factor based on the transmission signal ST(t) and the return signal SR(t), and obtaining continuous radar snapshots;
    • eliminating interference of the static environment factor and the dynamic environment factor by using a filtering template based on the continuous radar snapshot and object respiration;
    • obtaining an outline of the diaper by using wavelet synchronous compression transformation, and dividing into a training sample set and a testing sample set; and
    • inputting the training sample set and the test sample set into a heuristic mobility network for training until a loss function is converged, obtaining the trained heuristic mobility network, and obtaining diaper wetness of the test sample set.


The solution proposed in this embodiment is passive, ubiquitous, comfortable, non-contact, and non-invasive, does not require the installation of sensors or tags on the surface or inside of the diaper, and can use radio signals to extract unique outline patterns of different diapers to detect wetness of the diaper worn by the subject, even if the environment surrounding the diaper is dark.


The specific solution is as follows:

    • sending a frequency-modulated continuous wave signal to a diaper to obtain a transmission signal ST(t) and a return signal SR(t) of the radar device, wherein expressions of the signals are as follows:











S
T

(
t
)

=


cos

(



0
t



f

(

t


)


dt


)

=


cos

(

2

π

)



(



f
c


t

+



B
s



t
2



2


T
s




)




)

;







S
R

(
t
)

=



S
T

(

t
-
τ

)

=

cos

(

2


π

(



f
c

(

t
-
τ

)

+




B
s

(

t
-
τ

)

2


2


T
s




)


)



;







    • wherein fc is a start frequency, Bs represents a scanning bandwidth, Ts represents scanning time, τ represents reflection delay of the transmission signal, and attenuation of an amplitude is ignored.





Further, the obtaining continuous radar snapshots comprises the following steps:

    • multiplying the transmission signal ST(t) and the return signal SR(t), and filtering apart with the highest frequency to obtain a signal SM1(t);









S

M

1


(
t
)

=

cos

(

2


π

(



f
c


τ

-



B
s

(


τ
2

-

2

t

τ


)


2


T
s




)


)


;






    • detecting the static environment factor through range-fast Fourier transform (range-FFT) to obtain a signal SM2(t);









S
M2(t)=rangeFFT(SM1(t));

    • detecting the static environment factor and the dynamic environment factor through Doppler-fast Fourier transform (Doppler-FFT) to obtain continuous radar snapshots CRS(t);





CRS(t)=dopplerFFT(SM2(t1,t2, . . . ,t64));

    • wherein SM2(t1, t2, . . . , t64) represents a time sequence of SM2.


Further, the eliminating interference of the static environment factor and the dynamic environment factor is specifically as follows:

    • due to multipath interference that is complex and difficult to model, in this embodiment, using a background noise elimination method, and filtering multipath interference by collecting dot products of a CRS0 filtering template on an empty bed and signals of the continuous radar snapshots:








CRS


=

CRS
*

CRS
0



;






    • due to the fact that the diaper is always worn and the individual's breath is also included in the CRS, filtering noise and interference of the static environment and dynamic environment factors by collecting dot products of a CRSb filtering template in which a user lies on a bed without wearing a diaper and signals of the continuous radar snapshots:











CRS


=


CRS


*

CRS
b



;






    • wherein CRS0 is CRS of an empty bed, and CRSb is CRS in which the user lies on the bed without wearing the diaper.





Further, the obtaining an outline of the diaper (referring to FIG. 2 and FIG. 3) comprises the following steps:

    • eliminating smearing on a time-frequency diagram of the diaper by using wavelet synchronous compression transformation to obtain a first representation of the outline of the diaper;









Wsst
f

(


w
b

,
τ

)

=



(

Δ

w

)


-
1








a
k

:
A





W
f

(


a
k

,
τ

)





a
k

-

3
2



(

Δ

a

)

k





;






    • wherein wb is a central value of










[



w
b

-


1
2


Δ

w


,


w
b

+


1
2


Δ

w



]

,




τ represents a resolution time domain, Δw=wb−wb-1, ak represents a discrete value of the scale, and A represents











"\[LeftBracketingBar]"



w

(


a
k

,
τ

)

-

w
b




"\[RightBracketingBar]"





Δ

w

2


;


W
f

=


a
k

-

1
2







R



f

(
t
)



ψ

(


t
-
τ


a
k


)


dt





,




f(t) represents a signal corresponding to the wet diaper, ψ( ) represents a wavelet basis function, (Δa)k=ak−ak-1;

    • refining a time-frequency representation through a plurality of wavelet synchronous compression transformations to obtain a second representation of the diaper outline;









Wsst

[
M
]


(


w
l

,
τ

)

=




-



+






Wsst
f

(


w
b

,
τ

)



δ

(


w
l

-



w
~

b

[
M
]


(


w
b

,
τ

)


)



dw
b




;






    • wherein wl represents an instantaneous frequency, δ( ) represents the Kronecker Dirac function, and {tilde over (w)}b[M](wb, τ) represents instantaneous frequency estimation of Wsst[M] section;

    • limiting a value of M by the following constraint conditions;














-



+







-



+







"\[LeftBracketingBar]"





w
~

b

[
M
]


(


w
b

,
τ

)

-



w
~

b

[

M
-
1

]


(


w
b

,
τ

)




"\[RightBracketingBar]"



d

τ


dw
b




<
ε

;






    • wherein ε is a very small threshold set to 1e-8.





Further, the obtaining the trained heuristic mobility network comprises the following steps:

    • inputting the training sample set and the test sample set into a heuristic mobility network (referring to FIG. 4) for training;
    • extracting feature representation by using a Resnet network;
    • representing a migration difference between the training sample set and the testing sample set through the heuristic mobility network, eliminating the migration difference by using a generative adversarial network mechanism until a loss function of the heuristic mobility network is converged to obtain the trained heuristic mobility network, and obtaining diaper wetness of the testing sample set in feature presentation;
    • wherein the loss function L(Ttm) of the heuristic mobility network is:









L

(
Ttm
)

=


L
Rem

+

L
Pro



;






L
Rem

=



E


x
i
n



D
N





log



D

(

F
i

)


+


E


x
j
a



D
A






log
[

1
-

D

(

F
i

)


]




;






L
Pro

=


L
CrossEntropy

(



F
i

-

H

(

x
i

)


,

y
i


)


;







    • wherein LRem represents a loss function to eliminate the migration difference, LPro represents a loss function to predict diaper wetness; Fi represents the extracted features, H(xi) represents the migration difference,









E


x
i
n



D
N






represents expectation of a source domain, D(Fi) represents distribution of the extracted features,






E


x
j
a



D
A






represents expectation of a target domain, LCrossEntropy represents calculating cross entropy of two variables, yi represents sample labels, xin represents a signal from the source domain, DN represents a source domain set, xja represents a signal from the target domain, and DA represents a target domain set.


The traditional diaper wetness detection method brings a great burden to a user, and based on the technical solution of the present invention, the wet diaper representation can be effectively extracted from the radio frequency signals, the external static interference and dynamic interference are eliminated, the problem of detecting the diaper wetness under different scenes, distances, directions and other conditions by using radio signals is solved through a heuristic mobility network training model, and the detection of the diaper wetness is completed on the premise of not installing a sensor.


The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the present invention. Thus, the present invention is not intended to be limited to these embodiments shown herein but is to be accorded the broadest scope consistent with the principles and novel features disclosed herein.

Claims
  • 1. A method for detecting diaper wetness based on a ratio signal technology, comprising the following steps: sending a frequency-modulated continuous wave signal to a diaper through a radar device to obtain a transmission signal ST(t) and a return signal SR(t) of the radar device;detecting a static environment factor and a dynamic environment factor based on the transmission signal ST(t) and the return signal SR(t), and obtaining continuous radar snapshots;eliminating interference of the static environment factor and the dynamic environment factor by using a filtering template based on the continuous radar snapshot and object respiration;obtaining an outline of the diaper by using wavelet synchronous compression transformation, and dividing the outline of the diaper into a training sample set and a testing sample set; andinputting the training sample set and the testing sample set into a heuristic mobility network for training until a loss function is converged, obtaining a trained heuristic mobility network, and obtaining diaper wetness of the testing sample set.
  • 2. The method according to claim 1, wherein expressions of the transmission signal ST(t) and the return signal SR(t) of the radar device are as follows:
  • 3. The method according to claim 2, wherein the step of obtaining the continuous radar snapshots comprises the following steps: multiplying the transmission signal ST(t) and the return signal SR(t), and filtering a part with a highest frequency to obtain a first signal SM1(t);
  • 4. The method according to claim 1, wherein the step of eliminating the interference of the static environment factor and the dynamic environment factor comprises: using a background noise elimination method, and filtering multipath interference by collecting dot products of a CRS0 filtering template on an empty bed and signals of the continuous radar snapshots:
  • 5. The method according to claim 1, wherein the step of obtaining the outline of the diaper comprises the following steps: eliminating smearing on a time-frequency diagram of the diaper by using the wavelet synchronous compression transformation to obtain a first representation of the outline of the diaper;
  • 6. The method according to claim 1, wherein the step of obtaining the trained heuristic mobility network comprises the following steps: inputting the training sample set and the testing sample set into the heuristic mobility network for training;extracting feature representation by using a Resnet network;representing a migration difference between the training sample set and the testing sample set through the heuristic mobility network, eliminating the migration difference by using a generative adversarial network mechanism until a loss function of the heuristic mobility network is converged to obtain the trained heuristic mobility network, and obtaining the diaper wetness of the testing sample set in feature presentation;wherein the loss function L(Ttm) of the heuristic mobility network is:
Priority Claims (1)
Number Date Country Kind
202210904762.9 Jul 2022 CN national
CROSS REFERENCE TO THE RELATED APPLICATIONS

This application is the national phase entry of International Application No. PCT/CN2022/133189, filed on Nov. 21, 2022, which is based upon and claims priority to Chinese Patent Application No. 202210904762.9, filed on Jul. 29, 2022, the entire contents of which are incorporated herein by reference.

PCT Information
Filing Document Filing Date Country Kind
PCT/CN2022/133189 11/21/2022 WO