Water area flow early warning method based on data analysis

Through data analysis combined with ultrasonic range finders and image acquisition equipment, the buoys are automatically monitored and adjusted, which solves the problem of traditional manual adjustment being difficult to accurately judge the buoy conditions, and improves the accuracy and timeliness of water flow early warnings.

CN118329130BActive Publication Date: 2024-08-27GUANGDONG RES INST OF WATER RESOURCES & HYDROPOWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410765241.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-27
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

With existing technology, it is difficult to accurately judge the current situation of the buoy through traditional manual adjustment methods, resulting in water flow monitoring errors and early warning accuracy being affected.

Method used

A method based on data analysis is used, combined with ultrasonic rangefinders and image acquisition equipment, to monitor the height and area of ​​the buoy exposed to the water surface, automatically analyze and formulate a treatment plan, and adjust the buoy to ensure monitoring accuracy.

Benefits of technology

It improves the accuracy and timeliness of water flow early warning, reduces the cost and risk of manual inspections, avoids long-term errors, and enhances the stability and robustness of the early warning system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118329130B
    Figure CN118329130B
Patent Text Reader

Abstract

The present application relates to the field of water flow warning, and in particular to a water flow warning method based on data analysis. The method includes: controlling an ultrasonic rangefinder to measure the height of the part of the buoy protruding from the water surface to obtain the height of the part of the buoy protruding from the water surface; comparing the height of the part of the buoy protruding from the water surface with a preset height range to determine whether the height of the part of the buoy protruding from the water surface is normal; if the height of the part of the buoy protruding from the water surface is not within the preset height range, it is determined that the height of the part of the buoy protruding from the water surface is abnormal, and a treatment plan is formulated according to the height of the part of the buoy protruding from the water surface. The present application combines the use of an ultrasonic rangefinder and an image acquisition device to monitor the height and area of ​​the part of the buoy protruding from the water surface, and can promptly detect abnormal conditions such as abnormal height, tilt or position offset of the buoy, so as to formulate targeted treatment plans and solve the problem quickly and effectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of water area flow warning, and in particular to a water area flow warning method based on data analysis. Background Art

[0002] Surface water flow will change significantly in a short period of time due to rainfall. Some lakes, rivers and other water bodies often suffer from floods due to rainfall. Therefore, building a surface water flow early warning system plays an important role in preventing and promptly dealing with floods. Big data can further improve the accuracy of the early warning system.

[0003] At present, buoys are usually used to monitor the water flow of small lakes. However, some areas of many small lakes generally have the problem of eutrophication, which leads to the growth of aquatic plants and algae. When the buoy is in an area with lush aquatic plants and algae, the aquatic plants and algae will be entangled in the sensor or anchor chain of the buoy; this will not only affect the normal operation of the buoy, but also cause the buoy position to shift, tilt, etc., thereby affecting the accuracy of water flow monitoring. If the buoy is not adjusted in time, the water flow monitoring will have errors for a long time, affecting the accuracy of the early warning; and the existing technology, through traditional manual adjustment methods, it is difficult to accurately judge the current situation of the buoy, and it is also difficult to adjust the buoy according to the current situation of the buoy, which needs to be improved. Summary of the invention

[0004] The present application provides a water area flow warning method based on data analysis to solve the problem in the prior art that it is difficult to accurately judge the current situation of the buoy through traditional manual adjustment, and it is also difficult to adjust the buoy according to the current situation of the buoy.

[0005] In a first aspect, the present application provides a water flow warning method based on data analysis, which is applied to a water flow warning device, wherein the water flow warning device comprises a drone and a server, wherein the drone comprises an ultrasonic rangefinder and an image acquisition device, and the water flow warning method based on data analysis is applied to the server, and the method comprises:

[0006] Controlling the ultrasonic rangefinder to measure the height of the portion of the buoy protruding from the water surface to obtain the height of the portion of the buoy protruding from the water surface; comparing the height of the portion of the buoy protruding from the water surface with a preset height range to determine whether the height of the portion of the buoy protruding from the water surface is normal;

[0007] If the height of the part of the buoy protruding from the water surface is not within the preset height range, it is determined that the height of the part of the buoy protruding from the water surface is abnormal, and a treatment plan is formulated according to the height of the part of the buoy protruding from the water surface, and the buoy is adjusted according to the treatment plan so that the buoy can give a normal warning;

[0008] If the height of the part of the buoy protruding from the water surface is within a preset height range, it is determined that the height of the part of the buoy protruding from the water surface is normal, and the image acquisition device is controlled to acquire an image of the area where the buoy is located to obtain an image of the buoy;

[0009] Processing and analyzing the buoy image to obtain the area of ​​the buoy exposed above the water surface; comparing the area of ​​the buoy exposed above the water surface with a preset area range, and judging whether the buoy is tilted according to the comparison result;

[0010] If the area of ​​the buoy exposed above the water surface is not within a preset area range, it is determined that the buoy is tilted; based on the buoy image, the tilt phenomenon is analyzed to determine the severity of the tilt phenomenon, a treatment plan is formulated based on the severity of the tilt phenomenon of the buoy, and the buoy is adjusted based on the treatment plan to enable the buoy to issue a normal warning.

[0011] The above technical scheme has the following advantages: by combining the use of ultrasonic rangefinders and image acquisition equipment to monitor the height and area of ​​the part of the buoy exposed to the water surface, abnormal conditions such as abnormal height, tilt or position offset of the buoy can be discovered in time, so as to formulate targeted treatment plans and solve the problems quickly and effectively, avoiding water flow monitoring errors caused by abnormal buoy height or buoy tilt, thereby improving the accuracy of early warning; in addition, compared with traditional manual adjustment methods, this method greatly improves the accuracy and timeliness of early warnings and reduces the cost and risk of manual inspections; through automated data processing and analysis, problems with the buoy can be discovered in time and treatment plans can be automatically generated, thereby avoiding long-term errors and improving the accuracy of early warnings.

[0012] Optionally, the drone further comprises a wave monitor, and the controlling the ultrasonic rangefinder to measure the height of the portion of the buoy protruding from the water surface to obtain the height of the portion of the buoy protruding from the water surface comprises:

[0013] Controlling the wave monitor to perform wave detection on the area where the buoy is located to obtain wave period data;

[0014] According to the wave cycle data, a number of wave data are obtained; by comparing the wave data, the most stable wave data is determined;

[0015] Determining a first optimal measurement time point of the most stable wave data according to the most stable wave data;

[0016] According to the first optimal measurement time point, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, to obtain first height measurement data at the first optimal measurement time point;

[0017] The first height measurement data is determined as the height of the portion of the buoy protruding from the water surface.

[0018] The above technical solution has the following advantages: based on the real-time detection of wave activity by the wave monitor, the most stable wave data is determined, and the best measurement time point is selected for height measurement, which effectively reduces the impact of waves on the measurement results; in this way, not only the accuracy and reliability of water flow warning are improved, but also the stability and robustness of the warning system are enhanced; and, by more accurately monitoring the status of the buoy, problems such as the entanglement of the buoy by aquatic plants and algae can be discovered and dealt with in a timely manner, avoiding long-term errors and improving the timeliness and accuracy of the warning.

[0019] Optionally, the drone further comprises a laser rangefinder and a turbidity meter, and according to the first optimal measurement time point, the ultrasonic rangefinder is controlled to measure the height of the portion of the buoy exposed above the water surface, and the first height measurement data at the first optimal measurement time point is obtained, including:

[0020] Controlling the turbidity meter to measure the water body in the area where the buoy is located to obtain the turbidity of the water body; comparing the turbidity of the water body with the preset turbidity;

[0021] If the turbidity of the water body is greater than the preset turbidity, the laser rangefinder is activated and the ultrasonic rangefinder is turned off;

[0022] The laser rangefinder is used to measure the height of the portion of the buoy exposed above the water surface to obtain laser measurement data; and the laser measurement data is determined as the first height measurement data.

[0023] The above technical solution has the following advantages: based on the laser rangefinder and turbidity meter, it can also achieve good measurement results and obtain accurate measurement data even in turbid water conditions, avoiding possible interference to the ultrasonic rangefinder; it not only improves the measurement accuracy, but also expands the scope of application, and can work effectively under a wider range of water quality conditions.

[0024] Optionally, the method further includes:

[0025] Determine the second best measurement time points of the remaining wave data according to the wave data to obtain a plurality of second best measurement time points;

[0026] According to the plurality of second optimal measurement time points, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, determining second height measurement data of the plurality of second optimal measurement time points, and obtaining a plurality of second height measurement data;

[0027] According to the first height measurement data, presetting a fixed ratio of the first height measurement data as a standard deviation; and determining an expansion multiple according to the standard deviation;

[0028] The upper limit of the extension range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extension multiple, with specific reference to the following formula:

[0029] ;

[0030] in, Indicates the upper limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0031] The lower limit of the extended range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extended multiple, with specific reference to the following formula:

[0032] ;

[0033] in, Indicates the lower limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0034] Obtaining an extended range of the first height measurement data according to an upper limit of the extended range and a lower limit of the extended range;

[0035] Comparing the plurality of second height measurement data with the extended range respectively to determine whether the first height measurement data is accurate;

[0036] If the plurality of second height measurement data are within the extended range, determining that the first height measurement data is accurate;

[0037] If the plurality of second height measurement data are not within the extended range, determining that the first height measurement data is inaccurate;

[0038] If it is determined that the first height measurement data is inaccurate, an average value is calculated based on the plurality of second height measurement data, and the average value is determined as the height of the portion of the buoy protruding from the water surface.

[0039] The above technical solution has the following advantages: based on multiple measurement time points and data analysis methods, multiple measurement data are compared and the extended range is calculated, which can effectively verify and calibrate the accuracy of the height measurement data, thereby avoiding the errors that may be caused by a single measurement, and significantly improving the accuracy and reliability of the height measurement of the part of the buoy that is exposed above the water surface.

[0040] Optionally, the buoy image is processed and analyzed to obtain the area of ​​the buoy exposed above the water surface, including:

[0041] Binarizing the buoy image to obtain a binary image;

[0042] Performing edge detection on the binary image to obtain an edge detection result;

[0043] According to the edge detection result, the outline of the part of the buoy exposed above the water surface is extracted;

[0044] The area of ​​the buoy protruding from the water surface is obtained according to the binary image and the contour of the part of the buoy protruding from the water surface.

[0045] The above technical solution has the following advantages: based on the image processing and analysis method, it can quickly and accurately obtain the area data of the buoy exposed above the water surface; it can not only provide a more comprehensive understanding of the state of the buoy in the water, but also can be combined with other height data to provide more accurate and comprehensive data support for water flow warning.

[0046] Optionally, analyzing the tilt phenomenon according to the buoy image to determine the severity of the tilt phenomenon includes:

[0047] Fitting the contour of the portion of the buoy protruding from the water surface to obtain a fitted buoy contour;

[0048] According to the fitted buoy profile, determining the highest point of the fitted buoy profile and the lowest point of the fitted buoy profile;

[0049] Establish a two-dimensional coordinate system with the water surface as the x-axis and the direction perpendicular to the water surface as the y-axis;

[0050] Based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point;

[0051] Calculating the angle between the straight line and the x-axis in the two-dimensional coordinate system to obtain the inclination angle of the buoy;

[0052] The tilt angle is matched with a preset severity level, and the severity of the tilt phenomenon is determined according to the matching result.

[0053] The above technical solution has the following advantages: by analyzing the tilt phenomenon of the buoy image based on the image processing method, the severity of the tilt phenomenon can be accurately and quickly determined; at the same time, by real-time monitoring and analysis of the tilt phenomenon of the buoy, the position and posture of the buoy can be discovered and corrected in time to ensure that it maintains a stable measurement state in water flow monitoring, thereby reducing measurement errors and data anomalies caused by the tilt of the buoy and improving the overall performance of the water flow warning system.

[0054] Optionally, the processing and analyzing the buoy image to obtain the area of ​​the buoy exposed above the water surface includes:

[0055] Recognize the buoy image, and determine whether there is a covering object other than the buoy in the buoy image according to the recognition result;

[0056] If there is a covering object, the buoy image is preprocessed to obtain a preprocessed image;

[0057] Performing feature extraction on the preprocessed image to obtain buoy features and covering features;

[0058] Based on the classifier, the buoy is separated from the covering object according to the features of the buoy and the features of the covering object to obtain a separated image.

[0059] The above technical solution has the following advantages: based on the feature extraction method, the problem of the existence of obstructions in the buoy image is successfully solved; noise and interference are eliminated through preprocessing to improve the accuracy of feature extraction; through the application of feature extraction and classifiers, the buoy and the obstruction are effectively separated; in this way, not only the accuracy of the measurement of the area of ​​the buoy exposed above the water surface is improved, but also more reliable data support is provided for the water flow warning system.

[0060] Optionally, the drone includes a spectral camera, and the formulating a processing scheme includes:

[0061] When it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or the buoy is tilted, controlling the spectral camera to collect a spectral image of the area where the buoy is located to obtain a spectral image;

[0062] According to the spectral image, the area where the buoy is located is checked;

[0063] According to the results of the investigation, it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or there are external reasons for the buoy to be tilted;

[0064] Determine the corresponding adjustment tools and the corresponding number of adjustment personnel according to the external reasons;

[0065] A treatment plan is formulated based on the adjustment tools and the number of people to be adjusted.

[0066] The above technical solution has the following advantages: based on the spectral camera and the corresponding data processing method, the abnormal state of the buoy can be deeply analyzed and processed, and more information about the area where the buoy is located can be obtained, so as to more accurately determine the cause of the abnormal state of the buoy and formulate a more effective treatment plan to improve the accuracy and efficiency of water flow monitoring.

[0067] Optionally, the water area flow warning device includes an underwater robot, and the method further includes:

[0068] After processing the buoy, re-inspecting the buoy;

[0069] According to the re-inspection result, judging whether the buoy has returned to normal;

[0070] If it does not return to normal, controlling the underwater robot to detect the buoy underwater;

[0071] Determine the cause of the buoy failure according to the detection results;

[0072] Adjust the treatment plan according to your own reasons and get the adjusted treatment plan;

[0073] According to the processing scheme after the adjustment, the underwater robot is controlled to perform a secondary adjustment on the buoy.

[0074] The above technical solution has the following advantages: underwater exploration based on the underwater robot can obtain detailed status information of the buoy itself, so as to more accurately determine the cause of the buoy abnormality; at the same time, secondary adjustments based on the underwater robot can ensure that the buoy is thoroughly repaired to avoid further abnormalities caused by improper handling.

[0075] In a second aspect, the present application provides a water area flow warning system based on data analysis, comprising:

[0076] The measuring module is used to control the ultrasonic rangefinder to measure the height of the part of the buoy protruding from the water surface, so as to obtain the height of the part of the buoy protruding from the water surface; compare the height of the part of the buoy protruding from the water surface with a preset height range, and determine whether the height of the part of the buoy protruding from the water surface is normal;

[0077] A height judgment module is used to determine that the height of the part of the buoy protruding from the water surface is abnormal if the height of the part of the buoy protruding from the water surface is not within a preset height range, formulate a corresponding treatment plan according to the height of the part of the buoy protruding from the water surface, and adjust the buoy according to the treatment plan so that the buoy can give a normal warning;

[0078] The image acquisition module is used to determine that the height of the part of the buoy protruding from the water surface is normal if the height of the part of the buoy protruding from the water surface is within a preset height range, and control the image acquisition device to acquire the image of the area where the buoy is located to obtain the buoy image.

[0079] The tilt judgment module is used to process and analyze the buoy image to obtain the area of ​​the buoy exposed above the water surface; compare the area of ​​the buoy exposed above the water surface with a preset area range, and judge whether the buoy is tilted according to the comparison result;

[0080] The plan formulation module is used to determine that the buoy is tilted if the area of ​​the buoy exposed above the water surface is not within a preset area range; analyze the tilt phenomenon based on the buoy image to determine the severity of the tilt phenomenon, formulate a corresponding treatment plan based on the severity of the tilt phenomenon of the buoy, and adjust the buoy based on the treatment plan to enable the buoy to give normal warning.

[0081] Optionally, the measuring module is specifically used for:

[0082] Controlling the wave monitor to perform wave detection on the area where the buoy is located to obtain wave period data;

[0083] According to the wave cycle data, a number of wave data are obtained; by comparing the wave data, the most stable wave data is determined;

[0084] Determining a first optimal measurement time point of the most stable wave data according to the most stable wave data;

[0085] According to the first optimal measurement time point, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, to obtain first height measurement data at the first optimal measurement time point;

[0086] The first height measurement data is determined as the height of the portion of the buoy protruding from the water surface.

[0087] Optionally, the measuring module is specifically used for:

[0088] Controlling the turbidity meter to measure the water body in the area where the buoy is located to obtain the turbidity of the water body; comparing the turbidity of the water body with the preset turbidity;

[0089] If the turbidity of the water body is greater than the preset turbidity, the laser rangefinder is activated and the ultrasonic rangefinder is turned off;

[0090] The laser rangefinder is used to measure the height of the portion of the buoy exposed above the water surface to obtain laser measurement data; and the laser measurement data is determined as the first height measurement data.

[0091] Optionally, the water area flow warning system further includes a data judgment module, which is used to:

[0092] Determine the second best measurement time points of the remaining wave data according to the wave data to obtain a plurality of second best measurement time points;

[0093] According to the plurality of second optimal measurement time points, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, determining second height measurement data of the plurality of second optimal measurement time points, and obtaining a plurality of second height measurement data;

