Cleaning worker order dispatching and scheduling method, system and device based on intelligent public toilet
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-11
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]本申请的主要目的在于提供一种基于智能公厕的清洁工单派发调度方法、系统及设备,旨在解决随着城市规模的不断扩大和公厕数量的日益增多,传统的人工调度模式已经难以满足现代城市公厕清洁管理的需求的技术问题
本申请实施例提出的一种基于智能公厕的清洁工单派发调度方法、系统及设备,通过获取预设区域内清洁人员的状态信息,并基于优先度评估模型计算其优先度,能够综合考虑清洁人员的工作负荷、距离公厕的远近等因素,实现清洁人员的科学调度。优先度高的清洁人员优先获得任务,避免了部分清洁人员工作负担过重而部分人员闲置的情况,提高了人力资源的利用效率。当预设区域内的清洁人员优先度均不大于预设阈值时,本方法能够获取与预设区域关联的目标区域,并考虑目标区域清洁人员的状态信息,扩大了清洁人员的选择范围。这种灵活的调度方式能够适应不同区域、不同时间段的清洁需求变化,确保在多种情况下都能及时、合理地安排清洁人员完成公厕清洁任务,提高了公厕清洁管理的适应性和可靠性。
Smart Images

Figure CN121903197B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of work order dispatching technology, and in particular to a cleaning work order dispatching and scheduling method, system and equipment based on smart public toilets. Background Technology
[0002] Smart public toilets are modern public health facilities that utilize next-generation information technologies such as the Internet of Things, big data, cloud computing, and artificial intelligence to intelligently transform and upgrade traditional public toilets. This results in intelligent management of toilet facilities, real-time environmental monitoring, efficient cleaning and maintenance, and convenient user services. As an important component of urban infrastructure, the cleanliness of public toilets directly affects the city's sanitation and residents' quality of life.
[0003] To rationally plan labor costs, one cleaning staff member is typically responsible for multiple smart toilets, conducting regular inspections or cleaning. However, when unexpected situations arise, such as malfunctions or blockages in toilet facilities, or accidental dirt on the floor, the cleaning staff's response is often slow and the situation is delayed. With the continuous expansion of cities and the increasing number of public toilets, the traditional manual dispatching model is no longer sufficient to meet the needs of modern urban public toilet cleaning and management. Summary of the Invention
[0004] The main purpose of this application is to provide a cleaning work order dispatching method, system and equipment based on smart public toilets, which aims to solve the technical problem that the traditional manual dispatching mode can hardly meet the needs of modern urban public toilet cleaning management as the city continues to expand and the number of public toilets increases.
[0005] To achieve the above objectives, firstly, this application provides a cleaning work order dispatching method based on smart public toilets, comprising: Based on the pre-set cleaning request for the public toilet, obtain the pre-set area where the pre-set public toilet is located, and generate a cleaning work order; Based on the cleaning work order, obtain the status information of at least two preset cleaning personnel located in the preset area; Based on the status information, the priority of the at least two preset cleaning personnel is obtained based on the priority evaluation model, and it is determined whether the priority is greater than a preset threshold. If so, the at least two preset cleaning personnel are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result; If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning personnel in the target area. Obtain the priority of the at least one target cleaning personnel based on the priority evaluation model. Sort all preset cleaning personnel and target cleaning personnel from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result.
[0006] Optionally, the status information includes at least one of the following: location information, current task status, current workload, estimated work order duration required to execute the work order task, and estimated probability that the cleaning staff will receive a new work order during the work order task execution period. The work order duration required to execute a work order includes the time required for a cleaning staff member to return to the initial position after executing the work order task. The probability is obtained by fitting historical data.
[0007] Optionally, the step of obtaining the priority of the at least two preset cleaning personnel based on the status information and a priority evaluation model, and determining whether the priority is greater than a preset threshold, includes: The state information is input into the trained priority evaluation model, and the priority of the cleaning staff is output. The state information includes at least the distance of the cleaning staff to the preset public toilet, the current idle status of the cleaning staff, the remaining time for the cleaning staff to complete the current task, the remaining amount of unfinished tasks of the cleaning staff, and the probability that the cleaning staff will receive other work orders in the future target time period if they do not execute the current cleaning work order.
[0008] Optionally, the step of determining the probability that the cleaning staff will not perform the current cleaning work order and will receive other work orders within a future target time period includes: Based on the historical work order generation data of the public toilet where the cleaning staff is currently working, obtain the probability of generating a cleaning work order for the public toilet within the target time period; Adjustment factors are obtained based on the amount of tasks not completed by cleaning staff and the historical average time taken to complete cleaning work orders; Based on the probability of generating cleaning work orders for public toilets during the target time period and the adjustment factor, the probability of cleaning staff receiving other work orders in the future target time period is obtained.
[0009] Optionally, if so, the step of sorting the at least two preset cleaning personnel according to their priority from high to low to obtain a first sorting result, and dispatching cleaning work orders according to the first sorting result, includes: Obtain the urgency level of the cleaning work order and determine whether the urgency level exceeds the urgency threshold; If the urgency level does not exceed the urgency threshold, cleaning order confirmation information is sent to the cleaning staff sequentially at preset waiting time intervals according to the first sorting result until an order acceptance feedback is received. If no order acceptance feedback is received after iterating through the first sorting result, a cleaning order is assigned to the cleaning staff ranked first. If the urgency level exceeds the urgency threshold, a cleaning work order confirmation message will be sent to the cleaning staff at the top of the first sorted ranking, according to a preset proportion.
[0010] Optionally, the step of sending cleaning order confirmation information to a predetermined proportion of cleaning staff ranked first in the first sorting result if the urgency level exceeds the urgency threshold includes: Determine whether order acceptance feedback has been received from cleaning staff at the top of the first sorting result within the first preset time period; If an order is received, a cleaning order is dispatched to the corresponding cleaning staff. If at least two order acceptance responses are received, a cleaning order will be assigned to the cleaning staff in the first priority according to the first ranking result; If no order acceptance feedback is received, a cleaning work order confirmation message will be sent to all cleaning staff in the first sorting result.
[0011] Optionally, the step of sending cleaning order confirmation information to all cleaning personnel in the first sorting result if no order acceptance feedback is received further includes: Determine whether an order confirmation message has been received within the second preset time period. If at least one order acceptance is received, a cleaning order is dispatched to the cleaning staff in the first priority according to the first sorting result; If no order is received, the cleaning order will be assigned to the cleaning staff ranked first.
[0012] Optionally, the step of obtaining the target area associated with the preset area and obtaining the status information of at least one target cleaning personnel in the target area if no, includes: Based on the location information of the preset public toilet, the preset area is defined as the first target area, which extends outward from the preset public toilet by a preset distance through the boundary of the preset area. By connecting to the map API, the real-time travel time to the preset public toilet is calculated, and a second target area is selected from the areas that can be reached within the preset time. Retrieve historical cross-regional scheduling records and mark the region with more scheduling times than the preset number in the previous quarter as the third target region.
[0013] Secondly, this application provides a cleaning work order dispatching system based on smart public toilets, characterized in that it includes: The cleaning work order generation module is configured to obtain the preset area where the preset public toilet is located based on the preset cleaning request of the public toilet, and generate a cleaning work order; A preset cleaning personnel acquisition module is configured to acquire the status information of at least two preset cleaning personnel located in the preset area based on the cleaning work order; The work order dispatch module is configured to obtain the priority of the at least two preset cleaning personnel based on the status information and a priority evaluation model, and determine whether the priority is greater than a preset threshold. If so, the at least two preset cleaning personnel are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result; If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning personnel in the target area. Obtain the priority of the at least one target cleaning personnel based on the priority evaluation model. Sort all preset cleaning personnel and target cleaning personnel from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result.
[0014] Thirdly, this application provides a computer device including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the computer program to implement the method described above.
[0015] The beneficial effects that this application can achieve are: This application proposes a cleaning work order dispatching method, system, and equipment based on smart public toilets. By acquiring the status information of cleaning personnel within a preset area and calculating their priority based on a priority evaluation model, it can comprehensively consider factors such as the workload of cleaning personnel and their distance from the public toilet, achieving scientific dispatching of cleaning personnel. Cleaning personnel with higher priority receive tasks first, avoiding situations where some cleaning personnel are overburdened while others are idle, thus improving the efficiency of human resource utilization. When the priority of cleaning personnel within the preset area is not greater than a preset threshold, this method can acquire a target area associated with the preset area and consider the status information of cleaning personnel in the target area, expanding the selection range of cleaning personnel. This flexible dispatching method can adapt to changes in cleaning needs in different areas and time periods, ensuring that cleaning personnel can be arranged in a timely and reasonable manner to complete public toilet cleaning tasks under various circumstances, improving the adaptability and reliability of public toilet cleaning management. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the cleaning work order dispatching process according to an embodiment of this application.
[0017] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0019] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0020] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0021] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0022] Example 1 Reference Figure 1 The first embodiment of this application provides a cleaning work order dispatching method based on smart public toilets, including the following operation steps: S10. Based on the pre-set cleaning request of the public toilet, obtain the pre-set area where the pre-set public toilet is located, and generate a cleaning work order.
[0023] Optionally, the system receives cleaning requests from pre-set public toilets through various channels, such as automatic requests sent when sensors in the toilet detect odors, stains, or other indicators exceeding thresholds for an extended period, feedback from toilet users via a mobile app, and manual operations by toilet management personnel. The received cleaning requests undergo preliminary processing, recording key information such as the request time, toilet number, and request type, including categories like routine cleaning and emergency cleaning.
[0024] During the work order generation process, data can be automatically collected from various sensors installed within the public restrooms to achieve automatic work order generation. These sensors, such as odor detection sensors and image recognition sensors, monitor the environmental conditions within the restrooms in real time. When indicators such as odors or stains exceed preset thresholds for an extended period, it means the environmental quality of the restroom has deteriorated to the point where cleaning is required. For example, when an odor sensor detects that the concentration of odorous gases such as ammonia consistently exceeds safety standards, or when a stain sensor detects obvious stains on the floor or walls covering a certain area, the sensors will automatically trigger a cleaning request, sending a signal to the system and generating a cleaning work order. The sensors will immediately send a signal containing information such as the restroom number and the type of abnormal detection indicator to the system. Upon receiving the signal, the system identifies it as a cleaning request.
[0025] Secondly, feedback can also be obtained from public restroom users. These users are the direct experiencers of the restrooms and can identify problems immediately. To facilitate user feedback, a feedback website can be opened, or feedback terminals can be installed within the restrooms for tasks such as cleaning or refilling supplies. When users find unsanitary conditions, such as dirty sinks, they can use the feedback function on the website to select the appropriate cleaning type, such as routine cleaning or emergency cleaning, and submit their feedback. Once the system receives this feedback, it will generate a cleaning order.
[0026] Thirdly, public toilet managers can also manually initiate a cleaning request to the system during routine inspections. This could be done for example, by finding a stall with a large amount of grime or by requesting a thorough cleaning of the entire toilet. The system will then generate a corresponding cleaning work order based on the manager's actions.
[0027] Upon receiving a cleaning request, the system performs initial processing. First, it records the request time, accurate to the minute or even second, for subsequent tracking and analysis of cleaning response time. Simultaneously, it extracts the public toilet's ID number, a crucial piece of information for identifying the toilet and linking it to other detailed information about that toilet. Furthermore, it determines the request type based on the request content, such as routine cleaning or emergency cleaning. Different types of cleaning requests may have different priorities and processing methods in subsequent workflows.
[0028] A database mapping public toilets to designated areas is established, with each public toilet associated with a preset area. Upon receiving a cleaning request, the system retrieves the corresponding preset area information from the database based on the public toilet's number. This information includes the area's geographical location and surrounding traffic conditions. If the corresponding preset area is not found in the database, the system can call a map API to determine the approximate area of the public toilet based on its latitude and longitude coordinates and use that as the preset area.
[0029] Based on the type of cleaning request and the obtained preset area information, the system generates a detailed cleaning work order. The work order is comprehensive and specific, including the public toilet number to identify the object of cleaning; the cleaning type to guide cleaning staff to clean according to the corresponding standards; a description of the preset area to help cleaning staff understand the general condition of the public toilet within the area; an estimated completion time, calculated based on factors such as the urgency of the cleaning, the cleaning type, and historical data, providing a time reference for cleaning staff; and cleaning requirements, detailing key areas to be cleaned, such as sinks and floors, and the cleaning tools and agents to be used, including tools such as brushes, mops, and cleaning spray bottles, and cleaning agents such as disinfectants and stain removers, ensuring the cleaning work achieves the expected results. Finally, a unique identifier is assigned to each cleaning work order for subsequent tracking and management in the system, such as querying work order status and tracking work order processing.
[0030] S20. Based on the cleaning work order, obtain the status information of at least two preset cleaning personnel located in the preset area.
[0031] Optionally, the system maintains a preset cleaning personnel database, recording basic information for each cleaner such as name, contact information, skill level, work area, and current work status (e.g., idle, working, resting). Based on preset area information, the system filters out at least two preset cleaning personnel located within that area from the database. Filtering criteria may include overlapping work areas between the preset areas, or the cleaning personnel being within a certain distance from the center of the preset area.
[0032] By communicating with smart devices worn by cleaning staff, such as smartwatches and GPS wristbands, the system obtains real-time information on their current location, speed, and remaining battery power. Simultaneously, it checks their work schedules to determine if they are currently within their work hours. If a cleaning staff member is resting or performing other tasks, the system records the estimated time they can finish their current task.
[0033] S30. Based on the status information, obtain the priority of the at least two preset cleaning personnel based on the priority evaluation model, and determine whether the priority is greater than a preset threshold.
[0034] Optionally, "determining whether the priority is greater than a preset threshold" here means determining whether at least one cleaning staff member's priority is greater than the preset threshold. Multiple factors influencing the cleaning staff's priority are identified, such as distance from the designated public toilet, workload (e.g., the amount of work completed in the past period), and historical response speed. Each factor is assigned a corresponding weight, and the weight values of each factor are determined using data analysis methods, such as the analytic hierarchy process (AHP), based on historical data and expert experience. A priority assessment model is established, which calculates the priority score for each cleaning staff member based on their status information and the weights of each factor. The status information of at least two selected designated cleaning staff members is input into the priority assessment model to calculate the priority score for each cleaning staff member. A preset threshold is set, which can be dynamically adjusted based on the urgency of cleaning the public toilet, historical data, and other factors. The priority score of each cleaning staff member is compared with the preset threshold.
[0035] S40. If so, sort the at least two preset cleaning personnel in descending order of priority to obtain a first sorting result, and dispatch cleaning work orders according to the first sorting result.
[0036] Optionally, when at least one pre-defined cleaning staff member has a priority greater than a pre-defined threshold, a sorting algorithm such as quicksort or bubble sort is used to sort the at least two pre-defined cleaning staff members according to their priority scores from highest to lowest, obtaining a first sorting result. In the sorting result, each cleaning staff member's priority score and ranking information are labeled. Cleaning work orders are then sent to the cleaning staff members sequentially according to the first sorting result. The dispatch method can be through push notifications to the cleaning staff member's smart device, or by sending SMS messages or app messages to their mobile phones. When dispatching cleaning work orders, information such as the dispatch time and the receiving cleaning staff member is recorded for subsequent tracking of the work order execution.
[0037] S50. If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning personnel in the target area. Obtain the priority of the at least one target cleaning personnel based on the priority evaluation model. Sort all preset cleaning personnel and target cleaning personnel from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result.
[0038] Optionally, when the priority of a preset cleaning staff member is less than or equal to a preset threshold, a regional association database is established to record the information of each preset region and its associated target regions. The association can be determined based on factors such as geographical proximity and transportation convenience. When the priority of all preset cleaning staff members within a preset region is not greater than the preset threshold, the associated target region information is retrieved from the database based on the preset region number. Similar to the method for obtaining the status information of preset cleaning staff, the status information of at least one target cleaning staff member within the target region is obtained through smart devices and work schedules. The status information of the target cleaning staff member is input into a priority evaluation model to calculate its priority score. The priority scores of all preset and target cleaning staff members are summarized, and a sorting algorithm is used again to sort them from highest to lowest priority to obtain a second sorting result. Cleaning work orders are dispatched to cleaning staff according to the second sorting result, with the dispatching method and information recording being the same as in step S40.
[0039] Example 2 Based on Example 1, this example provides a cleaning work order dispatching method based on smart public toilets, including the following steps: S10. Based on the pre-set cleaning request of the public toilet, obtain the pre-set area where the pre-set public toilet is located, and generate a cleaning work order.
[0040] S20. Based on the cleaning work order, obtain the status information of at least two preset cleaning personnel located in the preset area.
[0041] Optionally, the status information includes at least one of the following: location information, current task status, current workload, estimated work order duration required to execute the work order task, and estimated probability that the cleaning staff will receive a new work order during the work order task execution period; wherein, the work order duration required to execute the work order task includes the time required for the cleaning staff to return to the initial position after executing the work order task from the initial position; the probability is obtained by fitting historical data.
[0042] Optionally, cleaning staff can be equipped with positioning devices, such as GPS modules or indoor positioning technologies like Bluetooth beacons or Wi-Fi positioning terminals. These devices can obtain the cleaning staff's latitude and longitude coordinates or specific indoor location information in real time. The system communicates with these positioning devices to automatically obtain the cleaning staff's latest location information at regular intervals, such as every 10 minutes, and updates the database accordingly. When assigning cleaning work orders, the system calculates the distance to the public restroom based on the cleaning staff's location information, providing data support for priority assessment.
[0043] The system categorizes cleaning staff's current task status into idle, working, resting, and on leave. The "working" status is further subdivided into performing routine cleaning tasks, emergency cleaning tasks, and equipment maintenance tasks. The system can also link with cleaning equipment used by staff, such as cleaning carts and vacuum cleaners, automatically determining the staff's task status based on the equipment's operating status. For example, when cleaning equipment is turned on, the system automatically sets the staff's status to "working." The system records the time and reason for each change in a staff member's task status, creating a complete task status history. Administrators can query the task status changes of a specific staff member within a specific time period as needed.
[0044] The workload of cleaning staff is quantified by factors such as the number of cleaning tasks completed per day / week, the area cleaned, and the difficulty of the cleaning. Different weights are assigned to different types of cleaning tasks. For example, emergency cleaning tasks have a higher weight than routine cleaning tasks.
[0045] Factors considered in calculating the duration of a cleaning work order include the distance from the cleaner's initial or current location to the public restroom, the difficulty of cleaning the restroom (such as its size, degree of soiling, and number of facilities), and the cleaner's work efficiency. The cleaner's work efficiency can be assessed and predicted based on their historical cleaning task completion times.
[0046] The system collects data on new work orders received by cleaning staff within the same time period, area, and similar cleaning tasks over a past period. The data includes the number of new work orders, the time interval between receiving them, and the urgency level of each new work order. A suitable probability distribution model, such as a Poisson or normal distribution, is used to fit the historical data to determine the model's parameters. The resulting probability distribution model is then used to calculate the probability that a cleaning staff member will receive a new work order within the time frame of their assigned task. As new data accumulates, the probability distribution model is regularly updated and optimized to improve the accuracy of the predicted probabilities. The system also considers the impact of special events, such as holidays and large-scale events, on the probability of receiving new work orders and adjusts the probability accordingly during these special periods.
[0047] S30. Based on the status information, obtain the priority of the at least two preset cleaning personnel based on the priority evaluation model, and determine whether the priority is greater than a preset threshold.
[0048] Optionally, the step of obtaining the priority of the at least two preset cleaning personnel based on the status information and a priority evaluation model, and determining whether the priority is greater than a preset threshold, includes: The state information is input into the trained priority evaluation model, and the priority of the cleaning staff is output. The state information includes at least the distance of the cleaning staff to the preset public toilet, the current idle status of the cleaning staff, the remaining time for the cleaning staff to complete the current task, the remaining amount of unfinished tasks of the cleaning staff, and the probability that the cleaning staff will receive other work orders in the future target time period if they do not execute the current cleaning work order.
[0049] The mathematical expression for the priority evaluation model is as follows:
[0050] In the formula, Indicates the first The priority of each cleaning staff member , , and These represent the weight coefficients of each item. Indicates the first The distance from each cleaning staff member to the designated public toilet. Indicates the distance attenuation coefficient; The curvature representing the effect of adjustment time. Indicates the estimated first The remaining time for each cleaning staff member to complete their current task; Indicates the indicator function, when the first The value of a cleaning worker is 1 if they are currently idle, and 0 otherwise. This indicates the maximum number of tasks in the system. Indicates the first The amount of work not completed by the cleaning staff This represents the probability that the i-th cleaning worker will not execute the current cleaning work order and will receive other work orders within the target time period in the future.
[0051] , , and These represent the weight coefficients of each item, and the constraints are as follows: These represent the degree of influence of different factors in the formula on the priority of cleaning staff. The weighting coefficients are set according to actual needs and management strategies.
[0052] This represents the priority of the i-th cleaner, used to measure the priority of the i-th cleaner in being assigned a new cleaning job among multiple alternative cleaners. The larger the value, the higher the priority.
[0053] This represents the distance from the i-th cleaning worker to the designated public toilet. Distance is a crucial factor affecting whether cleaning workers can quickly reach the task location to perform their cleaning duties. The closer the distance, the shorter the time it may take for the cleaning workers to reach the task location, which is more conducive to timely work. The coordinates between the current location of the cleaning staff and the preset location of the public toilet can be obtained through a geographic information system, and then the distance can be calculated using a distance calculation formula, such as the Euclidean distance formula.
[0054] This represents the distance attenuation coefficient. It reflects the degree to which the influence of distance on priority is attenuated. The larger the value, the greater the negative impact of distance on priority; that is, even a slight increase in distance will significantly reduce priority. The smaller the value, the less the distance affects priority.
[0055] This represents the estimated remaining time for the i-th cleaning worker to complete the current task. A shorter remaining time indicates that the cleaning worker can quickly move on to new cleaning tasks, thus positively impacting priority. The remaining time to complete the current task can be estimated using empirical models or algorithms based on data such as the cleaning worker's current workload, progress, and historical work efficiency. For example, the remaining time can be estimated based on the historical completion times of similar tasks and the percentage of remaining workload for the current task.
[0056] This represents the curvature that adjusts for the effect of time. It is used to adjust the degree of non-linearity in the influence of remaining time on priority. It allows for more flexible control over how the remaining time factor plays a role in priority assessment.
[0057] The function represents the status of a cleaning worker. A value of 1 indicates that the i-th cleaning worker is currently idle, while a value of zero indicates that the i-th worker is idle. Idle workers can immediately begin new tasks, thus having relatively high priority. This priority can be obtained through a cleaning worker status monitoring system. This system tracks the execution of cleaning workers' tasks in real time and determines whether they are idle.
[0058] This represents the system's maximum workload. It serves as a benchmark for calculating the percentage of incomplete tasks, reflecting the system's overall task capacity.
[0059] This represents the amount of unfinished tasks for the i-th cleaning staff member. A lower number of unfinished tasks indicates a lighter workload for that staff member, allowing them more energy to take on new tasks, thus positively impacting their priority. This number can be directly obtained from the task management system, which records and tallies the number of unfinished tasks for each cleaning staff member.
[0060] This represents the estimated probability that the i-th cleaning worker will receive a new work order during the time period when the current cleaning work order is not being performed. If this probability is high, it means that even if the current work order is not assigned to the cleaning worker, they are likely to receive other work orders soon, so assigning the current cleaning work order to them has a relatively low priority.
[0061] This means that cleaners who are closer to the task location can reach it faster, reducing waiting time before starting a cleaning task and improving cleaning efficiency. The remaining time to complete the current task is also considered because cleaners with less remaining time can get to the new task more quickly. Combining these two factors allows for a more reasonable assessment of the timeliness of cleaners' arrival at the task location.
[0062] This indicates that cleaning staff with fewer unfinished tasks have a relatively lighter workload, allowing them more time and energy to dedicate to new tasks. Including the percentage of unfinished tasks in the evaluation helps balance the workload among cleaning staff, preventing situations where some staff are overburdened while others are underburdened.
[0063] This means that if it is anticipated that a cleaning worker will soon receive other work orders without performing the current one, then the priority of assigning the current work order to that worker can be relatively lower. This is because even without the current work order, the worker will soon have other tasks to do, allowing for a more rational allocation of task resources and improving the overall efficiency of task allocation.
[0064] Optionally, the step of determining the probability that the cleaning staff will not perform the current cleaning work order and will receive other work orders within a future target time period includes: Based on the historical work order generation data of the public toilet where the cleaning staff is currently working, obtain the probability of generating a cleaning work order for the public toilet within the target time period; Adjustment factors are obtained based on the amount of tasks not completed by cleaning staff and the historical average time taken to complete cleaning work orders; Based on the probability of generating cleaning work orders for public toilets during the target time period and the adjustment factor, the probability of cleaning staff receiving other work orders in the future target time period is obtained.
[0065] Optionally, the mathematical expression for the probability that the cleaning staff will not execute the current cleaning work order and will receive other work orders within a future target time period is:
[0066] In the formula, A timestamp indicating the start time of the task. This indicates the estimated execution time of the work order task; This is an integral variable, representing a specific moment during task execution; This indicates the arrival rate of basic work orders. This represents the coefficient of the j-th periodic fluctuation term. This represents the period length of the j-th periodic component. Let represent the phase shift of the j-th periodic component, and n represent the number of periodic fluctuation terms. , and For constant terms, Indicates the first The amount of work not completed by the cleaning staff This indicates the maximum number of tasks in the system. It indicates that it is the first The historical average task time for a cleaning worker Indicates standard time.
[0067] This represents the estimated probability that the i-th cleaning staff member will receive a new work order during the time period during which the i-th cleaning staff member does not perform a cleaning work order. The assumption that the i-th cleaning staff member does not perform a work order is based on the assumption that the i-th cleaning staff member will remain at the current location of the public toilet during a future target time period. This probability measures the likelihood that a cleaning staff member may be disturbed by a new work order while performing a task. It is a key indicator of whether a cleaning staff member can quickly obtain a new task after abandoning the current task, thus enabling the rational allocation of work orders and improving the work efficiency of cleaning staff.
[0068] Used to determine the starting point for probability calculations. In public toilet cleaning work order dispatch, it specifies the exact start time of the current work order and serves as the starting benchmark for calculating future target time periods and related time-related calculations. For example, if a public toilet cleaning work order starts at 9:00 AM, then... This corresponds to the 9 AM timestamp.
[0069] This indicates the estimated time required for cleaning staff to complete the current work order. This time includes the time needed to travel to and from the designated toilet, and is used to determine the time range for probability calculations. For public toilet cleaning work orders, the approximate time required to complete the cleaning task can be estimated based on factors such as the size and level of dirt of the toilet. For example, a small public toilet might be estimated to take 30 minutes, while a large public toilet might take 1-2 hours.
[0070] Let be the integration variable, representing a specific moment during task execution. During the integration process, from Change to This time period is also known as the target time period. The cumulative effect of the probability of work order generation within the entire future target time period is considered through integral calculation.
[0071] This represents the average rate at which new work orders arrive per unit of time, assuming no periodic fluctuations. It reflects the basic frequency at which cleaning work orders are generated in public restrooms, without considering complex factors such as periodicity. For example, some public restrooms, due to relatively stable visitor flow, will generate a certain number of cleaning work orders on average each day. This can represent the average rate at which work orders are generated.
[0072] This represents the coefficient of the j-th periodic fluctuation term. The number of people using public restrooms and the demand for cleaning may vary periodically over time, such as on weekdays and weekends, or at different times of day. This is used to adjust the impact of each periodic fluctuation term on the work order arrival rate. For example, if the number of people using public restrooms increases significantly on weekends, the corresponding periodic fluctuation term coefficient may be larger.
[0073] This represents the period length of the j-th periodic component, which may have a period of hourly / daily / weekly, etc. For example, It is a 24-hour period used to describe the periodic changes in the probability of work order generation within a day.
[0074] This represents the phase shift of the j-th periodic component. It is used to adjust the starting position of periodic fluctuations. For example, the peak cleaning demand for a public toilet might begin at 10:00 AM every day; the phase shift can determine the starting phase of this peak in the periodic function.
[0075] n represents the number of periodic fluctuation terms. Since the generation of work orders for public toilets may be affected by various periodic factors, such as daily cycles and weekly cycles, n represents the total number of these different periodic factors.
[0076] , and These all represent constant terms, serving as weighting coefficients in the adjustment factors. They are used to adjust the degree of influence of factors such as the amount of unfinished tasks by cleaning staff and the time taken to complete tasks on the final probability. These weighting coefficients may differ depending on the public restroom scenario and business requirements.
[0077] The more unfinished tasks a cleaner has, the heavier their workload, making them less likely to receive new work orders and thus lowering their priority. In public restroom work order assignment, if a cleaner already has many unfinished cleaning tasks, their ability and likelihood of receiving new work orders will be affected. For example, a cleaner with three unfinished public restroom cleaning work orders is likely to be less likely to receive new work orders compared to a cleaner with only one unfinished work order.
[0078] This represents the system's maximum workload. It signifies the maximum number of tasks the public toilet work order dispatch system can handle, and is a system-level limiting parameter. When the number of unfinished tasks by cleaning staff approaches the system's maximum workload, it indicates a heavy workload for the system, and the probability of cleaning staff accepting new work orders will be adjusted accordingly.
[0079] This represents the historical average task time for the i-th cleaning staff member. Different cleaning staff may have different work efficiencies, and the time required to complete the same public toilet cleaning task will also vary. The historical average task time reflects the cleaning staff's work efficiency; cleaning staff with shorter times may be more capable of accepting new work orders.
[0080] This is used to standardize the historical average task time of cleaning staff, making the work efficiency of different cleaning staff comparable.
[0081] This represents the probability of generating a cleaning work order for a public toilet within a target time period, comprehensively considering the basic frequency of work order generation and various periodic fluctuation factors. Because the cleaning needs of public toilets are often not uniformly distributed and are affected by factors such as daily activity patterns and holidays, this combination of integral and periodic functions can accurately describe the dynamic change in the work order generation probability over time, providing a time-dimensional basis for calculating the probability of cleaning staff receiving new work orders.
[0082] This represents an adjustment factor, incorporating factors such as the amount of unfinished tasks by cleaning staff and the time taken to complete tasks. The workload and efficiency of cleaning staff directly affect their ability to receive new work orders. If cleaning staff have a large number of unfinished tasks or take a long time to complete tasks, it indicates they are overworked, and the probability of receiving new work orders should be reduced. This part of the calculation adjusts the previous work order generation probability calculation results based on the actual working status of the cleaning staff, making the final probability more consistent with reality.
[0083] S40. If at least one preset cleaning staff member has a priority greater than a preset threshold, then the at least two preset cleaning staff members are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result.
[0084] Optionally, if at least one preset cleaning staff member has a priority greater than a preset threshold, then the at least two preset cleaning staff members are sorted from highest to lowest priority to obtain a first sorting result. The step of assigning cleaning work orders according to the first sorting result includes: S401. Obtain the urgency level of the cleaning work order and determine whether the urgency level exceeds the urgency threshold; Optionally, the system can extract urgency information from cleaning work orders. The urgency level can be determined based on a combination of factors, such as the degree to which sensors in the public restroom detect odors or stains exceeding acceptable levels, or the level of urgency reported by restroom users, such as mild odor, severe odor, or facility damage affecting usability, each corresponding to a different urgency level value. For example, if the odor level exceeds the threshold by more than twice, and multiple people report that the restroom is unusable, the urgency level of the cleaning work order can be set to high, for example, a value of 3. Assume that urgency levels are divided into 1 (low), 2 (medium), and 3 (high).
[0085] Set an emergency threshold, for example, set the emergency threshold to 2. Compare the urgency level of the cleaning work order with the emergency threshold. If the urgency level is greater than the emergency threshold, proceed to step S403; if the urgency level is less than or equal to the emergency threshold, proceed to step S402.
[0086] S402. If the urgency level does not exceed the urgency threshold, then according to the first sorting result, cleaning order confirmation information is sent to the cleaning staff sequentially at preset waiting time intervals until an order acceptance feedback is received. If no order acceptance feedback is received after iterating through the first sorting result, then a cleaning order is assigned to the cleaning staff ranked first. Optionally, a preset waiting time can be set based on actual conditions, such as a preset waiting time of 5 minutes. This time needs to take into account factors such as the cleaning staff's time to view information and make decisions, as well as possible network latency. Following the first ranking result, starting with the cleaning staff with the highest priority, cleaning order confirmation information is sent to each cleaning staff member in turn. The confirmation information includes detailed information such as the cleaning order number, the location of the public toilet, cleaning requirements, estimated completion time, and payment, and inquires whether the cleaning staff are willing to accept the order. For example, after sending a confirmation information to the cleaning staff member ranked first, wait 5 minutes. If no acceptance is received, a confirmation information is sent to the cleaning staff member ranked second, and so on.
[0087] After receiving confirmation, cleaning staff will accept the order via smart devices such as smartwatches or mobile apps. This can be done by clicking the "Accept Order" button or replying with a specific confirmation SMS. The system monitors order acceptance in real time. Once acceptance is received, the system stops sending confirmation messages to subsequent cleaning staff and records the accepting staff's information and the order time. If no acceptance is received after iterating through all cleaning staff in the first ranked list, the system automatically assigns a cleaning order to the top-ranked staff member. Assignment can be done by directly pushing the cleaning order to their smart device or by sending an SMS or app notification.
[0088] S403. If the urgency level exceeds the urgency threshold, a cleaning work order confirmation message is sent to the cleaning staff at the top of the first sorting result according to a preset proportion.
[0089] Optionally, a preset percentage can be set, such as 30%. If there are 10 cleaning staff in the first ranking, confirmation messages are sent to the top 3. Simultaneously, the system sends a cleaning order confirmation message to the selected cleaning staff; the message content is the same as the confirmation message in step S402. Sending can be done simultaneously through multiple channels such as push notifications from smart devices, SMS, and app messages to ensure cleaning staff receive the information promptly. After receiving the confirmation message, cleaning staff accept the order on a first-come, first-served basis. The first cleaning staff to accept the order receives it. The system records the information of the cleaning staff who accepted the order and the acceptance time, and sends a notification to other cleaning staff who have not yet accepted the order, indicating that the order has been assigned, to prevent them from waiting or misunderstanding.
[0090] Optionally, the step of sending cleaning order confirmation information to a predetermined proportion of cleaning personnel ranked first in the first sorting result if the urgency level exceeds the urgency threshold includes: S4031. Determine whether order acceptance feedback has been received from cleaning staff at the top of the first sorting result within the first preset time period. Optionally, a first preset time period can be set based on the urgency of the cleaning task and the cleaning staff's typical response speed. For example, for cleaning orders with high urgency, the first preset time period can be set to 3 minutes. This is because urgent tasks require a rapid response, and 3 minutes gives the cleaning staff enough time to review information and make a decision on accepting the order.
[0091] The system starts timing after simultaneously sending cleaning order confirmation information to a predetermined proportion of cleaning staff ranked first in the initial sorting results. Within a first predetermined time period, the system monitors and collects the order acceptance feedback from these cleaning staff in real time. Order acceptance feedback can be provided by cleaning staff clicking the "Accept Order" button on smart devices such as mobile apps or smartwatches, or by replying to a specific confirmation SMS. The system records the time of each order acceptance feedback and the corresponding cleaning staff information.
[0092] S4032. If an order is received, a cleaning order is dispatched to the corresponding cleaning staff. Optionally, the system performs a validity check on the received order feedback to ensure that the feedback comes from a legitimate cleaning worker and that the cleaning worker is within a preset proportion of the top results in the first ranking. For example, this might involve checking the cleaning worker's identity verification information and whether the order-receiving device is legitimate.
[0093] Once the order acceptance is confirmed as valid, the system immediately dispatches a cleaning order to the corresponding cleaning staff. Dispatch methods can include directly pushing the cleaning order details to the cleaning staff's smart device, or sending an SMS or app message containing a link to the cleaning order. Simultaneously, the system records the dispatch time, the cleaning staff's information, and the cleaning order number for subsequent tracking and management.
[0094] S4033. If at least two order acceptance responses are received, a cleaning order shall be dispatched to the cleaning staff in the first priority according to the first ranking result. Optionally, when the system receives at least two order acceptance responses, it determines the first-priority cleaning staff based on the first ranking result. The first-priority staff is the cleaning staff with the highest priority. The system assigns a cleaning order to the first-priority cleaning staff, following the same assignment method as step S4032. Simultaneously, it sends a notification to the other cleaning staff who accepted orders, indicating that the order has been assigned to the first-priority staff, to prevent them from continuing to wait or causing misunderstandings. The notification can explain the reason for the order assignment and provide information about the first-priority cleaning staff.
[0095] S4034. If no order acceptance feedback is received, send cleaning work order confirmation information to all cleaning personnel in the first sorting result.
[0096] Optionally, if no order acceptance feedback is received from a predetermined proportion of cleaning staff in the first ranked order within the first preset time period, the system will expand the scope and send cleaning order confirmation information to all cleaning staff in the first ranked order. The content of the sent information is the same as the previously sent confirmation information, but some prompts can be added appropriately, such as "Urgent task, please accept the order as soon as possible," to improve the responsiveness of cleaning staff.
[0097] Optionally, the step of sending cleaning order confirmation information to all cleaning personnel in the first sorting result if no order acceptance feedback is received further includes: S40341. Determine whether an order confirmation message has been received within the second preset time period; Optionally, if no order acceptance feedback is received from the top-ranked cleaning staff within the first preset time period, a certain response time should be given to the cleaning staff after sending confirmation messages to all cleaning staff in the first ranking result. The second preset time period can be set according to the actual situation, for example, 3 minutes. This time should take into account factors such as the cleaning staff's time to view information, make decisions, and possible network latency.
[0098] S40342. If at least one order acceptance feedback is received, a cleaning order is dispatched to the cleaning staff in the first priority according to the first sorting result. Optionally, when the system receives at least one order acceptance feedback within a second preset time period, it determines the cleaning staff with the highest priority based on the sorting results. The first priority is the cleaning staff with the highest order acceptance rate.
[0099] S40343. If no order acceptance feedback is received, a cleaning order will be assigned to the cleaning staff member ranked first.
[0100] Optionally, if the system has not received any order acceptance feedback from cleaning staff by the end of the second preset time period, the system confirms that there are currently no accepted orders. The system directly assigns a cleaning order to the cleaning staff ranked first in the first sorting result. This is because, in the absence of other cleaning staff accepting the order, the cleaning staff with the highest priority is considered the most suitable person to undertake the cleaning task. The assignment method is the same as the method of assigning orders to the first-priority cleaning staff in step S40342.
[0101] S50. If no preset cleaning personnel has a priority greater than a preset threshold, then obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning personnel in the target area. Based on the priority evaluation model, obtain the priority of the at least one target cleaning personnel, sort them from high to low according to the priority of all preset cleaning personnel and target cleaning personnel, obtain the second sorting result, and dispatch cleaning work orders according to the second sorting result.
[0102] Optionally, the step of obtaining a target area associated with the preset area and obtaining the status information of at least one target cleaning person in the target area if no preset cleaning person has a priority greater than a preset threshold includes: S501. Based on the location information of the preset public toilet, the preset area is a first target area that extends outward from the preset public toilet by a preset distance through the boundary of the preset area. Optionally, detailed location information of preset public toilets, including latitude and longitude coordinates, can be extracted from the public toilet management system. This information is usually entered into the system during the construction of the public toilet or the installation of positioning equipment. The preset area is typically pre-defined based on the service range and management needs of the public toilet. For example, the preset area could be a circular area with a radius of 500 meters centered on the public toilet. A preset expansion distance is set, such as 1000 meters. Starting from the boundary of the preset area, this distance is evenly expanded in all directions to form the first target area. The expanded first target area may be a larger circular area, or it may be appropriately adjusted according to actual geographical conditions such as roads and buildings to form an irregular polygonal area. The system records the boundary coordinates of the first target area for subsequent use.
[0103] S502: Connect to the map API, calculate the real-time travel time to the preset public toilet, and filter the second target area that can be reached within the preset time. Optionally, select a suitable map API, such as the Gaode Map API or Baidu Map API, and integrate it according to their provided development documentation. Using multiple key locations within the primary target area, such as road intersections or community entrances, as starting points, and a public restroom as the preset destination, call the map API's route planning function to calculate the real-time travel time from each starting point to the destination. Consider different modes of transportation, such as walking and driving, and calculate the travel time separately. For example, for walking, the pedestrian's walking speed may also need to be considered; for driving, real-time traffic information needs to be taken into account.
[0104] Set a preset time, such as 30 minutes. Filter out areas where the real-time travel time from each starting point to the preset public restroom is less than or equal to the preset time; these areas form the second target area. The second target area may be a region composed of multiple irregular shapes; the system records the boundaries and related location information of this area.
[0105] S503. Obtain historical cross-regional scheduling records and mark the region with more scheduling times than the preset number in the previous quarter as the third target region.
[0106] Optionally, historical cross-regional dispatch records can be queried from the public toilet management system's database. These records include information such as dispatch time, dispatched public toilet, target area, and dispatched cleaning personnel. For example, all cross-regional dispatch records from the previous quarter can be queried. Statistical analysis can be performed on the retrieved historical cross-regional dispatch records, grouping them according to the target area and counting the number of dispatches for each area in the previous quarter. For example, area A was dispatched 10 times in the previous quarter, and area B was dispatched 5 times.
[0107] Set a preset number of times, for example, 8 times. Mark areas where the number of dispatches in the previous quarter exceeded the preset number as the third target area. The system records relevant information about the third target area, such as area name, boundary coordinates, and number of dispatches, for subsequent screening and dispatching of target cleaning personnel.
[0108] Example 3 Based on Example 1, this example provides a cleaning work order dispatching system based on smart public toilets, including: The cleaning work order generation module is configured to obtain the preset area where the preset public toilet is located based on the preset cleaning request of the public toilet, and generate a cleaning work order; A preset cleaning personnel acquisition module is configured to acquire the status information of at least two preset cleaning personnel located in the preset area based on the cleaning work order; The work order dispatch module is configured to obtain the priority of the at least two preset cleaning personnel based on the status information and a priority evaluation model, and determine whether the priority is greater than a preset threshold. If so, the at least two preset cleaning personnel are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result; If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning personnel in the target area. Obtain the priority of the at least one target cleaning personnel based on the priority evaluation model. Sort all preset cleaning personnel and target cleaning personnel from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result.
[0109] Example 4 This embodiment provides a computer device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement any of the methods described above.
[0110] Example 5 This embodiment provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as described above.
[0111] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for dispatching and scheduling cleaning work orders based on smart public toilets, characterized in that, include: Based on the pre-set cleaning request for the public toilet, obtain the pre-set area where the pre-set public toilet is located, and generate a cleaning work order; Based on the cleaning work order, obtain the status information of at least two preset cleaning personnel located in the preset area; Based on the status information, the priority of the at least two preset cleaning personnel is obtained based on the priority evaluation model, and it is determined whether the priority is greater than a preset threshold. If so, the at least two preset cleaning personnel are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result; If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning person in the target area. Obtain the priority of the at least one target cleaning person based on the priority evaluation model. Sort all preset cleaning persons and target cleaning persons from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result. The step of obtaining the priority of the at least two preset cleaning personnel based on the status information and using a priority evaluation model, and determining whether the priority is greater than a preset threshold, includes: The state information is input into the trained priority evaluation model, and the priority of the cleaning staff is output. The state information includes at least the distance of the cleaning staff to the preset public toilet, the current idle status of the cleaning staff, the remaining time for the cleaning staff to complete the current task, the remaining amount of unfinished tasks of the cleaning staff, and the probability that the cleaning staff will receive other work orders in the future target time period if they do not execute the current cleaning work order. The step of determining the probability that a cleaning worker will not perform the current cleaning work order and will receive other work orders within a future target time period includes: Based on the historical work order generation data of the public toilet where the cleaning staff is currently working, obtain the probability of generating a cleaning work order for the public toilet within the target time period; Adjustment factors are obtained based on the amount of tasks not completed by cleaning staff and the historical average time taken to complete cleaning work orders; Based on the probability of generating cleaning work orders for public toilets during the target time period and the adjustment factor, the probability of cleaning staff receiving other work orders in the future target time period is obtained.
2. The cleaning work order dispatching method based on smart public toilets as described in claim 1, characterized in that, The status information includes at least one of the following: location information, current task status, current workload, estimated work order duration required to execute the work order task, and estimated probability that the cleaning staff will receive a new work order during the work order task execution period. The work order duration required to execute a work order includes the time required for a cleaning staff member to return to the initial position after executing the work order task. The probability is obtained by fitting historical data.
3. The cleaning work order dispatching method based on smart public toilets as described in claim 1, characterized in that, If so, the step of sorting the at least two preset cleaning personnel according to their priority from high to low to obtain a first sorting result, and dispatching cleaning work orders according to the first sorting result, includes: Obtain the urgency level of the cleaning work order and determine whether the urgency level exceeds the urgency threshold; If the urgency level does not exceed the urgency threshold, then according to the first sorting result, cleaning work order confirmation information is sent to the cleaning staff sequentially at preset waiting time intervals until an order acceptance feedback is received. If no order acceptance feedback is received after iterating through the first sorting result, then a cleaning work order is assigned to the cleaning staff ranked first. If the urgency level exceeds the urgency threshold, a cleaning work order confirmation message will be sent to the cleaning staff at the top of the first sorted ranking, according to a preset proportion.
4. The cleaning work order dispatching method based on smart public toilets as described in claim 3, characterized in that, The step of sending cleaning order confirmation information to a predetermined proportion of cleaning staff ranked first in the first sorting result if the urgency level exceeds the urgency threshold includes: Determine whether order acceptance feedback has been received from cleaning staff at the top of the first sorting result within the first preset time period; If an order is received, a cleaning work order is dispatched to the corresponding cleaning staff. If at least two order acceptance responses are received, a cleaning work order will be assigned to the cleaning staff in the first priority according to the first ranking result. If no order acceptance feedback is received, a cleaning work order confirmation message will be sent to all cleaning staff in the first sorting result.
5. The cleaning work order dispatching method based on smart public toilets as described in claim 4, characterized in that, The step of sending cleaning order confirmation information to all cleaning personnel in the first sorting result if no order acceptance feedback is received further includes: Determine whether a work order confirmation message has been received within the second preset time period. If at least one order acceptance is received, a cleaning work order is dispatched to the cleaning staff in the first priority according to the first sorting result; If no order is received, a cleaning order will be assigned to the cleaning staff member ranked first.
6. The cleaning work order dispatching method based on smart public toilets as described in claim 1, characterized in that, If not, the step of obtaining the target area associated with the preset area and obtaining the status information of at least one target cleaning person in the target area includes: Based on the location information of the preset public toilet, the preset area is defined as the first target area, which extends outward from the preset public toilet by a preset distance through the boundary of the preset area. By connecting to the map API, the real-time travel time to the preset public toilet is calculated, and a second target area is selected from the areas that can be reached within the preset time. Retrieve historical cross-regional scheduling records and mark the region with more scheduling times than the preset number in the previous quarter as the third target region.
7. A cleaning work order dispatching system based on intelligent public toilets, characterized in that, include: The cleaning work order generation module is configured to obtain the preset area where the preset public toilet is located based on the preset cleaning request of the public toilet, and generate a cleaning work order; A preset cleaning personnel acquisition module is configured to acquire the status information of at least two preset cleaning personnel located in the preset area based on the cleaning work order; The work order dispatch module is configured to obtain the priority of the at least two preset cleaning personnel based on the status information and a priority evaluation model, and determine whether the priority is greater than a preset threshold. If so, the at least two preset cleaning personnel are sorted from highest to lowest priority to obtain a first sorting result, and cleaning work orders are dispatched according to the first sorting result; If not, obtain the target area associated with the preset area, and obtain the status information of at least one target cleaning person in the target area. Obtain the priority of the at least one target cleaning person based on the priority evaluation model. Sort all preset cleaning persons and target cleaning persons from high to low priority to obtain a second sorting result. Dispatch cleaning work orders according to the second sorting result. The step of obtaining the priority of the at least two preset cleaning personnel based on the status information and using a priority evaluation model, and determining whether the priority is greater than a preset threshold, includes: The state information is input into the trained priority evaluation model, and the priority of the cleaning staff is output. The state information includes at least the distance of the cleaning staff to the preset public toilet, the current idle status of the cleaning staff, the remaining time for the cleaning staff to complete the current task, the remaining amount of unfinished tasks of the cleaning staff, and the probability that the cleaning staff will receive other work orders in the future target time period if they do not execute the current cleaning work order. The step of determining the probability that a cleaning worker will not perform the current cleaning work order and will receive other work orders within a future target time period includes: Based on the historical work order generation data of the public toilet where the cleaning staff is currently working, obtain the probability of generating a cleaning work order for the public toilet within the target time period; Adjustment factors are obtained based on the amount of tasks not completed by cleaning staff and the historical average time taken to complete cleaning work orders; Based on the probability of generating cleaning work orders for public toilets during the target time period and the adjustment factor, the probability of cleaning staff receiving other work orders in the future target time period is obtained.
8. A computer device, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method of any one of claims 1 to 6.
Citation Information
Patent Citations
An intelligent public toilet cleaning management system and method
CN109919482A
Method and device for distributing data processing objects
CN110516922A