An online water quality monitoring system for environmental monitoring

By converting water quality monitoring data into compressed and mapped sequence water quality conversion documents, the problem of difficult key management in encrypted transmission of water quality monitoring data is solved, and the security and cost control of data transmission are achieved.

CN118316967BActive Publication Date: 2024-09-10SUZHOU YUEHAN ENVIRONMENTAL PROTECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410720006.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-10
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

In existing water quality monitoring technology, in order to protect corporate trade secrets, water quality monitoring data needs to be encrypted and transmitted. However, the maintenance and management of keys require a large amount of financial and time resources, resulting in an increased risk of key loss and theft, which affects cost control. .

Method used

By converting water quality monitoring data into water quality conversion documents, specific rules are used to compress and map sequences, only key information is retained, and data location information is recorded to ensure data integrity and security, avoid the use of key encryption, and enhance the security of data transmission. Security.

Benefits of technology

It reduces the resource requirements for key management, significantly enhances the security of data transmission, prevents unauthorized interpretation, reduces the risk of corporate sensitive information leakage, and controls the cost of water quality monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316967B
    Figure CN118316967B
Patent Text Reader

Abstract

The present invention discloses an online water quality monitoring system for environmental monitoring, and relates to the technical field of water quality monitoring. The present invention converts the water quality monitoring data of a target area received in real time into a water quality conversion document of the target area in real time through a water quality data transmission unit. The water quality conversion document contains an original image compression sequence and a mapping compression sequence. In this process, the original image compression sequence is generated by compressing the water quality monitoring data according to specific rules. The rule selectively removes data at certain positions, so that only part of the key water quality information is retained in the sequence. At the same time, the mapping compression sequence records the position information of the removed data. Since both the original image compression sequence and the mapping compression sequence exist in binary form, even if the data is intercepted by an unauthorized third party during transmission, the complex encoding mechanism is sufficient to prevent any unauthorized interpretation attempt, thereby significantly enhancing the security of the overall data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of water quality monitoring, and in particular to an online water quality monitoring system for environmental monitoring. Background Art

[0002] With the development of science and technology and the increasing importance of water quality, water quality testing has gradually penetrated into various fields such as daily life (such as household water purification devices), agricultural production (such as aquaculture) and industrial production. Accurate water quality test results have important guiding significance for modern life and production. In order to obtain a large amount of water quality information in a timely and effective manner, the key to water quality testing lies in rapid testing technology, and the core of rapid testing technology is the development of sensor technology.

[0003] A water quality monitoring technology currently on the market is mainly aimed at corporate users. The wastewater discharged by these companies during the production process may contain specific chemicals or indicators. This information sometimes involves sensitive business secrets of the company. Therefore, when implementing water quality monitoring, it is necessary not only to ensure compliance with environmental standards, but also to consider protecting the company's business secrets. At present, keys are mainly used to encrypt and transmit water quality monitoring data to ensure the security of sensitive information. However, this puts higher requirements on the maintenance and management of keys. In order to effectively maintain and manage keys, a lot of financial and time resources are often required. This approach is not conducive to cost control of water quality monitoring. If a lot of financial and time resources are not invested, it may lead to the loss and theft of keys, which will cause the leakage of sensitive business secrets of enterprises.

[0004] In order to solve the above problems, the present invention proposes a solution. Summary of the invention

[0005] The purpose of the present invention is to provide an online water quality monitoring system for environmental monitoring, in order to solve the problem that the prior art uses a key to encrypt water quality monitoring data, if a large amount of financial and time resources are not invested, the key may be lost or stolen, which will cause the leakage of sensitive business secrets of the enterprise, and the investment of a large amount of financial and time resources is not conducive to the cost control of water quality monitoring;

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] An online water quality monitoring system for environmental monitoring, comprising:

[0008] A water quality data transmission unit, used for converting the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area;

[0009] After receiving the numerical monitoring data of the target area at the current moment, the water quality data transmission unit first performs binary conversion on the data to obtain the corresponding binary data;

