Short message early warning method for abnormity of domestic sewage facility and related device
By constructing a multi-level early warning target list database and collecting real-time data, targeted SMS early warnings are generated, solving the problem of poor coordination in multi-level early warning in existing technologies and improving the efficiency of abnormal treatment of sewage facilities and the effectiveness of supervision.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-02
- Publication Date
- 2026-03-27
AI Technical Summary
In existing early warning technologies for abnormalities in domestic sewage facilities, the multi-level early warning coordination is not smooth, which increases the workload of supervisors, clarifies responsibilities, delays in problem-solving, and affects the stable operation of facilities.
A multi-level early warning target list database is established, facility operation data is collected in real time, and targeted SMS early warnings are generated based on preset diversion rules for user types to ensure that abnormal information is promptly diverted to the corresponding responsible parties.
Reduce the burden on regulatory personnel, improve the efficiency of problem handling, ensure clear responsibilities and powers, and guarantee the stable operation of facilities.
Smart Images

Figure CN121751093A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of monitoring and early warning of domestic sewage treatment facilities, and particularly relates to a short message early warning method for abnormal domestic sewage facilities and related devices. BACKGROUND
[0002] With the increasing efforts of urban and rural environmental governance, domestic sewage treatment has become an important part of ecological environmental protection. The number of various domestic sewage treatment plants, pipe networks and other facilities continues to increase and is widely distributed in urban and rural areas. In order to ensure the stable operation of sewage facilities and avoid environmental pollution caused by direct discharge of sewage, the industry gradually introduces technologies such as the Internet of Things and big data to build a domestic sewage monitoring system. Through the collection and analysis of data such as facility operation status and sewage monitoring indicators, abnormal conditions can be discovered in a timely manner. At present, most monitoring platforms have basic data monitoring functions, but in terms of accurate push of abnormal early warning, multi-level management collaboration and rectification closed-loop tracing, they are still in the initial stage of development and have not yet formed a standardized and efficient early warning management mode, making it difficult to fully adapt to the actual needs of fine monitoring of domestic sewage facilities.
[0003] In the prior art, there are problems and obvious shortcomings in the early warning of abnormal domestic sewage facilities, one of which is the lack of pertinence of the early warning mechanism. The existing early warning mode does not develop corresponding early warning diversion rules according to the responsibility differences of operation and maintenance personnel, township-level monitoring personnel and county-level monitoring personnel, and mostly adopts a unified push mode. This unreasonable push mode not only causes monitoring personnel to intervene in basic operation and maintenance matters that should be handled by operation and maintenance personnel, greatly increasing the work burden of monitoring personnel, but also leads to the fact that some abnormal problems cannot be timely diverted to the corresponding responsible subject, resulting in untimely disposal, unclear rights and responsibilities, and thus delaying the solution of abnormal problems and affecting the stable operation of sewage facilities.
[0004] Therefore, the existing early warning technology for abnormal domestic sewage facilities mainly has the problem of poor multi-level early warning collaboration, which seriously restricts the efficiency of sewage facility abnormal treatment and the effectiveness of supervision. SUMMARY
[0005] The present application provides a short message early warning method for abnormal domestic sewage facilities and related devices, which can effectively solve the problem of poor multi-level early warning collaboration in the existing early warning technology for abnormal domestic sewage facilities. The present application ensures the efficiency of sewage facility abnormal treatment and the effectiveness of supervision.
[0006] In order to achieve the above-mentioned purpose, the present application adopts the following technical solutions: A short message early warning method for abnormal domestic sewage facilities applied to a domestic sewage monitoring platform, comprising: A multi-level early warning object name list library is constructed based on a personnel name list of early warning objects; the early warning objects include operation and maintenance personnel, first-level supervision personnel, and second-level supervision personnel; the multi-level early warning object name list library records identity information corresponding to each early warning object, and the identity information includes a user name, a user type, administrative attribution information, a contact number, a state identifier, and note information; Real-time operation data of the domestic sewage facility is collected, and the domestic sewage facility is subjected to abnormality determination in combination with a preset abnormality determination rule; if it is determined that there is an abnormality, an abnormal event information is generated; wherein the operation data includes device online state data and monitoring values of sewage monitoring indexes; the abnormal event information includes a facility identifier, an abnormality occurrence time, an abnormality type, and an abnormality parameter value; Based on the abnormal event information and the multi-level early warning object name list library, a target early warning object and a corresponding push time are determined according to a preset shunting rule corresponding to the user type of the early warning object; wherein the preset shunting rule includes abnormality response time thresholds and early warning ranges corresponding to different user types; According to the abnormal event information and the target early warning object, a corresponding short message template is called to generate an early warning short message, the early warning short message is pushed to the contact number of the target early warning object according to the push time, and a push log is recorded.
[0007] Further, after the step of generating an early warning short message according to the abnormal event information and the target early warning object, calling a corresponding short message template, and pushing the early warning short message to the contact number of the target early warning object according to the push time and recording a push log, the method further includes: Receiving rectification result information submitted by the operation and maintenance personnel; Performing validity verification on the rectification result information, and if the verification is passed, updating the state of the abnormal event to rectified, generating a rectification completion short message, and pushing the rectification completion short message to the early warning object of the corresponding level according to a preset rule; Storing the abnormal event information, the push log, and the rectification result information in association to a facility abnormality log database of the domestic sewage supervision platform.
[0008] Further, in the step of collecting real-time operation data of the domestic sewage facility and determining the abnormality of the domestic sewage facility in combination with a preset abnormality determination rule, the preset abnormality determination rule includes: Rule one: if the device online state data is an offline state and the duration of the offline state exceeds a preset offline threshold, the device is determined to be offline abnormally; Rule two: if the monitoring value of the sewage monitoring index exceeds a preset threshold interval, the monitoring value is determined to exceed the threshold abnormally.
[0009] Furthermore, in the step of determining the target warning object and its corresponding push time based on abnormal event information and a multi-level warning object list, according to the preset traffic diversion rules corresponding to the user type of the warning object, the preset traffic diversion rules are specifically as follows: For operations and maintenance personnel: Push time: Push notifications are sent in real time when an abnormal event occurs; Warning scope: Abnormal events corresponding to the specific site associated with this maintenance personnel; For Level 1 supervisors: Push time: Push notification will be sent if no response is received within the first preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the administrative region corresponding to the administrative affiliation of this Level 1 supervisor; For Level 2 supervisors: Push time: Push notification will be sent if no response is received within the second preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the area corresponding to the administrative affiliation of this Level 2 supervisor; The second preset time is longer than the first preset time.
[0010] Furthermore, the step of generating a warning SMS based on the abnormal event information and the target warning object by calling the corresponding SMS template includes: A text message template library is constructed based on the user type of the target early warning object; wherein, each text message template in the text message template library includes a fixed text segment and a dynamically replaced segment; the dynamically replaced segment is used to embed variable values in the abnormal event information, and the variable values include facility identifier, abnormality type, abnormality occurrence time, and rectification completion time; After receiving abnormal event information, the system matches the corresponding SMS template from the SMS template library based on the user type of the target warning object. Extract variable values from abnormal event information, and replace the dynamic replacement segment in the SMS template according to the extracted variable values to generate an early warning SMS.
[0011] Furthermore, the step of sending warning text messages to the contact numbers of the target warning recipients based on the push time and recording push logs includes: Call the third-party SMS gateway interface, passing in the target warning object's contact number, the warning SMS content, and the platform identification information; If the status code returned by the SMS gateway is successful, a successful push log is recorded, including the push time, the content of the warning SMS, and the receiving number. If the status code is unsuccessful, a retry is performed according to the reason for the failure. The number of retries shall not exceed the set number. The interval between each retry is a preset timeout resend time. If the retry still fails, a push failure log is recorded and an internal alarm is triggered on the domestic sewage monitoring platform.
[0012] Furthermore, in the step of constructing a multi-level early warning object list database based on the personnel list of early warning objects, the multi-level early warning object list database is also configured with user permission management for early warning objects, and the specific steps are as follows: The warning targets also include platform administrators; Different platform operation permissions are assigned to different user types, including: Operation and maintenance personnel have the authority to view anomalies, submit rectification requests, and modify personal information at their associated sites; Level 1 supervisors have the authority to view anomalies, supervise rectification, and manage maintenance personnel within their respective administrative jurisdictions. Level 2 supervisors have the authority to view anomalies, supervise rectification, manage Level 1 supervisors, and adjust threshold settings within their respective administrative jurisdictions. Platform administrators have permissions to view all data, manage users, manage templates, and configure the system.
[0013] A text message early warning system for abnormal domestic sewage treatment facilities, applied to a domestic sewage monitoring platform, includes: The module is used to build a multi-level warning object list database based on the personnel list of warning objects; the warning objects include operation and maintenance personnel, first-level supervisors and second-level supervisors; the multi-level warning object list database records the identity information corresponding to each warning object, the identity information includes username, user type, administrative affiliation information, contact number, status identifier and remarks information; The data acquisition module is used to collect operational data of domestic sewage facilities in real time, and to determine anomalies in the facilities based on preset anomaly judgment rules. If an anomaly is determined, an anomaly event information is generated. The operational data includes online status data of the equipment and monitoring values of sewage monitoring indicators. The anomaly event information includes facility identifier, anomaly occurrence time, anomaly type, and anomaly parameter value. The object confirmation module is used to determine the target warning object and the corresponding push time based on abnormal event information and a multi-level warning object list library, according to the preset diversion rules corresponding to the user type of the warning object; wherein, the preset diversion rules include abnormal response time thresholds and warning ranges corresponding to different user types; The SMS push module is used to generate warning SMS messages based on abnormal event information and target warning objects, call the corresponding SMS template, push the warning SMS messages to the contact phone numbers of the target warning objects according to the push time, and record the push log.
[0014] A text message early warning device for abnormalities in domestic sewage treatment facilities includes: Memory, used to store computer programs; A processor is used to implement the steps of the above-mentioned SMS early warning method for abnormalities in domestic sewage facilities when executing the computer program.
[0015] A computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the steps of the above-described SMS early warning method for abnormalities in domestic sewage facilities.
[0016] Compared with the prior art, the present invention has the following beneficial effects: This invention provides a method for SMS early warning of anomalies in domestic sewage treatment facilities. It constructs a multi-level early warning target list database including maintenance personnel, primary supervisors, and secondary supervisors. Real-time data collection of domestic sewage treatment facility operation is used to identify anomalies and generate event information. Based on the anomaly events and the database database, target early warning targets and push times are determined according to preset triage rules for user types. Then, an early warning SMS is generated using an SMS template and sent. This method addresses the core problem of existing early warning mechanisms lacking specificity by designing triage rules to differentiate early warning pushes: maintenance personnel prioritize basic maintenance tasks, while primary and secondary supervisors focus on supervisory issues according to their hierarchical responsibilities, avoiding overlapping responsibilities and delays caused by a "one-size-fits-all" approach. This method significantly reduces the workload of supervisors, ensures timely triage of anomalies to the corresponding responsible parties, improves handling efficiency and clarifies responsibilities, thereby accelerating problem resolution and ensuring the stability of sewage treatment facility operation. Attached Figure Description
[0017] Figure 1 This is a schematic diagram illustrating the addition of a new early warning object to the multi-level early warning object list database provided in this embodiment of the invention; Figure 2 This is a schematic diagram illustrating the method for sending SMS alerts for abnormalities in domestic sewage facilities provided in an embodiment of the present invention. Figure 3 A flowchart illustrating a method for issuing SMS alerts for abnormalities in domestic sewage treatment facilities, provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of a text message early warning system for abnormal domestic sewage facilities provided in an embodiment of the present invention; Figure 5 This is a functional architecture diagram of a text message early warning system for abnormal sewage treatment facilities provided in an embodiment of the present invention. Detailed Implementation
[0018] To further understand the content of this invention, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments are merely illustrative and not limiting of the invention.
[0019] This embodiment provides a method for SMS early warning of abnormalities in domestic sewage treatment facilities. This method can provide early warnings and forecasts of abnormal sewage treatment facilities and send reminders via SMS. Using this method enables maintenance and regulatory personnel to promptly and comprehensively handle early warning information, providing early warnings, forecasts, and feedback on rectification information for abnormal sewage treatment facilities. This method allows for setting reminders for maintenance and regulatory personnel at different time periods, ensuring that regulators only intervene when maintenance personnel fail to address problems promptly, thus reducing the burden on regulators.
[0020] like Figure 3 As shown, this embodiment provides a method for issuing SMS alerts for abnormalities in domestic sewage facilities, applied to a domestic sewage monitoring platform, including: A multi-level warning target list database is constructed based on the personnel list of warning targets; the warning targets include operation and maintenance personnel, first-level supervisors, and second-level supervisors; the multi-level warning target list database records the identity information corresponding to each warning target, the identity information including username, user type, administrative affiliation information, contact number, status identifier, and remarks information; The system collects operational data of domestic sewage treatment facilities in real time, and uses preset anomaly judgment rules to determine anomalies in the facilities. If an anomaly is determined, an anomaly event information is generated. The operational data includes online status data of the equipment and monitoring values of sewage monitoring indicators. The anomaly event information includes facility identification, anomaly occurrence time, anomaly type, and anomaly parameter value. Based on abnormal event information and a multi-level warning object list, the target warning object and its corresponding push time are determined according to the preset triage rules corresponding to the user type of the warning object; wherein, the preset triage rules include the abnormal response time threshold and warning range corresponding to different user types; Based on the abnormal event information and the target warning object, the corresponding SMS template is called to generate a warning SMS, which is then sent to the contact number of the target warning object according to the push time, and the push log is recorded.
[0021] The SMS alert method provided in this embodiment will be further explained below with reference to the accompanying drawings: This embodiment provides a method for issuing SMS alerts for abnormalities in domestic sewage treatment facilities, which is applied to a domestic sewage monitoring platform. The specific steps are as follows: S1. Warning List Configuration Steps: A multi-level warning target list database is constructed based on the collected personnel list of warning targets. The warning targets include maintenance personnel, first-level supervisors, and second-level supervisors. Identity information is entered and verified for each warning target. This identity information includes at least username, user type, administrative affiliation information, contact number, status identifier, and remarks. A structured warning target file is generated and stored in the domestic sewage monitoring platform database. Specifically, to add a warning target, a new warning target is added to the multi-level warning target list database. The specific operation is as follows: Figure 1 As shown.
[0022] In this step, the identity verification process specifically includes: S11. Format verification: Verify whether the contact number conforms to the format of a mobile phone number or landline number, and whether the administrative affiliation information is complete and includes multi-level administrative division codes (e.g., city, county, and town level administrative division codes). S12. Uniqueness Validation: Query the platform database to ensure that the username and contact number are unique in the list of warning objects. If duplicates are found, return a validation failure message and indicate the duplicate field. S13. Relevance Verification: Verify the rationality of administrative affiliation information based on user type. The administrative affiliation information of operation and maintenance personnel must be associated with the specific site, the administrative affiliation information of first-level personnel must be associated with the corresponding administrative region, and the administrative affiliation information of second-level personnel is fixed to the administrative region.
[0023] S2. Anomaly Monitoring and Judgment Steps: Real-time collection of operational data of domestic sewage facilities, including online status data of equipment and monitoring values of at least one sewage monitoring indicator. After preprocessing the operational data, anomaly judgment is performed based on preset anomaly judgment rules. If an anomaly is determined, anomaly event information is generated. The anomaly event information includes at least facility identifier, anomaly occurrence time, anomaly type, and anomaly parameter value.
[0024] In this step, the preset anomaly detection rules specifically include: Rule 1: If a device's online status data shows an offline status, and the duration of the offline status exceeds a preset offline threshold, then the device is considered to be offline. Rule 2: If the monitored value of a wastewater monitoring indicator exceeds the preset threshold range, it is determined to be an abnormal monitoring value threshold exceeding the limit.
[0025] S3. Early Warning Triage Decision Steps: Based on the abnormal event information and the multi-level early warning object list, and according to the preset triage rules corresponding to the user types of the early warning objects, determine the target early warning objects and their corresponding push timing. The triage rules include abnormal response time thresholds and early warning ranges corresponding to different user types. Specifically, the preset triage rules are as follows: For operations and maintenance personnel: Push time: Push notifications are sent in real time when an abnormal event occurs; Warning scope: Abnormal events corresponding to the specific site associated with this maintenance personnel; For Level 1 supervisors: Push time: Push notification will be sent if no response is received within the first preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the administrative region corresponding to the administrative affiliation of this Level 1 supervisor; For Level 2 supervisors: Push time: Push notification will be sent if no response is received within the second preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the area corresponding to the administrative affiliation of this Level 2 supervisor; The second preset time is longer than the first preset time.
[0026] S4. Warning message generation and push steps: Based on the abnormal event information and the user type of the target warning object, call the corresponding SMS template to generate a warning SMS, push the warning SMS to the contact number of the target warning object through the SMS gateway, and record the push log.
[0027] The specific steps for generating the warning SMS in this process are as follows: A text message template library is constructed based on the user type of the target early warning object; wherein, each text message template in the text message template library includes a fixed text segment and a dynamically replaced segment; the dynamically replaced segment is used to embed variable values in the abnormal event information, and the variable values include facility identifier, abnormality type, abnormality occurrence time, and rectification completion time; After receiving abnormal event information, the system matches the corresponding SMS template from the SMS template library based on the user type of the target warning object. Extract variable values from abnormal event information, replace the dynamically replaced segment in the SMS template based on the extracted variable values, generate an alert SMS, and push the SMS as follows: Figure 2 As shown in Tables 1, 2, and 3, the content of the pushed SMS messages is as follows, depending on the user type: Table 1 shows the content of the push text messages sent by maintenance personnel.
[0028] Table 2 shows the content of text messages sent by Level 1 supervisors.
[0029] Table 3 shows the content of text messages sent by Level 2 supervisors.
[0030] S5. Rectification Feedback and Information Synchronization Steps: Receive rectification result information submitted by maintenance personnel, verify the validity of the rectification result information, and if the verification passes, update the status of the abnormal event to "rectified", generate a rectification completion SMS and push it to the corresponding level of warning object according to preset rules. At the same time, associate and store the abnormal event information, push log, and rectification result information to form closed-loop traceability data.
[0031] For example, the SMS early warning method for abnormal domestic sewage facilities provided in this embodiment is implemented in detail. This method is applied to the domestic sewage monitoring platform of a certain county. The specific implementation process is as follows: First, a multi-level warning target list database is constructed based on the personnel list of warning targets. Warning targets include maintenance personnel, township-level personnel (corresponding to first-level supervisors), county-level personnel (corresponding to second-level supervisors), and platform administrators. The database records the identity information of each warning target, as follows: Maintenance personnel Zhang San, username zs001, user type: maintenance personnel, administrative affiliation: a certain station in a certain town of a certain county, contact number: 138xxxx1234, status: normal, remarks: responsible for the maintenance of equipment at this station; Township-level personnel Li Si, username ls002, user type: first-level supervisor, administrative affiliation: town A of a certain county, contact number: 139xxxx5678, status: normal, remarks: A Township sewage facility supervision; County-level relevant personnel Wang Wu, username ww003, user type Level 2 supervisor, administrative affiliation to a certain county, contact number 137xxxx9012, status is normal, remark: county-wide sewage facility supervision; Platform administrator Zhao Liu, username zl004, user type platform administrator, no specific administrative affiliation, contact number 136xxxx3456, status is normal, remark: comprehensive system management. Simultaneously, the multi-level early warning target list database is also configured with user permission management, i.e., platform administrators. Among them, maintenance personnel Zhang San has permissions to view anomalies, submit rectification requests, and modify personal information for their associated sites; Level 1 supervisor Li Si has permissions to view anomalies, supervise rectification, and manage maintenance personnel within the A town area; Level 2 supervisor Wang Wu has permissions to view anomalies, supervise rectification, manage Level 1 supervisors, and adjust threshold configurations within a certain county; Platform administrator Zhao Liu has permissions to view all data, manage users, manage templates, and configure the system.
[0032] Next, real-time operational data of the domestic sewage treatment facilities will be collected. This operational data includes online status data of the equipment and monitoring values of sewage indicators (such as COD and ammonia nitrogen). The preset anomaly judgment rules are as follows: Rule 1: If the online status data of the equipment is offline for more than 1 hour (preset offline threshold), it is judged as an equipment disconnection anomaly; Rule 2: If the monitoring value of the sewage indicator exceeds the preset threshold range (such as COD of 50-100 mg / L and ammonia nitrogen of 5-15 mg / L), it is judged as a monitoring value threshold exceeding the limit anomaly. If the equipment at station XX in town A of a certain county is found to be offline for 1.5 hours, or if the COD monitoring value at station YY in town B of a certain county is 120 mg / L, an anomaly will be identified and an anomaly event information will be generated. The information includes facility identification (e.g., station XX in town A of a certain county), time of anomaly occurrence (e.g., 08:00 on [date]), anomaly type (e.g., equipment offline anomaly), and anomaly parameter value (e.g., offline for 1.5 hours or COD 120 mg / L). COD stands for Chemical Oxygen Demand, which is an important indicator for measuring the degree of organic pollution in water bodies.
[0033] Based on the generated abnormal event information and the multi-level early warning object list, the target early warning objects and corresponding push times are determined according to preset triage rules. For maintenance personnel, the push time is real-time when an abnormal event occurs, and the early warning scope is the abnormal event corresponding to the specific site associated with the maintenance personnel. For example, when an abnormality occurs at site XX in town A of a certain county associated with maintenance personnel Zhang San, an early warning is pushed to him in real time. For first-level supervisory personnel (township-related personnel), the push time is when the abnormal event has not been accepted for more than 48 hours (the first preset time), and the early warning scope is all abnormal events in the area corresponding to their administrative affiliation. That is, Li Si will receive all abnormal early warnings in town A of a certain county that have not been accepted for more than 48 hours. For second-level supervisory personnel (county-level-related personnel), the push time is when the abnormal event has not been accepted for more than 72 hours (the second preset time, and 72 hours is greater than 48 hours), and the early warning scope is all abnormal events in the area corresponding to their administrative affiliation. That is, Wang Wu will receive all abnormal early warnings in a certain county that have not been accepted for more than 72 hours.
[0034] Subsequently, based on the abnormal event information and the target warning object, the system calls the corresponding SMS template to generate a warning SMS. The system constructs an SMS template library based on the user type of the target warning object. Each template contains a fixed text segment and a dynamically replaced segment. The dynamically replaced segment is used to embed variable values such as facility identifier, abnormality type, abnormality occurrence time, and rectification completion time. For example, the template for maintenance personnel is: "Hello, the sewage monitoring platform of a certain county shows that '{facility identifier}' has an '{abnormal type}' problem. Please pay attention and arrange relevant personnel to rectify it. We will promptly inform you of the rectification results. Thank you for your support of rural sewage treatment!" The template for first-level supervisors is: "Hello, the sewage monitoring platform of a certain county reminds you that the '{abnormal type}' problem of '{facility identifier}' has not been handled for more than 48 hours. Please pay attention and arrange relevant personnel to rectify it. We will promptly inform you of the rectification results. Thank you for your support of rural sewage treatment!" The template for second-level supervisors is: "Hello, the sewage monitoring platform of a certain county reminds you that the '{abnormal type}' problem of '{facility identifier}' has not been handled for more than 72 hours." If the issue is not resolved within 24 hours, please pay attention and arrange for relevant personnel to rectify it. We will promptly inform you of the rectification results. Thank you for your support of rural domestic sewage treatment! The corresponding template after rectification is: "Hello, the sewage monitoring platform of a certain county reminds you that the issue of '{abnormal type}' for '{facility identifier}' has been rectified at '{rectification completion time}'. Thank you for your support of rural domestic sewage treatment!" After receiving abnormal event information, the corresponding template is matched according to the user type of the target warning object. Variable values are extracted from the abnormal event information to replace the dynamically replaced segment, generating a targeted warning SMS. For example, the equipment disconnection abnormality warning SMS sent to Zhang San would be: "Hello, the sewage monitoring platform of a certain county shows that 'XX Station in Town A of a certain county' has an 'equipment disconnection abnormality' issue. Please pay attention and arrange for relevant personnel to rectify it. We will promptly inform you of the rectification results. Thank you for your support of rural domestic sewage treatment!"
[0035] After generating the warning SMS, it is sent to the contact number of the target warning recipient based on the push time, and a push log is recorded. Specifically, a third-party SMS gateway interface is called, passing in the target warning recipient's contact number, the warning SMS content, and the identification information of a county-level domestic sewage monitoring platform, and receiving the sending status code returned by the SMS gateway. If the status code is successful, a push success log is recorded, including the push time, warning SMS content, and recipient number; if the status code is failed, a retry is performed according to the reason for failure, with a maximum of 3 retries, each retry interval of 15 minutes (preset timeout resend time). If the retry still fails, a push failure log is recorded and an internal platform alarm is triggered.
[0036] After maintenance personnel receive the warning SMS and complete the rectification, they submit the rectification result information. For example, Zhang San submits the rectification result for the equipment offline problem at XX site in Town A of a certain county, including the rectification completion time of 15:18 on [Date] and a description of the rectification status that the equipment has been restored to online status. The system verifies the validity of the rectification result information. After confirming that the equipment online status has returned to normal and the rectification information is true and valid, the system updates the status of the abnormal event to "rectified," generates a rectification completion SMS, and pushes it to the corresponding warning objects (such as Li Si and Wang Wu) according to preset rules. Finally, the abnormal event information, push logs, and rectification result information are associated and stored in the platform's facility abnormal log database for subsequent query and traceability.
[0037] like Figure 4 As shown, this embodiment also provides an SMS early warning system for abnormal domestic sewage facilities, applied to a domestic sewage monitoring platform, and its specific implementation is as follows: Figure 5 The system includes functions such as message push, building a multi-level early warning target list, and early warning triage; specifically, it includes: a construction module, used to build a multi-level early warning target list based on the personnel list of early warning targets; the early warning targets include operation and maintenance personnel, first-level supervisors, and second-level supervisors; the multi-level early warning target list records the identity information corresponding to each early warning target, including username, user type, administrative affiliation information, contact number, status identifier, and remarks information; a data acquisition module, used to collect real-time operating data of domestic sewage facilities, and combine it with preset anomaly judgment rules to judge anomalies in domestic sewage facilities. If an anomaly is judged, an anomaly event information is generated; wherein, the operating data... The system includes monitoring data such as online equipment status data and wastewater monitoring indicators; the abnormal event information includes facility identification, abnormal occurrence time, abnormal type, and abnormal parameter value; the object confirmation module is used to determine the target early warning object and the corresponding push time based on the abnormal event information and a multi-level early warning object list, according to the preset diversion rules corresponding to the user type of the early warning object; wherein, the preset diversion rules include the abnormal response time threshold and early warning range corresponding to different user types; the SMS push module is used to generate an early warning SMS based on the abnormal event information and the target early warning object, push the early warning SMS to the contact number of the target early warning object according to the push time, and record the push log.
[0038] The present invention also provides a text message early warning device for abnormal domestic sewage facilities, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of the text message early warning method for abnormal domestic sewage facilities.
[0039] The present invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the SMS early warning method for abnormalities in the domestic sewage facility.
[0040] When the processor executes the computer program, it implements the steps of sending SMS alerts for abnormalities in the domestic sewage treatment facilities, such as: constructing a multi-level alert target list database based on the personnel list of alert targets; the alert targets include operation and maintenance personnel, first-level supervisors, and second-level supervisors; the multi-level alert target list database records the identity information corresponding to each alert target, including username, user type, administrative affiliation information, contact number, status identifier, and remarks; collecting real-time operational data of the domestic sewage treatment facilities, and combining it with preset abnormality judgment rules to judge the domestic sewage treatment facilities for abnormalities; if an abnormality is judged, abnormal event information is generated; wherein, the The operational data includes online status data of equipment and monitored values of wastewater monitoring indicators; the abnormal event information includes facility identification, time of occurrence of abnormality, type of abnormality, and abnormal parameter value; based on the abnormal event information and a multi-level early warning object list, the target early warning object and its corresponding push time are determined according to the preset diversion rules corresponding to the user type of the early warning object; wherein, the preset diversion rules include the abnormal response time threshold and early warning range corresponding to different user types; based on the abnormal event information and the target early warning object, the corresponding SMS template is called to generate an early warning SMS, and the early warning SMS is pushed to the contact number of the target early warning object according to the push time, and the push log is recorded.
[0041] For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing preset functions, the instruction segments describing the execution process of the computer program in the SMS early warning device for abnormalities in the domestic sewage facility. For example, the computer program can be divided into a construction module, a data acquisition module, an object confirmation module, and an SMS push module; wherein: the construction module is used to construct a multi-level early warning object list database based on the personnel list of early warning objects; the early warning objects include maintenance personnel, first-level supervisors, and second-level supervisors; the multi-level early warning object list database records the identity information corresponding to each early warning object, the identity information including username, user type, administrative affiliation information, contact number, status identifier, and remarks; the data acquisition module is used to collect real-time operating data of the domestic sewage facility, combine it with preset abnormality judgment rules to determine abnormalities in the domestic sewage facility, and if an abnormality is determined, generate abnormal event information; wherein The operational data includes online status data of equipment and monitored values of wastewater monitoring indicators; the abnormal event information includes facility identification, abnormal occurrence time, abnormal type, and abnormal parameter value; the object confirmation module is used to determine the target early warning object and the corresponding push time based on the abnormal event information and the multi-level early warning object list library, according to the preset diversion rules corresponding to the user type of the early warning object; wherein, the preset diversion rules include the abnormal response time threshold and early warning range corresponding to different user types; the SMS push module is used to generate an early warning SMS by calling the corresponding SMS template based on the abnormal event information and the target early warning object, push the early warning SMS to the contact number of the target early warning object according to the push time, and record the push log.
[0042] The SMS alert device for abnormal sewage treatment facilities can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. This device may include, but is not limited to, processors and memory. Those skilled in the art will understand that the above are examples of SMS alert devices for abnormal sewage treatment facilities and do not constitute a limitation on such devices. The device may include more components than described above, or combine certain components, or use different components. For example, the SMS alert device for abnormal sewage treatment facilities may also include input / output devices, network access devices, buses, etc.
[0043] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of the SMS early warning device for abnormal sewage treatment facilities, connecting all parts of the device via various interfaces and lines.
[0044] The memory can be used to store the computer program and / or module. The processor implements various functions of the SMS early warning device for abnormal domestic sewage facilities by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory.
[0045] The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback, image playback, etc.). The data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory may include high-speed random access memory and non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD cards), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0046] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the SMS early warning method for abnormal domestic sewage facilities.
[0047] If the modules / units integrated into the SMS early warning system for abnormal domestic sewage facilities are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
[0048] Based on this understanding, the present invention can implement all or part of the processes in the SMS early warning method for abnormal domestic sewage facilities, or it can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the SMS early warning method for abnormal domestic sewage facilities. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or a preset intermediate form, etc.
[0049] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0050] It should be noted that the content contained in the computer-readable storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0051] The above embodiments are merely one of the implementation methods for achieving the technical solution of the present invention. The scope of protection claimed by the present invention is not limited to this embodiment, but also includes any variations, substitutions and other implementation methods that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention.
[0052] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for issuing SMS early warnings of abnormalities in domestic sewage treatment facilities, applied to a domestic sewage monitoring platform, characterized in that: include: Construct a multi-level early warning target list database based on the personnel list of early warning targets; The early warning targets include operation and maintenance personnel, first-level supervisors, and second-level supervisors; The multi-level early warning target list database records the identity information corresponding to each early warning target, including username, user type, administrative affiliation information, contact number, status identifier and remarks information; The system collects operational data of domestic sewage treatment facilities in real time, and uses preset anomaly judgment rules to determine anomalies in the facilities. If an anomaly is determined, an anomaly event information is generated. The operational data includes online status data of the equipment and monitoring values of sewage monitoring indicators. The anomaly event information includes facility identification, anomaly occurrence time, anomaly type, and anomaly parameter value. Based on abnormal event information and a multi-level warning object list, the target warning object and its corresponding push time are determined according to the preset triage rules corresponding to the user type of the warning object; wherein, the preset triage rules include the abnormal response time threshold and warning range corresponding to different user types; Based on the abnormal event information and the target warning object, the corresponding SMS template is called to generate a warning SMS, which is then sent to the contact number of the target warning object according to the push time, and the push log is recorded.
2. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, The process of generating a warning SMS based on the abnormal event information and the target warning object, sending the warning SMS to the contact number of the target warning object according to the push time, and recording the push log, also includes: Receive rectification result information submitted by operation and maintenance personnel; The validity of the rectification results is verified. If the verification passes, the status of the abnormal event is updated to "rectified", a rectification completion SMS is generated and pushed to the corresponding warning object according to the preset rules. Abnormal event information, push logs, and rectification results information are linked and stored in the facility abnormal log database of the domestic sewage monitoring platform.
3. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, In the step of collecting real-time operational data of domestic sewage treatment facilities and determining anomalies in the facilities based on preset anomaly determination rules, the preset anomaly determination rules include: Rule 1: If a device's online status data shows an offline status, and the duration of the offline status exceeds a preset offline threshold, then the device is considered to be offline. Rule 2: If the monitored value of a wastewater monitoring indicator exceeds the preset threshold range, it is determined to be an abnormal monitoring value threshold exceeding the limit.
4. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, In the step of determining the target warning object and its corresponding push time based on abnormal event information and a multi-level warning object list, according to the preset traffic diversion rules corresponding to the user type of the warning object, the preset traffic diversion rules are specifically as follows: For operations and maintenance personnel: Push time: Push notifications are sent in real time when an abnormal event occurs; Warning scope: Abnormal events corresponding to the specific site associated with this maintenance personnel; For Level 1 supervisors: Push time: Push notification will be sent if no response is received within the first preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the administrative jurisdiction corresponding to this level of regulatory personnel; For Level 2 supervisors: Push time: Push notification will be sent if no response is received within the second preset time after an abnormal event occurs; Warning scope: Abnormal events at all stations within the area corresponding to the administrative affiliation of this Level 2 supervisor; The second preset time is longer than the first preset time.
5. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, The step of generating a warning SMS based on the abnormal event information and the target warning object by calling the corresponding SMS template includes: A text message template library is constructed based on the user type of the target early warning object; wherein, each text message template in the text message template library includes a fixed text segment and a dynamically replaced segment; the dynamically replaced segment is used to embed variable values in the abnormal event information, and the variable values include facility identifier, abnormality type, abnormality occurrence time, and rectification completion time; After receiving abnormal event information, the system matches the corresponding SMS template from the SMS template library based on the user type of the target warning object. Extract variable values from abnormal event information, and replace the dynamic replacement segment in the SMS template according to the extracted variable values to generate an early warning SMS.
6. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, The process of sending warning text messages to the contact numbers of the target individuals based on the push time and recording push logs includes: Call the third-party SMS gateway interface, passing in the target warning object's contact number, the warning SMS content, and the platform identification information; If the status code returned by the SMS gateway is successful, a successful push log is recorded, including the push time, the content of the warning SMS, and the receiving number. If the status code is unsuccessful, a retry is performed according to the reason for the failure. The number of retries shall not exceed the set number. The interval between each retry is a preset timeout resend time. If the retry still fails, a push failure log is recorded and an internal alarm is triggered on the domestic sewage monitoring platform.
7. The SMS early warning method for abnormal domestic sewage treatment facilities according to claim 1, characterized in that, In the step of constructing a multi-level early warning object list database based on the personnel list of early warning objects, the multi-level early warning object list database is also configured with user permission management for early warning objects. The specific steps are as follows: The warning targets also include platform administrators; Different platform operation permissions are assigned to different user types, including: Operation and maintenance personnel have the authority to view anomalies, submit rectification requests, and modify personal information at their associated sites; Level 1 supervisors have the authority to view anomalies, supervise rectification, and manage maintenance personnel within their respective administrative jurisdictions. Level 2 supervisors have the authority to view anomalies, supervise rectification, manage Level 1 supervisors, and adjust threshold settings within their respective administrative jurisdictions. Platform administrators have permissions to view all data, manage users, manage templates, and configure the system.
8. A text message early warning system for abnormal domestic sewage facilities, applied to a domestic sewage monitoring platform, characterized in that, include: The module is used to build a multi-level warning object list library based on the personnel list of warning objects; The early warning targets include operation and maintenance personnel, first-level supervisors, and second-level supervisors; The multi-level early warning target list database records the identity information corresponding to each early warning target, including username, user type, administrative affiliation information, contact number, status identifier and remarks information; The data acquisition module is used to collect operational data of domestic sewage facilities in real time, and to determine anomalies in the facilities based on preset anomaly judgment rules. If an anomaly is determined, an anomaly event information is generated. The operational data includes online status data of the equipment and monitoring values of sewage monitoring indicators. The anomaly event information includes facility identifier, anomaly occurrence time, anomaly type, and anomaly parameter value. The object confirmation module is used to determine the target warning object and the corresponding push time based on abnormal event information and a multi-level warning object list library, according to the preset diversion rules corresponding to the user type of the warning object; wherein, the preset diversion rules include abnormal response time thresholds and warning ranges corresponding to different user types; The SMS push module is used to generate warning SMS messages based on abnormal event information and target warning objects, call the corresponding SMS template, push the warning SMS messages to the contact phone numbers of the target warning objects according to the push time, and record the push log.
9. A text message early warning device for abnormalities in domestic sewage treatment facilities, characterized in that, include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the SMS early warning method for abnormalities in domestic sewage facilities as described in any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it is used to implement the steps of the SMS early warning method for abnormal domestic sewage facilities as described in any one of claims 1-7.
Citation Information
Patent Citations
Intelligent supervision system and supervision method for distributed environmental governance facility
CN110347737A
Real-time information alarm method and system for intelligent integrated sewage treatment equipment
CN111003883A
Human resource information management method and device based on LLM + RPA
CN121073415A
Log monitoring method and apparatus, terminal, and storage medium
WO2020237877A1