Automatic flushing system and automatic flushing method of induction toilet
Through the automatic flushing system of the induction toilet, combined with distance matrix and sound signal analysis, it is possible to accurately judge the flushing mode of urine and stool, and use laser spectrum detection to control the flushing volume, which solves the problem of inaccurate flushing control in the existing technology. and water waste issues, improving user experience and cleaning effect.
Patent Information
- Application Number
- CN202111457737.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-02
AI Technical Summary
The flushing control method of the existing toilet has low accuracy, easily wastes water resources, cannot be completely cleaned, and has odor problems.
The automatic flushing system using a sensor toilet automatically determines and switches the pee or stool flushing mode by obtaining the distance matrix between the user's position and the toilet's position, combined with sound signal analysis, and uses laser spectrum detection to determine the turbidity value to control the flushing volume.
It improves the accuracy of flushing mode, avoids water waste and odor problems, realizes automatic control, and improves user experience.
Smart Images

Figure CN114033002B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of toilets, and in particular to an automatic flushing system and an automatic flushing method for an induction toilet. Background Art
[0002] In daily life, most people use a manual flush button to control the flushing of the toilet, or determine the flushing mode based on the distance of the user within the sensing range of the induction toilet. The judgment accuracy is not high, which easily wastes water resources or fails to completely clean the toilet, and there is a problem of odor. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the above-mentioned technologies to a certain extent. To this end, the first purpose of the present invention is to provide an automatic flushing system for a sensor toilet, improve the accuracy of judging the flushing mode, avoid the problems of easy waste of water resources or failure to completely clean the toilet and the generation of odor in the prior art, realize automatic control, and improve user experience.
[0004] The second object of the present invention is to provide an automatic flushing method.
[0005] To achieve the above object, the first embodiment of the present invention provides an automatic flushing system for an induction toilet, comprising:
[0006] A first acquisition module, used to acquire a distance matrix between a user position and a toilet position;
[0007] The first determination module is used to calculate the first similarity between the distance matrix and the first preset distance matrix when it is determined that the user is within the sensing range of the induction toilet, and collect the first sound signal when it is determined that the first similarity is greater than or equal to the preset similarity; when it is determined that the first sound signal matches the urination sound, switch to the urination flushing mode.
[0008] In one embodiment, a second determination module is further included, for calculating a second similarity between the distance matrix and a second preset distance matrix when it is determined that the user is within the sensing range of the induction toilet, and when it is determined that the second similarity is greater than or equal to the preset similarity, collecting a second sound signal, analyzing the second sound signal, and determining whether the second sound signal includes a defecation sound;
[0009] When it is determined that the second sound signal matches the sound of defecation, switching to the defecation flushing mode;
[0010] When it is determined that the second sound signal cannot match the defecation sound, switch to the urine flushing mode.
[0011] According to some embodiments of the present invention, the first preset distance matrix is a distance matrix for a user standing to use a toilet; and the second preset distance matrix is a distance matrix for a user sitting to use a toilet.
[0012] According to some embodiments of the present invention, the further comprising:
[0013] a detection module, connected to the first determination module, and configured to obtain detection information of the first determination module and determine whether a fault occurs in the first determination module according to the detection information;
[0014] The control module is connected to the detection module, the gesture sensing module and the alarm module respectively, and is used for:
[0015] When the detection module determines that the first determination module fails, the alarm module is controlled to issue an alarm prompt and the gesture sensing module is activated at the same time;
[0016] The gesture sensing module is used to sense the user's gesture trajectory, match the gesture trajectory with a preset gesture trajectory, and start the urine flushing mode or the stool flushing mode according to the matching result.
[0017] According to some embodiments of the present invention, determining whether the second sound signal includes a defecation sound includes:
[0018] Collecting sample sounds, and manually labeling the sample sounds with sound types;
[0019] Input the sample sound with the labeled sound type into the constructed neural network model for training, and obtain a trained neural network model;
[0020] The second sound signal is input into the trained neural network model, a recognition result is output, and it is determined whether the second sound signal includes a defecation sound according to the recognition result.
[0021] According to some embodiments of the present invention, the further comprising:
[0022] The laser module is used to emit a laser beam to irradiate the water in the toilet after the urine flushing mode or the stool flushing mode is turned on;
[0023] The photoelectric detection module is used to detect scattered light beams of different directions and wavelengths after being scattered by the water body, and obtain several spectral curves;
[0024] A spectral curve processing module is used to perform noise reduction processing on the spectral curve, and to fit the spectral curve after noise reduction processing to obtain a plurality of spectral curve fitting functions;
[0025] A turbidity information acquisition module, used to query a preset database according to the spectral curve fitting function to obtain turbidity information corresponding to each spectral curve fitting function;
[0026] The flushing volume acquisition module is used to calculate the turbidity value of the water body in the toilet according to a number of turbidity information, and determine whether the turbidity value is greater than a preset turbidity value. When it is determined that the turbidity value is greater than the preset turbidity value, a preset turbidity value-flush volume data table is queried according to the turbidity value to determine the flushing volume, and the toilet is flushed again based on the flushing volume.
[0027] According to some embodiments of the present invention, the further comprising:
[0028] A second acquisition module is used to acquire the noise of other devices within the sensing range of the induction toilet and the location where the noise occurs before determining whether the first sound signal matches the urination sound;
[0029] A third determination module is used to determine the attenuation value of the noise collected by the sound collection module according to the location where the noise occurs and the location of the sound collection module on the induction toilet;
[0030] A fourth determination module, configured to determine a target signal in the first sound signal collected by the sound collection module according to a noise curve generated by noise of other devices and the attenuation value;
[0031] A removal module, used for removing the target signal from the first sound signal to obtain a valid signal;
[0032] A filtering processing module, used to obtain the spectrum energy of the effective signal, determine the filtering coefficient according to the spectrum energy, and perform filtering processing on the effective signal according to the filtering coefficient;
[0033] The first determination module is used to match the effective signal after filtering with the urination sound.
[0034] In one embodiment, it further includes:
[0035] The mixing module is used to fully mix water and detergent and flush the toilet based on the mixed solution.
[0036] To achieve the above object, a second embodiment of the present invention provides an automatic flushing method, comprising:
[0037] Get the distance matrix between the user's location and the toilet's location;
[0038] When it is determined that the user is within the sensing range of the induction toilet, a first similarity between the distance matrix and the first preset distance matrix is calculated. When it is determined that the first similarity is greater than or equal to the preset similarity, a first sound signal is collected. When it is determined that the first sound signal matches the urination sound, switch to the urination flushing mode.
[0039] In one embodiment, it also includes: when it is determined that the user is within the sensing range of the induction toilet, calculating the second similarity between the distance matrix and the second preset distance matrix, when it is determined that the second similarity is greater than or equal to the preset similarity, collecting a second sound signal, parsing the second sound signal, and determining whether the second sound signal includes a defecation sound, and when it is determined that the second sound signal matches the defecation sound, switching to the defecation flushing mode; when it is determined that the second sound signal cannot match the defecation sound, switching to the urination flushing mode.
[0040] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.
[0041] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0043] Figure 1 is a block diagram of an automatic flushing system for a sensor toilet according to an embodiment of the present invention;
[0044] Figure 2 is a block diagram of an automatic flushing system for a sensor toilet according to another embodiment of the present invention;
[0045] Figure 3 is a block diagram of an automatic flushing system for a sensor toilet according to another embodiment of the present invention;
[0046] Figure 4 The present invention is a flowchart of a method for using an automatic flushing system of an induction toilet according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0048] like Figure 1 As shown, the first embodiment of the present invention provides an automatic flushing system for an induction toilet, comprising:
[0049] A first acquisition module, used to acquire a distance matrix between a user position and a toilet position;
[0050] The first determination module is used to calculate the first similarity between the distance matrix and the first preset distance matrix when it is determined that the user is within the sensing range of the induction toilet, and collect the first sound signal when it is determined that the first similarity is greater than or equal to the preset similarity; when it is determined that the first sound signal matches the urination sound, switch to the urination flushing mode.
[0051] The working principle of the above technical solution is as follows: the first acquisition module is used to acquire the distance matrix between the user position and the toilet position; the acquisition module includes a photosensitive detector dot matrix, a distance calculator, etc. The first determination module is used to determine whether the user is located within the sensing range of the induction toilet according to the distance matrix; when it is determined that the user is within the sensing range of the induction toilet, calculate the first similarity between the distance matrix and the first preset distance matrix, and when it is determined that the first similarity is greater than or equal to the preset similarity, collect the first sound signal, and determine whether the first sound signal matches the urination sound; when it is determined that the first sound signal matches the urination sound, switch to the urination flushing mode.
[0052] The beneficial effects of the above technical solution are as follows: based on the user's standing way of using the toilet and determining that the first sound signal matches the urination sound, it is accurately determined that the user has urinated through the toilet, and the urination flushing mode is automatically turned on after the user finishes urinating.
[0053] like Figure 2 As shown, in one embodiment, it also includes: a second determination module, which is used to calculate the second similarity between the distance matrix and the second preset distance matrix when it is determined that the user is within the sensing range of the induction toilet, and when it is determined that the second similarity is greater than or equal to the preset similarity, collect a second sound signal, analyze the second sound signal, and determine whether the second sound signal includes a defecation sound. When it is determined that the second sound signal matches the defecation sound, switch to the defecation flushing mode; when it is determined that the second sound signal cannot match the defecation sound, switch to the urination flushing mode.
[0054] Beneficial effect: when it is determined that the user is not standing to use the toilet, it is determined whether the user is sitting to use the toilet. When it is determined that the user is sitting to use the toilet, when it is determined that the second sound signal matches the sound of defecation, it switches to the defecation flushing mode; when it is determined that the second sound signal cannot match the sound of defecation, it switches to the urine flushing mode. The accuracy of judging the flushing mode is improved, the problems of easy waste of water resources or failure to completely clean the toilet and the generation of odor in the prior art are avoided, automatic control is realized, and the user experience is improved.
[0055] In one embodiment, it further includes:
[0056] The mixing module is used to fully mix water and detergent and flush the toilet based on the mixed solution.
[0057] According to some embodiments of the present invention, the first preset distance matrix is a distance matrix for a user standing to use a toilet; and the second preset distance matrix is a distance matrix for a user sitting to use a toilet.
[0058] According to some embodiments of the present invention, the further comprising:
[0059] a detection module, connected to the first determination module, and configured to obtain detection information of the first determination module and determine whether a fault occurs in the first determination module according to the detection information;
[0060] The control module is connected to the detection module, the gesture sensing module and the alarm module respectively, and is used for:
[0061] When the detection module determines that the first determination module fails, the alarm module is controlled to issue an alarm prompt and the gesture sensing module is activated at the same time;
[0062] The gesture sensing module is used to sense the user's gesture trajectory, match the gesture trajectory with a preset gesture trajectory, and start the urine flushing mode or the stool flushing mode according to the matching result.
[0063] The working principle of the above technical solution is as follows: the detection module is connected to the first determination module, and is used to obtain detection information of the first determination module, and determine whether the first determination module fails according to the detection information; when the control module determines that the first determination module fails through the detection module, it controls the alarm module to issue an alarm prompt and starts the gesture sensing module at the same time; the gesture sensing module is used to sense the user's gesture trajectory, match the gesture trajectory with a preset gesture trajectory, and start the urination flushing mode or the defecation flushing mode according to the matching result.
[0064] The beneficial effects of the above technical solution are: when the first determination module fails, an alarm prompt is issued, which improves the timeliness of maintenance. During maintenance, the user can turn on different flushing modes based on different gestures, avoiding the user's finger directly pressing the flush button in the prior art, avoiding cross infection and improving safety.
[0065] According to some embodiments of the present invention, determining whether the second sound signal includes a defecation sound includes:
[0066] Collecting sample sounds, and manually labeling the sample sounds with sound types;
[0067] Input the sample sound with the labeled sound type into the constructed neural network model for training, and obtain a trained neural network model;
[0068] The second sound signal is input into the trained neural network model, a recognition result is output, and it is determined whether the second sound signal includes a defecation sound according to the recognition result.
[0069] The working principle of the above technical solution is: collect sample sounds, and manually label the sound types of the sample sounds; input the sample sounds with labeled sound types into the constructed neural network model for training to obtain a trained neural network model; input the second sound signal into the trained neural network model, output the recognition result, and determine whether the second sound signal includes the sound of defecation based on the recognition result.
[0070] The beneficial effect of the above technical solution is: based on the trained neural network model, it is accurately judged whether the second sound signal includes the sound of defecation, thereby improving the accuracy of controlling the flushing mode.
[0071] like Figure 3 As shown, according to some embodiments of the present invention, it also includes:
[0072] The laser module is used to emit a laser beam to irradiate the water in the toilet after the urine flushing mode or the stool flushing mode is turned on;
[0073] The photoelectric detection module is used to detect scattered light beams of different directions and wavelengths after being scattered by the water body, and obtain several spectral curves;
[0074] A spectral curve processing module is used to perform noise reduction processing on the spectral curve, and to fit the spectral curve after noise reduction processing to obtain a plurality of spectral curve fitting functions;
[0075] A turbidity information acquisition module, used to query a preset database according to the spectral curve fitting function to obtain turbidity information corresponding to each spectral curve fitting function;
[0076] The flushing volume acquisition module is used to calculate the turbidity value of the water body in the toilet according to a number of turbidity information, and determine whether the turbidity value is greater than a preset turbidity value. When it is determined that the turbidity value is greater than the preset turbidity value, a preset turbidity value-flush volume data table is queried according to the turbidity value to determine the flushing volume, and the toilet is flushed again based on the flushing volume.
[0077] The working principle of the above technical solution: the laser module is used to emit a laser beam to irradiate the water in the toilet after turning on the urine flushing mode or the stool flushing mode; the laser module includes a tunable laser diode. The photoelectric detection module is used to detect the scattered light beams in different directions and wavelengths after being scattered by the water body to obtain several spectral curves; the photoelectric detection module includes a photoelectric detector. The spectral curve processing module is used to perform noise reduction processing on the spectral curve, fit the spectral curve after noise reduction processing, and obtain several spectral curve fitting functions; the turbidity information acquisition module is used to query the preset database according to the spectral curve fitting function to obtain the turbidity information corresponding to each spectral curve fitting function; the preset database includes the spectral fitting function corresponding to the spectral curve and the corresponding turbidity information, etc., and the preset database is determined after multiple experiments. The flushing volume acquisition module is used to calculate the turbidity value of the water body in the toilet according to a number of turbidity information, and determine whether the turbidity value is greater than a preset turbidity value. When it is determined that the turbidity value is greater than the preset turbidity value, a preset turbidity value-flush volume data table is queried according to the turbidity value to determine the flushing volume, and the toilet is flushed again based on the flushing volume.
[0078] The beneficial effects of the above technical solution are as follows: after flushing is completed, it is automatically detected whether the toilet is flushed clean. When it is determined that it is not flushed clean, the corresponding flushing water volume is determined according to the turbidity value, and flushing is performed again. The turbidity value of the water in the toilet is accurately measured, and then the appropriate flushing water volume is determined for flushing, ensuring that the toilet is flushed clean, avoiding the problem of unclean flushing and odor. At the same time, based on the appropriate flushing water volume, water resources can be wasted and water can be saved.
[0079] According to some embodiments of the present invention, the further comprising:
[0080] A second acquisition module is used to acquire the noise of other devices within the sensing range of the induction toilet and the location where the noise occurs before determining whether the first sound signal matches the urination sound;
[0081] A third determination module is used to determine the attenuation value of the noise collected by the sound collection module according to the location where the noise occurs and the location of the sound collection module on the induction toilet;
[0082] A fourth determination module, configured to determine a target signal in the first sound signal collected by the sound collection module according to a noise curve generated by noise of other devices and the attenuation value;
[0083] A removal module, used for removing the target signal from the first sound signal to obtain a valid signal;
[0084] A filtering processing module, used to obtain the spectrum energy of the effective signal, determine the filtering coefficient according to the spectrum energy, and perform filtering processing on the effective signal according to the filtering coefficient;
[0085] The first determination module is used to match the effective signal after filtering with the urination sound.
[0086] The working principle of the above technical solution: the second acquisition module is used to obtain the noise of other devices within the sensing range of the induction toilet and the location where the noise occurs before determining whether the first sound signal matches the urination sound; the third determination module is used to determine the attenuation value of the noise collected by the sound collection module according to the location where the noise occurs and the position of the sound collection module on the induction toilet; the fourth determination module is used to determine the target signal in the first sound signal collected by the sound collection module according to the noise curve generated by the noise of other devices and the attenuation value; the elimination module is used to eliminate the target signal from the first sound signal to obtain a valid signal; the filtering processing module is used to obtain the spectrum energy of the valid signal, determine the filtering coefficient according to the spectrum energy, and filter the valid signal according to the filtering coefficient; the first determination module is used to match the filtered valid signal with the urination sound.
[0087] The beneficial effects of the above technical solution are as follows: the first sound signal is collected based on the sound collection module on the induction toilet, and the first sound signal includes the noise of other devices. After eliminating the noise of other devices, an effective signal is obtained. For the effective signal generated on the toilet, the spectrum energy is obtained to determine the filter coefficient, and the noise in the effective signal is removed to ensure the purity of the effective signal after filtering, thereby improving the accuracy of judging whether the effective signal after filtering matches the urination sound.
[0088] like Figure 4 As shown, the second embodiment of the present invention provides a method for using an automatic flushing system of an induction toilet, including S1-S3:
[0089] S1, obtain the distance matrix between the user location and the toilet location;
[0090] S2. When it is determined that the user is within the sensing range of the induction toilet, calculate the first similarity between the distance matrix and the first preset distance matrix, and when it is determined that the first similarity is greater than or equal to the preset similarity, collect a first sound signal, and determine whether the first sound signal matches the urination sound; when it is determined that the first sound signal matches the urination sound, switch to the urination flushing mode;
[0091] S3. When it is determined that the user is within the sensing range of the induction toilet, calculate the second similarity between the distance matrix and the second preset distance matrix, and when it is determined that the second similarity is greater than or equal to the preset similarity, collect a second sound signal, analyze the second sound signal, and determine whether the second sound signal includes a defecation sound. When it is determined that the second sound signal matches the defecation sound, switch to the defecation flushing mode; when it is determined that the second sound signal cannot match the defecation sound, switch to the urination flushing mode.
[0092] The working principle of the above technical solution is as follows: obtaining a distance matrix between the user position and the toilet position; judging whether the user is within the sensing range of the induction toilet according to the distance matrix; when it is determined that the user is within the sensing range of the induction toilet, calculating a first similarity between the distance matrix and a first preset distance matrix, and when it is determined that the first similarity is greater than or equal to the preset similarity, collecting a first sound signal to judge whether the first sound signal matches the urination sound; when it is determined that the first sound signal matches the urination sound, switching to the urination flushing mode; when it is determined that the user is within the sensing range of the induction toilet, calculating a second similarity between the distance matrix and a second preset distance matrix, and when it is determined that the second similarity is greater than or equal to the preset similarity, collecting a second sound signal, analyzing the second sound signal, judging whether the second sound signal includes a defecation sound, and when it is determined that the second sound signal matches the defecation sound, switching to the defecation flushing mode; when it is determined that the second sound signal cannot match the defecation sound, switching to the urination flushing mode.
[0093] The beneficial effects of the above technical solution are as follows: based on the user's standing way of using the toilet and determining that the first sound signal matches the urination sound, it is accurately determined that the user has urinated through the toilet, and the urination flushing mode is automatically turned on after the user finishes urinating. When it is determined that the user is not standing to use the toilet, it is judged whether the user is sitting down to use the toilet. When it is determined that the user is sitting down to use the toilet, it is determined whether the second sound signal includes a defecation sound. When it is determined that the second sound signal includes a defecation sound, the defecation flushing mode is turned on; otherwise, the urination flushing mode is turned on. The accuracy of judging the flushing mode is improved, avoiding the problems of easy waste of water resources or failure to completely clean the toilet and the generation of odor in the prior art, realizing automatic control, and improving user experience.
[0094] In one embodiment, matching the gesture trajectory with a preset gesture trajectory includes:
[0095] Normalizing the gesture trajectory, wherein the normalization includes resampling and scaling;
[0096] The preset gesture trajectory includes a first preset gesture trajectory associated with a urine flushing mode and a second preset gesture trajectory associated with a stool flushing mode;
[0097] Calculating a first spatial distance between the normalized gesture trajectory and a first preset gesture trajectory, and calculating a first matching degree between the normalized gesture trajectory and the first preset gesture trajectory according to the first spatial distance;
[0098] Calculating a second spatial distance between the normalized gesture trajectory and a second preset gesture trajectory, and calculating a second matching degree between the normalized gesture trajectory and the second preset gesture trajectory according to the second spatial distance;
[0099] The first matching degree is compared with the second matching degree, and the urine flushing mode or the stool flushing mode is determined to be turned on according to the comparison result.
[0100] The working principle and beneficial effects of the above technical solution: The movement speed of the user's finger at each position is different, resulting in uneven distribution of the acquired trajectory points. In order to facilitate identification. The original trajectory points are resampled, and the resampled gesture trajectory includes N sampling points, and the spatial distance between adjacent points is equal. The points of the gesture trajectory after resampling are the same as the points of the preset gesture trajectory. It is convenient for the subsequent accurate calculation of the matching degree between the two. After resampling, the resampled gesture trajectory is scaled, and the gesture trajectory points are scaled or enlarged to a cube with a side length of L. The preset gesture trajectory is also in the cube with a side length of L. When it is determined that the second matching degree is greater than the first matching degree, it means that the defecation flushing mode needs to be turned on, which improves the accuracy of gesture control.
[0101] Calculating a first matching degree between the normalized gesture trajectory and the first preset gesture trajectory includes:
[0102] Calculate the first spatial distance T between the normalized gesture trajectory and the first preset gesture trajectory:
[0103]
[0104] Wherein, n is the number of track points included in the normalized gesture track, which is also the number of the first preset gesture track, and both are equal; (x 1i ,y 1i , z 1i) is the coordinate of the ith track point included in the normalized gesture track; (x 2i ,y 2i , z 2i ) is the coordinate of the i-th track point included in the first preset gesture track;
[0105] Calculate a first matching degree P between the normalized gesture trajectory and the first preset gesture trajectory according to the first spatial distance:
[0106]
[0107] Wherein, L is the normalized gesture trajectory and the side length of the cube where the first preset gesture trajectory is located.
[0108] The working principle and beneficial effects of the above technical solution are as follows: calculating the first spatial distance between the normalized gesture trajectory and the first preset gesture trajectory, and calculating the first matching degree between the normalized gesture trajectory and the first preset gesture trajectory according to the first spatial distance; processing the gesture trajectory into the same situation as the preset gesture trajectory, thereby improving the accuracy of calculating the first matching degree.
[0109] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An automatic flushing system for an induction toilet, characterized in that: include: A first acquisition module, used to acquire a distance matrix between a user position and a toilet position; A first determination module is used to calculate a first similarity between the distance matrix and a first preset distance matrix when it is determined that the user is within the sensing range of the induction toilet, and collect a first sound signal when it is determined that the first similarity is greater than or equal to the preset similarity; and switch to a urination flushing mode when it is determined that the first sound signal matches the urination sound; The second determination module is used to, when determining that the user is within the sensing range of the induction toilet, Calculating a second similarity between the distance matrix and a second preset distance matrix, and when it is determined that the second similarity is greater than or equal to the preset similarity, collecting a second sound signal, analyzing the second sound signal, and determining whether the second sound signal includes a defecation sound; When it is determined that the second sound signal matches the sound of defecation, switching to the defecation flushing mode; When it is determined that the second sound signal cannot match the defecation sound, switching to the urine flushing mode; The laser module is used to emit a laser beam to irradiate the water in the toilet after the urine flushing mode or the stool flushing mode is turned on; The photoelectric detection module is used to detect scattered light beams of different directions and wavelengths after being scattered by the water body, and obtain several spectral curves; A spectral curve processing module is used to perform noise reduction processing on the spectral curve, and to fit the spectral curve after noise reduction processing to obtain a plurality of spectral curve fitting functions; A turbidity information acquisition module, used to query a preset database according to the spectral curve fitting function to obtain turbidity information corresponding to each spectral curve fitting function; A flushing volume acquisition module, used to calculate the turbidity value of the water body in the toilet according to a plurality of turbidity information, and determine whether the turbidity value is greater than a preset turbidity value. When it is determined that the turbidity value is greater than the preset turbidity value, a preset turbidity value-flushing volume data table is queried according to the turbidity value to determine the flushing volume, and the toilet is flushed again based on the flushing volume; a detection module, connected to the first determination module, and configured to obtain detection information of the first determination module and determine whether a fault occurs in the first determination module according to the detection information; A control module, connected to the detection module, the gesture sensing module and the alarm module respectively, and used to: when the detection module determines that the first determination module fails, control the alarm module to issue an alarm prompt and start the gesture sensing module at the same time; The gesture sensing module is used to sense the user's gesture trajectory, match the gesture trajectory with a preset gesture trajectory, and start the urine flushing mode or the stool flushing mode according to the matching result.
2. The automatic flushing system of the induction toilet as claimed in claim 1, characterized in that: The first preset distance matrix is a distance matrix for a user standing to use the toilet; the second preset distance matrix is a distance matrix for a user sitting to use the toilet.
3. The automatic flushing system of the induction toilet as claimed in claim 1, characterized in that: Also includes: The mixing module is used to fully mix water and detergent and flush the toilet based on the mixed solution.
4. The automatic flushing system for an induction toilet as claimed in claim 1, characterized in that: Determining whether the second sound signal includes a defecation sound comprises: Collecting sample sounds, and manually labeling the sample sounds with sound types; Input the sample sound with the labeled sound type into the constructed neural network model for training, and obtain a trained neural network model; The second sound signal is input into the trained neural network model, a recognition result is output, and it is determined whether the second sound signal includes a defecation sound according to the recognition result.
5. The automatic flushing system for an induction toilet as claimed in claim 1, characterized in that: Also includes: A second acquisition module is used to acquire the noise of other devices within the sensing range of the induction toilet and the location where the noise occurs before determining whether the first sound signal matches the urination sound; A third determination module is used to determine the attenuation value of the noise collected by the sound collection module according to the location where the noise occurs and the location of the sound collection module on the induction toilet; A fourth determination module, configured to determine a target signal in the first sound signal collected by the sound collection module according to a noise curve generated by noise of other devices and the attenuation value; A removal module, used for removing the target signal from the first sound signal to obtain a valid signal; A filtering processing module, used to obtain the spectrum energy of the effective signal, determine the filtering coefficient according to the spectrum energy, and perform filtering processing on the effective signal according to the filtering coefficient; The first determination module is used to match the effective signal after filtering with the urination sound.
6. The automatic flushing method of the automatic flushing system of the induction toilet according to claim 1, characterized in that: include: Get the distance matrix between the user's location and the toilet's location; When it is determined that the user is within the sensing range of the induction toilet, a first similarity between the distance matrix and a first preset distance matrix is calculated, and when it is determined that the first similarity is greater than or equal to the preset similarity, a first sound signal is collected; when it is determined that the first sound signal matches the urination sound, switching to the urination flushing mode; It also includes, when it is determined that the user is within the sensing range of the induction toilet, calculating the second similarity between the distance matrix and the second preset distance matrix, when it is determined that the second similarity is greater than or equal to the preset similarity, collecting a second sound signal, analyzing the second sound signal, and determining whether the second sound signal includes a defecation sound, and when it is determined that the second sound signal matches the defecation sound, switching to a defecation flushing mode; when it is determined that the second sound signal cannot match the defecation sound, switching to a urination flushing mode.