[0010] The binary data is grouped in order from left to right, and each two characters are grouped into a group to obtain a plurality of groups of character strings; the number of character strings obtained after grouping and 254 are judged to be larger than or equal to 254, and a generation rule for generating a water quality conversion document for the target area at the current moment is determined based on the size judgment result, and the generation rule includes a first generation rule and a second generation rule.

[0011] Furthermore, the monitoring data acquisition unit monitors several water quality parameters of the target area in real time to obtain real-time water quality monitoring data. The several water quality parameters include temperature, pH value, dissolved oxygen, conductivity, turbidity, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and color.

[0012] Furthermore, the steps for determining the type of generation rule for generating the water quality conversion document for the target area at the current moment are as follows:

[0013] S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed;

[0014] The binary data is grouped in order from left to right, with every two characters grouped together, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment;

[0015] S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping;

[0016] S13: a and 254 are compared, if a≤254, the generation rule type is selected as the first generation rule, and the water quality conversion document of the target area at the current moment is generated according to the first generation rule;

[0017] If a>254, the generation rule type is selected as the second generation rule, and the water quality conversion document of the target area at the current moment is generated according to the second generation rule.

[0018] Beneficial effects of the present invention:

[0019] The present invention converts the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area, thereby avoiding the excessive increase of resources in the maintenance and management of the key caused by encrypting the water quality monitoring data using a key;

[0020] The present invention obtains real-time water quality monitoring data by setting a monitoring data acquisition unit to monitor several water quality parameters of the target area in real time. The water quality data transmission unit converts the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area. The water quality conversion document contains an original image compression sequence obtained after compressing the water quality monitoring data and a mapping compression sequence used to restore the water quality compression sequence. In this process, the original image compression sequence is generated by compressing the water quality monitoring data according to a specific rule. The rule selectively removes data at certain positions, so that only part of the key water quality information is retained in the sequence. At the same time, the mapping compression sequence records the position information of the removed data, ensuring that the integrity of the data is restored during decoding. This method provides an additional confidentiality measure for the water quality conversion document. Since the original image compression sequence containing only key information and the mapping compression sequence recording the data position are both in binary form, even if the data is intercepted by an unauthorized third party during transmission, the complex encoding mechanism is sufficient to prevent any unauthorized interpretation attempt, thereby significantly enhancing the security of the overall data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention will be further described below in conjunction with the accompanying drawings.

[0022] Figure 1 is a system block diagram of the present invention;

[0023] Figure 2 is a flow chart of the method of the present invention;

[0024] Figure 3 This is a specific step of the third generation rule for generating the water quality conversion document of the target area at the current moment in the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] like Figure 1 , 2 , 3, an online water quality monitoring system for environmental monitoring, including a local water quality monitoring module and a cloud-based water quality control platform;

[0027] A local water quality monitoring module, used to monitor several water quality parameters of the target area in real time, the local water quality monitoring module includes a monitoring data acquisition unit and a water quality data transmission unit;

[0028] At the current moment, the monitoring data collection unit collects the monitoring values ​​of several water quality parameters of the target area and generates the water quality monitoring data of the target area at the current moment based on the monitoring values;

[0029] In one embodiment of the present invention, the target area refers to the area where the enterprise discharges wastewater;

[0030] In one embodiment of the present invention, the several water quality parameters of the target area include temperature, pH value, dissolved oxygen (DO), conductivity, turbidity, chemical oxygen demand (COD), biochemical oxygen demand (BOD), ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and chromaticity and other water quality parameters;

[0031] The monitoring data collection unit transmits the water quality monitoring data of the target area at the current moment to the water quality data transmission unit;

[0032] After receiving the water quality monitoring data of the target area at the current moment, the water quality data transmission unit generates a water quality conversion document of the target area at the current moment according to the preset generation rules. The preset generation rules are as follows:

[0033] S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed;

[0034] The binary data is grouped in order from left to right, with every two characters grouped together, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment;

