Spa control method and spa device
Patent Information
- Application Number
- CN202411950209.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2026-10-13
AI Technical Summary
[0002]水疗马桶虽然为用户提供了水流冲洗的舒适体验,并有助于清洁和舒缓某些身体部位的不适,传统水疗马桶水压单一、喷射角度固定,在某些情况下给使用者带来不适或疼痛,尤其缺乏针对特定病症(如痔疮)的个性化调节功能
[0069]通过网格划分将预处理图像分割成更小的区域,得到若干网格图像,便于对特定区域进行细致分析;通过表征图像集识别网格图像,得到网格图像的表征,通过比对可以准确识别出当前使用者各个特定区域的情况,将相同表征的网格图像归为一类,便于后续的统一处理;根据表征调用调整策略,在对应表征的类网格图像集执行该调整策略(调整策略可能包括调整水疗设备的水压、水流方向、喷嘴到使用者对应的特定区域的喷洒距离等参数),根据各个网格图像的表征在对应特定区域执行相应的调整策略,实现水压的局部调整,不仅提高了水疗的舒适度,还能够更有效地促进血液循环;例如,如果痔疮位于肛门附近,水疗设备可以调整喷洒到肛门附近的水压和水流方向,使水流更加柔和地作用于该特定区域,避免对痔疮造成刺激。
Smart Images

