A pit position recommendation method, electronic device and storage medium for a movable toilet

The toilet pit recommendation system analyzes the fermentation processing status and user navigation time, determines and optimizes the target toilet pit, solves the problem of user waiting time and improves the user experience.

CN120163696BActive Publication Date: 2025-07-11CHENGDU TECH UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510639856.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-07-11
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

The toilet pits of existing movable toilets cannot be used immediately during fermentation, resulting in extended waiting time for users and reduced user experience.

Method used

Through the toilet pit recommendation system, the fermentation processing status and user navigation time of each toilet pit are analyzed, the most suitable target toilet pit is determined, and the fermentation processing is controlled in advance for users to use.

Benefits of technology

Without affecting the completion time of the fermentation process, the user's waiting time is optimized to minimize the user's waiting time and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120163696B_ABST
    Figure CN120163696B_ABST
Patent Text Reader

Abstract

The present invention provides a method for recommending toilet cubicles of a movable toilet, an electronic device, and a storage medium. The method includes: obtaining an environmental optimization duration influence value for each toilet cubicle according to the stage processing completion time of each toilet cubicle in the fermentation processing stage at the current moment; determining a remaining processing completion duration influence value for each toilet cubicle according to the overall processing completion moment, the start processing moment, the overall fermentation processing time, the personnel usage time during the processing, and the processing interruption extension time of each toilet cubicle; determining a stage interruption extension duration influence value for each toilet cubicle according to the stage interruption extension time of the fermentation processing stage of each toilet cubicle at the current moment, so as to obtain an overall duration influence value corresponding to each toilet cubicle, and determining the toilet cubicle with the largest overall duration influence value as the target toilet cubicle, so that the waiting time of the user is the shortest without affecting the fermentation processing completion time of the target toilet cubicle.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] After the toilet pit of the current mobile toilet is full of waste or reaches the predetermined fermentation treatment time per day, the toilet pit will automatically ferment the feces. When each toilet pit is in the fermentation treatment process, it cannot provide services to users, and users need to wait until the fermentation treatment of the toilet pit is completed before they can use it. Therefore, the user experience will decline. Summary of the Invention

[0003] In view of the above technical problems, the technical solution adopted by the present invention is as follows:

[0004] According to one aspect of the present application, there is provided a toilet pit recommendation method for a mobile toilet, which is applied to a toilet pit recommendation system. The toilet pit recommendation system is connected to the display devices of several toilet pits of the mobile toilet;

[0005] The toilet pit recommendation method for the mobile toilet described in the present application includes the following steps:

[0006] Step S100: In response to receiving a toilet use instruction input by a user, obtain the fermentation treatment status of each toilet pit at the current moment;

[0007] Step S200: If each toilet pit is in the fermentation treatment status at the current moment, then according to the stage processing completion time of each toilet pit at the current moment in the fermentation treatment stage and the preset waiting time mapping table, obtain the environmental optimization duration influence value corresponding to each toilet pit; the waiting time mapping table stores the mapping relationship between several waiting time periods and several environmental optimization duration influence values;

[0008] Step S300: Determine the remaining processing completion duration influence value corresponding to each toilet pit according to the overall processing completion time, start processing time, overall fermentation processing time, personnel use time during processing, and processing interruption extension time of each toilet pit;

[0009] Step S400: Determine the stage interruption extension duration influence value corresponding to each toilet pit according to the stage interruption extension time of the fermentation treatment stage of each toilet pit at the current moment;

[0010] Step S500: Obtain the overall duration influence value corresponding to each toilet pit according to the environmental optimization duration influence value, remaining processing completion duration influence value, and stage interruption extension duration influence value corresponding to each toilet pit;

[0011] Step S600: Determine the toilet pit with the largest overall duration influence value as the target toilet pit;

[0012] Step S700: Send a lighting signal to the display device of the target toilet cubicle, so that the display device of the target toilet cubicle lights up after receiving the lighting signal, and control the target toilet cubicle to stop the fermentation treatment after the fermentation treatment stage at the current moment is completed.

[0013] According to one aspect of the present application, there is provided a non-transitory computer-readable storage medium storing at least one instruction or at least one program segment, and the at least one instruction or the at least one program segment is loaded and executed by a processor to implement the foregoing method for recommending toilet cubicles of a movable toilet.

[0014] According to one aspect of the present application, there is provided an electronic device including a processor and the foregoing non-transitory computer-readable storage medium.

[0015] The present invention has at least the following beneficial effects:

[0016] For the method for recommending toilet cubicles of the movable toilet of the present invention, in response to receiving a toilet use instruction input by a user, if each toilet cubicle is in a fermentation treatment state at the current moment, it means that there is no available toilet cubicle at the current moment. Therefore, it is necessary to recommend toilet cubicles. According to the stage processing completion time of the fermentation treatment stage of each toilet cubicle at the current moment and a preset waiting time mapping table, the environmental optimization duration influence value corresponding to each toilet cubicle is determined, and according to the overall processing completion time, start processing time, overall fermentation treatment time, personnel use time during the processing, and processing interruption extension time of each toilet cubicle, the remaining processing completion duration influence value corresponding to each toilet cubicle is determined, and according to the stage interruption extension time of the fermentation treatment stage of each toilet cubicle at the current moment, the stage interruption extension duration influence value corresponding to each toilet cubicle is determined. Finally, according to the environmental optimization duration influence value, remaining processing completion duration influence value, and stage interruption extension duration influence value corresponding to each toilet cubicle, the overall duration influence value corresponding to each toilet cubicle is obtained, and the toilet cubicle with the largest overall duration influence value is determined as the target toilet cubicle. The target toilet cubicle is the best toilet cubicle determined to be suitable for the user to use. Control the display device of the target toilet cubicle to light up, and make the target toilet cubicle stop the fermentation treatment after the fermentation treatment stage at the current moment is completed for the user to use. By analyzing the fermentation treatment time of several toilet cubicles in the fermentation treatment state, the remaining fermentation treatment time of the finally determined target toilet cubicle and the user's waiting time are relatively balanced, and the user's waiting time is the shortest without affecting the fermentation treatment completion time. Description of the Drawings

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0018] Figure 1 It is a flowchart of the pit position recommendation method for the mobile toilet provided by the embodiment of the present invention. Detailed implementation manners

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0020] A pit position recommendation method for a mobile toilet proposed in this application is applied to a toilet pit position recommendation system. The toilet pit position recommendation system is connected to the display devices of several toilet pits in the mobile toilet. There are several toilet pits in the mobile toilet, and each toilet pit has a storage bin for storing feces. The storage bins of each toilet pit are independent, and the fermentation processes of the storage bins of each toilet pit are also independent of each other. The fermentation method of the materials (i.e., feces) in the storage bin of the toilet pit and the bacteria used for fermentation can both adopt the existing feces fermentation methods, as long as the purpose of decomposing feces can be achieved. A baffle is provided on the opening of the storage bin. When the toilet pit is fermenting materials or there is no user using the toilet pit, the baffle of the storage bin is in a closed state. When a user is using the toilet pit, the baffle of the storage bin is in an open state.

[0021] The display device of the toilet pit can be an indicator light for indicating the usage status of the corresponding toilet pit.

[0022] Furthermore, a positioning device and a communication device are provided in the mobile toilet. The positioning device, the communication device, and the toilet pit position recommendation system can be connected to the background server, and the background server can be connected to the application end of the mobile toilet. Users can view the specific location of the mobile toilet by accessing the application end (APP) of the mobile toilet on the mobile terminal and perform path navigation on the application end.

[0023] As Figure 1 shown, the pit position recommendation method for the mobile toilet described in this application includes the following steps:

[0024] Step S100: In response to receiving a toilet usage instruction input by a user, obtain the fermentation treatment status of each toilet cubicle at the current moment;

[0025] The user can input the toilet usage instruction through a mobile terminal or the usage button of a movable toilet. When the user sends a toilet usage instruction to the toilet cubicle recommendation system through the application on the mobile terminal, it indicates that the geographical location of the user may be slightly far from the geographical location of the movable toilet. When the user presses the usage button of the movable toilet, it means that the user has arrived at the movable toilet at this time. The usage button can be set on the door of the movable toilet, and the movable toilet can be opened only by pressing the usage button.

[0026] The fermentation treatment status is the status of whether the toilet cubicle is in the process of fermenting the material. If the toilet cubicle is fermenting the material, the toilet cubicle is in the fermentation treatment status. Conversely, if the toilet cubicle is not fermenting the material, the toilet cubicle is not in the fermentation treatment status.

[0027] Step S200: If at the current moment, each toilet cubicle is in the fermentation treatment status, then according to the stage processing completion time of each toilet cubicle in the fermentation treatment stage at the current moment and the preset waiting time mapping table, obtain the environmental optimization duration influence value corresponding to each toilet cubicle;

[0028] If all toilet cubicles are in the fermentation treatment status, it means that there are no available toilet cubicles at this time. Each toilet cubicle is in the fermentation treatment process, and the user needs to wait for the fermentation treatment of the toilet cubicle to end or interrupt the fermentation treatment before using it.

[0029] Furthermore, step S200 includes steps S210 - S230:

[0030] Step S210: If at the current moment, each toilet cubicle is in the fermentation treatment status, then obtain the stage processing completion time of each toilet cubicle in the fermentation treatment stage at the current moment to obtain the stage processing completion time list A=(A1, A2,..., A i ,..., A t ); where i = 1, 2,..., t; t is the number of toilet cubicles; A i is the stage processing completion time of the i-th toilet cubicle in the fermentation treatment stage at the current moment;