[0035] For example, if the binary data is "101001010", then from left to right, the strings obtained by grouping two characters are "10", "10", "01", "01", and the character "0" is left at the right end as a free character.

[0036] S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping;

[0037] S13: a and 254 are compared in size, and according to the comparison result, it is determined whether to generate the water quality conversion document of the target area at the current moment according to the preset first generation rule or the preset second generation rule:

[0038] Among them, for the size comparison result in S13, if a≤254, the water quality conversion document of the target area at the current moment is generated according to the preset first generation rule, and the preset first calculation rule is as follows:

[0039] S21: According to the sequence of character strings A1, A2, ..., Aa, first mark character string A1 as the original image string and re-mark it as D1;

[0040] S22: Find the first character string that meets the preset mapping condition in the order of the character strings A2, ..., Aa, mark the character string as the compensation character string E1 of the original image character string D1, record the subscript marked when the compensation character string E1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string D1. If no character string that meets the mapping condition is found, obtain the original image character string D1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string;

[0041] The preset mapping condition is as follows: the decimal number of the original image string + the decimal number of the compensation string = 3;

[0042] S23: after finding the compensation string E1 of the original image string D1 or re-marking the original image string D1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string D2 in the order of the strings A1, A2, ..., Aa;

[0043] S24: Then, following the same steps from S22 to S23, in the order of the character strings A1, A2, ..., Aa, the first character string that meets the preset mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string E2 of the original image string D2, the subscript marked when the compensation string E2 is used as a character string before being marked is recorded, the compensation string is binary-converted, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string D2;

[0044] S25: According to S21 to S24, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings A1, A2, ..., Aa are obtained;

[0045] S26: First, according to the order in which each original image string is marked, all original image strings are spliced ​​to obtain the original image compression sequence at the current moment. Similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are spliced ​​to obtain the mapping compression sequence at the current moment. If there is an idle character in the target area at the current moment, it is spliced ​​to the rightmost end of the original image compression sequence at the current moment, and the finally obtained data is updated as the original image compression sequence at the current moment.

[0046] The water quality data transmission unit generates a water quality conversion document for the target area at the current moment according to the original image compression sequence and the mapping compression sequence at the current moment. In the water quality conversion document for the target area at the current moment, the original image compression sequence and the mapping compression sequence at the current moment are separated by ",";

[0047] Among them, for the size comparison result in S13, if a≥254, the water quality conversion document of the target area at the current moment is generated according to the preset second generation rule, and the preset second calculation rule is as follows:

[0048] S31: Calculate and obtain the segmentation index F1 of the target area at the current moment using the formula F1=ceil(a / 254), where ceil() is an upward rounding function;

[0049] S32: traverse the strings A1, A2, ..., Aa from left to right in the order of the strings A1, A2, ..., Aa, and aggregate the 254 strings into a set of mapping sets each time traversing the strings until the strings A1, A2, ..., Aa are completely traversed;

[0050] In the order of summary, the mapping sets of group F1 are marked as G1, G2, ..., Gg, g = 1, 2, ..., F1, where the total number of strings in the mapping set Gg is less than or equal to 254;

[0051] For any set of mappings, the strings in them are arranged from left to right in the order in which they are traversed;

[0052] S33: First, all the strings in the mapping set G1 are marked as H1, H2, ..., Hh in order from left to right, where h=1, 2, ..., 254;

[0053] S34: According to the order of the character strings H1, H2, ..., Hh, first mark the character string H1 as the original image string and re-mark it as I1;

[0054] S35: Find the first character string that meets the preset mapping condition in the order of the character strings H2, ..., Hh, mark the character string as the compensation character string J1 of the original image character string I1, record the subscript marked when the compensation character string J1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string I1. If no character string that meets the mapping condition is found, obtain the original image character string I1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string;

[0055] The preset mapping condition is as follows: the decimal number of the original image string + the decimal number of the compensation string = 3;