Figure CN122907281A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hydrotherapy equipment control technology, specifically to a hydrotherapy control method and hydrotherapy equipment. Background Technology
[0002] While hydrotherapy toilets offer users a comfortable water-washing experience and help cleanse and soothe discomfort in certain body parts, traditional hydrotherapy toilets have a fixed water pressure and spray angle, which can cause discomfort or pain in some situations, especially lacking personalized adjustment functions for specific conditions (such as hemorrhoids). Specifically, for hemorrhoid patients, hydrotherapy toilets may not be able to precisely adjust the water flow intensity and direction according to the location, size, and severity of the hemorrhoids, thus failing to achieve optimal treatment results and potentially exacerbating discomfort. However, most hydrotherapy toilets currently on the market only offer fixed or limited water flow patterns and cannot be personalized according to the specific location of hemorrhoids. Summary of the Invention
[0003] The purpose of this invention is to provide a hydrotherapy control method and hydrotherapy equipment, and the technical problem to be solved is how to locally adjust water pressure.
[0004] This invention is achieved through the following technical solution:
[0005] The first aspect provides a hydrotherapy control method, comprising the following steps:
[0006] S100. When a user image is captured in the spa area, the spa task is triggered. The spa area is the space that the water jet can cover after the spa device sprays water.
[0007] S200. The user image set collected within the time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T.
[0008] S300. Divide the preprocessed image into a grid to obtain several grid images;
[0009] S400: Call the representation image set, identify the grid image through the above representation image set, and obtain the representation of the grid image;
[0010] S500. Group the above-mentioned grid images with the same characteristics into one category to obtain a set of grid images;
[0011] S600. Based on the above representation, the adjustment strategy is invoked and executed in the mesh-like image set corresponding to the representation.
[0012] The preprocessed image is divided into smaller regions by grid partitioning, resulting in several grid images that facilitate detailed analysis of specific areas. The grid images are then identified using a representation image set to obtain their representations. Comparison allows for accurate identification of the current user's specific areas, grouping grid images with the same representation into a single category for subsequent unified processing. An adjustment strategy is invoked based on the representation and executed in the corresponding grid image set (the adjustment strategy may include adjusting parameters such as water pressure, water flow direction, and spray distance from the nozzle to the user's specific area). This allows for localized water pressure adjustment in the corresponding specific area based on the representation of each grid image, improving the comfort of the spa and more effectively promoting blood circulation. For example, if hemorrhoids are located near the anus, the spa device can adjust the water pressure and flow direction sprayed towards the anus, making the water flow gentler on the specific area and avoiding irritation to the hemorrhoids.
[0013] Furthermore, the user image set collected within time period T is preprocessed to obtain preprocessed images. The specific steps are as follows:
[0014] A user image is collected once at each time interval t. N user images are collected within a time period T (time period T = Nt, N is a positive integer). The N user images form a user image set.
[0015] The aforementioned user images contain a first feature point, and the coordinates of the first feature point are extracted from each user image in the aforementioned user image set;
[0016] Calculate the offset distance of the first feature point from time node (n+1)t to time node (n+2)t to obtain the adjacent offset; calculate the offset distance of the first feature point from time node nt to time node (n+2)t to obtain the interval offset.
[0017] Call the adjacent offset threshold and the interval offset threshold, compare the adjacent offset with the adjacent offset threshold, and compare the interval offset with the interval offset threshold;
[0018] If the adjacent offset is greater than or equal to the adjacent offset threshold, and the interval offset is greater than or equal to the interval offset threshold, then the user image collected at time node (n+2)t and the corresponding first feature point coordinates are marked as accidental data.
[0019] If the adjacent offset is less than the adjacent offset threshold, or the interval offset is less than the interval offset threshold, then the user image collected at time node (n+2)t and the corresponding first feature point coordinates are marked as normal data.
[0020] After traversing the above user image sets, we obtain the random dataset and the normal dataset;
[0021] The coordinates of the first feature point in the above normal dataset are retrieved, and the mean coordinates are calculated from the coordinates of the first feature point.
[0022] The first feature point coordinates closest to the mean coordinates are selected from the above normal dataset, and the user image corresponding to the first feature point coordinates is obtained to obtain the preprocessed image.
[0023] Considering that the spa treatment needs to last for a period of time, users will move around during the treatment. Image acquisition is continuous. To reduce the amount of computation, preprocessed images are selected from several user images acquired in time period T. To avoid interference from individual large movements on the processing results, the interference of random data on the processing results is eliminated. Since users do not move frequently, the preprocessed images are updated once every time period T to improve the accuracy of image processing.
[0024] Furthermore, the preprocessed image is divided into grids to obtain several grid images. Specific steps include:
[0025] The aforementioned user image includes a first hip peak and a second hip peak;
[0026] Extract the coordinates of the first and second hip peaks from the preprocessed image above;
[0027] Draw a straight line passing through the coordinates of the first and second hip peaks to obtain the horizontal grid baseline.
[0028] Draw several straight lines parallel to the aforementioned horizontal grid baselines to obtain a set of horizontal grid lines;
[0029] Calculate the midpoint between the coordinates of the first hip peak and the coordinates of the first hip peak to obtain the center coordinates;
[0030] Draw a straight line passing through the aforementioned center coordinates and perpendicular to the horizontal grid lines to obtain the vertical grid baseline;
[0031] Draw several straight lines parallel to the above-mentioned longitudinal grid baselines to obtain a set of longitudinal grid lines;
[0032] The preprocessed image is divided into several grid images by the above set of horizontal and vertical grid lines.
[0033] Dividing the image into grids based on specific feature points (such as the first and second hip peaks) in the preprocessed image not only improves the accuracy of grid division but also ensures that the grid image can more accurately reflect the user's body characteristics, thus providing a more reliable basis for subsequent personalized adjustments.
[0034] Furthermore, after obtaining the horizontal grid baseline, the spacing between adjacent horizontal grid lines is determined through the following steps:
[0035] Pre-set the initial distance L between the horizontal grid lines adjacent to the aforementioned horizontal grid baseline and the horizontal grid baseline. x0 Based on the number of horizontal grid lines n that occur between the current horizontal grid line and the horizontal grid baseline, the number of horizontal grid lines n is used as the number X of the current horizontal grid line. n ;
[0036] The spacing between adjacent horizontal grid lines described above can be calculated using the following formula.
[0037] L x =L x0 +nΔl x ,
[0038] Among them, L x Indicates the spacing between adjacent horizontal grid lines; L x0 This represents the initial distance between the horizontal grid line numbered X0 and the horizontal grid baseline; n represents the number of horizontal grid lines in the time interval between the current horizontal grid line and the horizontal grid baseline; Δl x Indicates horizontal increment;
[0039] After obtaining the vertical grid baseline, the spacing between adjacent vertical grid lines is determined by the following steps:
[0040] Pre-set the initial distance L between the longitudinal grid lines adjacent to the aforementioned longitudinal grid baseline and the longitudinal grid baseline. y0 Based on the number of vertical grid lines n between the current vertical grid line and the vertical grid baseline, the number of vertical grid lines n is used as the number Y of the current vertical grid line. n ;
[0041] The spacing between adjacent vertical grid lines described above can be calculated using the following formula.
[0042] L y =L y0 +nΔl y ,
[0043] Among them, L y Indicates the spacing between adjacent vertical grid lines; L y0 This represents the initial distance between the vertical grid line numbered Y0 and the vertical grid baseline; n represents the number of vertical grid lines in the time interval between the current vertical grid line and the vertical grid baseline; Δl y This indicates the vertical increment.
[0044] Expanding outward from the aforementioned central coordinates, the area of the grid image gradually increases. During the hydrotherapy process, the focus is mainly on the area near the anus. For other specific areas far from the anus, simple cleaning is sufficient. This method of gradually increasing the grid area not only reduces the amount of computation and enables the hydrotherapy equipment to respond faster, but also allows for the increase or decrease of the number and size of the grid as needed to adapt to different application scenarios and requirements.
[0045] The second aspect provides a spa device for installation on a toilet, employing the aforementioned control method;
[0046] The spa equipment includes:
[0047] The acquisition module is installed on the inner wall of the toilet. The acquisition module is used to acquire images in the spa area. When the user's image is acquired, a trigger signal is generated. The spa area is the space area enclosed by the inner wall of the toilet.
[0048] The processing module is connected to the acquisition module; the processing module is used to perform the following operations: upon receiving a trigger signal, it triggers the spa task;
[0049] The user image set collected within time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T.
[0050] The preprocessed image above is divided into grids to obtain several grid images;
[0051] The representation image set is invoked, and the grid images are identified through the above representation image set to obtain the representation of the grid images; the above grid images with the same representation are grouped into one class to obtain the class grid image set;
[0052] A spraying module is installed on the inner wall of the toilet and connected to the processing module. The spraying module contains several nozzles, each of which corresponds to a grid image. Based on the grid image set, nozzles with the same adjustment strategy are obtained to form a nozzle set.
[0053] The adjustment module is connected to the processing module and the spraying module; the adjustment module is used to simultaneously adjust the parameters of each nozzle in the nozzle group according to the adjustment strategy.
[0054] The aforementioned acquisition module is installed on the inner wall of the toilet to facilitate the acquisition of images of the spa area, allowing for timely triggering of the spa task when the user requires it. The processing module selects and processes pre-processed images, dividing them into several parts, each a unit. The water pressure applied to each unit can be individually adjusted and controlled, enabling localized water pressure adjustment. This spa method can alleviate user discomfort and inconvenience. A spray module is also installed on the inner wall of the toilet to ensure that the sprayed water jets target specific areas of the user. The spray module contains several nozzles, each corresponding one-to-one with a grid image, ensuring that each nozzle accurately corresponds to a specific part of the spa area. Based on the grid-like image set and the correspondence between nozzles and grid images, it is possible to accurately determine the target area. The system identifies nozzles belonging to the same category, forming a nozzle cluster. Nozzles of the same category are adjusted using the same strategy. The adjustment module connects the processing module and the spraying module, and is used to simultaneously adjust the parameters of each nozzle in the nozzle cluster according to the adjustment strategy. ("Parameters" can be nozzle opening, water pressure output intensity, water flow velocity, water flow direction, or the spatial position of the nozzle. Adjusting these parameters changes the water pressure output.) By collectively adjusting the nozzles in the nozzle cluster through the adjustment module, both local water pressure adjustment (local adjustment consists of one or more specific areas) can be achieved, ensuring a more precise and effective spa effect, and the time spent adjusting the global water pressure (after each update of the preprocessed image, the specific areas of the user's spa area are fine-tuned, and the global pressure consists of all specific areas) can be reduced.
[0055] Furthermore, the above-mentioned spraying module includes several pipe sections and linkage components, and each pipe section is equipped with a nozzle;
[0056] Adjacent pipe sections are connected by a linkage to form a spray pipe;
[0057] The aforementioned adjustment module is connected to the linkage component, and the adjustment module drives the spray pipe to bend and extend through the linkage component.
[0058] The spray pipe is formed by connecting adjacent pipe sections through the aforementioned linkage, allowing it to bend and extend as needed. This flexibility ensures that the spa equipment can be positioned to a specific area, regardless of its location within the toilet bowl; the spray pipe can be adjusted to fit the specific area. After identifying the characteristics of each specific area, the adjustment module can adjust the pipe section of the spray pipe in that area through the linkage, thereby changing the water pressure output of the nozzle in that area. This achieves localized water pressure adjustment, ensuring that the water flow acts on each specific area with appropriate intensity, thus achieving better therapeutic effects.
[0059] Furthermore, the aforementioned adjustment module includes several drivers, each of which is connected to a corresponding linkage component.
[0060] The one-to-one connection between the aforementioned driver and the linkage ensures that each linkage can be controlled independently, allowing the adjustment module to adjust the pipe section in a specific area of the spray pipe as needed, thereby achieving personalized water pressure adjustment.
[0061] Furthermore, the aforementioned adjustment module is used to simultaneously adjust the parameters of each nozzle in the nozzle group according to the adjustment strategy. Specific steps include:
[0062] The initial spatial coordinates of each nozzle in the above-mentioned nozzle set and the spatial coordinates of each specific area of the user in the spa area are obtained through the above-mentioned acquisition module; the above-mentioned specific areas correspond one-to-one with the grid images in the grid-like image set.
[0063] The spraying distance from the nozzle to the corresponding specific area is obtained from the above adjustment strategy. The target spatial coordinates of the nozzle are determined by the spraying distance and the spatial coordinates of the corresponding specific area.
[0064] The lateral movement path of the nozzle is determined by using the X and Y coordinates in the initial spatial coordinates and the X and Y coordinates in the target spatial coordinates.
[0065] The longitudinal movement path of the nozzle is determined by the Z-coordinate in the initial spatial coordinates and the Z-coordinate in the target spatial coordinates.
[0066] The nozzles mentioned above move simultaneously along both the lateral and longitudinal movement paths.
[0067] After determining the adjustment strategy for each specific area, the adjustment strategy is executed through the adjustment module. By obtaining the initial spatial coordinates of each nozzle in the nozzle set at the current moment, and the spatial coordinates of the specific area corresponding to each grid image in the grid image set, the relative relationship between the corresponding nozzle and the specific area (the specific area refers to the area occupied by the water jet sprayed by the nozzle acting on the user, which corresponds to a grid image) is understood. Since the water pressure intensity acting on the user is not only related to the water pressure output intensity, but also to the spraying distance, the water pressure output intensity can be set directly. However, during the hydrotherapy process, the spraying distance will change due to the user's movement. Therefore, it is necessary to adjust the position of the nozzle in time to eliminate the water pressure change caused by the change in spraying distance.
[0068] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0069] The preprocessed image is divided into smaller regions by grid partitioning, resulting in several grid images that facilitate detailed analysis of specific areas. The grid images are then identified using a representation image set to obtain their representations. Comparison allows for accurate identification of the current user's specific areas, grouping grid images with the same representation into a single category for subsequent unified processing. An adjustment strategy is invoked based on the representation, and this strategy is executed in the corresponding grid image set (the adjustment strategy may include adjusting parameters such as water pressure, water flow direction, and spray distance from the nozzle to the user's specific area). Based on the representation of each grid image, the corresponding adjustment strategy is executed in the specific area, achieving localized water pressure adjustment. This not only improves the comfort of the spa but also more effectively promotes blood circulation. For example, if hemorrhoids are located near the anus, the spa device can adjust the water pressure and flow direction sprayed towards the anus, making the water flow gentler on that specific area and avoiding irritation to the hemorrhoids. Attached Figure Description
[0070] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:
[0071] Figure 1 This is the main flowchart of the control method;
[0072] Figure 2 The preprocessed image provided in Example 1;
[0073] Figure 3 The preprocessed image after grid division includes the grid image number, the vertical grid line number, and the horizontal grid line number.
[0074] Figure 4 A schematic diagram of a spa device installed on the inner wall of a toilet bowl;
[0075] Figure 5 This is a cross-sectional view of part of the spray pipe;
[0076] Figure 6 A diagram illustrating the installation of a spa device on a toilet seat;
[0077] Figure 7 This is a schematic diagram of a spray module connected to a toilet via a water pipe.
[0078] The attached diagram shows the markings and corresponding component names:
[0079] 10. Toilet; 20. Spraying module; 21. Nozzle; 22. Stainless steel pipe; 23. Rubber hose; 24. Connecting sleeve; 25. Traction rope; 30. Data collection module. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of this invention are only for explaining this invention and are not intended to limit this invention.
[0081] The following implementation method takes a hemorrhoid patient as the user and uses a hydrotherapy device as an example. If the user's hydrotherapy area also has one or more diseases such as trauma, folliculitis, boils, pressure sores, acanthosis nigricans, etc., the direct and strong water flow will stimulate the sensitive area and cause pain or discomfort. In order to solve the user's discomfort, the hydrotherapy area is divided into multiple local areas, and the water flow and water pressure are adjusted in a targeted manner based on the local area.
[0082] First embodiment:
[0083] A spa control method, such as Figure 1 As shown, it includes the following steps:
[0084] S100. When a user image is captured in the spa area, a spa task is triggered.
[0085] S200. The user image set collected within the time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T.
[0086] S300. Divide the preprocessed image into a grid to obtain several grid images;
[0087] S400: Call the representation image set, identify the grid image through the above representation image set, and obtain the representation of the grid image;
[0088] S500. Group the above-mentioned grid images with the same characteristics into one category to obtain a set of grid images;
[0089] S600. Based on the above representation, the adjustment strategy is invoked and executed in the mesh-like image set corresponding to the representation.
[0090] The preprocessed image is divided into smaller regions by gridding, resulting in several grid images, which facilitates detailed analysis of specific areas. The grid images are then identified using a representation image set (which includes images of normal skin morphology, anal morphology, and disease morphology, such as hemorrhoids, injuries, folliculitis, boils, pressure sores, and acanthosis nigricans, based on their shape, size, and severity). Comparison accurately identifies the condition of each specific area of the current user, grouping grid images with the same representation together for subsequent unified processing. An adjustment strategy is invoked based on the representation, and this strategy is executed in the corresponding grid image set (the adjustment strategy may include adjusting parameters such as water pressure, water flow direction, and spray distance from the nozzle to the user's specific area). By implementing the corresponding adjustment strategy in the specific area based on the representation of each grid image, localized water pressure adjustment is achieved, improving the comfort of the spa and more effectively promoting blood circulation and alleviating symptoms.
[0091] One possible use case for reference, such as Figure 2 As shown, in the preprocessed image, "1" represents hemorrhoids and "2" represents pressure ulcers (only the morphology of hemorrhoids and pressure ulcers is shown in the image, not the user's own morphology). The preprocessed image is divided into multiple grid images. For ease of understanding, an array is used to number the grid images. Each grid image is identified through a representation image set to obtain the representation of the grid image, thereby calling the corresponding adjustment strategy; Figure 3 It can be seen that the pressure ulcer spans multiple grid images (the grid images spanned are numbered A[1][0], A[1][1], A[2][0], A[2][1], A[3][0], A[3][1], A[4][0], A[4][1]). Therefore, these grid images are classified into one category to form a grid image set, and the water pressure of the grid image set is adjusted according to the corresponding adjustment strategy set.
[0092] Second embodiment:
[0093] Based on the first embodiment, the user image set collected within time period T is preprocessed to obtain a preprocessed image. The specific steps are as follows:
[0094] A user image is collected once at each time interval t (t can be equal to 15s, 30s, 1min, 2min, etc., in this embodiment t=1min is taken as an example). N user images are collected within the time period T (N can be equal to 4, 5, 6, 7, etc., in this embodiment N=5 is taken as an example) (time period T=Nt=5min, N is a positive integer). N user images form a user image set.
[0095] The user images mentioned above contain a first feature point (the first feature point can be a landmark such as an anus, hemorrhoids, or wound). The coordinates of the first feature point are extracted from each user image in the user image set. The coordinates of the first feature point from 1 min to 5 min are (x1, y1), (x2, y2), (x3, y3), (x4, y4), and (x5, y5) respectively.
[0096] First, determine whether the user image and the coordinates of the first feature point acquired at 3 minutes are random data. The steps are as follows:
[0097] use (where d) 相邻(2,3) (This represents the adjacent offset from 2 minutes to 3 minutes). Calculate the offset distance of the first feature point from 2 minutes to 3 minutes to obtain the adjacent offset. (where d) 间隔(1,3) (This represents the interval offset from 1 minute to 3 minutes). Calculate the offset distance of the first feature point from 1 minute to 3 minutes to obtain the interval offset.
[0098] Call the adjacent offset threshold and the interval offset threshold, compare the adjacent offset with the adjacent offset threshold, and compare the interval offset with the interval offset threshold;
[0099] If the adjacent offset is greater than or equal to the adjacent offset threshold and the interval offset is greater than or equal to the interval offset threshold, then the user image collected at 3 minutes and the corresponding first feature point coordinates are marked as random data.
[0100] If the adjacent offset is less than the adjacent offset threshold, or the interval offset is less than the interval offset threshold, then the user image collected at 3 minutes and the corresponding first feature point coordinates are marked as normal data.
[0101] Then, determine whether the user image and the coordinates of the first feature point acquired at 4 minutes are random data, as follows:
[0102] use (where d) 相邻(3,4) (This represents the adjacent offset from 3 min to 4 min). Calculate the offset distance of the first feature point from 3 min to 4 min to obtain the adjacent offset. (where d) 间隔(2,4) (This represents the interval offset from 2 minutes to 4 minutes). Calculate the offset distance of the first feature point from 2 minutes to 4 minutes to obtain the interval offset.
[0103] Compare adjacent offsets with adjacent offset thresholds, and compare interval offsets with interval offset thresholds;
[0104] If the adjacent offset is greater than or equal to the adjacent offset threshold, and the interval offset is greater than or equal to the interval offset threshold, then the user image collected at 4 minutes and the corresponding first feature point coordinates are marked as accidental data.
[0105] If the adjacent offset is less than the adjacent offset threshold, or the interval offset is less than the interval offset threshold, then the user image collected at 4 minutes and the corresponding first feature point coordinates are marked as normal data.
[0106] Finally, to determine whether the user image and the coordinates of the first feature point acquired at 5 minutes are random data, the steps are as follows:
[0107] use (where d) 相邻(4,5) (This represents the adjacent offset from 4 min to 5 min). Calculate the offset distance of the first feature point from 4 min to 5 min to obtain the adjacent offset. (where d) 间隔(5,3) (This represents the interval offset from 3 minutes to 5 minutes). Calculate the offset distance of the first feature point from 3 minutes to 5 minutes to obtain the interval offset.
[0108] Compare adjacent offsets with adjacent offset thresholds, and compare interval offsets with interval offset thresholds;
[0109] If the adjacent offset is greater than or equal to the adjacent offset threshold and the interval offset is greater than or equal to the interval offset threshold, then the user image collected at 5 minutes and the corresponding first feature point coordinates are marked as accidental data.
[0110] If the adjacent offset is less than the adjacent offset threshold, or the interval offset is less than the interval offset threshold, then the user image collected at 5 minutes and the corresponding first feature point coordinates are marked as normal data.
[0111] After traversing the above user image set, we obtain the random dataset and the normal dataset. The random dataset consists of user images collected at 1 min, 2 min, 3 min and 4 min.
[0112] Then, the coordinates of the first feature point in the aforementioned normal dataset are retrieved, and... (in, (Representing the mean coordinates), the mean coordinates are obtained by calculating the mean of the coordinates using the coordinates of the first feature point;
[0113] The first feature point coordinates closest to the mean coordinates are selected from the above normal dataset, and the user image corresponding to the first feature point coordinates is obtained to obtain the preprocessed image.
[0114] Considering that the spa treatment needs to last for a period of time, users will move around during the treatment. Image acquisition is continuous. To reduce the amount of computation, preprocessed images are selected from several user images acquired in time period T. To avoid interference from individual large movements on the processing results, the interference of random data on the processing results is eliminated. Since users do not move frequently, the preprocessed images are updated once every time period T to improve the accuracy of image processing.
[0115] Third embodiment:
[0116] Based on any of the above embodiments, the preprocessed image is divided into grids to obtain several grid images. The specific steps include:
[0117] The above user image includes a first and a second buttock peak; the buttock peak refers to the most prominent point of the buttocks.
[0118] The coordinates of the first and second hip peaks are extracted from the preprocessed image above; the first and second hip peaks can roughly reflect the contour and width of the user's hips;
[0119] Draw a straight line passing through the coordinates of the first and second hip peaks to obtain the horizontal grid baseline.
[0120] Draw several straight lines parallel to the aforementioned horizontal grid baseline to obtain a set of horizontal grid lines; the set of horizontal grid lines divides the preprocessed image into several equal parts in the horizontal direction, which facilitates subsequent partitioning and positioning.
[0121] Calculate the midpoint between the coordinates of the first buttock peak and the coordinates of the first buttock peak to obtain the center coordinates; the center coordinates reflect the center position of the user's buttocks.
[0122] Draw a straight line passing through the aforementioned center coordinates and perpendicular to the horizontal grid lines to obtain the vertical grid baseline;
[0123] Draw several straight lines parallel to the above-mentioned vertical grid baseline to obtain a set of vertical grid lines; the set of vertical grid lines divides the preprocessed image into several equal parts in the vertical direction, which together with the horizontal grid lines form a complete grid.
[0124] The preprocessed image is divided into several grid images using the aforementioned sets of horizontal and vertical grid lines. Each grid image represents a small area of the user's buttock region, facilitating subsequent individual analysis and adjustment of specific areas. For example, localized pressure can be applied or depressurized to the grid containing hemorrhoids and its surrounding areas to achieve a more personalized hydrotherapy effect. Personalized water pressure adjustment can reduce discomfort during the hydrotherapy process, improving comfort and effectiveness; simultaneously, the fine grid division and personalized adjustment strategy can enhance user trust and satisfaction with the hydrotherapy equipment.
[0125] Dividing the image into grids based on specific feature points (such as the first and second hip peaks) in the preprocessed image not only improves the accuracy of grid division but also ensures that the grid image can more accurately reflect the user's body characteristics, thus providing a more reliable basis for subsequent personalized adjustments.
[0126] Fourth embodiment:
[0127] Based on the third embodiment, the spacing between adjacent horizontal grid lines is determined through the following steps:
[0128] Pre-set the initial distance L between the horizontal grid lines adjacent to the aforementioned horizontal grid baseline and the horizontal grid baseline. x0 Based on the number of horizontal grid lines n that occur between the current horizontal grid line and the horizontal grid baseline, the number of horizontal grid lines n is used as the number X of the current horizontal grid line. n ;
[0129] The spacing between adjacent horizontal grid lines described above can be calculated using the following formula.
[0130] L x =L x0 +nΔl x ,
[0131] Among them, L x Indicates the spacing between adjacent horizontal grid lines; L x0 This represents the initial distance between the horizontal grid line numbered X0 and the horizontal grid baseline; n represents the number of horizontal grid lines in the time interval between the current horizontal grid line and the horizontal grid baseline; Δl x Indicates horizontal increment;
[0132] The spacing between adjacent vertical grid lines described above is determined using the following steps:
[0133] Pre-set the initial distance L between the longitudinal grid lines adjacent to the aforementioned longitudinal grid baseline and the longitudinal grid baseline. y0 Based on the number of vertical grid lines n between the current vertical grid line and the vertical grid baseline, the number of vertical grid lines n is used as the number Y of the current vertical grid line. n ;
[0134] The spacing between adjacent vertical grid lines described above can be calculated using the following formula.
[0135] L y =L y0 +nΔl y ,
[0136] Among them, L yIndicates the spacing between adjacent vertical grid lines; L y0 This represents the initial distance between the vertical grid line numbered Y0 and the vertical grid baseline; n represents the number of vertical grid lines in the time interval between the current vertical grid line and the vertical grid baseline; Δl y This indicates the vertical increment.
[0137] Expanding outward from the aforementioned central coordinates, the area of the grid image gradually increases. During the hydrotherapy process, the focus is mainly on the area near the anus. For other specific areas far from the anus, simple cleaning is sufficient. This method of gradually increasing the grid area not only reduces the amount of computation and enables the hydrotherapy equipment to respond faster, but also allows for the increase or decrease of the number and size of the grid as needed to adapt to different application scenarios and requirements.
[0138] Fifth embodiment:
[0139] A spa device that can be installed on either a smart toilet or a regular toilet, and the spa device employs the control method described above;
[0140] The spa equipment includes:
[0141] The acquisition module 30 is installed on the inner wall of the toilet bowl 10 (e.g., Figure 4 (as shown) or toilet seat ring (such as Figure 6 (As shown); The above-mentioned acquisition module 30 is used to acquire images in the spa area. When the user image is acquired, a trigger signal is generated. The spa area is the space area enclosed by the inner wall of the toilet 10.
[0142] The processing module is connected to the acquisition module 30; the processing module is used to perform the following operations: upon receiving a trigger signal, it triggers a spa task;
[0143] The user image set collected within time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T.
[0144] The preprocessed image above is divided into grids to obtain several grid images;
[0145] The representation image set is invoked, and the grid images are identified through the above representation image set to obtain the representation of the grid images; the above grid images with the same representation are grouped into one class to obtain the class grid image set;
[0146] A spray module 20 is installed on the inner wall of the toilet bowl or on the toilet seat of the toilet 10. The spray module 20 can be connected to a water pipe and a water pump. The water pipe and water pump are connected, and the water pump is installed in a water storage tank. When the water pump is started, water from the storage tank is transported to the spray module through the water pipe. Alternatively, the water pipe can pass through and extend out of the toilet 10, with the extended portion connected to the spray module 20. Figure 7 As shown, a fixing piece for fixing the spray module can be installed on the toilet seat ring, freeing up your hands during spa treatment and improving positioning accuracy.
[0147] The spraying module 20 is connected to the processing module; the spraying module 20 includes a plurality of nozzles 21, each nozzle 21 corresponding to a grid image; nozzles 21 with the same adjustment strategy are obtained from the grid image set to obtain a set of nozzles 21;
[0148] The adjustment module is connected to the processing module and the spraying module 20; the adjustment module is used to adjust the parameters of each nozzle 21 in the nozzle group 21 according to the adjustment strategy.
[0149] The aforementioned acquisition module 30 is installed on the inner wall of the toilet 10 to facilitate the acquisition of images of the hydrotherapy area, allowing for timely triggering of the hydrotherapy task when the user requires it. The processing module selects and processes pre-processed images, dividing them into several parts, each a unit. The water pressure applied to each unit can be individually adjusted and controlled, enabling localized water pressure adjustment. This hydrotherapy method can alleviate user discomfort and inconvenience. The spray module 20 is installed on the inner wall of the toilet 10 to ensure that the sprayed water jets act on specific areas of the user. The spray module 20 includes several nozzles 21, each corresponding one-to-one with a grid image, ensuring that each nozzle 21 accurately corresponds to a specific part of the hydrotherapy area. Based on the correspondence between the grid image set and the nozzles 21 and the grid images, it is possible to determine which nozzles 21 belong to the same category. The nozzles 21 are grouped into categories, and nozzles 21 of the same category adopt the same adjustment strategy. The adjustment module connects the processing module and the spraying module 20, and is used to simultaneously adjust the parameters of each nozzle 21 in the category of nozzles 21 according to the adjustment strategy. ("Parameters" can be the opening degree of nozzle 21, water pressure output intensity, water flow velocity, water flow direction, or spatial position of nozzle 21. The water pressure output is changed by adjusting the above parameters.) Through the adjustment module, the spa equipment can collectively adjust the nozzles 21 in the category of nozzles 21 according to the specific location, size, and severity of hemorrhoids. This can achieve local adjustment of water pressure (local adjustment consists of one or more specific areas), ensuring a more precise and effective spa effect, and can also shorten the time spent adjusting the global water pressure (after each update of the preprocessed image, the specific areas of the user's spa area are fine-tuned again, and the global pressure consists of all specific areas).
[0150] Sixth embodiment:
[0151] Based on the sixth embodiment, the above-mentioned spraying module 20 includes several pipe sections and linkage components. Each pipe section is equipped with a nozzle 21. A flow valve and a pressure pump can be installed in the pipe section. The flow valve is connected to the pressure pump. The water flow is first pressurized by the pressure pump, then flows through the flow valve for flow regulation, and finally sprays out from the nozzle 21. The flow valve adjusts the water flow rate of the spray nozzle 21, and the pressure pump adjusts the water pressure of the spray nozzle 21 itself. The flow valve and pressure pump are existing equipment, and the model is not limited.
[0152] Adjacent pipe sections are connected by a linkage to form a spray pipe;
[0153] The aforementioned adjustment module includes several drivers, each of which is connected to a corresponding linkage to ensure that each linkage can be controlled independently. This allows the adjustment module to adjust specific sections of the spray pipe as needed, thereby achieving personalized water pressure adjustment. The adjustment module drives the spray pipe to bend and extend through the linkage.
[0154] The spray pipe is formed by connecting adjacent pipe sections through the aforementioned linkage, allowing the spray pipe to bend and extend as needed. This flexibility ensures that the hydrotherapy device can be positioned to the location of the hemorrhoids, regardless of which corner of the inner wall of the toilet 10 it is located in. The spray pipe can be adjusted to adapt by changing its shape. After identifying the characteristics of each specific area, the adjustment module can adjust the pipe section of the spray pipe in the specific area through the linkage, thereby changing the water pressure output of the nozzle 21 in that area, realizing local adjustment of water pressure, and ensuring that the water flow acts on each specific area with appropriate intensity, thereby achieving better treatment results.
[0155] When performing an enema, if a specific area resembles the anus, the corresponding nozzle is inserted into the anus and into the intestine. The depth of insertion into the intestine is determined by an adjustment strategy. This nozzle-anus contact enema method reduces the impact on the anus and improves the user's comfort.
[0156] One possible use case for reference, such as Figure 5 As shown, the pipe section can be configured with two layers. The outer layer is a stainless steel pipe 22, with rounded protrusions at both ends. The inner layer is a rubber pipe 23, which is elastic. A portion of the inner rubber pipe 23 is fixedly connected to the outer stainless steel pipe 22 (by adhesive bonding), allowing the nozzles 21 on the rubber pipe 23 to overlap with the spray holes on the stainless steel pipe 22. The rubber pipe 23 on the same spray pipe is integrally formed and is used to transport water flow. The linkage includes a connecting sleeve 24 and a traction rope 25. One end of the traction rope 25 is connected to the connecting sleeve 24, and the other end is connected to the driver. The inner wall of the connecting sleeve 24 has a rounded groove that matches the rounded protrusions of the stainless steel pipe 22. The arc protrusion can rotate within the arc groove without detaching from it. Two or three traction ropes 25 can be provided. When three traction ropes 25 are provided, they are positioned in the X, Y, and Z directions of the connecting sleeve 24, respectively. This embodiment uses two traction ropes 25 as an example, with the two traction ropes 25 positioned in opposite directions of the connecting sleeve 24. The adjustment module is programmed to control the operation of each driver. These drivers may include two stepper motors, each controlling one traction rope 25, which is wound around the rotating shaft to achieve extension and retraction. Each driver controls a dedicated pipe segment, and the spray pipe shape is determined based on the tightness of the traction rope 25 on each pipe segment.
[0157] Seventh embodiment:
[0158] Based on the seventh embodiment, the above-mentioned adjustment module is used to simultaneously adjust the parameters of each nozzle 21 in the nozzle group 21 according to the adjustment strategy. The specific steps include:
[0159] The acquisition module 30 obtains the initial spatial coordinates of each nozzle 21 in the nozzle 21 set at the current moment, as well as the spatial coordinates of each specific area of the user in the spa area; the specific areas correspond one-to-one with the grid images in the grid image set.
[0160] The spraying distance from nozzle 21 to the corresponding specific area is obtained from the above adjustment strategy. The target spatial coordinates of nozzle 21 are determined by the spraying distance and the spatial coordinates of the corresponding specific area.
[0161] The lateral movement path of nozzle 21 is determined by the X and Y coordinates in the initial spatial coordinates and the X and Y coordinates in the target spatial coordinates of nozzle 21.
[0162] The longitudinal movement path of nozzle 21 is determined by the Z coordinate in the initial spatial coordinates and the Z coordinate in the target spatial coordinates of nozzle 21.
[0163] The nozzle 21 mentioned above moves simultaneously along both the lateral and longitudinal movement paths.
[0164] After determining the adjustment strategy for each specific area, the adjustment strategy is executed through the adjustment module. By obtaining the initial spatial coordinates of each nozzle 21 in the nozzle 21 set at the current moment, and the spatial coordinates of the specific area corresponding to each grid image in the grid image set, the relative relationship between the corresponding nozzle 21 and the specific area (the specific area refers to the area occupied by the water column sprayed by the nozzle 21 acting on the user, which corresponds to a grid image) is understood. Since the water pressure intensity acting on the user is not only related to the water pressure output intensity, but also to the spraying distance, the water pressure output intensity can be set directly. However, during the hydrotherapy process, the spraying distance will change due to the user's movement. Therefore, it is necessary to adjust the position of the nozzle 21 in time to eliminate the water pressure change caused by the change in spraying distance.
[0165] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for controlling hydrotherapy, characterized in that, Includes the following steps: S100. When a user image is captured in the spa area, a spa task is triggered. S200. The user image set collected within the time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T. S300: Divide the preprocessed image into a grid to obtain several grid images; S400: Call the representation image set, identify the grid image through the representation image set, and obtain the representation of the grid image; S500. Group the grid images with the same characteristics into one category to obtain a set of grid images; S600. Invoke the adjustment strategy according to the representation and execute the adjustment strategy in the mesh-like image set corresponding to the representation.
2. The hydrotherapy control method according to claim 1, characterized in that, The user image set collected within time period T is preprocessed to obtain a preprocessed image. The specific steps are as follows: S210. Collect a user image once at each time interval t, and collect N user images within the time period T (time period T = Nt, N is a positive integer). The N user images form a user image set. S220, The user image contains a first feature point, and the coordinates of the first feature point are extracted from each user image in the user image set; S230. Calculate the offset distance of the first feature point from time node (n+1)t to time node (n+2)t, and obtain the adjacent offset. Calculate the offset distance of the first feature point from time node nt to time node (n+2)t to obtain the interval offset; S240: Call the adjacent offset threshold and the interval offset threshold, compare the adjacent offset with the adjacent offset threshold, and compare the interval offset with the interval offset threshold; If the adjacent offset is greater than or equal to the adjacent offset threshold, and the interval offset is greater than or equal to the interval offset threshold, then the user image collected at time node (n+2)t and the corresponding first feature point coordinates are marked as accidental data. If the adjacent offset is less than the adjacent offset threshold, or the interval offset is less than the interval offset threshold, then the user image collected at time node (n+2)t and the corresponding first feature point coordinates are marked as normal data. S250. After traversing the user image set, the accidental dataset and the normal dataset are obtained; S260. Call the coordinates of the first feature point in the normal dataset, calculate the mean of the coordinates using the coordinates of the first feature point, and obtain the mean coordinates; S270. Select the coordinates of the first feature point that is closest to the mean coordinates from the normal dataset, obtain the user image corresponding to the coordinates of the first feature point, and obtain the preprocessed image.
3. The hydrotherapy control method according to claim 1, characterized in that, The preprocessed image is divided into grids to obtain several grid images. The specific steps include: S310, The user image includes a first hip peak point and a second hip peak point; S320. Extract the coordinates of the first and second hip peaks from the preprocessed image; S330. Draw a straight line passing through the coordinates of the first and second hip peaks to obtain the horizontal grid baseline. S340. Draw several straight lines parallel to the horizontal grid baseline to obtain a set of horizontal grid lines; S350. Calculate the midpoint between the coordinates of the first hip peak and the coordinates of the first hip peak to obtain the center coordinates; S360. Draw a straight line passing through the center coordinates and perpendicular to the horizontal grid lines to obtain the vertical grid baseline. S370. Draw several straight lines parallel to the longitudinal grid baseline to obtain a set of longitudinal grid lines; S380. The preprocessed image is divided into several grid images by the set of horizontal grid lines and the set of vertical grid lines.
4. The hydrotherapy control method according to claim 3, characterized in that, The spacing between adjacent horizontal grid lines is determined by the following steps: The initial distance L between the horizontal grid lines adjacent to the horizontal grid baseline is set in advance. x0 Based on the number of horizontal grid lines n that occur between the current horizontal grid line and the horizontal grid baseline, the number of horizontal grid lines n is used as the number X of the current horizontal grid line. n ; The spacing between adjacent horizontal grid lines is calculated using the following formula. L x =L x0 +nΔl x , Among them, L x Indicates the spacing between adjacent horizontal grid lines; L x0 This represents the initial distance between the horizontal grid line numbered X0 and the horizontal grid baseline; n represents the number of horizontal grid lines in the time interval between the current horizontal grid line and the horizontal grid baseline; Δl x Indicates horizontal increment; The spacing between adjacent longitudinal grid lines is determined by the following steps: The initial distance L between the longitudinal grid lines adjacent to the longitudinal grid baseline is set in advance. y0 Based on the number of vertical grid lines n between the current vertical grid line and the vertical grid baseline, the number of vertical grid lines n is used as the number Y of the current vertical grid line. n ; The spacing between adjacent longitudinal grid lines is calculated using the following formula. L y =L y0 +nΔl y , Among them, L y Indicates the spacing between adjacent vertical grid lines; L y0 This represents the initial distance between the vertical grid line numbered Y0 and the vertical grid baseline; n represents the number of vertical grid lines in the time interval between the current vertical grid line and the vertical grid baseline; Δl y This indicates the vertical increment.
5. A spa device for installation on a toilet (10), characterized in that, The spa equipment employs the spa control method as described in any one of claims 1 to 4; The spa equipment includes: Acquisition module (30) is installed on the inner wall of toilet (10); acquisition module (30) is used to acquire images in the spa area, and when the user image is acquired, a trigger signal is generated. The spa area is the space area enclosed by the inner wall of toilet (10). The processing module is connected to the acquisition module (30); the processing module is used to perform the following operations: upon receiving a trigger signal, triggering a spa task; The user image set collected within time period T is preprocessed to obtain a preprocessed image; the preprocessed image is updated every time period T. The preprocessed image is divided into grids to obtain several grid images; The representation image set is invoked, and the grid images are identified through the representation image set to obtain the representation of the grid images; the grid images with the same representation are grouped into one class to obtain a class grid image set; A spraying module (20) is installed on the inner wall of the toilet (10) and connected to the processing module; the spraying module (20) includes a number of nozzles (21), each of which corresponds to a grid image; nozzles (21) with the same adjustment strategy are obtained according to the grid image set to obtain a set of nozzles (21); An adjustment module is connected to the processing module and the spraying module (20); the adjustment module is used to simultaneously adjust the parameters of each nozzle (21) in the type nozzle (21) according to the adjustment strategy.
6. The spa device according to claim 5, characterized in that, The spraying module (20) includes several pipe sections and linkage components, and each pipe section is equipped with a nozzle (21); Adjacent pipe sections are connected by a linkage to form a spray pipe; The adjustment module is connected to the linkage component, and the adjustment module drives the spray pipe to bend and extend through the linkage component.
7. The spa device according to claim 6, characterized in that, The adjustment module includes several drivers, and each driver is connected to a corresponding linkage component.
8. The spa device according to claim 6, characterized in that, The adjustment module is used to simultaneously adjust the parameters of each nozzle (21) in the nozzle group (21) according to the adjustment strategy. The specific steps include: Obtain the initial spatial coordinates of each nozzle (21) in the nozzle (21) set at the current moment, as well as the spatial coordinates of each specific area of the user in the spa area; the specific area corresponds one-to-one with the grid image in the grid image set; The spraying distance from the nozzle (21) to the corresponding specific area is obtained from the adjustment strategy. The target spatial coordinates of the nozzle (21) are determined by the spraying distance and the spatial coordinates of the corresponding specific area. The lateral movement path of the nozzle (21) is determined by the X and Y coordinates in the initial spatial coordinates and the X and Y coordinates in the target spatial coordinates. The longitudinal movement path of the nozzle (21) is determined by the Z coordinate in the initial spatial coordinates and the Z coordinate in the target spatial coordinates. The nozzle (21) moves simultaneously along both the lateral and longitudinal movement paths.