[0094] According to the first height measurement data, presetting a fixed ratio of the first height measurement data as a standard deviation; and determining an expansion multiple according to the standard deviation;

[0095] The upper limit of the extension range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extension multiple, with specific reference to the following formula:

[0096] ;

[0097] in, Indicates the upper limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0098] The lower limit of the extended range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extended multiple, with specific reference to the following formula:

[0099] ;

[0100] in, Indicates the lower limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0101] Obtaining an extended range of the first height measurement data according to an upper limit of the extended range and a lower limit of the extended range;

[0102] Comparing the plurality of second height measurement data with the extended range respectively to determine whether the first height measurement data is accurate;

[0103] If the plurality of second height measurement data are within the extended range, determining that the first height measurement data is accurate;

[0104] If the plurality of second height measurement data are not within the extended range, determining that the first height measurement data is inaccurate;

[0105] If it is determined that the first height measurement data is inaccurate, an average value is calculated based on the plurality of second height measurement data, and the average value is determined as the height of the portion of the buoy protruding from the water surface.

[0106] Optionally, the tilt determination module is specifically used to:

[0107] Binarizing the buoy image to obtain a binary image;

[0108] Performing edge detection on the binary image to obtain an edge detection result;

[0109] According to the edge detection result, the outline of the part of the buoy exposed above the water surface is extracted;

[0110] The area of ​​the buoy protruding from the water surface is obtained according to the binary image and the contour of the part of the buoy protruding from the water surface.

[0111] Optionally, the program formulation module is specifically used to:

[0112] Fitting the contour of the portion of the buoy protruding from the water surface to obtain a fitted buoy contour;

[0113] According to the fitted buoy profile, determining the highest point of the fitted buoy profile and the lowest point of the fitted buoy profile;

[0114] Establish a two-dimensional coordinate system with the water surface as the x-axis and the direction perpendicular to the water surface as the y-axis;

[0115] Based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point;

[0116] Calculating the angle between the straight line and the x-axis in the two-dimensional coordinate system to obtain the inclination angle of the buoy;

[0117] The tilt angle is matched with a preset severity level, and the severity of the tilt phenomenon is determined according to the matching result.

[0118] Optionally, the tilt determination module is specifically used to:

[0119] Recognize the buoy image, and determine whether there is a covering object other than the buoy in the buoy image according to the recognition result;

[0120] If there is a covering object, the buoy image is preprocessed to obtain a preprocessed image;

[0121] Performing feature extraction on the preprocessed image to obtain buoy features and covering features;

[0122] Based on the classifier, the buoy is separated from the covering object according to the features of the buoy and the features of the covering object to obtain a separated image.

[0123] Optionally, the program formulation module is specifically used to:

[0124] When it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or the buoy is tilted, controlling the spectral camera to collect a spectral image of the area where the buoy is located to obtain a spectral image;

[0125] According to the spectral image, the area where the buoy is located is checked;

[0126] According to the results of the investigation, it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or there are external reasons for the buoy to be tilted;

[0127] Determine the corresponding adjustment tools and the corresponding number of adjustment personnel according to the external reasons;

[0128] A treatment plan is formulated based on the adjustment tools and the number of people to be adjusted.

[0129] Optionally, the water area flow warning system further includes a recheck module, which is used to:

[0130] After processing the buoy, re-inspecting the buoy;

[0131] According to the re-inspection result, judging whether the buoy has returned to normal;

[0132] If it does not return to normal, controlling the underwater robot to detect the buoy underwater;

[0133] Determine the cause of the buoy failure according to the detection results;

[0134] Adjust the treatment plan according to your own reasons and get the adjusted treatment plan;

[0135] According to the processing scheme after the adjustment, the underwater robot is controlled to perform a secondary adjustment on the buoy. BRIEF DESCRIPTION OF THE DRAWINGS

[0136] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0137] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0138] Figure 2 A flow chart of a water area flow warning method based on data analysis provided in one embodiment of the present application;

[0139] Figure 3 A schematic diagram of the structure of a water area flow warning system based on data analysis provided in one embodiment of the present application. DETAILED DESCRIPTION

[0140] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0141] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0142] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0143] At present, buoys are usually used to monitor the water flow of small lakes. However, some areas of many small lakes generally have the problem of eutrophication, which leads to the growth of aquatic plants and algae. When the buoy is in an area with lush aquatic plants and algae, the aquatic plants and algae will be entangled in the sensor or anchor chain of the buoy; this will not only affect the normal operation of the buoy, but also cause the buoy position to shift, tilt, etc., thereby affecting the accuracy of water flow monitoring. If the buoy is not adjusted in time, the water flow monitoring will have errors for a long time, affecting the accuracy of the early warning; and the existing technology, through traditional manual adjustment methods, it is difficult to accurately judge the current situation of the buoy, and it is also difficult to adjust the buoy according to the current situation of the buoy, which needs to be improved.

[0144] Based on this, the present application provides a water area flow warning method based on data analysis. By combining the use of ultrasonic rangefinders and image acquisition equipment, the height and area of ​​the part of the buoy exposed to the water surface are monitored, so that abnormal conditions such as height abnormalities, inclination or position offset of the buoy can be discovered in time, so as to formulate targeted treatment plans, solve the problems quickly and effectively, and avoid water area flow monitoring errors caused by abnormal buoy height or buoy inclination, thereby improving the accuracy of the warning; in addition, compared with traditional manual adjustment methods, this method greatly improves the accuracy and timeliness of the warning, and reduces the cost and risk of manual inspections; through automated data processing and analysis, problems with the buoy can be discovered in time, and treatment plans can be automatically generated, thereby avoiding long-term errors and improving the accuracy of the warning.

[0145] Figure 1 A schematic diagram of an application scenario provided for the present application. In the process of water flow warning, the scheme of the present application is applied to carry out water flow warning. Specifically, a server is set in a water flow warning system based on data analysis, the server communicates with an ultrasonic rangefinder, the server communicates with an image acquisition device, and the server communicates with a terminal device, sends a height measurement instruction to the ultrasonic rangefinder, controls the ultrasonic rangefinder to measure the height of the part of the buoy exposed above the water surface according to the height measurement instruction, and feeds back the height measurement data, analyzes the height measurement data, and formulates a processing plan, and sends the processing plan to the terminal device, so that the staff who controls the terminal device adjusts the buoy according to the processing plan to ensure that the buoy can normally carry out water flow warning work; sends an image acquisition instruction to the image acquisition device, controls the image acquisition device to collect images of the area where the buoy is located according to the image acquisition instruction, and feeds back the buoy image, analyzes the buoy image, and formulates a processing plan, and sends the processing plan to the terminal device, so that the staff who controls the terminal device adjusts the buoy according to the processing plan to ensure that the buoy can normally carry out water flow warning work.

[0146] For specific implementation methods, please refer to the following embodiments.

[0147] Figure 2 This is a flow chart of a water area flow warning method based on data analysis provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:

[0148] S201, control the ultrasonic rangefinder to measure the height of the part of the buoy protruding from the water surface to obtain the height of the part of the buoy protruding from the water surface; compare the height of the part of the buoy protruding from the water surface with a preset height range to determine whether the height of the part of the buoy protruding from the water surface is normal.

[0149] Among them, the ultrasonic rangefinder can be considered as an instrument that uses ultrasonic waves to measure distance. It can measure the height of the part of the buoy that is exposed above the water surface without contact, and is suitable for environments with large wave fluctuations.

[0150] Among them, the preset height range can be considered as a height interval set in advance, which is used to determine whether the part of the buoy exposed above the water surface is within a normal range.

[0151] Among them, the height of the part of the buoy exposed above the water surface can be considered as the vertical distance from the top of the buoy to the water surface.

[0152] Specifically, the drone is controlled to carry an ultrasonic rangefinder to patrol the buoys in the lake according to a preset flight path. After approaching the buoy, the ultrasonic rangefinder is used to measure the height of the part of the buoy that is exposed above the water surface, and the measured height data is fed back in real time. After receiving the height data, it is immediately compared with the preset height range to determine whether the height of the part of the buoy that is exposed above the water surface is normal.

[0153] S202. If the height of the part of the buoy protruding from the water surface is not within the preset height range, it is determined that the height of the part of the buoy protruding from the water surface is abnormal, and a treatment plan is formulated according to the height of the part of the buoy protruding from the water surface. The buoy is adjusted according to the treatment plan so that the buoy can give a normal warning.

[0154] Among them, the treatment plan can be considered as a specific action plan formulated according to the status of the buoy, which aims to solve the abnormal problems that occur with the buoy.

[0155] Specifically, if the height of the buoy above the water surface is not within a normal range, it is determined that the height of the part of the buoy above the water surface is abnormal, and it is judged that the buoy may be entangled by aquatic plants and algae. According to the height of the part of the buoy above the water surface, a treatment plan is generated, such as adjusting the position of the buoy, clearing the entangled aquatic plants and algae, etc., to ensure that the buoy can give normal warning.