[0031] The fermentation treatment process of the material is divided into several fermentation treatment stages according to factors such as the temperature and humidity change rate and the odor change rate. This division of the fermentation treatment stage is obtained by developers' statistical classification of the influencing factors, and the existing method for dividing the fermentation treatment stage can be used.

[0032] Each fermentation treatment stage has a corresponding fermentation treatment completion duration, which can be set by developers themselves according to statistical analysis of influencing factors in the historical fermentation treatment process.

[0033] Step S220: Obtain each waiting time period stored in the preset waiting time mapping table to obtain a waiting time period list B = (B1, B2,..., B p ,..., B q ); B p = (B p1 , B p2 ); where p = 1, 2,..., q; q is the number of waiting time periods stored in the waiting time mapping table; B p is the p-th waiting time period stored in the waiting time mapping table; B p1 is the minimum range time of B p ; B p2 is the maximum range time of B p ;

[0034] The waiting time mapping table stores the mapping relationship between several waiting time periods and several environmental optimization duration influence values. The mapping relationship in the waiting time mapping table is obtained according to the statistical analysis of the influencing factors of different waiting time periods by developers. The maximum range time of the waiting time periods in the waiting time mapping table is directly proportional to the environmental optimization duration influence value.

[0035] Step S230: Traverse the stage processing completion time list A. If B p1 < A i < B p2 , then determine the environmental optimization duration influence value corresponding to the p-th waiting time period as the environmental optimization duration influence value N i1 corresponding to the i-th toilet cubicle.

[0036] Further, in the second embodiment of step S220, it further includes steps S221 - S226:

[0037] Step S221: If the toilet use instruction is sent by the user through the mobile terminal, obtain the geographical location where the user is located at the current moment and the vehicle identification included in the toilet use instruction;

[0038] If the toilet use instruction is sent by the user through the mobile terminal, it means that the user is not around the mobile toilet at this time, and the influence of the travel time required for the user to navigate to the mobile toilet on the completion time of the fermentation treatment stage needs to be considered.

[0039] The traveling vehicle identifier corresponds to the identifier of the traveling vehicle (which can be a bicycle, motorcycle, car, etc.) selected by the user to move from the geographical location where the user is currently located to the geographical location where the movable toilet is located.

[0040] Step S222: According to the preset path planning algorithm, determine a number of initial paths between the geographical location where the user is currently located and the geographical location where the movable toilet is located through the geographical location where the user is currently located and the geographical location where the movable toilet is located.

[0041] The preset path planning algorithm can adopt the existing A* path planning algorithm.

[0042] Step S223: Obtain the distance of each initial path to obtain a distance list C = (C1, C2,..., C r ,..., C s ); where r = 1, 2,..., s; s is the number of initial paths; C r is the distance of the r-th initial path.

[0043] Step S224: Obtain the average traveling speed V of the traveling vehicle corresponding to the traveling vehicle identifier at the geographical location where the user is located.

[0044] Step S225: According to the distance list C and the average traveling speed V, determine the traveling time of each initial path to obtain a traveling time list D = (D1, D2,..., D r ,..., D s ); D r =C r / V; where D r is the traveling time of the user on the r-th initial path.

[0045] Step S226: Traverse the completion time list A of the stage processing. If B p1 <A i -MIN(D)<B p2 , then determine the environmental optimization duration influence value corresponding to the p-th waiting period as the environmental optimization duration influence value N i1 corresponding to the i-th toilet pit; where MIN() is a preset minimum value determination function.

[0046] By comprehensively analyzing the user's navigation movement time and the fermentation processing time of the toilet pit, the determined environmental optimization duration influence value can be made more accurate.

[0047] Step S300: Determine the remaining processing completion duration influence value corresponding to each toilet cubicle according to the overall processing completion time, start processing time, overall fermentation processing time, personnel usage time during the processing, and processing interruption extension time of each toilet cubicle.

[0048] The overall processing completion time is the time when the whole-process fermentation processing of the toilet cubicle is completed.

[0049] The start processing time is the time when the fermentation processing of the toilet cubicle starts.

[0050] The overall fermentation processing time is the duration required for the whole-process fermentation processing of the toilet cubicle.

[0051] The personnel usage time during the processing is the usage duration of the personnel using the toilet cubicle within the time period from the start processing time to the current time of the toilet cubicle.

[0052] The processing interruption extension time is the extended processing time when the fermentation processing stage of the toilet cubicle is interrupted while the personnel using the toilet cubicle within the time period from the start processing time to the current time of the toilet cubicle.

[0053] Furthermore, step S300 includes steps S310 - S380:

[0054] Step S310: Obtain the overall processing completion time of each toilet cubicle to obtain the overall processing completion time list E = (E1, E2,..., E i ,..., E t ); where E i is the overall processing completion time of the i-th toilet cubicle;

[0055] Step S320: Obtain the start processing time of each toilet cubicle to obtain the start processing time list F = (F1, F2,..., F i ,..., F t ); where F i is the start processing time of the i-th toilet cubicle;