[0056] S36: after finding the compensation string J1 of the original image string I1 or re-marking the original image string I1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string I2 in the order of the strings H1, H2, ..., Hh;

[0057] S37: Then, according to the same steps from S35 to S36, in the order of the character strings H1, H2, ..., Hh, the first character string that meets the preset mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string J2 of the original image string I2, the subscript marked when the compensation string J2 is used as a character string before being marked is recorded, and the binary conversion is performed, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string I2;

[0058] S38: According to S33 to S37, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings H1, H2, ..., Hh are obtained;

[0059] S39: first, according to the order in which each original image string is marked, all original image strings are concatenated to obtain the original image compression sequence of the mapping set G1, and similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are concatenated to obtain the mapping compression sequence of the mapping set G1;

[0060] S310: According to S33 to S39, the original image compression sequence and the mapping compression sequence of the mapping sets G1, G2, ..., Gg are obtained in sequence, wherein if there is an idle character in the target area at the current moment, it is spliced ​​to the rightmost end of the original image compression sequence of the mapping set Gg, and the finally obtained data is updated to the original image compression sequence of the mapping set Gg;

[0061] Generate a water quality conversion document for the target area at the current moment according to the obtained original image compression sequence and mapping compression sequence of the mapping sets G1, G2, ..., Gg. In the water quality conversion document for the target area at the current moment, each original image compression sequence, each mapping compression sequence, and each original image compression sequence and mapping compression sequence are separated by ", ", and the original image compression sequence and mapping compression sequence of the mapping set G1, the original image compression sequence and mapping compression sequence of the mapping set G2, ..., the original image compression sequence and mapping compression sequence of the mapping set Gg are arranged in sequence from left to right in the water quality conversion document;

[0062] The water quality data transmission unit transmits the water quality conversion document of the target area at the current moment to the cloud water quality control platform;

[0063] The cloud-based water quality control platform is used to control water quality monitoring data in the cloud. After receiving the transmitted water quality conversion document of the target area at the current moment, the cloud-based water quality control platform restores the water quality conversion document of the target area at the current moment according to the preset restoration rules. The preset restoration rules are as follows:

[0064] S41: Using commas "," as separators, the water quality conversion documents of the target area at the current moment are cut one by one from left to right, so that a number of strings separated by commas can be obtained. According to the order in which each string is obtained, all the strings are marked as K1, K2, ..., Kk, where k≥1;

[0065] If the total number of characters in the string Kk-1 is an odd number, the first character in the string Kk-1 is intercepted from right to left as the free character in the target area at the current moment;

[0066] S42: According to the order of K1, K2, ..., Kk, K1 and K2, K3 and K4, ..., Kk-1 and Kk are respectively used as the original image restoration sequence and the mapping restoration sequence in a restoration set, and k / 2-1 restoration sets can be obtained, which are correspondingly marked as L1, L2, ..., Ll, l=1, 2, ..., k / 2-1;

[0067] S43: grouping the original image restoration sequence in the restoration set L1 from left to right, grouping every two characters into a group, obtaining a plurality of groups of restoration image character strings, and marking all the grouped restoration image character strings as M1, M2, ..., Mm, m≥1, in sequence from left to right according to the position of each restoration image character string in the original image restoration sequence of the restoration set L1 before grouping;

[0068] The mapping reduction sequence in the reduction set L1 is grouped from left to right, with every two characters grouped together to obtain several groups of mapping image strings. All the mapping image strings obtained by grouping are marked as N1, N2, ..., Nm from left to right according to the position of each mapping image string in the mapping reduction sequence of the reduction set L1 before grouping;

[0069] S44: Obtain the decimal number Q1 corresponding to the mapped image string N1. If Q1 is "255", use the restored image string M1 as the first restored string of the restored set L1.