[0156] S203. If the height of the part of the buoy protruding from the water surface is within a preset height range, it is determined that the height of the part of the buoy protruding from the water surface is normal, and the image acquisition device is controlled to acquire an image of the area where the buoy is located to obtain an image of the buoy.

[0157] Among them, the image acquisition device can be considered as a device used to capture images or videos of target objects, such as a camera, a video camera, etc.

[0158] The buoy image can be considered as the buoy image captured by the image acquisition device, which can be used to analyze the state and environmental conditions of the buoy.

[0159] Specifically, if the height of the buoy above the water surface is within a normal range, the drone will be controlled to perform the next operation, which is to use the image acquisition equipment to capture high-definition images of the buoy and its surrounding environment, and feed back the collected image data.

[0160] S204, processing and analyzing the buoy image to obtain the area of ​​the buoy protruding from the water surface; comparing the area of ​​the buoy protruding from the water surface with a preset area range, and judging whether the buoy is tilted based on the comparison result.

[0161] Among them, the area of ​​the buoy exposed above the water surface can be considered as the horizontal projection area of ​​the part of the buoy exposed above the water surface, which can be used to determine whether the buoy is tilted due to the entanglement of aquatic plants and algae.

[0162] Among them, the preset area range can be considered as an area interval set in advance, which is used to determine whether the area of ​​the buoy exposed above the water surface is within a normal range.

[0163] Specifically, image processing techniques, such as image enhancement technology and image segmentation technology, are used to accurately analyze the buoy image; by comparing the area of ​​the buoy exposed above the water surface with a preset area range, it is accurately determined whether the buoy is tilted.

[0164] S205. If the area of ​​the buoy exposed above the water surface is not within the preset area range, it is determined that the buoy is tilted; based on the buoy image, the tilt phenomenon is analyzed to determine the severity of the tilt phenomenon, a treatment plan is formulated according to the severity of the tilt phenomenon of the buoy, and the buoy is adjusted according to the treatment plan to enable the buoy to issue a normal warning.

[0165] Specifically, if the area of ​​the buoy exposed above the water surface is not within the preset area, it is determined that the buoy is tilted; then, the severity of the tilt is further analyzed based on the image data; according to the severity of the tilt, a corresponding treatment plan will be formulated; for example, for a slightly tilted buoy, fine-tuning may be carried out through remote operation of a drone; for a severely tilted buoy, manual intervention may be used to repair it; ensuring that the buoy can give normal warnings and improve the accuracy of water flow monitoring.

[0166] Through the method provided in this embodiment, by combining the use of an ultrasonic rangefinder and an image acquisition device, the height and area of ​​the part of the buoy exposed to the water surface are monitored, so that abnormal conditions such as abnormal height, tilt or position offset of the buoy can be discovered in time, so as to formulate targeted treatment plans, solve the problems quickly and effectively, and avoid water flow monitoring errors caused by abnormal buoy height or buoy tilt, thereby improving the accuracy of early warning; in addition, compared with traditional manual adjustment methods, this method greatly improves the accuracy and timeliness of early warnings, and reduces the cost and risk of manual inspections; through automated data processing and analysis, problems with the buoy can be discovered in time, and treatment plans can be automatically generated, thereby avoiding long-term errors and improving the accuracy of early warnings.

[0167] In some embodiments, a wave monitor is controlled to detect waves in the area where the buoy is located to obtain wave period data; based on the wave period data, a number of wave data are obtained; the number of wave data are compared to determine the most stable wave data; based on the most stable wave data, a first optimal measurement time point of the most stable wave data is determined; based on the first optimal measurement time point, an ultrasonic rangefinder is controlled to measure the height of the portion of the buoy that is exposed above the water surface to obtain first height measurement data at the first optimal measurement time point; the first height measurement data is determined as the height of the portion of the buoy that is exposed above the water surface.

[0168] The drone also includes a wave monitor. The wave monitor can be considered as a device used to monitor the wave conditions on the water surface, and can obtain the wave period data of the area where the buoy is located in real time. Wave detection can be considered as the process of obtaining wave data of the area where the buoy is located through the wave monitor.

[0169] Among them, the wave cycle data can be considered as the wave data measured by the wave monitor within a period of time, including the wave height, wavelength, wave frequency, etc. of the waves within the period of time. Several wave data can be considered as a data set of multiple waves monitored within a period of time, including the wave height, wavelength, wave frequency, etc. of each wave. The most stable wave data can be considered as the wave data with the smallest fluctuation and the most stability among several wave data, which is used to determine the best measurement time point.

[0170] The first best measurement time point can be considered to be the moment when the wave reaches or is about to reach the lowest point; at this time, the water surface is relatively calm, and the ultrasonic rangefinder can obtain the most accurate height measurement data. The first height measurement data can be considered to be the height data of the buoy above the water surface measured by the rangefinder at the first best measurement time point.

[0171] Specifically, the drone is controlled to carry a wave monitor and move to the area where the buoy is located; then, the wave monitor is controlled to detect the waves in the area where the buoy is located in real time, and collect and feed back the wave period data;

[0172] According to the wave cycle data, a number of wave data are analyzed, including the wave height, wavelength, frequency of each wave, etc.; by comparing these wave data, the most stable wave data is determined, that is, the period when the wave activity is relatively weak and relatively stable;

[0173] According to the most stable wave data, select the moment when the wave reaches or is about to reach the lowest point in the most stable wave data; at this time, the water surface is relatively calm, and the ultrasonic rangefinder can obtain the most accurate height measurement data;

[0174] After determining the first optimal measurement time point, the ultrasonic rangefinder is controlled to measure the height of the buoy; since the measurement is performed at the moment when the wave activity is minimal, the first height measurement data obtained is relatively more accurate.

[0175] Finally, the first height measurement data is determined as the height of the part of the buoy exposed above the water surface, and the first height measurement data is fed back for further analysis and comparison, so as to judge the state of the buoy and formulate a corresponding treatment plan accordingly.

[0176] Through the solution provided in this embodiment, wave activity is detected in real time based on the wave monitor, the most stable wave data is determined, and the best measurement time point is selected for height measurement, thereby effectively reducing the impact of waves on the measurement results; in this way, not only the accuracy and reliability of water flow warnings are improved, but also the stability and robustness of the warning system are enhanced; and, by more accurately monitoring the status of the buoy, problems such as the buoy being entangled by aquatic plants and algae can be discovered and dealt with in a timely manner, thus avoiding long-term errors and improving the timeliness and accuracy of the warning.

[0177] In some embodiments, the turbidity meter is controlled to measure the water in the area where the buoy is located to obtain the turbidity of the water; the turbidity of the water is compared with the preset turbidity; if the turbidity of the water is greater than the preset turbidity, the laser rangefinder is started and the ultrasonic rangefinder is turned off; the laser rangefinder is used to measure the height of the part of the buoy exposed above the water surface to obtain laser measurement data; and the laser measurement data is determined as the first height measurement data.

[0178] The drone also includes a laser rangefinder and a turbidity meter. Among them, the laser rangefinder can be considered as an instrument that uses laser to measure distance. Its working principle is similar to that of the ultrasonic rangefinder, but it uses laser instead of ultrasonic. The laser rangefinder can measure the height of the part of the buoy that is exposed above the water surface without contact, and is suitable for environments with high water turbidity. The turbidity meter can be considered as an instrument used to measure the turbidity of the water body, that is, the degree to which suspended particles in the water transmit or scatter light. According to the water body data measured by the turbidity meter, it is determined whether to start the laser rangefinder.

[0179] Among them, water turbidity can be considered as the turbidity data of the water body obtained based on the measurement results of the turbidity meter; turbidity data can reflect the clarity of the water body, which is crucial for the subsequent selection of appropriate measuring instruments. The preset turbidity can be considered as a pre-set turbidity standard used to determine whether the turbidity of the current water body exceeds the normal range; if it exceeds, it may mean that the distance measuring instrument needs to be switched to ensure the measurement accuracy.

[0180] Among them, laser measurement data can be considered as the height data of the part of the buoy exposed above the water surface obtained by using a laser rangefinder; these data are highly accurate and real-time, and are an important basis for judging the status of the buoy.

[0181] Specifically, the drone is controlled to carry a turbidity meter to measure the water body in the area where the buoy is located to obtain turbidity data of the water body, and the turbidity data is fed back in real time;

[0182] Compare the measured water turbidity with the preset turbidity; if the water turbidity is greater than the preset turbidity threshold, it means that the water quality is relatively turbid and the measurement of the ultrasonic rangefinder may be interfered with; in this case, start the laser rangefinder and turn off the ultrasonic rangefinder; the laser rangefinder has higher measurement accuracy and anti-interference ability, and can perform accurate distance measurement under turbid water conditions.

