Urination analysis method, urination analysis device, and non-transitory computer readable recording medium
A urination analysis device that analyzes urination performs: acquiring image data captured by a camera which is located at a toilet to photograph a bowl of the toilet; calculating a urination pixel number being the number of pixels of an image showing urination from the image data when the urination by a user is detected by image recognition of the image data; calculating, on the basis of a change in the urination pixel number, a flow momentum value of the urination, a urine quantity, and a urine specific gravity; and outputting the flow momentum value, the urine quantity, and the urine specific gravity.
1 . A urination analysis method for a urination analysis device that analyzes urination, the urination analysis method comprising:
by a processor included in the urination analysis device,
acquiring image data captured by a camera which is located at a toilet to photograph a bowl of the toilet;
calculating a urination pixel number being a number of pixels of an image showing urination from the image data when the urination by a user is detected by image recognition of the image data;
calculating, based on a change in the urination pixel number, at least one of a flow momentum value indicating flow momentum of the urination, a urine quantity indicating a quantity of urine, and a urine specific gravity indicating a specific gravity of the urine; and
outputting the at least one of the flow momentum value, the urine quantity, and the urine specific gravity,
wherein the urine specific gravity is calculated based on a first integral value of decrease amounts per unit time with respect to the urination pixel number.
2 . The urination analysis method according to claim 1 , wherein the flow momentum value is calculated based on a maximum value in increase amounts per unit time with respect to the urination pixel number.
3 . The urination analysis method according to claim 2 , wherein the flow momentum value is calculated based on the maximum value in the increase amounts and the urine specific gravity.
4 . The urination analysis method according to claim 2 , wherein,
in the calculating of the flow momentum value, a maximum value in derivative values of the urination pixel number in a period from a urination start to a urination finish is calculated as the maximum value in the increase amounts.
5 . The urination analysis method according to claim 1 , wherein the urine quantity is calculated based on a second integral value of increase amounts per unit time with respect to the urination pixel number.
6 . The urination analysis method according to claim 5 , wherein the urine quantity is calculated based on the second integral value and the urine specific gravity.
7 . The urination analysis method according to claim 5 , wherein,
in the calculating of the urine quantity, the second integral value is calculated based on derivative values of the urination pixel number in a period from a urination start to a urination finish.
8 . The urination analysis method according to claim 1 , wherein,
in the calculating of the urine specific gravity, the first integral value is calculated based on derivative values of the urination pixel number in a period from a urination finish to leaving of the user from the toilet.
9 . The urination analysis method according to claim 1 , wherein,
in the detecting of the urination, the urination is detected when the image data includes pixel data in which a green/red (G/R) value, a blue/red (B/R) value, a red (R) value, a green (G) value, and a blue (B) value satisfy a predetermined urine condition.
10 . A urination analysis device that analyzes urination, comprising:
a processor; and
a memory including a program that, when executed by the processor, causes the processor to:
acquire image data captured by a camera which is located at a toilet to photograph a bowl of the toilet;
calculate a urination pixel number being a number of pixels of an image showing urination from the image data when the urination by a user is detected by image recognition of the image data;
calculate, based on a change in the urination pixel number, at least one of a flow momentum value indicating flow momentum of the urination, a urine quantity indicating a quantity of urine, and a urine specific gravity indicating a specific gravity of the urine; and
output at least one of the flow momentum value, the urine quantity, and the urine specific gravity,
wherein the urine specific gravity is calculated based on an integral value of decrease amounts per unit time with respect to the urination pixel number.
11 . A non-transitory computer readable recording medium storing a urination analysis program causing a computer to serve as a urination analysis device that analyzes urination, the urination analysis program comprising:
further causing the computer to execute:
acquiring image data captured by a camera which is located at a toilet to photograph a bowl of the toilet;
calculating a urination pixel number being a number of pixels of an image showing urination from the image data when the urination by a user is detected by image recognition of the image data;
calculating, based on a change in the urination pixel number, at least one of a flow momentum value indicating flow momentum of the urination, a urine quantity indicating a quantity of urine, and a urine specific gravity indicating a specific gravity of the urine; and
outputting the at least one of the flow momentum value, the urine quantity, and the urine specific gravity,
wherein the urine specific gravity is calculated based on an integral value of decrease amounts per unit time with respect to the urination pixel number.