[0070] If Q1 is not "255", firstly, the restored image string M1 is taken as the first restored string of the restoration set L1, and then the restored image string M1 is identified. If the restored image string M1 is "00", the Q1th restored string of the restoration set L1 is determined to be 11; if the restored image string M1 is "01", the Q1th restored string of the restoration set L1 is determined to be 10; if the restored image string M1 is "10", the Q1th restored string of the restoration set L1 is determined to be 01; if the restored image string M1 is "11", the Q1th restored string of the restoration set L1 is determined to be 00;

[0071] S45: According to S43 to S44, respectively determine the 1st, 2nd, ..., 2mth restoration character strings based on the restoration set L1, and concatenate the 1st, 2nd, ..., 2mth restoration character strings based on the restoration set L1 in the order of 1, 2, ..., 2m to obtain a restoration sequence of the restoration set L1;

[0072] S46: Calculate and obtain the restoration sequence of the restoration set L1, L2, ..., L1 in sequence according to S42 to S45, wherein if there are idle characters in the target area at the current moment, the idle characters in the target area at the current moment are spliced ​​to the rightmost end of the restoration sequence of the restoration set L1;

[0073] According to the order of calculation, the restoration sequences of the restoration sets L1, L2, ..., L1 are spliced ​​to obtain the conversion restoration sequence of the target area at the current moment, and the conversion restoration sequence of the target area at the current moment is restored to obtain the water quality monitoring data of the target area at the current moment;

[0074] The cloud-based water quality control platform stores it and provides it to management personnel for analysis.

[0075] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0076] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.

[0077] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. An online water quality monitoring system for environmental monitoring, characterized in that: include: After receiving the numerical monitoring data of the target area at the current moment, the water quality data transmission unit first performs binary conversion on the data to obtain the corresponding binary data; The binary data is grouped in order from left to right, and each two characters are grouped into a group to obtain a plurality of character strings; the number of character strings obtained after the grouping is compared with 254, and a generation rule for generating a water quality conversion document for the target area at the current moment is determined based on the result of the size determination, and the generation rule includes a first generation rule and a second generation rule; The steps to determine the type of generation rule for generating the water quality conversion document for the target area at the current moment are as follows: S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed; The binary data is grouped in order from left to right, with every two characters grouped together, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment; S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping; S13: a and 254 are compared, if a≤254, the generation rule type is selected as the first generation rule, and the water quality conversion document of the target area at the current moment is generated according to the first generation rule; If a>254, the generation rule type is selected as the second generation rule, and the water quality conversion document of the target area at the current moment is generated according to the second generation rule; The first generation rule is as follows: S21: According to the sequence of character strings A1, A2, ..., Aa, first mark character string A1 as the original image string and re-mark it as D1; S22: according to the sequence of character strings A2, ..., Aa, find the first character string that meets the preset mapping condition, mark the character string as the compensation character string E1 of the original image character string D1, record the subscript marked when the compensation character string E1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string D1, wherein if no character string that meets the mapping condition is found, obtain the original image character string D1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string; The mapping conditions are as follows: the decimal number of the original image string + the decimal number of the compensation string = 3; S23: after finding the compensation string E1 of the original image string D1 or re-marking the original image string D1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string D2 in the order of the strings A1, A2, ..., Aa; S24: Then, following the same steps from S22 to S23, in the order of the character strings A1, A2, ..., Aa, the first character string that meets the mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string E2 of the original image string D2, the subscript marked when the compensation string E2 is used as a character string before being marked is recorded, the compensation string is converted into a binary number, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string D2; S25: According to S21 to S24, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings A1, A2, ..., Aa are obtained; S26: First, according to the order in which each original image string is marked, all original image strings are spliced ​​to obtain the original image compression sequence at the current moment. Similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are spliced ​​to obtain the mapping compression sequence at the current moment. If there is an idle character in the target area at the current moment, it is spliced ​​to the rightmost end of the original image compression sequence at the current moment, and the finally obtained data is updated as the original image compression sequence at the current moment. A water quality conversion document for the target area at the current moment is generated based on the original image compression sequence and the mapping compression sequence at the current moment. In the water quality conversion document for the target area at the current moment, the original image compression sequence and the mapping compression sequence at the current moment are separated by ",".