[0183] Using a laser rangefinder, the height of the part of the buoy that is exposed above the water surface is measured at the first optimal measurement time point; since the measurement is performed at a time when wave activity is minimal and water conditions are relatively poor, the laser rangefinder can obtain relatively accurate measurement data.

[0184] Finally, the measurement data obtained by the laser rangefinder is determined as the first height measurement data, and the data is fed back in real time for further analysis and comparison, so as to judge the status of the buoy according to the preset height range and formulate a targeted treatment plan accordingly.

[0185] Through the solution provided in this embodiment, based on the laser rangefinder and the turbidity meter, a good measurement effect can be achieved even in turbid water conditions, accurate measurement data can be obtained, and possible interference to the ultrasonic rangefinder can be avoided; not only the measurement accuracy is improved, but also the scope of application is expanded, and it can work effectively under a wider range of water quality conditions.

[0186] In some embodiments, based on a number of wave data, the second best measurement time point of the remaining wave data is determined to obtain a number of second best measurement time points; based on the number of second best measurement time points, the ultrasonic rangefinder is controlled to measure the height of the portion of the buoy exposed above the water surface, and the second height measurement data of the number of second best measurement time points are determined to obtain a number of second height measurement data; based on the first height measurement data, a fixed ratio of the first height measurement data is preset as the standard deviation; based on the standard deviation, an expansion multiple is determined; based on the standard deviation, the first height measurement data, and the expansion multiple, an upper limit of the expansion range of the first height measurement data is determined, and specific reference is made to the following formula (1):

[0187] (1)

[0188] in, Indicates the upper limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0189] The lower limit of the expansion range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the expansion multiple, with reference to the following formula (2):

[0190] (2)

[0191] in, Indicates the lower limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0192] According to the upper limit and the lower limit of the extended range, the extended range of the first height measurement data is obtained; several second height measurement data are compared with the extended range respectively to determine whether the first height measurement data is accurate; if several second height measurement data are within the extended range, the first height measurement data is determined to be accurate; if several second height measurement data are not within the extended range, the first height measurement data is determined to be inaccurate; if it is determined that the first height measurement data is inaccurate, then the average value is calculated based on the several second height measurement data, and the average value is determined as the height of the part of the buoy exposed above the water surface.

[0193] The second best measurement time point can be considered as the best measurement time point in the wave data except the most stable wave data. The second height measurement data can be considered as the height data of the buoy exposed above the water surface obtained by the rangefinder at the second best measurement time point.

[0194] Among them, the fixed ratio can be considered as the ratio between the standard deviation and the measured value. When there is only one data and the standard deviation of this data is unknown, a standard deviation can be set based on some empirical values ​​or estimates; the fixed ratio here is a method for estimating the standard deviation; for example, if based on experience or historical data, it is known that the standard deviation is approximately 10% of the measured value, then this fixed ratio can be used to estimate the standard deviation.

[0195] Among them, the expansion multiple usually depends on the requirements for stability and accuracy of the measurement data; common expansion multiples can be 1 times, 1.5 times or 2 times the standard deviation, etc.; the larger the multiple, the wider the range and the greater the allowable deviation.

[0196] Specifically, the wave data collected by the wave monitor are used to calculate the best measurement time point of the wave data except the most stable wave data according to the method of the above embodiment.

[0197] The drone is controlled to carry an ultrasonic rangefinder to perform additional height measurements at several second optimal measurement time points to obtain several second height measurement data; these data provide additional verification of the height of the part of the buoy that is exposed above the water surface.

[0198] Next, based on the first height measurement data, a fixed proportion of the first height measurement data is preset, such as 10% as the standard deviation, and an expansion multiple is determined based on the standard deviation; based on the standard deviation and the expansion multiple, the upper and lower limits of the expansion range of the first height measurement data are calculated to determine the expansion range.

[0199] Then, a number of second height measurement data are compared with the extended range respectively; if most of the second height measurement data fall within the extended range, it is determined that the first height measurement data is accurate and is directly used as the height of the part of the buoy exposed above the water surface.

[0200] However, if most of the second height measurement data are not within the extended range, it is considered that the first height measurement data may have errors and are not accurate enough; in this case, the first height measurement data is discarded, and the average of all the second height measurement data is calculated, and this average is used as the height of the part of the buoy that is exposed above the water surface.

[0201] Through the solution provided in this embodiment, based on multiple measurement time points and data analysis methods, multiple measurement data are compared and the extended range is calculated, which can effectively verify and calibrate the accuracy of the height measurement data, thereby avoiding the errors that may be caused by a single measurement and significantly improving the accuracy and reliability of the height measurement of the part of the buoy that is exposed above the water surface.

[0202] In some embodiments, the buoy image is binarized to obtain a binary image; edge detection is performed on the binary image to obtain an edge detection result; based on the edge detection result, the outline of the portion of the buoy protruding from the water surface is extracted; based on the binary image and the outline of the portion of the buoy protruding from the water surface, the area of ​​the buoy protruding from the water surface is obtained.

[0203] Among them, binarization can be considered as an image processing technology that converts the pixel values ​​of an image into only two values ​​(usually black and white), simplifies the image and retains key information; in image processing, binarization is the process of converting a buoy image into a black and white image. By setting a threshold, the pixels in the image are divided into black and white categories, which helps to simplify the image and highlight key features.

[0204] Among them, the binary image can be considered as an image that has been binarized and contains only black and white colors, which is convenient for subsequent image processing and analysis.

[0205] Among them, edge detection can be considered as an image processing technology used to detect and identify the edges of objects in an image for further analysis and processing; on the basis of the binary image, the edge of the buoy contour is identified through the edge detection algorithm, which is a key step in further analysis and processing.

[0206] Among them, the edge detection result can be considered as an image obtained after edge detection processing, in which the edge of the buoy is clearly marked, which is helpful for subsequent contour fitting and feature extraction.

[0207] Specifically, first, the buoy image is binarized; by setting a suitable threshold, the buoy and the water area in the image are separated to obtain a binary image; in the binary image, the buoy part usually appears in white, while the water area appears in black; then, edge detection is performed on the binary image; by applying an edge detection algorithm, the edge of the buoy protruding from the water surface is identified; based on the edge detection result, the outline of the buoy protruding from the water surface is extracted using image processing software such as GIMP, MATLAB, OpenCV, etc.; this step involves connecting and fitting edge points to form a complete buoy outline.

[0208] Finally, the area of ​​the buoy protruding from the water surface is calculated based on the binary image and the contour of the part of the buoy protruding from the water surface; this can be achieved by counting the number of pixels of the buoy part in the binary image and converting it into the actual area.

[0209] Through the solution provided in this embodiment, based on the image processing and analysis method, the area data of the buoy exposed above the water surface can be obtained quickly and accurately; not only can a more comprehensive understanding of the state of the buoy in the water be achieved, but it can also be combined with other height data to provide more accurate and comprehensive data support for water flow warnings.

[0210] In some embodiments, the contour of the portion of the buoy that is exposed above the water surface is fitted to obtain a fitted buoy contour; based on the fitted buoy contour, the highest point of the fitted buoy contour and the lowest point of the fitted buoy contour are determined; a two-dimensional coordinate system is established with the water surface as the x-axis and the direction perpendicular to the water surface as the y-axis; based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point; the angle between the straight line and the x-axis in the two-dimensional coordinate system is calculated to obtain the inclination angle of the buoy; the inclination angle is matched with a preset severity level, and the severity of the tilt phenomenon is determined according to the matching result.

[0211] Among them, the fitted buoy contour can be considered as the buoy edge contour obtained by the fitting algorithm based on the edge detection result. This contour can be used to further determine the shape and state of the buoy.

[0212] Among them, the preset severity level can be considered as a pre-set standard for judging the severity of the tilt phenomenon of the buoy; by setting different tilt angle thresholds, the tilt phenomenon is divided into different severity levels, such as slight tilt, moderate tilt and severe tilt.

[0213] Specifically, first, fit the contour of the part of the buoy that is exposed above the water surface; by applying a mathematical fitting algorithm, a smooth and continuous buoy contour curve can be obtained; this helps to eliminate noise and interference in the image and improve the accuracy of subsequent analysis; after fitting, determine the highest and lowest points of the buoy contour after fitting; these two points represent the highest and lowest positions of the buoy above the water surface, respectively; then, establish a two-dimensional coordinate system; in this coordinate system, the water surface is set as the x-axis, and the direction perpendicular to the water surface is set as the y-axis; through this coordinate system, the contour and position information of the buoy can be converted into mathematical points and lines, which is convenient for quantitative analysis.

[0214] Based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point; the slope of this straight line reflects the degree of inclination of the buoy on the water surface; next, the angle between this straight line and the x-axis in the two-dimensional coordinate system is calculated to obtain the inclination angle of the buoy; this angle is a specific value that can intuitively reflect the severity of the buoy's inclination; finally, the calculated inclination angle is matched with the preset severity level; based on the matching results, the severity of the current buoy tilt phenomenon can be determined, and corresponding measures can be taken to deal with it.