[0056] Step S330: Obtain the overall fermentation processing time of each toilet cubicle to obtain the overall fermentation processing time list G = (G1, G2,..., G i ,..., G t ); where G i is the overall fermentation processing time of the i-th toilet cubicle;

[0057] Step S340: Obtain the personnel usage time during the processing of each toilet cubicle to obtain the personnel usage time list set H = (H1, H2,..., Hi ,...,H t ); where, H i is the list of the usage time of personnel during the treatment process of the i-th toilet cubicle;

[0058] H i =(H i1 ,H i2 ,...,H iu ,...,H iv(i) ); u = 1, 2,..., v(i); v(i) is the number of personnel using the toilet cubicle during the time period from the start of treatment to the current time for the i-th toilet cubicle; H iu is the usage duration of the u-th person using the i-th toilet cubicle during the time period from the start of treatment to the current time for the i-th toilet cubicle;

[0059] Step S350, obtain the extended time of treatment interruption for each toilet cubicle to obtain the set of treatment interruption extended time lists I = (I1, I2,..., I i ,..., I t ); where, I i is the list of treatment interruption extended time for the i-th toilet cubicle;

[0060] I i =(I1, I2,..., I iu ,..., I iv(i) ); I iu is the extended treatment duration when the fermentation treatment stage of the i-th toilet cubicle is interrupted when the u-th person using the i-th toilet cubicle is using the toilet cubicle during the time period from the start of treatment to the current time for the i-th toilet cubicle;

[0061] Step S360, determine the remaining treatment completion time corresponding to each toilet cubicle according to the overall treatment completion time list E, start treatment time list F, overall fermentation treatment time list G, treatment process personnel usage time list H, and treatment interruption extended time list I to obtain the remaining treatment completion time list J = (J1, J2,..., J i ,..., J t ); where, J i is the remaining treatment completion time corresponding to the i-th toilet cubicle;

[0062] J i = E i -(F i + G i + ∑ u=1 v(i) (H iu + I iu ));

[0063] Step S370: Obtain each remaining time period stored in the preset remaining time mapping table to obtain a list of remaining time periods K = (K1, K2,..., K a ,..., K b ); K a =(K a1 , K a2 ); where a = 1, 2,..., b; b is the number of remaining time periods stored in the remaining time mapping table; K a is the a-th remaining time period stored in the remaining time mapping table; K a1 is the minimum range time of K a ; K a2 is the maximum range time of K a ;

[0064] The remaining time mapping table stores the mapping relationship between a number of remaining time periods and a number of remaining processing completion duration influence values. The maximum range time of the remaining time periods in the remaining time mapping table is directly proportional to the remaining processing completion duration influence value.

[0065] Step S380: Traverse the remaining processing completion time list J. If K a1 < J i < K a2 , then determine the remaining processing completion duration influence value corresponding to the a-th remaining time period as the remaining processing completion duration influence value N i2 corresponding to the i-th toilet pit.

[0066] Step S400: Determine the stage interruption extension duration influence value corresponding to each toilet pit according to the stage interruption extension time of each toilet pit in the fermentation treatment stage at the current moment;

[0067] Furthermore, step S400 includes steps S410 - S430:

[0068] Step S410: Obtain the stage interruption extension time of each toilet pit in the fermentation treatment stage at the current moment to obtain a list of stage interruption extension times L = (L1, L2,..., L i ,..., L t ); where L i is the stage interruption extension time of the i-th toilet pit in the fermentation treatment stage at the current moment;

[0069] The stage interruption extension time is the extended processing duration when the fermentation treatment stage of the toilet pit is interrupted at the current moment.

[0070] Step S420: Obtain each extended time period stored in the preset extended time mapping table to obtain an extended time period list M = (M1, M2,..., M c ,..., M d ); M c =(M c1 , M c2 ); where c = 1, 2,..., d; d is the number of extended time periods stored in the extended time mapping table; M c is the c-th extended time period stored in the extended time mapping table; M c1 is the minimum range time of M c ; M c2 is the maximum range time of M c ;

[0071] The extended time mapping table stores the mapping relationship between a number of extended time periods and a number of stage interruption extended duration influence values. The maximum range time of the extended time periods in the extended time mapping table is proportional to the stage interruption extended duration influence value.

[0072] Step S430: Traverse the stage interruption extended time list L. If M c1 <L i <M c2 , then determine the stage interruption extended duration influence value corresponding to the c-th extended time period as the stage interruption extended duration influence value N i3 corresponding to the i-th toilet cubicle.

[0073] Step S500: Obtain the overall duration influence value corresponding to each toilet cubicle according to the environmental optimization duration influence value, remaining processing completion duration influence value, and stage interruption extended duration influence value corresponding to each toilet cubicle;

[0074] Furthermore, step S500 includes step S510:

[0075] Step S510: According to the environmental optimization duration influence value N i1 , remaining processing completion duration influence value N i2 , and stage interruption extended duration influence value N i3 corresponding to the i-th toilet cubicle, obtain the overall duration influence value corresponding to the i-th toilet cubicle as Q - N i1 - N i2 - N i3 ; where Q is a preset duration influence base value, and Q > 0.

[0076] Step S600: Determine the toilet cubicle with the largest overall duration influence value as the target toilet cubicle;

[0077] Step S700: Send a lighting signal to the display device of the target toilet cubicle, so that the display device of the target toilet cubicle lights up after receiving the lighting signal, and control the target toilet cubicle to stop the fermentation treatment after the fermentation treatment stage at the current moment is completed.

[0078] Among them, the start processing time of each toilet cubicle is determined through steps S321 - S324:

[0079] Step S321: Real-time obtain the material volume in the storage bin of each toilet cubicle;

[0080] Step S322: When the material volume in the storage bin of any toilet cubicle is greater than the preset material volume threshold, determine the current moment as the start processing time of this toilet cubicle; otherwise, execute step S323;

[0081] Step S323: When the current moment reaches the preset material prediction time, determine the full material time corresponding to each toilet cubicle according to the material volume in the storage bin of each toilet cubicle, the number of people using this toilet cubicle, and the usage duration of the people using this toilet cubicle during the use of this toilet cubicle within several target time periods;

[0082] The full material time is the moment when the predicted material volume in the storage bin of the toilet cubicle is greater than the preset material volume threshold, and the start time of the target time period is earlier than the material prediction time.

[0083] Furthermore, step S323 includes steps S3231 - S3232:

[0084] Step S3231: When the current moment reaches the preset material prediction time, obtain the material volume in the storage bin of the i-th toilet cubicle, the number of people using this toilet cubicle, and the usage duration of the people using this toilet cubicle during the use of this toilet cubicle within each target time period, so as to obtain the material prediction vector R i =(R i1 ,R i2 ,...,R ie ,...,R if ) of the i-th toilet cubicle; R ie =(R ie1 ,R ie2 ,R ie3 ) for the i-th toilet cubicle; where e = 1, 2,..., f; f is the number of target time periods; R ie1 is the material volume in the storage bin of the i-th toilet cubicle at the end time of the e-th target time period; R ie2 is the number of people using the i-th toilet cubicle within the e-th target time period; R ie3is the total usage duration of all personnel using the i-th toilet cubicle during the e-th target period; the end time of the e-th target period is the start time of the (e + 1)-th target period, and the end time of the f-th target period is the material prediction time; the length of each target period is a preset period length;

[0085] Step S3232: Input the material prediction vector R corresponding to the i-th toilet cubicle i into a preset material prediction model to obtain the full material time corresponding to the i-th toilet cubicle output by the material prediction model;

[0086] Among them, the material prediction model is obtained by sample training on a number of historical material storage data. The mathematical model and training method selected by the material prediction model can both adopt existing sample training models and sample training methods;

[0087] The historical material storage data is the material volume in the storage bin of any toilet cubicle during a number of historical periods, the number of personnel using the toilet cubicle, and the usage duration of the personnel using the toilet cubicle when using the toilet cubicle.

[0088] Step S324: If the full material time corresponding to any toilet cubicle is less than or equal to the preset fermentation treatment time, then determine the preset fermentation treatment time as the start treatment time corresponding to the toilet cubicle;

[0089] If the full material time corresponding to any toilet cubicle is greater than the preset fermentation treatment time, then determine the full material time corresponding to the toilet cubicle as the start treatment time corresponding to the toilet cubicle.

[0090] The toilet pit recommendation method of the present invention, in response to receiving a toilet usage instruction input by a user, if each toilet pit is in the fermentation treatment state at the current moment, it means that there are no available toilet pits at the current moment. Therefore, it is necessary to recommend a toilet pit. According to the stage processing completion time of each toilet pit in the fermentation treatment stage at the current moment and a preset waiting time mapping table, the environmental optimization duration influence value corresponding to each toilet pit is determined. And according to the overall processing completion time, start processing time, overall fermentation treatment time, personnel usage time during the processing, and processing interruption extension time of each toilet pit, the remaining processing completion duration influence value corresponding to each toilet pit is determined. And according to the stage interruption extension time of each toilet pit in the fermentation treatment stage at the current moment, the stage interruption extension duration influence value corresponding to each toilet pit is determined. Finally, according to the environmental optimization duration influence value, remaining processing completion duration influence value, and stage interruption extension duration influence value corresponding to each toilet pit, the overall duration influence value corresponding to each toilet pit is obtained, and the toilet pit with the largest overall duration influence value is determined as the target toilet pit. The target toilet pit is the best toilet pit determined to be suitable for the user to use. The display device of the target toilet pit is controlled to light up, and the fermentation treatment of the target toilet pit is stopped after the fermentation treatment stage at the current moment is completed for the user to use. By analyzing the fermentation treatment time of several toilet pits in the fermentation treatment state, the remaining fermentation treatment time of the finally determined target toilet pit and the user's waiting time are made relatively balanced, and the user's waiting time is minimized without affecting the fermentation treatment completion time.