2. The online water quality monitoring system for environmental monitoring according to claim 1 is characterized in that: The target area refers to the area where the enterprise discharges wastewater.

3. The online water quality monitoring system for environmental monitoring according to claim 1 is characterized in that: It also includes a monitoring data acquisition unit, which monitors the water quality parameters of the target area in real time to obtain real-time water quality monitoring data. The water quality parameters include temperature, pH value, dissolved oxygen, conductivity, turbidity, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and color.

4. The online water quality monitoring system for environmental monitoring according to claim 1 is characterized in that: The second generation rule is as follows: S31: Calculate and obtain the segmentation index F1 of the target area at the current moment using the formula F1=ceil(a / 254), where ceil() is an upward rounding function; S32: traverse the strings A1, A2, ..., Aa from left to right in the order of the strings A1, A2, ..., Aa, and aggregate the 254 strings into a set of mapping sets each time traversing the strings until the strings A1, A2, ..., Aa are completely traversed; In the order of summary, the mapping sets of group F1 are marked as G1, G2, ..., Gg, g = 1, 2, ..., F1, where the total number of strings in the mapping set Gg is less than or equal to 254; For any set of mappings, the strings in them are arranged from left to right in the order in which they are traversed; S33: First, all the strings in the mapping set G1 are marked as H1, H2, ..., Hh in order from left to right, where h=1, 2, ..., 254; S34: According to the order of the character strings H1, H2, ..., Hh, first mark the character string H1 as the original image string and re-mark it as I1; S35: according to the sequence of the character strings H2, ..., Hh, find the first character string that meets the preset mapping condition, mark the character string as the compensation character string J1 of the original image character string I1, record the subscript marked when the compensation character string J1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string I1, wherein if no character string that meets the mapping condition is found, obtain the original image character string I1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string; The mapping conditions are as follows: the decimal number of the original image string + the decimal number of the compensation string = 3; S36: after finding the compensation string J1 of the original image string I1 or re-marking the original image string I1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string I2 in the order of the strings H1, H2, ..., Hh; S37: Then, according to the same steps from S35 to S36, in the order of the character strings H1, H2, ..., Hh, the first character string that meets the mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string J2 of the original image string I2, the subscript marked when the compensation string J2 was used as a character string before being marked is recorded, and the binary conversion is performed, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string I2; S38: According to S33 to S37, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings H1, H2, ..., Hh are obtained; S39: first, according to the order in which each original image string is marked, all original image strings are concatenated to obtain the original image compression sequence of the mapping set G1, and similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are concatenated to obtain the mapping compression sequence of the mapping set G1; S310: According to S33 to S39, the original image compression sequence and the mapping compression sequence of the mapping sets G1, G2, ..., Gg are obtained in sequence, wherein if there is an idle character in the target area at the current moment, it is spliced ​​to the rightmost end of the original image compression sequence of the mapping set Gg, and the finally obtained data is updated to the original image compression sequence of the mapping set Gg; The water quality conversion document of the target area at the current moment is generated according to the original image compression sequence and the mapping compression sequence of the obtained mapping sets G1, G2, ..., Gg.

5. The online water quality monitoring system for environmental monitoring according to claim 4 is characterized in that: In the water quality conversion document of the target area at the current moment generated in step S310, each original image compression sequence, each mapping compression sequence, and the original image compression sequence and the mapping compression sequence are separated by ",", and the original image compression sequence and the mapping compression sequence of the mapping set G1, the original image compression sequence and the mapping compression sequence of the mapping set G2, ..., the original image compression sequence and the mapping compression sequence of the mapping set Gg are arranged from left to right in the water quality conversion document.

6. The online water quality monitoring system for environmental monitoring according to claim 1 is characterized in that: It also includes a cloud-based water quality control platform, which is used to restore the received real-time water quality conversion document of the target area into real-time water quality monitoring data of the target area, and store the restored real-time water quality monitoring data of the target area.