[0215] Through the solution provided in this embodiment, the tilt phenomenon of the buoy image is analyzed based on the image processing method, which can accurately and quickly determine the severity of the tilt phenomenon; at the same time, through real-time monitoring and analysis of the buoy's tilt phenomenon, the position and posture of the buoy can be discovered and corrected in time to ensure that it maintains a stable measurement state in water area flow monitoring, thereby reducing measurement errors and data anomalies caused by the buoy's tilt, and improving the overall performance of the water area flow warning system.

[0216] In some embodiments, the buoy image is identified, and based on the identification result, it is determined whether there is an obstruction in addition to the buoy. If there is an obstruction, the buoy image is preprocessed to obtain a preprocessed image. Feature extraction is performed on the preprocessed image to obtain buoy features and obstruction features. Based on a classifier, the buoy is separated from the obstruction according to the buoy features and obstruction features to obtain a separated image.

[0217] Among them, the covering can be considered as the material or object covering or blocking the buoy or other objects, such as algae, garbage, etc., which may affect the normal operation of the buoy or the measurement accuracy. The preprocessed image can be considered as a series of preprocessing operations on the buoy image before feature extraction or classification, such as denoising, enhancement, etc., to improve the image quality and the accuracy of subsequent processing.

[0218] Among them, buoy features can be considered as some significant characteristics or attributes of the buoy itself, such as shape, color, and size. These features can be used to identify and classify buoys. Cover features can be considered as the characteristics of the material or object covering the buoy, such as color, texture, shape, etc. These features help to identify the type and source of the cover. The classifier can be considered as a model based on machine learning or deep learning, which can recognize and distinguish the characteristics of buoys and covers after training.

[0219] Among them, the separated image can be considered as separating the buoy and the covering from the original image through image processing technology, thereby obtaining an image containing only the buoy or only the covering, which is convenient for subsequent analysis and processing.

[0220] Specifically, first, the buoy image is identified, and an image recognition algorithm is applied to determine whether there is an obstruction in the buoy image in addition to the buoy; if the recognition result shows that there is an obstruction in the buoy image, the image is then preprocessed; the purpose of preprocessing is to eliminate noise and interference in the image and improve the accuracy of subsequent feature extraction; preprocessing may include filtering, smoothing, contrast enhancement and other operations, and the specific method is selected according to the type and characteristics of the obstruction.

[0221] After preprocessing, the image is subjected to feature extraction. By applying the feature extraction algorithm, the respective features of the buoy and the obstruction can be extracted respectively. These features may include information on shape, color, texture, etc., which will help to distinguish the buoy and the obstruction in the subsequent classification and separation process.

[0222] Finally, the buoy and the covering object are separated based on the classifier. Through the processing of the classifier, a separated image is obtained, in which the buoy and the covering object are clearly separated. After obtaining the separated image, the separated image is binarized, edge detected and other operations are performed according to the previous steps, and finally the area of ​​the buoy exposed above the water surface is obtained.

[0223] Through the solution provided in this embodiment, based on the feature extraction method, the problem of the presence of obstructions in the buoy image is successfully solved; noise and interference are eliminated through preprocessing to improve the accuracy of feature extraction; through the application of feature extraction and classifiers, the buoy and the obstruction are effectively separated; in this way, not only the accuracy of the measurement of the area of ​​the buoy exposed above the water surface is improved, but also more reliable data support is provided for the water flow warning system.

[0224] In some embodiments, when it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or that the buoy is tilted, the spectral camera is controlled to collect spectral images of the area where the buoy is located to obtain a spectral image; based on the spectral image, the area where the buoy is located is checked; based on the checking results, the external reasons for the abnormal height of the portion of the buoy protruding from the water surface and / or the tilt of the buoy are determined; based on the external reasons, the corresponding adjustment tools and the corresponding number of adjustment personnel are determined; based on the adjustment tools and the number of adjustment personnel, a treatment plan is formulated.

[0225] The drone contains a spectral camera. A spectral camera can be considered as a camera that can obtain spectral information of an object. It is used to obtain spectral images of the buoy and its surroundings, which helps to analyze the working environment of the buoy and possible influencing factors. Spectral images can be considered as images captured by a spectral camera, which contain rich spectral information and can be used to analyze the properties and status of the buoy and its surroundings.

[0226] Among them, the investigation results can be considered as the results of the abnormal cause of the buoy through the investigation and analysis of factors such as buoys, water quality, waves, etc., which provide a basis for subsequent processing. External causes can be considered as external factors that cause buoy abnormalities, such as entanglement of water plants and algae, changes in water quality, and wave effects. These factors are usually related to the working environment of the buoy.

[0227] Specifically, when it is determined through image processing analysis that the height of the part of the buoy exposed above the water surface is abnormal, or the buoy is tilted, the drone carrying the spectral camera is controlled to collect comprehensive spectral images of the area where the buoy is located to obtain detailed information about the water quality, bottom quality, and surrounding environment;

[0228] Next, the area where the buoy is located is carefully checked based on the collected spectral images; by comparing the spectral characteristics of different areas, abnormal factors that may exist around the buoy are discovered, such as excessive growth of aquatic plants and algae, abnormal water flow, changes in bottom sediments, and accumulation of pollutants.

[0229] Based on the investigation results, the external reasons that led to the abnormal state of the buoy are further determined; these reasons may include excessively lush aquatic plants and algae that entangle the buoy, causing the buoy to have abnormal height or tilt, unstable support for the buoy due to soft bottom soil, and pollutants attaching to affect the buoy's buoyance.

[0230] After the external causes are identified, the corresponding treatment plan is determined based on the external causes; including determining the adjustment tools to be used (such as salvage tools, cleaning equipment, etc.), the number of personnel to be mobilized, and the specific operating steps.

[0231] Through the solution provided in this embodiment, based on the spectral camera and the corresponding data processing method, the abnormal state of the buoy is deeply analyzed and processed, and more information about the area where the buoy is located is obtained, so as to more accurately determine the cause of the abnormal state of the buoy, and formulate a more effective treatment plan to improve the accuracy and efficiency of water flow monitoring.

[0232] In some embodiments, after the buoy is processed, the buoy is re-inspected; based on the re-inspection results, it is determined whether the buoy has returned to normal; if it has not returned to normal, the underwater robot is controlled to explore the buoy underwater; based on the exploration results, the cause of the buoy itself is determined; based on the cause itself, the treatment plan is adjusted to obtain an adjusted treatment plan; based on the adjusted treatment plan, the underwater robot is controlled to make a second adjustment to the buoy.

[0233] The water area flow warning device includes an underwater robot.

[0234] Among them, the underwater robot can be considered as a robot device that can operate and work underwater, and is used to re-inspect, explore and adjust the buoy to ensure the normal operation of the buoy. The re-inspection result can be considered as the result of a re-inspection by an underwater robot or other means after the initial treatment of the buoy, which is used to determine whether the buoy has returned to normal. The internal reasons can be considered as the internal factors that cause the buoy to be abnormal, such as holes in the buoy, damaged components, aging, etc.

[0235] Among them, the secondary adjustment can be considered as the second adjustment or repair operation of the buoy based on the re-inspection results and the analysis of its own reasons, which aims to completely solve the problems existing in the buoy.

[0236] Specifically, after the buoy is processed, in order to ensure that the buoy has completely recovered to normal, the buoy is re-inspected to verify whether the buoy has recovered to a normal working state;

[0237] If the re-inspection results show that the buoy has not returned to normal, further underwater exploration will be carried out using an underwater robot. Through the exploration of the underwater robot, detailed status information of the buoy itself can be obtained, including the integrity and connection status of each component, so as to determine the reasons why the buoy has not returned to normal.

[0238] According to the reasons found by the underwater robot, the previous treatment plan is adjusted and a more accurate and effective treatment plan is formulated; finally, the underwater robot is controlled to make a second adjustment to the buoy according to the adjusted treatment plan to ensure that the buoy can fully recover to normal working condition.

[0239] Through the solution provided in this embodiment, underwater exploration based on an underwater robot can obtain detailed status information of the buoy itself, so as to more accurately determine the cause of the buoy abnormality; at the same time, based on the secondary adjustment of the underwater robot, it is ensured that the buoy is thoroughly repaired to avoid further abnormalities caused by improper handling.

[0240] Figure 3 A schematic diagram of a water area flow warning system based on data analysis is provided in one embodiment of the present application, such as Figure 3 As shown, the water area flow warning system 300 based on data analysis of this embodiment includes a measurement module 301, a height judgment module 302, an image acquisition module 303, a tilt judgment module 304, and a plan formulation module 305.