[0091] An embodiment of the present invention also provides a computer program product, which includes program code. When the program product runs on an electronic device, the program code is used to cause the electronic device to execute the steps in the methods according to various exemplary embodiments of the present invention described above in this specification.

[0092] In addition, although the steps of the methods in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the shown steps must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0093] From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0094] In an exemplary embodiment of the present disclosure, there is also provided an electronic device capable of implementing the above method.

[0095] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuits", "modules", or "systems" here.

[0096] An electronic device according to this embodiment of the present invention. The electronic device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.

[0097] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the above at least one processor, the above at least one storage, and a bus connecting different system components (including the storage and the processor).

[0098] Wherein, the storage stores program code, and the program code can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0099] The storage may include a readable medium in the form of a volatile storage, such as a random access storage (RAM) and / or a cache storage, and may further include a read-only storage (ROM).

[0100] The storage may also include a program / utilities having a set (at least one) of program modules, and such program modules include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, and the implementation of a network environment may be included in each or some combination of these examples.

[0101] The bus can represent one or more of several bus architectures, including a memory bus or a memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of the various bus architectures.

[0102] The electronic device can also communicate with one or more external devices (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through an input / output (I / O) interface. Moreover, the electronic device can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter.

[0103] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above method of this specification is stored. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0104] The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0105] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program used by or in combination with an instruction execution system, apparatus, or device.

[0106] The program code contained on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0107] The program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or alternatively, can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0108] In addition, the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention, and are not for limiting purposes. It is easily understood that the processes shown in the above drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easily understood that these processes can be executed, for example, synchronously or asynchronously in multiple modules.

[0109] It should be noted that although several modules or units of a device for performing actions are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more of the above-described modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0110] As described above, the above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for recommending toilet cubicles of a movable toilet, characterized in that, Applied to a toilet cubicle recommendation system, the toilet cubicle recommendation system is connected to display devices of several toilet cubicles of a movable toilet; The method includes the following steps: Step S100: In response to receiving a toilet use instruction input by a user, obtain the fermentation treatment status of each toilet cubicle at the current moment; Step S200: If each toilet cubicle is in the fermentation treatment state at the current moment, then according to the stage processing completion time of each toilet cubicle at the current moment in the fermentation treatment stage and a preset waiting time mapping table, obtain the environmental optimization duration influence value corresponding to each toilet cubicle; the waiting time mapping table stores the mapping relationship between several waiting time periods and several environmental optimization duration influence values; Step S300: Determine the remaining processing completion duration influence value corresponding to each toilet cubicle according to the overall processing completion moment, start processing moment, overall fermentation treatment time, personnel use time during the processing, and processing interruption extension time of each toilet cubicle; Step S400: Determine the stage interruption extension duration influence value corresponding to each toilet cubicle according to the stage interruption extension time of the fermentation treatment stage of each toilet cubicle at the current moment; Step S500: Obtain the overall duration influence value corresponding to each toilet cubicle according to the environmental optimization duration influence value, remaining processing completion duration influence value, and stage interruption extension duration influence value corresponding to each toilet cubicle; Step S600: Determine the toilet cubicle with the largest overall duration influence value as the target toilet cubicle; Step S700: Send a lighting signal to the display device of the target toilet cubicle, so that the display device of the target toilet cubicle lights up after receiving the lighting signal, and control the fermentation treatment of the target toilet cubicle to stop after the fermentation treatment stage at the current moment is completed.

2. The method according to claim 1, wherein The step S200 includes: Step S210: If, at the current moment, each of the toilet pits is in the fermentation treatment state, then obtain the stage processing completion time of each toilet pit at the current moment in the fermentation treatment stage it is in, so as to obtain a list of stage processing completion times A = (A1, A2,..., A i ,..., A t ); where i = 1, 2,..., t; t is the number of the toilet pits; A i is the stage processing completion time of the i-th toilet pit at the current moment in the fermentation treatment stage it is in; Step S220: Obtain each waiting time period stored in the preset waiting time mapping table to obtain a waiting time period list B = (B1, B2,..., B p ,..., B q ); B p =(B p1 , B p2 ); where p = 1, 2,..., q; q is the number of waiting time periods stored in the waiting time mapping table; B p is the p-th waiting time period stored in the waiting time mapping table; B p1 is the minimum range time of B p ; B p2 is the maximum range time of B p ; the maximum range time of the waiting time periods in the waiting time mapping table is directly proportional to the environmental optimization duration influence value; Step S230: Traverse the list A of the completion times of the stage processing. If B p1 <A i <B p2 , then determine the environmental optimization duration impact value corresponding to the p-th waiting time period as the environmental optimization duration impact value N corresponding to the i-th toilet cubicle i1 .