[0241] The measuring module 301 is used to control the ultrasonic rangefinder to measure the height of the part of the buoy protruding from the water surface, and obtain the height of the part of the buoy protruding from the water surface; compare the height of the part of the buoy protruding from the water surface with a preset height range to determine whether the height of the part of the buoy protruding from the water surface is normal;

[0242] The height judgment module 302 is used to determine that the height of the part of the buoy protruding from the water surface is abnormal if the height of the part of the buoy protruding from the water surface is not within a preset height range, formulate a corresponding treatment plan according to the height of the part of the buoy protruding from the water surface, and adjust the buoy according to the treatment plan so that the buoy can give a normal warning;

[0243] The image acquisition module 303 is used to determine that the height of the part of the buoy protruding from the water surface is normal if the height of the part of the buoy protruding from the water surface is within a preset height range, and control the image acquisition device to acquire an image of the area where the buoy is located to obtain an image of the buoy;

[0244] The tilt determination module 304 is used to process and analyze the buoy image to obtain the area of ​​the buoy exposed above the water surface; compare the area of ​​the buoy exposed above the water surface with a preset area range, and determine whether the buoy is tilted according to the comparison result;

[0245] The plan formulation module 305 is used to determine that the buoy is tilted if the area of ​​the buoy exposed above the water surface is not within a preset area range; analyze the tilt phenomenon based on the buoy image to determine the severity of the tilt phenomenon, formulate a corresponding treatment plan based on the severity of the tilt phenomenon of the buoy, and adjust the buoy based on the treatment plan to enable the buoy to issue a normal warning.

[0246] Optionally, the measuring module 301 is specifically used for:

[0247] Controlling the wave monitor to perform wave detection on the area where the buoy is located to obtain wave period data;

[0248] According to the wave cycle data, a number of wave data are obtained; by comparing the wave data, the most stable wave data is determined;

[0249] Determining a first optimal measurement time point of the most stable wave data according to the most stable wave data;

[0250] According to the first optimal measurement time point, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, to obtain first height measurement data at the first optimal measurement time point;

[0251] The first height measurement data is determined as the height of the portion of the buoy protruding from the water surface.

[0252] Optionally, the measuring module 301 is specifically used for:

[0253] Controlling the turbidity meter to measure the water body in the area where the buoy is located to obtain the turbidity of the water body; comparing the turbidity of the water body with the preset turbidity;

[0254] If the turbidity of the water body is greater than the preset turbidity, the laser rangefinder is activated and the ultrasonic rangefinder is turned off;

[0255] The laser rangefinder is used to measure the height of the portion of the buoy exposed above the water surface to obtain laser measurement data; and the laser measurement data is determined as the first height measurement data.

[0256] Optionally, the water area flow warning system 300 based on data analysis further includes a data judgment module 306, which is used to:

[0257] Determine the second best measurement time points of the remaining wave data according to the wave data to obtain a plurality of second best measurement time points;

[0258] According to the plurality of second optimal measurement time points, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, determining second height measurement data of the plurality of second optimal measurement time points, and obtaining a plurality of second height measurement data;

[0259] According to the first height measurement data, presetting a fixed ratio of the first height measurement data as a standard deviation; and determining an expansion multiple according to the standard deviation;

[0260] The upper limit of the extension range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extension multiple, with specific reference to the following formula:

[0261] ;

[0262] in, Indicates the upper limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0263] The lower limit of the extended range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extended multiple, with specific reference to the following formula:

[0264] ;

[0265] in, Indicates the lower limit of the extended range, represents the first height measurement data, Indicates the expansion multiple, represents standard deviation;

[0266] Obtaining an extended range of the first height measurement data according to an upper limit of the extended range and a lower limit of the extended range;

[0267] Comparing the plurality of second height measurement data with the extended range respectively to determine whether the first height measurement data is accurate;

[0268] If the plurality of second height measurement data are within the extended range, determining that the first height measurement data is accurate;

[0269] If the plurality of second height measurement data are not within the extended range, determining that the first height measurement data is inaccurate;

[0270] If it is determined that the first height measurement data is inaccurate, an average value is calculated based on the plurality of second height measurement data, and the average value is determined as the height of the portion of the buoy protruding from the water surface.

[0271] Optionally, the tilt determination module 304 is specifically configured to:

[0272] Binarizing the buoy image to obtain a binary image;

[0273] Performing edge detection on the binary image to obtain an edge detection result;

[0274] According to the edge detection result, the outline of the part of the buoy exposed above the water surface is extracted;

[0275] The area of ​​the buoy protruding from the water surface is obtained according to the binary image and the contour of the part of the buoy protruding from the water surface.

[0276] Optionally, the plan formulation module 305 is specifically used to:

[0277] Fitting the contour of the portion of the buoy protruding from the water surface to obtain a fitted buoy contour;

[0278] According to the fitted buoy profile, determining the highest point of the fitted buoy profile and the lowest point of the fitted buoy profile;

[0279] Establish a two-dimensional coordinate system with the water surface as the x-axis and the direction perpendicular to the water surface as the y-axis;

[0280] Based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point;

[0281] Calculating the angle between the straight line and the x-axis in the two-dimensional coordinate system to obtain the inclination angle of the buoy;

[0282] The tilt angle is matched with a preset severity level, and the severity of the tilt phenomenon is determined according to the matching result.

[0283] Optionally, the tilt determination module 304 is specifically configured to:

[0284] Recognize the buoy image, and determine whether there is a covering object other than the buoy in the buoy image according to the recognition result;

[0285] If there is a covering object, the buoy image is preprocessed to obtain a preprocessed image;

[0286] Performing feature extraction on the preprocessed image to obtain buoy features and covering features;

[0287] Based on the classifier, the buoy is separated from the covering object according to the features of the buoy and the features of the covering object to obtain a separated image.

[0288] Optionally, the plan formulation module 305 is specifically used to:

[0289] When it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or the buoy is tilted, controlling the spectral camera to collect a spectral image of the area where the buoy is located to obtain a spectral image;

[0290] According to the spectral image, the area where the buoy is located is checked;

[0291] According to the results of the investigation, it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or there are external reasons for the buoy to be tilted;

[0292] Determine the corresponding adjustment tools and the corresponding number of adjustment personnel according to the external reasons;

[0293] A treatment plan is formulated based on the adjustment tools and the number of people to be adjusted.

[0294] Optionally, the water area flow warning system 300 based on data analysis further includes a recheck module 307, which is used to:

[0295] After processing the buoy, re-inspecting the buoy;

[0296] According to the re-inspection result, judging whether the buoy has returned to normal;

[0297] If it does not return to normal, controlling the underwater robot to detect the buoy underwater;

[0298] Determine the cause of the buoy failure according to the detection results;

[0299] Adjust the treatment plan according to your own reasons and get the adjusted treatment plan;

[0300] According to the processing scheme after the adjustment, the underwater robot is controlled to perform a secondary adjustment on the buoy.

[0301] The water area flow warning system based on data analysis of this embodiment can be used to execute the method of any of the above embodiments. Its implementation principles and technical effects are similar and will not be repeated here.

Claims

1. A water area flow early warning method based on data analysis, characterized in that: Applied to a water area flow warning device, the water area flow warning device comprises a drone and a server, the drone comprises an ultrasonic rangefinder and an image acquisition device, the water area flow warning method based on data analysis is applied to the server, and the method comprises: Controlling the ultrasonic rangefinder to measure the height of the portion of the buoy protruding from the water surface to obtain the height of the portion of the buoy protruding from the water surface; comparing the height of the portion of the buoy protruding from the water surface with a preset height range to determine whether the height of the portion of the buoy protruding from the water surface is normal; If the height of the part of the buoy protruding from the water surface is not within the preset height range, it is determined that the height of the part of the buoy protruding from the water surface is abnormal, and a treatment plan is formulated according to the height of the part of the buoy protruding from the water surface, and the buoy is adjusted according to the treatment plan so that the buoy can give a normal warning; If the height of the part of the buoy protruding from the water surface is within a preset height range, it is determined that the height of the part of the buoy protruding from the water surface is normal, and the image acquisition device is controlled to acquire an image of the area where the buoy is located to obtain an image of the buoy; Processing and analyzing the buoy image to obtain the area of ​​the buoy exposed above the water surface; comparing the area of ​​the buoy exposed above the water surface with a preset area range, and judging whether the buoy is tilted according to the comparison result; If the area of ​​the buoy exposed above the water surface is not within the preset area range, it is determined that the buoy is tilted; the tilt phenomenon is analyzed according to the buoy image to determine the severity of the tilt phenomenon, a treatment plan is formulated according to the severity of the tilt phenomenon of the buoy, and the buoy is adjusted according to the treatment plan to enable the buoy to give a normal warning; The drone further comprises a wave monitor, and the controlling the ultrasonic rangefinder to measure the height of the portion of the buoy protruding from the water surface to obtain the height of the portion of the buoy protruding from the water surface comprises: Controlling the wave monitor to perform wave detection on the area where the buoy is located to obtain wave period data; According to the wave cycle data, a number of wave data are obtained; by comparing the wave data, the most stable wave data is determined; Determining a first optimal measurement time point of the most stable wave data according to the most stable wave data; According to the first optimal measurement time point, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, to obtain first height measurement data at the first optimal measurement time point; Determine the first height measurement data as the height of the portion of the buoy protruding from the water surface; The method further comprises: Determine the second best measurement time points of the remaining wave data according to the wave data to obtain a plurality of second best measurement time points; According to the plurality of second optimal measurement time points, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, determining second height measurement data of the plurality of second optimal measurement time points, and obtaining a plurality of second height measurement data; According to the first height measurement data, presetting a fixed ratio of the first height measurement data as a standard deviation; and determining an expansion multiple according to the standard deviation; The upper limit of the extension range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extension multiple, with specific reference to the following formula: ; in, represents the upper limit of the extended range, h represents the first height measurement data, k represents the extension multiple, and s represents the standard deviation; The lower limit of the extended range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extended multiple, with specific reference to the following formula: ; in, represents the lower limit of the extended range, h represents the first height measurement data, k represents the extension multiple, and s represents the standard deviation; Obtaining an extended range of the first height measurement data according to an upper limit of the extended range and a lower limit of the extended range; Comparing the plurality of second height measurement data with the extended range respectively to determine whether the first height measurement data is accurate; If the plurality of second height measurement data are within the extended range, determining that the first height measurement data is accurate; If the plurality of second height measurement data are not within the extended range, determining that the first height measurement data is inaccurate; If it is determined that the first height measurement data is inaccurate, an average value is calculated based on the plurality of second height measurement data, and the average value is determined as the height of the portion of the buoy protruding from the water surface.