3. The method according to claim 2, wherein The step S220 further includes: Step S221: If the toilet use instruction is sent by the user through a mobile terminal, obtain the geographical location where the user is at the current moment and the vehicle identification included in the toilet use instruction; the vehicle identification is the identification corresponding to the vehicle selected by the user to move from the geographical location where the user is at the current moment to the geographical location where the movable toilet is located; Step S222: According to a preset path planning algorithm, determine several initial paths between the geographical location where the user is at the current moment and the geographical location where the movable toilet is located through the geographical location where the user is at the current moment and the geographical location where the movable toilet is located; Step S223: Obtain the travel distance of each of the initial paths to obtain a travel distance list C = (C1, C2,..., C r ,..., C s ); where r = 1, 2,..., s; s is the number of the initial paths; C r is the travel distance of the r-th initial path; Step S224: Obtain the average driving speed V of the vehicle corresponding to the vehicle identification at the geographical location where the user is; Step S225: Determine the travel time of each of the initial paths according to the distance list C and the average driving speed V, so as to obtain a travel time list D = (D1, D2,..., D r ,..., D s ); D r = C r / V; where D r is the travel time of the user on the r-th initial path; Step S226, traverse the list A of the completion times of the stage processing. If B p1 <A i - MIN(D) < B p2 , then determine the environmental optimization duration influence value corresponding to the p-th waiting time period as the environmental optimization duration influence value N corresponding to the i-th toilet cubicle i1 ; where MIN() is a preset minimum value determination function.