2. The method according to claim 1, characterized in that The drone further comprises a laser rangefinder and a turbidity meter. According to the first optimal measurement time point, the ultrasonic rangefinder is controlled to measure the height of the portion of the buoy exposed above the water surface, and the first height measurement data at the first optimal measurement time point is obtained, including: Controlling the turbidity meter to measure the water body in the area where the buoy is located to obtain the turbidity of the water body; comparing the turbidity of the water body with the preset turbidity; If the turbidity of the water body is greater than the preset turbidity, the laser rangefinder is activated and the ultrasonic rangefinder is turned off; The laser rangefinder is used to measure the height of the portion of the buoy exposed above the water surface to obtain laser measurement data; and the laser measurement data is determined as the first height measurement data.

3. The method according to claim 1, characterized in that The buoy image is processed and analyzed to obtain the area of ​​the buoy exposed above the water surface, including: Binarizing the buoy image to obtain a binary image; Performing edge detection on the binary image to obtain an edge detection result; According to the edge detection result, the outline of the part of the buoy exposed above the water surface is extracted; The area of ​​the buoy protruding from the water surface is obtained according to the binary image and the contour of the part of the buoy protruding from the water surface.

4. The method according to claim 3, characterized in that Analyzing the tilt phenomenon according to the buoy image to determine the severity of the tilt phenomenon includes: Fitting the contour of the portion of the buoy protruding from the water surface to obtain a fitted buoy contour; According to the fitted buoy profile, determining the highest point of the fitted buoy profile and the lowest point of the fitted buoy profile; Establish a two-dimensional coordinate system with the water surface as the x-axis and the direction perpendicular to the water surface as the y-axis; Based on the two-dimensional coordinate system, a straight line representing the direction of the buoy is determined according to the highest point and the lowest point; Calculating the angle between the straight line and the x-axis in the two-dimensional coordinate system to obtain the inclination angle of the buoy; The tilt angle is matched with a preset severity level, and the severity of the tilt phenomenon is determined according to the matching result.

5. The method according to claim 4, characterized in that The processing and analyzing of the buoy image to obtain the area of ​​the buoy exposed above the water surface includes: Recognize the buoy image, and determine whether there is a covering object other than the buoy in the buoy image according to the recognition result; If there is a covering object, the buoy image is preprocessed to obtain a preprocessed image; Performing feature extraction on the preprocessed image to obtain buoy features and covering features; Based on the classifier, the buoy is separated from the covering object according to the features of the buoy and the features of the covering object to obtain a separated image.

6. The method according to claim 1, characterized in that The drone includes a spectral camera, and the processing scheme includes: When it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or the buoy is tilted, controlling the spectral camera to collect a spectral image of the area where the buoy is located to obtain a spectral image; According to the spectral image, the area where the buoy is located is checked; According to the results of the investigation, it is determined that the height of the portion of the buoy protruding from the water surface is abnormal, and / or there are external reasons for the buoy to be tilted; Determine the corresponding adjustment tools and the corresponding number of adjustment personnel according to the external reasons; A treatment plan is formulated based on the adjustment tools and the number of people to be adjusted.

7. The method according to claim 6, characterized in that The water area flow warning device includes an underwater robot, and the method further includes: After processing the buoy, re-inspecting the buoy; According to the re-inspection result, judging whether the buoy has returned to normal; If it does not return to normal, controlling the underwater robot to detect the buoy underwater; Determine the cause of the buoy failure according to the detection results; Adjust the treatment plan according to your own reasons and get the adjusted treatment plan; According to the processing scheme after the adjustment, the underwater robot is controlled to perform a secondary adjustment on the buoy.

8. A water area flow warning system based on data analysis, characterized in that: include: A measuring module is used to control the ultrasonic rangefinder to measure the height of the portion of the buoy protruding from the water surface, so as to obtain the height of the portion of the buoy protruding from the water surface; Comparing the height of the portion of the buoy protruding from the water surface with a preset height range to determine whether the height of the portion of the buoy protruding from the water surface is normal; A height judgment module is used to determine that the height of the part of the buoy protruding from the water surface is abnormal if the height of the part of the buoy protruding from the water surface is not within a preset height range, formulate a corresponding treatment plan according to the height of the part of the buoy protruding from the water surface, and adjust the buoy according to the treatment plan so that the buoy can give a normal warning; An image acquisition module, for determining that the height of the portion of the buoy protruding from the water surface is normal if the height of the portion of the buoy protruding from the water surface is within a preset height range, and controlling the image acquisition device to acquire an image of the area where the buoy is located to obtain an image of the buoy; The tilt judgment module is used to process and analyze the buoy image to obtain the area of ​​the buoy exposed above the water surface; compare the area of ​​the buoy exposed above the water surface with a preset area range, and judge whether the buoy is tilted according to the comparison result; A plan formulation module, for determining that the buoy is tilted if the area of ​​the buoy exposed above the water surface is not within a preset area range; Analyze the tilt phenomenon according to the buoy image to determine the severity of the tilt phenomenon, formulate a corresponding treatment plan according to the severity of the tilt phenomenon of the buoy, and adjust the buoy according to the treatment plan so that the buoy can give a normal warning; The measuring module is specifically used for: Control the wave monitor to detect the wave in the area where the buoy is located to obtain the wave period data; According to the wave cycle data, a number of wave data are obtained; by comparing the wave data, the most stable wave data is determined; Determining a first optimal measurement time point of the most stable wave data according to the most stable wave data; According to the first optimal measurement time point, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, to obtain first height measurement data at the first optimal measurement time point; Determine the first height measurement data as the height of the portion of the buoy protruding from the water surface; The system also includes a data judgment module, which is used to: Determine the second best measurement time points of the remaining wave data according to the wave data to obtain a plurality of second best measurement time points; According to the plurality of second optimal measurement time points, controlling the ultrasonic rangefinder to measure the height of the portion of the buoy exposed above the water surface, determining second height measurement data of the plurality of second optimal measurement time points, and obtaining a plurality of second height measurement data; According to the first height measurement data, presetting a fixed ratio of the first height measurement data as a standard deviation; and determining an expansion multiple according to the standard deviation; The upper limit of the extension range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extension multiple, with specific reference to the following formula: ; in, represents the upper limit of the extended range, h represents the first height measurement data, k represents the extension multiple, and s represents the standard deviation; The lower limit of the extended range of the first height measurement data is determined according to the standard deviation, the first height measurement data, and the extended multiple, with specific reference to the following formula: ; in, represents the lower limit of the extended range, h represents the first height measurement data, k represents the extension multiple, and s represents the standard deviation; Obtaining an extended range of the first height measurement data according to an upper limit of the extended range and a lower limit of the extended range; Comparing the plurality of second height measurement data with the extended range respectively to determine whether the first height measurement data is accurate; If the plurality of second height measurement data are within the extended range, determining that the first height measurement data is accurate; If the plurality of second height measurement data are not within the extended range, determining that the first height measurement data is inaccurate; If it is determined that the first height measurement data is inaccurate, an average value is calculated based on the plurality of second height measurement data, and the average value is determined as the height of the portion of the buoy protruding from the water surface.