4. The method according to claim 3, wherein The step S300 includes: Step S310: Obtain the overall processing completion time of each of the toilet stalls to obtain an overall processing completion time list E = (E1, E2,..., E i ,..., E t ); where E i is the overall processing completion time of the i-th toilet stall; the overall processing completion time is the time when the whole-process fermentation treatment of the toilet stall is completed; Step S320: Obtain the start processing time of each of the toilet stalls to obtain a start processing time list F = (F1, F2,..., F i ,..., F t ); where F i is the start processing time of the i-th toilet stall; the start processing time is the time when the toilet stall starts the fermentation process; Step S330: Obtain the overall fermentation treatment time for each of the toilet stalls to obtain an overall fermentation treatment time list G = (G1, G2,..., G i ,..., G t ); where G i is the overall fermentation treatment time for the i-th toilet stall; the overall fermentation treatment time is the duration required for the whole-process fermentation treatment of the toilet stall; Step S340: Obtain the personnel usage time during the treatment process of each toilet cubicle to obtain a list set H = (H1, H2,..., H i ,..., H t ); where H i is the personnel usage time list during the treatment process of the i-th toilet cubicle; H i =(H i1 , H i2 ,..., H iu ,..., H iv(i) ); u = 1, 2,..., v(i); v(i) is the number of people using the i-th toilet pit during the time period from the start processing time to the current time; H iu is the usage duration of the u-th person using the i-th toilet pit during the time period from the start processing time to the current time; Step S350: Obtain the processing interruption extension time for each of the toilet cubicles to obtain a list set I = (I1, I2,..., I i ,..., I t ); where I i is the processing interruption extension time list for the i-th toilet cubicle; I i =(I1, I2,..., I iu ,..., I iv(i) ); I iu is the extended processing duration when the fermentation processing stage of the i-th toilet cubicle is interrupted during the use of the u-th person using the toilet cubicle within the time period from the start processing moment to the current moment; Step S360: Determine the remaining processing completion time corresponding to each toilet pit according to the overall processing completion time list E, the start processing time list F, the overall fermentation processing time list G, the personnel usage time list H during the processing, and the processing interruption extension time list I, so as to obtain the remaining processing completion time list J = (J1, J2,..., J i ,..., J t ); where J i is the remaining processing completion time corresponding to the i-th toilet pit; J i = E i -(F i + G i + ∑ u=1 v(i) (H iu + I iu )); Step S370: Obtain each remaining time period stored in the preset remaining time mapping table to obtain a list of remaining time periods \(K=(K_1, K_2, \cdots, K a , \cdots, K b )\); \(K a =(K a1 , K a2 ); where \(a = 1, 2, \cdots, b\); \(b\) is the number of remaining time periods stored in the remaining time mapping table; \(K a \) is the \(a\)-th remaining time period stored in the remaining time mapping table; \(K a1 \) is the minimum range time of \(K a \); \(K a2 \) is the maximum range time of \(K a \); there is a mapping relationship between several remaining time periods and several remaining processing completion duration influence values stored in the remaining time mapping table; the maximum range time of the remaining time periods in the remaining time mapping table is directly proportional to the remaining processing completion duration influence value; Step S380, traverse the remaining processing completion time list J. If K a1 <J i <K a2 , then determine the influence value of the remaining processing completion duration corresponding to the a-th remaining time period as the influence value N of the remaining processing completion duration corresponding to the i-th toilet cubicle i2 .

5. The method according to claim 4, wherein The step S400 includes: Step S410: Obtain the stage interruption extension time of each of the toilet stalls at the current moment during the fermentation treatment stage, so as to obtain a stage interruption extension time list L = (L1, L2,..., L i ,..., L t ); where L i is the stage interruption extension time of the i-th toilet stall at the current moment during the fermentation treatment stage; the stage interruption extension time is the extended processing duration when the fermentation treatment stage of the toilet stall is interrupted at the current moment; Step S420: Obtain each extended time period stored in the preset extended time mapping table to obtain an extended time period list M=(M1, M2,..., M c ,..., M d ); M c =(M c1 , M c2 ); where c = 1, 2,..., d; d is the number of extended time periods stored in the extended time mapping table; M c is the c-th extended time period stored in the extended time mapping table; M c1 is the minimum range time of M c ; M c2 is the maximum range time of M c ; there is a mapping relationship between several extended time periods and several stage interruption extended duration influence values stored in the extended time mapping table; the maximum range time of the extended time periods in the extended time mapping table is directly proportional to the stage interruption extended duration influence value; Step S430: Traverse the stage interruption extension time list L. If M c1 < L i < M c2 , then determine the stage interruption extension duration influence value corresponding to the c-th extension time period as the stage interruption extension duration influence value N corresponding to the i-th toilet cubicle i3 .

6. The method according to claim 5, wherein The step S500 includes: Step S510: Obtain the overall duration impact value corresponding to the i-th toilet cubicle as Q - N i1 - N i2 - N i3 - N i1 - N i2 - N i3 ; where Q is a preset duration impact base value, and Q > 0.

7. The method according to claim 6, characterized in that The start processing moment of each toilet cubicle is determined through the following steps: Step S321: Real-time obtain the volume of the material in the storage bin of each toilet cubicle; Step S322: When the volume of the material in the storage bin of any one of the toilet stalls is greater than a preset material volume threshold, determine the current moment as the start processing moment of the toilet stall; otherwise, execute Step S323; Step S323: When the current moment reaches a preset material prediction moment, determine the full material moment corresponding to each toilet stall according to the volume of the material in the storage bin of each toilet stall within a plurality of target time periods, the number of people using the toilet stall, and the usage duration of the people using the toilet stall when using the toilet stall; the full material moment is the moment when the volume of the material in the storage bin of the predicted toilet stall is greater than the preset material volume threshold; the start moment of the target time period is earlier than the material prediction moment; Step S324: If the full material moment corresponding to any one of the toilet stalls is less than or equal to a preset fermentation processing moment, determine the preset fermentation processing moment as the start processing moment corresponding to the toilet stall; If the full material moment corresponding to any one of the toilet stalls is greater than the preset fermentation processing moment, determine the full material moment corresponding to the toilet stall as the start processing moment corresponding to the toilet stall.

8. The method according to claim 7, characterized in that The Step S323 includes: Step S3231: When the current time reaches the preset material prediction time, obtain the material volume in the storage bin of the i-th toilet pit in each target period, the number of people using the toilet pit, and the usage duration of the people using the toilet pit when using the toilet pit, so as to obtain the material prediction vector R corresponding to the i-th toilet pit i =(R i1 ,R i2 ,...,R ie ,...,R if );R ie =(R ie1 ,R ie2 ,R ie3 );where e = 1, 2,..., f; f is the number of target periods; R ie1 is the material volume in the storage bin of the i-th toilet pit at the end of the e-th target period; R ie2 is the number of people using the i-th toilet pit in the e-th target period; R ie3 is the total usage duration of all people using the i-th toilet pit in the e-th target period; the end time of the e-th target period is the start time of the (e + 1)-th target period, and the end time of the f-th target period is the material prediction time; the length of each target period is the preset period length; Step S3232: Input the material prediction vector R corresponding to the i-th toilet pit into a preset material prediction model to obtain the full material moment corresponding to the i-th toilet pit output by the material prediction model. Among them, the material prediction model is obtained by sample training on a number of historical material storage data. The historical material storage data is the material volume in the storage bin of any toilet pit during a number of historical time periods, the number of people using the toilet pit, and the usage duration of the people using the toilet pit when using the toilet pit. i ​ 9. A non-transitory computer-readable storage medium, in which at least one instruction or at least one segment of program is stored, and the at least one instruction or the at least one segment of program is loaded and executed by a processor to implement the method according to any one of claims 1-8.

10. An electronic device, characterized in that, It includes a processor and the non-transitory computer-readable storage medium described in claim 9.

Citation Information

Patent Citations

  • Harmless sanitary toilet structure and construction method thereof

    CN110037597A

  • Floor toilet vacancy query system based on ZigBee and WeChat applet

    CN111415072A