Intelligent sensing method and system for urban waterlogging characteristics

The intelligent perception method for urban water accumulation features, which uses multi-scale, multi-directional texture modeling and non-negative soft combination representation, solves the problems of insufficient monitoring range and accuracy in existing technologies. It achieves stable water accumulation depth estimation and spatial range determination in complex urban environments, reduces deployment costs, and improves monitoring coverage.

CN123142175APending Publication Date: 2026-11-20NORTH CHINA UNIV OF WATER RESOURCES & ELECTRIC POWER
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611615212.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-19
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies for urban waterlogging monitoring have limitations such as limited coverage, high deployment costs, difficulty in meeting the needs of large-scale, rapid, and dynamic monitoring in complex urban scenarios, and difficulty in outputting quantifiable absolute water depth values, thus failing to meet the centimeter-level accuracy requirements for urban flooding early warning.

Method used

An intelligent perception method for urban water accumulation features based on multi-scale and multi-directional texture modeling is adopted. By using the non-negative soft combination representation of six types of standard vehicle geometric bases and the pixel loss rate monotonic calibration function library of imaging parameter gridding, combined with slice contour visibility determination, the method can stably estimate the water accumulation depth from monocular images and extend it to the spatial water accumulation range.

Benefits of technology

It achieves stable centimeter-level absolute water depth estimation under different vehicle models, shooting angles, and water depths, maintains effective output rate under high water levels, and can determine the water accumulation range corresponding to the preset water depth threshold in local water accumulation areas, thereby reducing deployment costs and improving monitoring coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142175A_ABST
    Figure CN123142175A_ABST
Patent Text Reader

Abstract

The application discloses a kind of urban waterlogging feature intelligent sensing method and system, belong to computer vision and wisdom city monitoring technical field.For the problems of existing vehicle reference type water depth estimation vehicle type mismatch, poor view angle adaptability, high water level failure rate and difficult to expand to spatial range, a six-class standard vehicle type-based inversion and range determination scheme is proposed: the target vehicle is represented as the non-negative soft combination of six-class standard vehicle type, the visible contour pixel contribution of each vehicle type is combined according to the combination weight, a combination pixel loss function that monotonically increases with water depth is constructed, and the scale-corrected observation pixel loss is substituted into the inversion to obtain continuous absolute water depth;Combined with the ground reference position and regional ground elevation, when the local water surface is processed as a horizontal plane, the corresponding waterlogging range is output through grid expansion, connected search and water depth threshold screening.This application endogenously incorporates vehicle type differences and imaging posture changes into water depth mapping, and reuses existing camera to monitor urban waterlogging at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and smart city monitoring technology, specifically to an intelligent perception method and system for urban waterlogging characteristics based on multi-scale and multi-directional texture modeling, vehicle recognition, multi-parameter matching, flooding ratio mapping, and ground elevation threshold determination. Background Technology

[0002] Urban flooding is a common disaster type under extreme rainfall conditions. Rapidly and accurately obtaining information on road floodwater depth is of great value for urban traffic management, emergency response, and public safety early warning. Urban floodwater monitoring is mainly applied in the following scenarios: Firstly, real-time water level monitoring of low-lying areas and underpasses in urban roads is used to trigger traffic control and closure measures. Secondly, the dynamic road condition assessment of the intelligent transportation system provides navigation platforms and emergency vehicles with a basis for planning passable routes; Third, the urban flood control and drainage command platform's disaster assessment assists management departments in scheduling pumping stations and deploying rescue forces. In the above scenarios, the coverage, deployment cost, response speed, and measurement accuracy of monitoring methods directly determine their actual effectiveness.

[0003] Traditional methods of waterlogging monitoring mainly include manual water level readings, fixed pressure or ultrasonic water level sensors, and vehicle-mounted or airborne lidar measurements. These methods can provide high-precision water level data at specific locations, but they share common drawbacks such as limited coverage, high deployment costs, and difficulty in meeting the needs of large-scale, rapid, and dynamic monitoring in complex urban scenarios.

[0004] With the widespread deployment of urban surveillance cameras, using existing video surveillance images to estimate water depth has become a technological approach with significant cost advantages and coverage potential. Therefore, researching water depth estimation methods based on ordinary surveillance images is of great significance for reducing the cost of urban flood monitoring and expanding monitoring coverage.

[0005] Image-based water depth estimation techniques have long evolved along the path of "reference object mask segmentation + direct geometric scale conversion + reference object category prior." Early forms of this approach relied on reference objects such as pedestrians, curbs, and traffic facilities for coarse estimation of water depth, or simply performed discrete-level classification of water depth. Water level gauge identification methods used manually placed scales as references, but these had low coverage and inconsistent standards. Even after the introduction of deep learning technology, the main technological advancements in this field have focused on implementing the aforementioned old framework. Chinese invention patent application CN109816040A discloses a method for segmenting the visible part of a vehicle obscured by water using MaskR-CNN and outputting the vehicle model, using a generative adversarial network to complete the complete vehicle image, and calculating the water depth by multiplying the ratio of the missing to the complete height by the typical height of the vehicle model. Sazara et al. published a method in the Journal of Big Data Analytics in Transportation (Vol. 4, 2022, pp. 85-101) that uses YOLO to detect wheels and the edge of the water surface under the side-view assumption, approximates the wheels as ellipses, and calculates the water depth based on the ratio of submersion depth to tire height. Park et al. published a method in the Journal of Computing in Civil Engineering (Vol. 35, No. 2, 2021, Article No. 04020072, their earlier work can be found in the 2019 Creative Construction Conference paper) that uses Mask R-CNN to segment submerged vehicles, matches 44 discrete horizontal view renderings generated by a single 3D vehicle model with the cosine distance of VGG Nets feature map, and estimates water depth using the pixel height difference of the whole vehicle under the same width condition. Chinese invention patent application CN118691838A discloses a method for processing various reference objects such as vehicles, pedestrians, curbs and lampposts using a multi-reference object and water accumulation relationship segmentation model, calculating the submersion height according to the width-to-height ratio of mask pixels, and correcting the depth difference between images before and after water accumulation. Another method, based on camera pose and physical refraction models, calculates water depth by performing refraction correction using physical refraction models and 3D point cloud processing. These points constitute the main thread of technological development in this field.

[0006] Existing discrete classification methods based on traditional reference objects rely on reference objects such as pedestrians, curbs, and traffic facilities for rough estimation, or only output level labels such as "no water accumulation," "slight water accumulation," or "severe water accumulation," making it difficult to output quantifiable absolute water depth values ​​and failing to meet the centimeter-level accuracy requirements of urban flood warnings.

[0007] Manual inspections and water level readings have long been based on an estimation model that relies on the human eye as the sole benchmark. When the images were transformed, the old approach of "finding reference objects and classifying levels" was naturally inherited. The level classification has the lowest requirements for hardware and algorithms, which allows this model to continue.

[0008] Existing technologies focus on the relationship between "whether a reference object is exposed above the water surface" and the degree of water accumulation. Accordingly, this application changes the traditional estimation model, replacing discrete level judgment with a continuous pixel loss ratio, and establishes a calibration mapping from the loss ratio to the absolute water depth to adapt to the physical phenomenon that "the number of visible pixels changes continuously and monotonically with the water depth during the vehicle submersion process". It further refines the concept that "the pixel loss rate changes monotonically and nonlinearly with the water depth depending on the imaging attitude, and is composed of the superposition of visibility at different height levels". Although the description of this physical phenomenon is understandable after seeing it, it is the first time that this application has proposed it.

[0009] The incomplete-complete ratio method, represented by CN109816040A, uniquely classifies vehicles and then retrieves the typical height of the vehicle model. It then performs a single-step linear conversion based on the ratio of the incomplete height to the complete height. When the vehicle model does not match, the error increases significantly, and the reliability of the complete vehicle image generated by the adversarial network has not been fully verified.

[0010] After the deep learning segmentation technology matured, the new technology in this field implemented the existing metrology approach of "first determining a unique category, then looking up the size table, and finally converting it proportionally". The category table plus the proportional formula is a direct transplant of the water gauge reading mode to vehicle reference, and the vehicle model is assumed to be a strictly mutually exclusive discrete category.

[0011] Existing technologies focus on the connection between "unique vehicle category prior" and "linear ratio of pixel height". Correspondingly, this application changes the traditional inversion mode, replaces the hard matching of the unique category with the non-negative soft combination weight of the geometric basis of six standard vehicle categories, and replaces the single-step linear ratio with the monotonic calibration function of the imaging parameter gridding, so as to adapt to the objective law of the physical phenomenon that "real vehicle types are distributed on a continuous spectrum and the relationship between pixel loss and water depth is attitude-dependent monotonic nonlinear relationship".

[0012] The wheel ellipse scaling method, exemplified by Sazara et al., strictly limits the viewpoint near the side and fixes the camera pitch angle at 0°. Depth calculation is highly dependent on the local geometry of the wheel. When the wheel is largely submerged, the elliptical arc segment is insufficient, and the scaling calculation tends to saturate. When the wheel is completely submerged, the loss of a valid reference leads to a significant increase in failure rate in high-water scenes. Furthermore, calculating absolute water depth requires prior knowledge of the tire size. The wheel is the most regularly shaped component on a vehicle. Early computer vision had limited geometric fitting capabilities, and choosing an elliptical wheel as a reference was a natural starting point for simplifying complex vehicle bodies into regular shapes. The side-view assumption stemmed from the initial application conditions of vehicle-mounted and roadside cameras, which primarily used eye-level data acquisition. This simplification path has been consistently adopted in subsequent methods.

[0013] Existing technologies focus on the relationship between "local geometric features of the wheel" and water depth. Accordingly, this application changes the local reference mode, replacing the local reference of the wheel ellipse with the overall reference of the outermost contour of the slice along the vehicle height direction. The visibility of each layer is determined by the combined conditions of projection, normal, depth buffer and slice height, in order to adapt to the physical essence of the physical phenomenon "the visible part of the vehicle is nonlinearly reduced by the dual mechanisms of perspective occlusion and water submersion under high water levels" as extracted by the inventors.

[0014] The 3D rendering matching method represented by Park et al. only uses a single 3D vehicle model and does not consider the diversity of vehicle types in real scenes. It only discretizes the horizontal viewpoint and does not include the pitch angle and shooting distance as independent calibration variables in the mapping relationship between pixel loss and water depth. In the final inversion, it is compressed into the overall width and height information and does not retain the surface contour contribution of vehicle slices at different heights. Under high water level and large angle conditions, the error accumulation is obvious. Furthermore, when the vehicle model or projection does not match, the sample may be screened out and the effective output rate decreases.

[0015] 3D rendering image matching is a natural extension of image retrieval technology into water depth estimation. The retrieval paradigm requires that objects in the database be enumerable and indexable. Single vehicle type and discrete horizontal corner nodes are the minimum implementation of retrieval matching, while pitch angle and distance dimensions would exponentially expand the retrieval database, so they were omitted in early implementations and have been used.

[0016] Existing technologies focus on the relationship between "appearance similarity of the whole image" and water depth. Accordingly, this application changes the overall matching mode, first combining the layered contour contributions of six types of vehicle models according to soft combination weights and then inverting the water depth, and directly using the horizontal angle, pitch angle and shooting distance as parameter dimensions of the calibration function to adapt to the working mechanism of the physical phenomenon that "pixel loss rate is formed by the superposition of visibility of different height layers and changes systematically with imaging posture".

[0017] Although the multi-reference system method, represented by CN118691838A, recognizes the errors caused by differences in reference types and specifications and introduces cross-validation of multiple types of references, its references are heterogeneous combinations rather than continuous representations of the same type of vehicle model. It lacks a soft combination mechanism for vehicle models, the aspect ratio of mask pixels is still used in a direct conversion manner, there is no imaging pose calibration, and it requires obtaining images before water accumulation and running a depth estimation model, which limits the system complexity and deployment conditions.

[0018] The multi-reference scheme is a natural response to the exposure of single-reference error problems. The selection of heterogeneous references follows the metrological tradition of "each reference independently providing readings and then cross-validating them". This is the inertial direction of increasing redundancy within the existing framework in this field, rather than the direction of changing the way references are represented.

[0019] Existing technologies focus on the relationship between "cross-validation of readings from multiple heterogeneous reference objects" and water depth. Accordingly, this application changes the reference object combination mode, using a geometric basis of the same type composed of six standard vehicle models and its non-negative soft combination weights to uniformly represent any vehicle. It endogenizes the type differences into weight vectors rather than exogenizes them into multiple heterogeneous readings, in order to adapt to the essential property of the physical phenomenon that "vehicle appearance differences can be decomposed into a weighted superposition of finite geometric bases".

[0020] Other methods based on camera pose and physical refraction models, while considering viewpoint factors, rely on complex 3D point cloud acquisition and physical optics modeling, requiring high sensor configuration and computational resources. Furthermore, they lack a systematic pixel loss and water depth mapping calibration system for vehicles as reference objects, limiting their general deployment in urban scenarios. Simultaneously, existing vehicle-referenced image estimation methods are generally susceptible to variations in vehicle type, shooting angle, shooting distance, and lighting color interference, leading to significant differences in image appearance at the same flooding depth, making it difficult to establish a stable and unified water depth estimation relationship. Existing methods typically focus more on contour geometry or local regular geometry, while underutilizing vehicle texture, local structure, cross-vehicle similarity features, and multi-view calibration relationships. Internal differences within vehicle types and local appearance variations significantly impact recognition results, limiting their generalization ability in complex urban flooding scenarios.

[0021] In summary, the common technical logic of existing technologies for solving the problem of absolute water depth estimation based on monocular images is "mask segmentation of the visible part of the submerged reference object + direct proportional conversion between visible and complete geometric quantities + unique category prior of the reference object". It implies three technical assumptions: the reference object can be uniquely classified and the category corresponds to a unique standard size; there is a fixed proportional relationship between the image geometry and the actual size; and water depth inversion can be completed by single-step linear mapping.

[0022] The above assumptions do not hold true in real urban scenarios: real vehicle types are between categories or exceed the vehicle model library; changes in horizontal angle, pitch angle, and shooting distance systematically alter the ratio between pixels and actual size; and under high water conditions, the reduction of visible parts is non-linear and dominated by both occlusion and flooding mechanisms.

[0023] Furthermore, urban flood control requires not only knowing the water depth at the location of the target vehicle, but also understanding the boundary of the area where the water depth reaches the critical depth for traffic control, personnel evacuation, or rescue passage. Existing image water depth estimation based on vehicle reference mainly solves the continuous water depth inversion of a single target or local location, and its output is a point-based water depth result. There is still a lack of an effective way to combine this point-based result with the ground elevation, spatial connectivity, and preset water depth threshold of the area to be measured, and expand it into a spatially expressible water accumulation range.

[0024] Therefore, existing technologies do not provide guidance for transforming "classification plus direct proportional conversion" into "soft combination plus attitude calibration plus monotonic inversion". The field needs an intelligent perception method and system for urban waterlogging characteristics that can combine vehicle outer contour geometric information, texture feature information and multi-view calibration relationship, endogenously incorporate vehicle model differences and imaging attitude differences into the submersion ratio to absolute water depth mapping process, and output continuous absolute water depth data. Moreover, when the local water surface elevation of the corresponding local waterlogged area has been determined by at least one reference water surface elevation, it outputs the waterlogged range corresponding to the preset water depth threshold h_p. This method should maintain stable estimation accuracy and high effective output rate under different vehicle models, different shooting angles, different shooting distances and different water depths. Summary of the Invention

[0025] The purpose of this invention is to provide an intelligent perception method and system for urban waterlogging characteristics. This method overcomes the shortcomings of existing vehicle-referenced water depth estimation, which suffers from large vehicle mismatch errors, poor viewing angle adaptability, and reduced effective output rate at high water levels due to hard matching of a single vehicle model and direct conversion of fixed proportions, excluding vehicle model differences and imaging posture changes from the water depth mapping relationship. It also overcomes the insufficiency of point-based waterlogging depth results being difficult to combine with ground elevation and preset water depth thresholds to convert into spatial waterlogging range. This invention enables the stable mapping of vehicle submersion proportions to absolute waterlogging depth under conditions of uncertain vehicle type and variable imaging posture, and determines the waterlogging range corresponding to the preset water depth threshold h_p when the local water surface elevation of the corresponding local waterlogging area has been determined by at least one reference water surface elevation.

[0026] To achieve the above objectives, this invention provides an intelligent perception method for urban water accumulation features, comprising the following steps: acquiring an original vehicle water accumulation image 10 of the scene to be tested, providing a processing object for subsequent contour segmentation and parameter recognition; performing contour segmentation on the target vehicle in the original vehicle water accumulation image 10 to obtain the visible contour region of the target vehicle, and counting the number of pixels in the visible contour region to obtain the number of visible contour pixels a, providing an observation basis for water depth inversion; identifying the vehicle type combination weight w and imaging parameter Θ of the target vehicle, where the imaging parameter Θ represents the imaging posture when the target vehicle is photographed, and the vehicle type combination weight w is a non-negative six-dimensional weight that sums to 1, corresponding to six standard vehicle types in sequence, namely, van 301, A-class sedan 302, B-class sedan 303, small SUV 304, large SUV 305, and business MPV 306; and performing contour segmentation on the six pre-established standard vehicle types under imaging parameter Θ according to the vehicle type combination weight w. The visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) are weighted and combined to obtain the visible contour pixel contribution A_w(h;Θ) and the number of complete reference contour pixels A_w^full(Θ) of the combined vehicle. Based on the ratio of the visible contour pixel contribution A_w(h;Θ) to the number of complete reference contour pixels A_w^full(Θ), a combined pixel loss function x_w(h;Θ) that monotonically increases with the water depth h is constructed, x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ). The scale-corrected observation pixel loss x_obs is substituted into the combined pixel loss function x_w(h;Θ) for monotonic inversion to obtain the water depth estimate h^ of the scene under test, where the observation pixel loss x_obs=1-aκ² / A_w^full(Θ), and κ is the optimal linear scale ratio obtained by contour matching of the target vehicle contour and the standard vehicle contour.The method further includes a water accumulation range determination step S6: obtaining at least one water accumulation depth estimate (20) obtained from steps S1 to S5, the ground reference position of the target vehicle corresponding to each water accumulation depth estimate (20), and the ground elevation data of the area to be measured, and performing spatial matching; dividing the local water accumulation area according to the effective range of ground elevation, the road section to be measured, the known catchment area, or the preset spatial partition; under the condition that the local water surface is treated as a horizontal plane, determining the reference water surface elevation by the sum of the ground elevation of the corresponding ground reference position and the water accumulation depth estimate (20), and determining the reference water surface elevation by at least one reference water accumulation area within the same local water accumulation area. The local water surface elevation of the local water accumulation area is determined by the water surface elevation. The difference between the local water surface elevation and the ground elevation of each spatial grid in the area to be measured is set to zero after being negative to obtain the grid water accumulation depth estimate. Using the spatial grid mapped from each ground reference position as the seed, the candidate water accumulation areas are obtained by searching the spatial grids with a water accumulation depth estimate greater than 0 according to the four-neighbor connectivity relationship and without crossing the barrier boundary. The spatial grids in the candidate water accumulation area with a water accumulation depth estimate greater than the preset water depth threshold h_p are identified as water accumulation grids and their boundaries are extracted. The water accumulation range corresponding to the preset water depth threshold h_p is output, where h_p≥0 and includes 0.

[0027] This invention also provides an intelligent sensing system for urban waterlogging features, including a data acquisition module 100, a vehicle contour segmentation module 140, a vehicle response and attitude determination module 130, an attitude parameter output module 131, a combined contour construction and water depth inversion module 180, a water depth result output module 190, and a standard vehicle contour and calibration function library 110. The data acquisition module 100 is used to acquire original vehicle waterlogging images 10; the vehicle contour segmentation module 140 is used to perform contour segmentation on the target vehicle; the vehicle response and attitude determination module 130 is used to identify the vehicle response distribution and imaging attitude category of the target vehicle corresponding to six standard vehicle types on a multi-scale, multi-directional texture map; the attitude parameter output module 131 is used to output imaging parameters Θ; the combined contour construction and water depth inversion module 180 is used to obtain the vehicle combination weight w from the vehicle response distribution, and to perform a weighted combination of the visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) of the six pre-established standard vehicle types under imaging parameters Θ according to the vehicle combination weight w, to construct a combined contour construction and water depth inversion function library. The combined pixel loss function x_w(h;Θ) is monotonically increasing for water depth h, and the observed pixel loss x_obs is substituted into the combined pixel loss function x_w(h;Θ) for monotonic inversion to obtain the water depth estimate h^. The water depth result output module 190 is used to output the water depth estimate h^, and is also used to execute the water accumulation range determination step S6 when the ground elevation data of the area to be measured and the ground reference position of the target vehicle are obtained, and the local water surface elevation of the corresponding local water accumulation area has been determined by at least one reference water surface elevation. This step calculates the grid water depth estimate of each spatial grid, searches for candidate water accumulation areas in the corresponding local water accumulation area according to the four-neighbor connectivity relationship without crossing the boundary and barrier boundary of the local water accumulation area, filters the water accumulation grid according to the preset water depth threshold h_p and extracts the water accumulation range, and outputs the water depth estimate h^ and the corresponding water accumulation range together. The standard vehicle contour and calibration function library 110 is used to store the visible contour pixel contribution, complete contour pixels and pixel loss rate-water depth calibration function of six types of standard vehicle models under various imaging parameters.

[0028] The present invention has the following advantages: I. This method achieves a paradigm shift from "unique vehicle model hard matching" to "vehicle model soft combination representation," eliminating vehicle model mismatch errors. Existing water depth estimation methods based on vehicle references (CN109816040A) uniquely classify vehicles and then perform single-step conversion by vehicle model to look up the usual height, which significantly increases the error when there is a vehicle model mismatch. This method uses six standard vehicle models—van 301, A-class sedan 302, B-class sedan 303, small SUV 304, large SUV 305, and business MPV 306—as geometric basis. Through rank-1 nonnegative matrix decomposition, the vehicle model combination weight w is obtained from the nonnegative response matrix P, representing any target vehicle as a convex combination of the six standard vehicle model bases. What makes this method extraordinary is that real vehicle types are distributed on a continuous spectrum and are not strictly mutually exclusive discrete categories. This method follows this objective property, endogenizing type differences into weight vectors rather than exogenizing them into classification errors.

[0029] This mechanism breaks through the existing understanding that "the reference object must be uniquely determined" by representing "the reference object can be continuously combined," and is not a simple replacement of classification confidence, but a unique reconstruction of this invention. In the verification experiment of an unknown white sedan, the MAE reached 9.10 cm when analyzed by hard matching of a single sedan. This absolute mismatch error is direct evidence that the "unique category prior" assumption has failed. The non-negative matrix factorization soft combination reduced the MAE by about 47.5% compared with hard matching of a single sedan and about 34.5% compared with hard matching of a single SUV, directly proving the effectiveness of this mechanism for vehicles outside the database.

[0030] Second, a two-way locking structure of "combination before inversion" is implemented, enabling the soft combination mechanism to truly enter the inversion chain. In this method, the vehicle combination weight w acts on both the complete contour reference A_w^full(Θ) and the visible contour pixel contribution A_w(h;Θ) at each depth level. Combination and inversion share the same set of weights, forming a self-consistent closed loop.

[0031] This coupling structure differs from the approach of simply replacing weights with classification confidence scores and then looking up a table for a single vehicle model: if the combined weights are only used for classification decisions while the calibration function is still built for a single vehicle model, the oscillation of the weights at the category boundaries will be misaligned with the calibration function, thus amplifying the error. This structure eliminates this source of misalignment from a mechanistic perspective, which is the key difference between this invention and the "classification plus table lookup plus proportional" approach.

[0032] Third, it can still maintain its compensation capabilities and full output even when a single model is missing.

[0033] The six geometric basis classes exhibit redundant design: In the standard vehicle model retention experiment, after removing the A-class sedan 302, the non-negative combinations of the remaining five basis classes can still achieve an approximate representation, maintaining 100% effective output for 100 frames each at both the low and high watermark levels. This result demonstrates that the missing basis in the convex combination representation is a soft degradation rather than a hard failure, contrasting with the fragility of the "unique class prior" approach where missing classes result in unclassification. This provides direct evidence of the structural robustness of the soft combination approach and also confirms the redundancy of the aforementioned bidirectional locking loop.

[0034] Fourth, the imaging attitude is reconstructed from an "error source of post-correction" to a "parameter dimension of the calibration function" to achieve stable inversion under multi-view conditions.

[0035] Existing methods either fix the side-view assumption (using the wheel ellipse ratio method with a fixed pitch angle of 0°) or only discretize the horizontal viewpoint, excluding the pitch angle and shooting distance from the calibration (3D rendering matching method). This method directly uses the horizontal angle α, pitch angle β, and shooting distance d as the parameter dimensions of the calibration function. A hierarchical calibration function library is established offline using a 19×6×3 imaging parameter grid. Projection differences are directly baked into the function library, and the nonlinear relationship between pixel loss and water depth with attitude variation is accurately absorbed by the calibration process. In multi-view simulation experiments, when the pitch angle β increases from 0° to 60°, the MAE increase of this method is 46.6% (55 cm water depth) and 22.6% (35 cm water depth), significantly lower than the 134.5% and 92.7% of the comparison method one, demonstrating the adaptability of attitude parameterization to calibration mapping.

[0036] Fifth, a physical generation mechanism for pixel loss is established by combining slice contours with visibility determination, supporting effective output in high water level scenes.

[0037] This method sets 50 horizontal cutting planes 202 at 5 cm intervals on the 3D vehicle model, extracts the outermost contour 205 by finding intersections layer by layer, and counts the visible pixels at each height layer based on a joint judgment of projection conditions, normal vector conditions, depth buffer conditions, and slice height conditions. The pixel loss rate is accumulated layer by layer by the visibility of each height layer of the vehicle body. This mechanism expands the physical source of pixel loss from the local geometry of the wheels to the layered contours of the entire vehicle. When the wheels are completely submerged, the method does not rely on a single wheel but automatically switches to using effective slices at higher positions on the vehicle body for estimation, while the calibration mapping structure remains unchanged. In real-world high-water-level scene experiments, this method maintains a 100% effective output rate, while wheel ellipse-scale methods have a failure rate of 52%. Even after the wheels are largely submerged, this method can still maintain effective output for all frames and provide effective estimates. This advantage stems from modeling the physical essence of "the nonlinear reduction of visible parts under high water levels due to both perspective occlusion and water submersion," rather than modifying existing scaling formulas.

[0038] VI. Replace single-step linear scaling with attitude-dependent monotonic nonlinear calibration mapping to complete the route replacement from analytical formula to calibration inversion.

[0039] This method uses a combined pixel loss function x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ) to characterize the relationship between the submersion ratio and water depth. After ensuring monotonicity through ordinal regression and monotonically cubic Hermite interpolation, the estimated water depth h^ is obtained by monotonically inverting the observed pixel loss x_obs. The linear scaling implicitly assumes a fixed ratio between pixel geometry and actual size, which systematically fails under conditions of increased pitch angle and high water levels. The monotonically nonlinear mapping of this method does not rely on this assumption; the mapping relationship is entirely derived from the cumulative visibility calibration of the layered contours. Therefore, its applicability covers all working conditions from 1 / 4 wheel submersion to complete wheel submersion. This is the root cause of the method's error advantage: in real-world experiments, the MAE at low water levels is 4.37 cm, and at high water levels it is 6.37 cm, representing reductions of approximately 12.8% to 18.3% and 34.7% to 51.0% compared to the two comparative methods, respectively.

[0040] 7. Eliminate the actual size difference between the target vehicle and the standard model by contour matching and area square correction.

[0041] The actual dimensions of the target vehicle differ from those of the standard vehicle model. Directly calculating the pixel loss using the ratio of visible pixels to the number of pixels in the standard complete contour introduces systematic bias. This method solves for the optimal linear scale ratio κ through contour matching, and uses κ² to correct the area of ​​the visible pixel count a, thus normalizing the observed pixel loss x_obs to the pixel loss rate coordinate system of the combined vehicle model. This correction ensures that the soft combination mechanism maintains geometric consistency when processing real vehicles and is a necessary step to support the implementation of the aforementioned soft combination representation and monotonic calibration mapping in real vehicle scenarios.

[0042] 8. The stability of the recognition process under complex imaging conditions is ensured by employing shear wavelet texture enhancement and a multi-model recognition system. The shear wavelet transform module 120 performs a 4-scale, 8-direction transformation on the original vehicle flood image 10 to obtain 32 texture maps. Wheel rims, vehicle body boundaries, and local details are enhanced through separate channels, while the influence of unstable variables such as color, illumination, and water surface reflection is compressed. The four models for vehicle type recognition, horizontal angle, pitch angle, and shooting distance recognition are all trained and inferred on texture maps of a unified form. This system ensures the quality of the vehicle type response and non-negative response matrix P, thereby guaranteeing the input reliability of soft combination and attitude determination. It forms the recognition-side foundation for the generalization ability of the entire method in complex urban flood scenes.

[0043] 9. The exception handling mechanism ensures the availability of the output results and makes the uncertainty quantifiable.

[0044] This method sets specific processing rules for six types of anomalies: insufficient confidence in vehicle response, multiple vehicle overlap, excessively low visibility ratio, attitude exceeding the calibration range, complete wheel submersion, and water surface reflection interference. For insufficient confidence, the soft combination result is retained, and a low-confidence flag is output, or output is rejected. For multiple vehicle overlap, calculations are performed for each vehicle based on the instance flag, and the median is taken, retaining the dispersion as uncertainty. For excessively low visibility ratio, the result is determined to be outside the observable range, and no extrapolation is performed. For attitude exceeding the range, only a low-confidence estimate is made based on the nearest boundary node, or the result is rejected. For completely submerged wheels, a higher-position slice is used. For water surface reflection, high-confidence reflective pixels are excluded using an HSV specular mask combined with texture features. All thresholds are determined using a validation set based on the optimal comprehensive index of effective output rate and mean absolute error. This mechanism makes "no output is more controllable than erroneous output" in large-scale city-level deployments, forming the basis for engineering usability together with a 100% effective output rate at high water levels.

[0045] 10. Reuse existing surveillance cameras to achieve low-cost, large-scale, continuous absolute water depth monitoring.

[0046] This method uses monocular monitoring images as the sole observation input and outputs continuous absolute water depth in centimeters from end to end. It requires no manual input of vehicle type or attitude parameters and no deployment of dedicated sensors. Compared to discrete classification methods, the continuous output can be directly integrated into flood warning threshold determination and traffic control decisions. Compared to hardware-based monitoring methods, it offers orders of magnitude advantages in deployment cost and coverage, making low-cost, wide-coverage urban-level waterlogging monitoring networks possible.

[0047] XI. The point-based continuous water accumulation depth can be extended to a spatial water accumulation range corresponding to a preset water depth threshold. In a local water accumulation area where the local water surface elevation has been determined by at least one reference water surface elevation, this method spatially matches the water depth estimate with the ground reference position of the target vehicle and the ground elevation of the area to be measured. The reference water surface elevation is determined by the sum of the ground elevation and the water depth estimate, and the local water surface elevation is determined accordingly. Then, the water accumulation range boundary is extracted through grid water accumulation depth calculation, four-neighbor connectivity search, and preset water depth threshold screening. This range determination is constrained by the ground elevation and water body connectivity relationship, and does not directly connect to the camera points to form a boundary. It can provide a spatial basis for traffic control and rescue route planning. When the water level consistency condition is not met, the water accumulation range of the corresponding local water accumulation area is only marked as undeterminable, and the water depth estimate is retained for output. It does not affect the determination of other local water accumulation areas and does not damage the original high water level effective output mechanism.

[0048] 12. This method has cross-vehicle universality and scalability.

[0049] This method does not pre-require any specific vehicle model or brand; any vehicle, after being represented by soft combination, can be used as a reference. When a category is missing from the standard vehicle model library, the non-negative combinations of the remaining category bases can still provide a compensatory representation without causing overall failure. The calibration function library is built according to the imaging parameter grid, and adding new vehicle models or expanding grid nodes does not affect the existing calibration structure. This advantage makes the method industrially applicable, suitable for various scenarios with fixed monitoring facilities and the risk of water accumulation, such as urban roads, underpasses, industrial parks, stations, and ports.

[0050] Thirteen, physical reality can be analyzed or described from many perspectives, and the process of vehicle submersion is no exception. Its descriptive dimensions are, in principle, unlimited, and the number of possible descriptions is nearly infinite. Those skilled in the art can describe the vehicle submersion process in a conventional way and understand the description that "the number of visible pixels changes continuously and monotonically with water depth during vehicle submersion." Existing technologies also utilize this description in the form of a linear ratio, but they implicitly assume this relationship to be a fixed linear ratio independent of the imaging posture. Before this assumption is broken, those skilled in the art have no motivation to further refine the description that "the pixel loss rate changes monotonically and non-linearly with water depth depending on the imaging posture, and is composed of the superposition of visibility at different height levels." The inventors made the above refinement to establish a calibration mapping between pixel loss and actual water depth that adapts to the imaging posture, and used it to guide the formation of the corresponding technology in this invention. This is one of the manifestations of the invention's inventiveness.

[0051] In summary, this invention uses an inversion route coupled with a monotonic pixel loss calibration function of imaging parameter gridding to non-negative soft combination representation of six standard vehicle geometric bases. Under conditions of uncertain vehicle type and variable imaging posture, it stably maps the vehicle submersion ratio to continuous absolute water depth and maintains 100% effective output rate in high water level scenarios where the wheels are completely submerged. Attached Figure Description

[0052] Figure 1 The flowchart of the overall method provided in the embodiment of the present invention shows the complete process from the original vehicle water accumulation image 10 to the water depth estimation result 20, including shear wavelet transform, six types of vehicle response extraction, non-negative matrix decomposition, attitude parameter determination, contour segmentation and pixel statistics, and the steps of combined contour construction and water depth inversion and their data flow relationship. The flowchart also shows the standard vehicle contour and calibration function library 110. Figure 2The diagram shows the system module block diagram of the intelligent sensing system for urban waterlogging characteristics provided in the embodiment of the present invention. The diagram shows the data acquisition module 100, the shear wavelet transform module 120, the vehicle response and attitude determination module 130, the attitude parameter output module 131, the vehicle contour segmentation module 140, the non-negative matrix decomposition module 150, the contour matching and scale correction module 160, the visible pixel statistics module 170, the combined contour construction and water depth inversion module 180, the water depth result output module 190, and the standard vehicle contour and calibration function library 110, as well as their data interfaces and calling relationships. Figure 3 This is a schematic diagram of the three-dimensional model layering and outermost contour extraction provided in an embodiment of the present invention. The diagram shows the vehicle three-dimensional triangular mesh model 201, horizontal tangent plane 202, triangular facet 203, intersection line segment 204 and outermost contour 205, as well as the layering method with a spacing Δz=5 cm and the number of layers i ranging from 1 to 50. Figure 4 This is a schematic diagram of the multi-view imaging parameter coordinate system provided in an embodiment of the present invention. The diagram shows the vehicle reference point 401, the camera center 402, and the horizontal projection 403, as well as the geometric definitions of the horizontal angle α, the pitch angle β, and the shooting distance d. Figure 5 This is a schematic diagram of pixel loss accumulation and water depth mapping provided in an embodiment of the present invention. The diagram shows the process of visible pixel loss accumulation as water depth increases, as well as the monotonic mapping relationship between the combined pixel loss function x_w(h;Θ) and the inversion function h=x_w^(-1)(x_obs;Θ). Figure 6 This is a schematic diagram of NMF vehicle soft combination provided in an embodiment of the present invention. The diagram shows six standard vehicle types: van 301, A-class sedan 302, B-class sedan 303, small SUV 304, large SUV 305, and business MPV 306, as well as weighted combination contour function 310 and pixel loss mapping and water depth inversion 320. Detailed Implementation

[0053] First, let me explain the technical concept of this invention. Existing image-based vehicle reference-based water depth estimation follows the approach of "first determining a unique vehicle type, then directly converting it proportionally." This approach implicitly assumes three things: vehicles can be uniquely classified, there is a fixed proportional relationship between image geometry and actual size, and water depth inversion can be completed by a single-step linear mapping. None of these three assumptions hold true in real urban scenarios: real vehicle types often fall between categories, or even exceed the vehicle type database; changes in horizontal angle, pitch angle, and shooting distance systematically alter the proportional relationship between pixels and actual size; and the reduction of visible portions under high water conditions is non-linear, governed by both perspective occlusion and water submersion mechanisms.

[0054] This invention reconstructs the above route as follows: representing the vehicle as a mixture of several standard vehicles, and then inversely determining the water depth from a pre-calibrated monotonic comparison relationship based on the shooting conditions. The technical solution of this invention can be summarized as follows: Absolute water depth estimation based on monocular images = non-negative soft combination representation of the geometric basis of six vehicle types + monotonic calibration function library for pixel loss rate of imaging parameter gridding + construction and monotonic inversion of observation loss for slice contour visibility determination.

[0055] The reasons why this restructuring is effective are as follows: First, a two-way locking structure is formed between the vehicle combination weight w and the calibration function: the contour contributions of the six vehicle types are combined according to w and then inverted. The same set of w acts on both the complete contour reference A_w^full(Θ) and the visible contour pixel contribution A_w(h;Θ) of each depth layer. The combination and inversion share the same set of weights, forming a self-consistent closed loop. The misalignment between the contour reference and the calibration function under hard matching is the root cause of the mismatch error.

[0056] Secondly, the monotonic nonlinearity of pixel loss rate with water depth originates from the joint visibility determination of slices. This nonlinearity cannot be approximated by the linear ratio of the vehicle's width and height, and is particularly evident at high water levels and at tilted viewing angles.

[0057] Third, attitude changes are no longer considered errors that need to be corrected afterward, but are absorbed as parameter dimensions of the calibration function, and projection differences are directly baked into the offline calibration function library.

[0058] It should be noted that the problems solved by this invention, the methods employed, and its applicable objects are not limited to a specific road section, a specific camera, or a specific engineering project. Rather, they cover situations with common characteristics such as "vehicles partially submerged in water within the scene, and their images can be acquired," thus possessing industry-wide applicability. Whether it's a low-lying area on urban roads, an underpass, a parking lot, a tunnel, or a park road, as long as a vehicle appears in the scene as a reference point, this invention can reuse existing surveillance cameras or temporarily installed image acquisition equipment, without needing to establish a new mapping system for specific situations.

[0059] like Figure 1 As shown, the intelligent perception method for urban waterlogging features in this embodiment takes the original vehicle waterlogging image 10 as input, and after processing in steps S101 to S106, outputs a water depth estimation result 20. For ease of use... Figure 1 In contrast, the following text will describe the method flow in steps S1 to S5, with step S1 corresponding to... Figure 1In the image acquisition stage, step S2 corresponds to the contour segmentation and pixel statistics stage in step S105; step S3 corresponds to the vehicle model response extraction, non-negative matrix decomposition, and attitude parameter determination stages in steps S102 to S104; and steps S4 and S5 correspond to the combined contour construction and water depth inversion stages in step S106. Step S6 for determining the water accumulation range is... Figure 1 The post-processing steps for the results after the process shown are completed. Figure 1 Not shown separately.

[0060] I. Data Modeling and Sample Library Construction.

[0061] This stage is an offline work within the system construction phase, and its results provide data to the inference process in the form of standard vehicle profiles and calibration function library 110.

[0062] Using real vehicle model data, images were collected under different shooting conditions and different submersion states to construct training set A and training set B. Training set A is a multi-view, multi-scale texture and image sample library for vehicles, used to train the recognition model, and does not contain contour point sets; training set B is a vehicle contour-submersion height calibration library, used to establish the mapping relationship between pixel loss rate and actual water depth, and includes the three-dimensional coordinates of the outermost contour of each height layer. The two sets have different functions and should not be confused.

[0063] Training set A is modeled using six standard vehicle types as geometric bases. For example... Figure 6 As shown, the six standard vehicle types are: Minivan 301, with a relatively high roof, short to medium length, and a near-box-like body; A-class sedan 302, with a low body, short wheelbase, and compact profile; B-class sedan 303, with a longer wheelbase, larger body, and a gentler roofline; small SUV 304, with a higher chassis, shorter body, and higher roof; large SUV 305, with a high chassis, large size, and wide body profile; and business MPV 306, with a long body, high roof, and larger side projection area. These six vehicle types cover key differences such as low and high body, short and long wheelbase, low and high chassis, and streamlined and near-box-like exterior surfaces. Taxis, ride-hailing vehicles, or specific brand vehicles do not require separate databases and can be represented by a six-dimensional non-negative weighted soft combination. This is the starting point of the soft combination representation: vehicle types are not strictly mutually exclusive discrete categories, but rather convex combinations of finite geometric basis.

[0064] The reference size range for the above six types of vehicles is as follows: The minivan is 3.55–4.2 m long and 1.65–1.95 m high. Class A sedans are 4.2–4.7 m long and 1.4–1.5 m high. B-segment sedans are 4.6–5.0m long and 1.44–1.55m high. Small SUVs are 1.55 to 1.75 meters tall. Large SUVs are 1.7 to 1.9 meters tall. Business MPVs are 4.8–5.3 m long and 1.7–1.9 m high, with the above ranges including both ends.

[0065] The specific vehicle parameters for the six standard vehicle types are based on the actual vehicle model data used during modeling. The above reference size range is used to illustrate the body height and length coverage boundaries of the geometric base of the six vehicle types.

[0066] Each vehicle model corresponds to multiple imaging parameter nodes. For example... Figure 4 As shown, a vehicle coordinate system is established with vehicle reference point 401 as the origin. The distance between the line connecting camera center 402 and vehicle reference point 401 is the shooting distance d. The horizontal projection 403 is used to define the horizontal angle α and the pitch angle β. α is the rotation angle of the camera optical center around the vertical axis of the vehicle in the horizontal plane. 0° represents the view from the front of the vehicle, 90° represents the standard side view, and 180° represents the view from the rear of the vehicle. β is the angle between the camera optical axis and the horizontal plane. 0° represents a level view, and β increases when looking downwards. d is the straight-line distance from the camera optical center to the vehicle reference point. In this embodiment, α takes 19 horizontal angle nodes from 0° to 180°, with intervals of 10°, including both endpoints; β takes 6 pitch angle nodes: 0°, 15°, 30°, 45°, 60°, and 75°; and d takes 3 distance nodes: 8m, 16m, and 24m. Each vehicle model also corresponds to multiple water-submerged states, including 1 / 4 wheel, 1 / 2 wheel, and 1 wheel submerged states.

[0067] The images of various flooded states in training set A are used for augmentation of the training data for Models 1 to 4 below, enabling each recognition model to maintain stable vehicle type response and attitude classification output in real-world scenarios where vehicles are partially submerged. The labeling system is consistent with that of the unsubmerged images, with 6 vehicle type labels and attitude labels set according to 19 horizontal angle nodes, 6 pitch angle nodes, and 3 distance nodes. The flooded state does not constitute an additional label dimension. In other words, the flooded state is treated as a change in image appearance during training, rather than as a new classification dimension. The recognition model's learning objective is always vehicle type and imaging attitude. This design avoids the coupling of labels between flooded state and vehicle type categories.

[0068] In a preferred embodiment, the multi-scale texture features of training set A are constructed into a standard feature matrix for subsequent similarity modeling and non-negative combination representation between the target vehicle and the standard vehicle, so as to reduce the impact of structural differences between different vehicle models.

[0069] The training set B is constructed as follows: Figure 3As shown, the vehicle's 3D triangular mesh model 201 is divided into horizontal slices along the height direction: the horizontal cutting plane 202 is set at a spacing of Δz = 5cm, with a total of 50 layers. The height of the i-th layer is z_i = (i-1)Δz, where i ranges from 1 to 50. The specific implementation of slicing is as follows: the triangular facet 203 and the horizontal cutting plane 202 are geometrically intersected, the intersection line segment 204 is extracted and a closed contour is constructed, and the closed contour with the largest area is retained as the outermost contour 205 of that height layer. The 3D coordinates of each slice contour point are output. The reason for retaining the closed contour with the largest area is that the contours of holes such as the inner side of the tire do not constitute the outer boundary of pixel loss for water occlusion. The outermost contour is the boundary of the actual reduction of visible pixels during the submersion process. The training set B provides a calibration basis for subsequently establishing the functional relationship between "pixel loss rate and actual water depth".

[0070] II. Vehicle type and imaging parameter recognition model.

[0071] Multiple target recognition models are trained based on training set A to determine the parameters of target vehicles in the test images. Models 1 to 4 all use the standard YOLOv11n target detection network, retaining its backbone network, feature fusion network, and detection head. The only differences are in the training label system and the number of output categories.

[0072] During the inference phase, the shear wavelet transform module 120 performs a 4-scale, 8-directional shear wavelet transform on the original vehicle waterlogged image 10, resulting in M ​​= 4 × 8 = 32 texture maps. The shear wavelet transform enhances wheel rims, vehicle body boundaries, and local details while reducing the influence of unstable variables such as color, illumination, and reflection. The consideration for performing texture transformation before recognition is that in waterlogged scenes, vehicle reflections, water surface reflections, and illumination fluctuations are drastic; directly classifying the original image would misinterpret unstable variables as evidence of vehicle type or posture. Multi-scale, multi-directional texture maps separate stable edge structures from color and brightness, making the input for recognition more reliable. Models 1 through 4 are all trained and inferred on the multi-scale, multi-directional texture maps after the shear wavelet transform, with consistent data flow between training and inference.

[0073] Model 1 determines the vehicle type of the target vehicle, detects vehicles on the texture map, and outputs six vehicle type responses, forming the input matrix P for non-negative matrix factorization. Model 2 outputs classification responses for 19 horizontal angle nodes, used to select horizontal angle calibration nodes. Model 3 outputs classification responses for 6 pitch angle nodes, used to select pitch angle calibration nodes. Model 4 outputs classification responses for 3 distance nodes, used to select distance calibration nodes.

[0074] The training data for the attitude prediction model consists of 2052 simulated images exported from the software, formed by combining six standard vehicle models, 19 horizontal angle nodes, 6 pitch angle nodes, and 3 distance nodes. The data is strictly evenly distributed across all attitude nodes: 108 images per class for horizontal angle α (6 vehicle models × 6β × 3d), 342 images per class for pitch angle β (6 vehicle models × 19α × 3d), and 684 images per class for distance d (6 vehicle models × 19α × 6β). Five-fold cross-validation is used, with each image serving as a test sample exactly once in five rounds.

[0075] Model 1 shares the same training data source as Models 2 through 4, namely, 2052 software-exported simulation images generated by a full combination of six standard vehicle types, 19 horizontal angle nodes, 6 pitch angle nodes, and 3 distance nodes in training set A. The vehicle type labels are directly provided by the scene export parameters and are trained and augmented according to the submerged state images in training set A. The validation of Model 1 adopts the same 5-fold cross-validation mechanism as the attitude model, with each image serving as a test sample exactly once in 5 rounds.

[0076] Model 1 extracts vehicle type responses for six standard vehicle types from each sheared wavelet texture map. The vehicle type response refers to the normalized class response value output by the model, functionally equivalent to the class probability distribution, but not interpreted as a statistical posterior probability. Let the six-dimensional response of the m-th texture map be r_m=[r_m1,r_m2,...,r_m6], after normalization P_mc=r_mc / (Σ_j r_mj+ε), where ε is a numerically stable term. The six-dimensional normalized responses corresponding to the M texture maps are arranged row-wise to form a non-negative response matrix P∈R_+^(M×6), where M represents the number of effective scale-direction texture maps generated and retained in this preprocessing, and the second dimension is fixed at 6. If the detection network output is already a six-class normalized response, it is used directly; if it is an unnormalized confidence score, it is divided row by row by the sum of the six-class confidence scores in that row.

[0077] III. Rank 1 Nonnegative Matrix Decomposition and Vehicle Model Soft Combination.

[0078] The nonnegative matrix decomposition module 150 performs rank-1 nonnegative matrix decomposition, separating the scale-direction contribution coefficients from the overall vehicle model combination: min J(q,w)=½‖P-qw^T‖²_F, q∈R_+^M, w∈R_+^6.

[0079] Where q is the non-negative contribution coefficient of each scale-direction texture map, and w is the weight of the vehicle combination, corresponding to van 301, A-class sedan 302, B-class sedan 303, small SUV 304, large SUV 305, and business MPV 306 respectively. Multiplicative updates are used: q←q⊙(Pw) / [q(w^Tw)+ε], w←w⊙(P^Tq) / [w(q^Tq)+ε]. The implementation is fixed as follows: deterministic initialization using rank-1 NNDSVD is used, zero elements are replaced with ε, random initialization is not used, and the results are guaranteed to be reproducible. The numerical stability term ε = 10^-10; the stopping condition is that the relative change of the objective function between two adjacent iterations is less than 10^-5, or the maximum number of iterations is reached (500); when normalizing the weights, calculate s = Σ_kw_k, let w ← w / s and q ← sq, so that Σ_kw_k = 1 and keep the product qw^T unchanged.

[0080] The normalized w is not a hard classification result, but a non-negative linear combination of vehicles based on six standard vehicle types. For example... Figure 6 As shown, an unknown white sedan sample, after NMF aggregation, is represented as follows: Class A sedan 302 weight 40.00%, Class B sedan 303 weight 32.07%, small SUV 304 weight 8.55%, large SUV 305 weight 8.38%, business MPV 306 weight 7.23%, and van 301 weight 3.77%. This weight is used to combine the complete vehicle pixel count, the visible pixel contribution from slices at different heights, and the corresponding water depth calibration function, thereby representing an unknown vehicle that falls between traditional vehicle categories. The soft-combined weight is not a simple replacement for classification confidence, but rather a structured parameter that simultaneously enters the contour baseline and calibration function. This is the key difference between this invention and the "classification plus lookup table" approach.

[0081] In a preferred embodiment, vehicle model determination can be replaced by an equivalent nonnegative feature decomposition method; similarity calculation or nonnegative decomposition matching can also be performed using the multi-scale texture features of the target vehicle and the standard vehicle template to further verify or correct the vehicle model and pose matching results; multi-scale texture features and nonnegative decomposition features can also be combined to assist in the discrimination of submerged areas to improve robustness under complex lighting, partial occlusion and low-resolution conditions.

[0082] IV. Monotonic calibration function library for imaging parameter gridding.

[0083] This section answers the question: Where does the mapping relationship between pixel loss rate and water depth come from? The answer is offline calibration, not an online scaling formula.

[0084] The calibration function library stores the visible contour pixel contribution A_c(h;Θ) and the complete contour pixel contribution A_c(0;Θ) for each standard vehicle model c under imaging parameters Θ=(α,β,d). Pixel loss rate refers to the proportion of pixels in the overall reference contour of the vehicle that are obscured or submerged by water, or the proportion of submerged pixels after scale correction. For the target vehicle, the contour contributions of the six standard vehicle models are first combined using the vehicle model combination weight w: A_w(h;Θ)=Σw_c·A_c(h;Θ), A_w^full(Θ)=A_w(0;Θ)=Σw_c·A_c(0;Θ), where Σ represents the summation of c from 1 to 6, w_c≥0 and Σ_kw_k=1. Figure 6 As shown in Figure 310, the weighted combined contour function shares the same set of values ​​w for both combination and inversion. Based on this, a monotonic pixel loss function for the combined vehicle model is established: x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ). The order of combining first and then inverting ensures that the weights simultaneously lock the combined contour and the calibration function, avoiding misalignment between the two under hard matching.

[0085] The standard vehicle profile and calibration function library 110 also records the position of the center of the wheel-ground contact area of ​​each type of standard vehicle in the vehicle coordinate system, which is used to convert the pixel projection of the ground reference position when determining the water accumulation range.

[0086] The statistical analysis of visible contour pixel contributions is based on 3D viewpoint-dependent pixel attenuation modeling. Under fixed vehicle model and fixed α, β, and d conditions: First, a 3D contour representation related to sensor pose is constructed based on the vehicle's outer contour data at different height slices; second, visibility is determined for the visible contours of each height slice according to the current viewpoint. The joint mathematical conditions for visibility determination include: The projection condition is that the projection of the contour point q onto the image plane lies within the region of interest of the vehicle, i.e., π_Θ(q)∈ROI; The normal vector condition is that the dot product of the slice normal vector n(q) and the unit line-of-sight vector v(q) pointing from the contour point to the camera is not less than 0, that is, n(q)·v(q)≥0. The depth buffer condition is that the depth ρ_Θ(q) of the contour point q in the camera coordinate system is not greater than the depth buffer value at the projection position, that is, ρ_Θ(q)≤Zbuf(π_Θ(q))+ε.

[0087] When the water depth is h, the slice height condition z_i > h is applied again; Pixels that do not meet any of the conditions are not included in the visible contour pixel contribution A_w(h;Θ). Each of the four conditions has its own function: Projection conditions exclude contour points whose projections fall outside the vehicle's region of interest, ensuring that the statistical range is consistent with the vehicle region in the image. The normal vector condition excludes contour points that are away from the camera, as these points are on the back side of the vehicle due to self-occlusion and are not visible in the image. The deep cache condition excludes contour points that are occluded by other parts of the vehicle body, thus realizing point-by-point occlusion determination; The section height condition excludes sections that are below the water surface or have been submerged by water.

[0088] After the four conditions are superimposed, the higher the water depth h, the fewer slices and contour points are judged. It can be seen that the contribution of contour pixels A_w(h;Θ) decreases monotonically with the water depth h, and the corresponding pixel loss increases monotonically. The change of pixel loss rate with water depth is due to the accumulation of shape differences of the vehicle body surface at each height layer. Under high water level and tilted view, it presents a non-linear form that cannot be approximated by the linear proportion of the vehicle's width and height. This is the reason why calibration mapping must be modeled layer by layer.

[0089] Finally, the pixel loss of slices at different heights is accumulated and normalized along the vertical direction to establish a monotonic mapping relationship between the relative submersion ratio and the actual water depth. For example... Figure 5 As shown, when the water depth h_1 < h_2 < h_3, the combined pixel loss x_1 < x_2 < x_3, and the mapping curve monotonically increases. This function corrects local non-monotonic points caused by segmentation noise through order-preserving regression, and then uses monotonically increasing cubic Hermite interpolation to form a continuous function h = f(x;Θ). Monotonicity is guaranteed by a non-negative derivative constraint, i.e., ∂f(x;α,β,d) / ∂x ≥ 0, ensuring that the estimated water depth does not decrease in the opposite direction when the visible pixel loss increases. The monotonicity constraint is not merely mathematical decoration: it eliminates one-to-many ambiguity in the inversion and is a prerequisite for stable output even at high water levels.

[0090] Independent mapping functions are established for different vehicle models and imaging conditions, forming a hierarchical calibration function library. Each independent mapping is established for different vehicle models and imaging conditions, which include at least the horizontal angle α, pitch angle β, and shooting distance d. The imaging parameter Θ is discretized into a 19×6×3 three-dimensional parameter grid: horizontal angle from 0° to 180°, in 10° intervals, totaling 19 levels including both extreme values; pitch angles of 0°, 15°, 30°, 45°, 60°, and 75°, totaling 6 levels; and distances of 8m, 16m, and 24m, totaling 3 levels. Attitude changes are incorporated into the parameter dimensions of the calibration functions, and projection differences are directly baked into the function library, eliminating the need for online correction.

[0091] There are two ways to call the calibration function. The currently implemented and experimental method is the discrete category node call: after Models 2 to 4 output the α, β, and d categories, the calibration function under the corresponding grid node is directly indexed. Another optional implementation is trilinear interpolation continuity: For any measured imaging parameter Θ′=(α′,β′,d′), determine its adjacent upper and lower grid nodes α_0, α_1, β_0, β_1 and d_0, d_1 respectively. Define the normalized positions t_α=(α′-α_0) / (α_1-α_0), t_β=(β′-β_0) / (β_1-β_0), t_d=(d′-d_0) / (d_1-d_0). Perform trilinear interpolation on the mapping results of the eight adjacent grid nodes: f(x;Θ′)=Σ_(i=0)^1 Σ_(j=0)^1 Σ_(k=0)^1 λ_i(t_α)·λ_j(t_β)·λ_k(t_d)·f(x;α_i,β_j,d_k).

[0092] Where λ is the interpolation weight function, λ_0(t)=1-t, λ_1(t)=t. Since each node function uses the same normalized pixel loss x as its independent variable, trilinear interpolation can reduce water depth jumps at parameter boundaries. Discrete category node calling structure is simple and retrieval is direct; trilinear interpolation smooths the boundary of the calibration function in the parameter dimension, and is suitable for situations where the model outputs continuous attitude values, or where the expected attitude is calculated from the responses of each category and then interpolated between adjacent nodes. The two can be implemented individually or in combination depending on the deployment conditions.

[0093] For parameters outside the calibration range, unconstrained extrapolation is generally not performed. Instead, only low-confidence estimates are made using the nearest boundary node. In engineering mode, the estimates are preferentially rejected and a re-acquisition is prompted. The boundaries of the calibration range are determined by the grid boundaries of the imaging parameter grid, i.e., the horizontal angle α falls between 0° and 180°, the pitch angle β falls between 0° and 75°, and the shooting distance d falls between 8° and 180°. The calibration range is within 24 m, and the above boundaries include both endpoints.

[0094] V. Reasoning process: parameter identification, observation construction and water depth inversion.

[0095] For a given image of a vehicle covered in water, the following processing steps are performed.

[0096] Recognition stage: Models 2, 3, and 4 output the horizontal angle, pitch angle, and shooting distance category of the target vehicle, respectively. Each model provides only one final category result for the target, without using majority voting, mean fusion, or quadratic NMF: α̂=argmax_j r_j^(α), β̂=argmax_j r_j^(β), d̂=argmax_j r_j^(d), where r_j^(α), r_j^(β), and r_j^(d) are the classification responses of the j-th node of the corresponding model, respectively; the attitude parameter output module 131 outputs the imaging parameters Θ=(α,β,d) according to the category result; the vehicle combination weight w is obtained through non-negative matrix factorization; the standard vehicle sample and contour data that best match the above parameters are called from training set A and training set B.

[0097] The continuous invocation step (when using the continuous invocation method): The method also includes a continuous invocation step for the calibration function. The adjacent grid nodes of the identified imaging parameter Θ in the imaging parameter grid are determined, and the normalized positions t_α, t_β, and t_d of the imaging parameter Θ between adjacent nodes in each dimension (horizontal angle α, pitch angle β, and shooting distance d) are calculated. Trilinear interpolation is performed on the pre-established calibration function at each node of the imaging parameter grid according to the normalized positions in each dimension to obtain the calibration function under the imaging parameter Θ. Then, the subsequent observation construction and inversion steps are executed. The specific calculation method for this step is as described in the previous section on continuous trilinear interpolation, and will not be repeated here.

[0098] Segmentation and Statistical Analysis: The vehicle contour segmentation module 140 uses an instance segmentation network to segment the target vehicle contour, obtaining the visible contour region of the target vehicle and counting the number of visible contour pixels 'a'. The instance segmentation network outputs pixel-level vehicle masks and instance identifiers. When multiple vehicles overlap, the instance segmentation identifiers are used to calculate the number of visible pixels for each vehicle. Note that segmentation here is only the entry point for counting the number of visible pixels. The mask does not directly participate in the proportional conversion but is first normalized to the pixel loss rate coordinate system of the combined vehicle models. The segmentation process itself does not determine the water depth. The reason why instance segmentation is used instead of ordinary semantic segmentation in this step is that in water accumulation scenarios, vehicles are often parked adjacently or partially occluded. Semantic segmentation will merge the visible pixels of multiple vehicles for statistical analysis, leading to a systematic bias in the observed pixel loss. Instance identifiers make the number of visible contour pixels 'a' of each target vehicle independently countable, providing a data basis for handling anomalies in multi-vehicle overlapping situations.

[0099] Contour matching and scale correction step: The contour matching and scale correction module 160 performs scaling and translation transformations on the target vehicle contour, matches it with the standard vehicle contour point set, calculates the sum of Euclidean distances between the standard contour point set and the target contour point set, and finds the optimal linear scale ratio κ when the sum of this distance is minimized.

[0100] The solution process for the optimal linear scale ratio κ is as follows: First, the translation is determined by aligning the centroids of the two contour point sets. Then, the initial value of κ is roughly estimated according to the length ratio. Finally, numerical optimization is performed with the goal of minimizing the sum of the Euclidean distances of the contour point sets. κ is constrained to 0.5 to 2.0 and includes both extreme values. When it exceeds this range, a low confidence indicator is output.

[0101] The constraint κ is set between 0.5 and 2.0 because, under normal imaging conditions, the size difference between the target vehicle and its corresponding standard model is limited. Matching results exceeding this range are more likely to originate from segmentation errors or mismatched contours. Continuing to use this for scale correction would introduce matching errors into the observed pixel loss. Therefore, these results are converted to low-confidence flags and left to the anomaly handling mechanism for adjudication. κ represents the scaling ratio in the length direction, and area correction is calculated using κ², which is the origin of κ² in the observed pixel loss formula.

[0102] The standard vehicle contour point set here is a combined standard vehicle contour obtained by weighting the contour point sets of six standard vehicle types under the same imaging parameter conditions according to the vehicle type combination weight w.

[0103] Observation construction and inversion: Based on the scale correction relationship, the observed pixel loss x_obs of the target vehicle is calculated as x_obs=1-aκ² / A_w^full(Θ), where A_w^full(Θ) is the number of complete reference contour pixels of the combined vehicle model matched with the target vehicle under the corresponding α, β, and d conditions. Since the actual vehicle size differs from the standard vehicle model, directly calculating the pixel loss using the ratio of the visible pixel count of the actual vehicle to the complete contour pixel count of the standard vehicle model would introduce systematic bias. Area correction is applied to the visible pixel count a using κ², normalizing the observed pixel loss to the pixel loss rate coordinate system of the combined vehicle model.

[0104] The domain of the observed pixel loss x_obs is 0 to 1, including both extreme values. When the calculated value is less than 0, it is set to 0 and a low confidence flag is output; when the calculated value is greater than 1, it is set to 1 and a low confidence flag is output. This truncation process closes the domain gap caused by segmentation noise or κ estimation bias and coordinates with the low confidence and output rejection mechanism.

[0105] like Figure 1 Middle step S106 and Figure 6 As shown in Figure 320, the obtained observed pixel loss x_obs is substituted into the corresponding combined mapping function x_w(h;Θ) to monotonically invert and obtain the estimated water depth in the scene under test: h^=x_w^(-1)(x_obs;Θ).

[0106] like Figure 5As shown, the corresponding water depth estimate h^ is obtained from the observed pixel loss x_obs using the inversion function. The water depth result output module 190 outputs the water depth estimate h^, which is the water depth estimation result 20. In this embodiment, the inversion from the observed pixel loss x_obs to the water depth estimate h^ is performed within the monotonic domain of the combined pixel loss function. The output water depth estimate h^ is a continuous absolute water depth value in centimeters, which can be directly used for urban flooding early warning threshold judgment and traffic control decisions. Thus, the complete link from a single image to continuous absolute water depth is closed.

[0107] In a preferred embodiment, multi-scale texture features and non-negative decomposition features can be combined to assist in the identification of flooded areas, thereby improving robustness under complex lighting, partial occlusion and low resolution conditions.

[0108] VI. Exception Handling Mechanism.

[0109] The thresholds in the anomaly handling mechanism are determined as follows: the vehicle model response confidence threshold, the vehicle visibility ratio threshold, and the effective slice number threshold are all determined through a validation set, that is, the reserved real scene frames are used as the validation set, and the determination is based on the criterion of optimizing the comprehensive index of effective output rate and mean absolute error; the specific values ​​of the thresholds are set according to the validation set calibration results during engineering deployment.

[0110] The exception handling mechanism includes the following six scenarios.

[0111] Firstly, the overall confidence level of the vehicle model response is insufficient: retain the NMF soft combination results while outputting a low confidence level indicator; refuse to provide a definite water depth when the confidence level is below the engineering threshold. The soft combination weights are still retained when the confidence level is insufficient because the vehicle model combination weight w itself is a continuous distribution representation. When the confidence level of some components decreases, the combined vehicle model can still provide a meaningful approximation. Directly discarding the weights would waste the acquired observation information.

[0112] Secondly, for multi-vehicle overlap: Instance segmentation identifiers are used to calculate the depth for each vehicle. The median of multiple valid water depth estimates within the same waterlogged area is taken, while the dispersion is retained as uncertainty. Taking the median instead of the mean is to avoid outlier frames skewing the area estimate, while the dispersion accurately reflects the discrepancies between multi-vehicle estimates.

[0113] Third, the vehicle visibility ratio is too low: when the ratio of the visible contour pixel contribution A_w(h;Θ) to the number of complete contour pixels is lower than the threshold, or the number of effective slices is insufficient, it is determined that it exceeds the observable range and no extrapolation is performed; at this time, the target vehicle has only a very small visible part in the image, the pixel loss observation is close to saturation, and extrapolation will amplify the error, so the output is directly rejected.

[0114] Fourth, if the attitude exceeds the calibration range: only low-confidence estimates are made using the nearest boundary node, and in engineering mode, estimates are rejected first and a prompt for re-acquisition is given.

[0115] Fifth, complete submersion of wheels: This method automatically switches to using effective slices from higher positions on the vehicle body, without relying on a single wheel; estimation terminates when the effective outline of the entire vehicle is insufficient. This mechanism directly distinguishes this invention from the local wheel scaling method: reference information is distributed across all height layers of the vehicle body, so the disappearance of the wheels does not equate to the disappearance of the reference; since the pixel loss statistics of this method are performed along all height layers of the vehicle body, whether the wheels are visible or not does not change the structure of the calibration mapping, and using slices from higher positions can continue to provide effective observations. This allows the method to maintain effective output even under high water level conditions.

[0116] Sixth, water surface reflection interference: The software prioritizes a combined processing approach using specular masks and texture assistance. High-brightness, low-saturation regions are detected in the HSV space to form candidate reflection masks; combined with sheared wavelet directional textures and vehicle structure edges, stable tire edges and body waistlines are avoided from being mistakenly deleted; high-confidence reflection pixels are excluded during contour segmentation and visible pixel statistics, and the confidence level of the results is adjusted based on the effective contour ratio. The reflection-related threshold is also determined through a validation set and is not fixed as a single value in this embodiment.

[0117] VII. Determining the extent of water accumulation (Step S6).

[0118] This step is the post-processing step following step S5 and anomaly handling, denoted as step S6. Its input is the estimated water depth (20) within the same timeframe or observation period that was not rejected after anomaly handling. The same observation period refers to the time window set by the deployer, with its start and end points defined by the observation times of the first and last estimated water depth (20) within that time window. Whether the water levels of each estimated water depth (20) within the same observation period are consistent is determined by the maximum difference between multiple reference water surface elevations within the same local water accumulation area not exceeding a preset water level consistency threshold. If this threshold is not met, the water accumulation range of the corresponding local water accumulation area is marked as undeterminable. Estimated water depths with a low-confidence flag but already output are not included in the water accumulation range determination by default. When allowed to participate by the deployment strategy, their corresponding water accumulation range inherits the low-confidence flag. Step S6 is... Figure 1 The post-processing steps for the results after the process shown are completed. Figure 1 Not shown separately.

[0119] Obtaining the ground reference position. The ground reference position of the target vehicle refers to the position of the center of the contact area between the target vehicle's wheels and the ground on the ground. It does not take the vehicle surface or water surface position as an example. It can be obtained through one of the following methods: First, based on the camera's geographical location, camera attitude calibration results, and the pixel projection of the ground reference position in the image, the line of sight formed by connecting the camera's optical center to the pixel projection is intersected with the ground elevation data of the area to be measured, and the ground reference position is calculated. The pixel projection is determined based on its imaging position in the image when it is imageable at the center of the wheel-ground contact area; otherwise, it cannot be directly imaged if it is obstructed or submerged in water. When the image is in use, the following methods are used to determine the position: The standard vehicle profile and calibration function library 110 also pre-records the position of the center of the wheel-ground contact area of ​​each type of standard vehicle in the vehicle coordinate system with the vehicle reference point 401 as the origin. The combined standard vehicle profile is obtained by weighting the profile point set of the six types of standard vehicles under the imaging parameters according to the model combination weight w, and the scaling and translation parameters determined by the profile matching of the combined standard vehicle profile and the target vehicle profile are used to convert the point position into the pixel projection of the combined standard vehicle profile in the image. If it still cannot be determined, other methods are used to obtain it. Secondly, it is obtained according to the positioning information of the target vehicle or roadside equipment. Thirdly, it is obtained according to on-site measurement or manual annotation. When the above methods cannot obtain the position that meets the grid scale accuracy requirements, the water depth estimate (20) is retained, and the water accumulation range of the corresponding local water accumulation area is marked as undeterminable.

[0120] The source and benchmark of ground elevation data are unified. Ground elevation data for the area to be measured are provided by digital elevation models, measured topographic data, road longitudinal profile data, or geographic information system data. A unified plane coordinate system is used for the ground reference position and the positions of each spatial grid in the area to be measured, and a unified elevation benchmark is used for ground elevation. Both water depth and elevation are measured in meters. The spatial registration error between the image position and the ground position should not exceed half the side length of the spatial grid, i.e., the preset ratio in this embodiment is half; in other embodiments, this ratio can be adjusted based on the verification results of the range misjudgment rate; if this requirement is not met, the aforementioned undeterminable handling method applies.

[0121] Formation of the spatial grid. The area to be measured is divided into square spatial grids with preset side lengths. The side length of the grid is determined by the resolution of the ground elevation data and the required accuracy of the water accumulation range. The ground elevation of each spatial grid is taken as the elevation of the center point of the grid. In other embodiments, the average ground elevation within the grid or the elevation of a preset representative point may also be used. Spatial grids with invalid or missing ground elevation data are not included in the calculation. The spatial grid mentioned in this specification refers to the geospatial grid divided into geospatial grids with preset side lengths within the area to be measured, which is different from the meaning of the imaging parameter grid and the vehicle 3D triangular mesh model 201.

[0122] Delineation of localized waterlogging areas. Localized waterlogging areas are delineated based on geospatial criteria such as the effective range of ground elevation, the section of road to be measured, the known catchment area, or pre-defined spatial zones, not on the difference between reference water surface elevations. All spatial grids within the same localized waterlogging area share a single localized water surface elevation; different localized waterlogging areas are determined separately using this step. Each reference water surface elevation is assigned to its corresponding localized waterlogging area based on its spatial location relative to its ground reference position.

[0123] Reference water surface elevation and local water surface elevation. The ground reference position of the target vehicle corresponding to the i-th water depth estimate (20) is denoted as u_i, its ground elevation is denoted as z(u_i), and the water depth estimate at that location is denoted as h^_i; the reference water surface elevation corresponding to the i-th target vehicle is denoted as r_i, determined by r_i=z(u_i)+h^_i. When there is only one water depth estimate (20), its ground reference position is denoted as u_0, and the reference water surface elevation is denoted as r(u_0)=z(u_0)+h^(u_0), where h^(u_0) is the water depth estimate at the ground reference position u_0, corresponding to Figure 1 The water depth estimation result 20. When there are multiple reference water surface elevations in the same local water accumulation area, the maximum difference between the reference water surface elevations is not greater than the preset water level consistency threshold as the criterion for satisfying the water level consistency condition: when satisfied, the median of the reference water surface elevations in the local water accumulation area is taken as the local water surface elevation H of the local water accumulation area; when not satisfied, each water depth estimate (20) is retained, and the water accumulation range of the local water accumulation area is marked as undeterminable, which does not affect the determination of other local water accumulation areas; the local water accumulation areas marked as undeterminable will no longer participate in the subsequent calculation of grid water depth estimates, candidate water accumulation area search and water accumulation range output. When there is only one reference water surface elevation in the same local water accumulation area, the reference water surface elevation is directly taken as the local water surface elevation H of the local water accumulation area. At this time, the consistency condition has not been cross-validated by multiple observations, and the output water accumulation range is marked with a range to be confirmed.

[0124] Determination of the preset water level consistency threshold. The preset water level consistency threshold is determined based on the composite error of the reference water surface elevation. The composite error is composed of the water depth estimation error, the ground elevation error, and the spatial registration error. In this embodiment, the ground reference position is disturbed based on the position deviation obtained from the registration check, and the elevation error caused by the registration is evaluated by the difference in ground elevation before and after the disturbance. This error is then evaluated together with the water depth estimation error and the ground elevation error according to the standard uncertainty. Under the condition that the components are uncorrelated, the result is synthesized by the sum of squares and the square root, and the result is used as the composite error of the reference water surface elevation. In other embodiments, linear addition or other error propagation methods may also be used. The method given in this embodiment is not the only limitation. The preset water level consistency threshold is calibrated using one of the following two methods: In one embodiment, the 95th percentile of the statistical distribution of the maximum difference in reference water surface elevation in each local water accumulation area in the historical water accumulation scenario or simulation scenario is taken; In another embodiment, the threshold is determined by minimizing the weighted result of the range misjudgment rate and the proportion of undeterminable values ​​within the range of 90% to 99% percentiles (including the two extreme values). The unit of the preset water level consistency threshold is the same as the unit of the reference water surface elevation, which is in meters.

[0125] Calculation of grid water depth estimate. For each local water accumulation area not marked as undecidable, the following processing is performed: For the spatial grid u with valid ground elevation in the local water accumulation area, let z(u) represent its ground elevation, and the grid water depth estimate h^(u) is calculated according to h^(u)=max{0,Hz(u)}, where max indicates taking the maximum value.

[0126] Searching for candidate waterlogged areas. For each local waterlogged area not marked as undecidable, the following processing is performed: The ground reference position corresponding to the local waterlogged area is mapped to the spatial grid of the area to be measured. Using the mapped spatial grid as a seed, within the local waterlogged area, connected regions are searched among the spatial grids whose estimated water depth is greater than 0 and belong to the local waterlogged area, according to the four neighboring regions (up, down, left, and right), without crossing the boundary and barrier boundary of the local waterlogged area. This yields the candidate waterlogged area C for the local waterlogged area. The barrier boundary is the boundary of a structure or terrain that is known to not have a water passage, determined based on geographic information data, road facility data, or field survey data. If the barrier boundary is not marked, the connectivity search is performed as if no barrier boundary is set.

[0127] Threshold filtering and water accumulation range output. For each localized water accumulation area not marked as undeterminable, the following processing is performed: Based on the user-defined preset water depth threshold h_p, determine the water accumulation range grid set Ω for that localized water accumulation area, i.e., Ω={u∈C:h^(u)>h_p}, where h_p≥0 and includes 0; when h_p=0, output the water accumulation range where the grid's estimated water depth is greater than 0; when h_p>0, output the water accumulation range where the grid's estimated water depth is greater than h_p. Merge the water accumulation grids in Ω according to spatial adjacency and extract the merged outer boundary, outputting the water accumulation range corresponding to the preset water depth threshold h_p for that localized water accumulation area. First determine candidate water accumulation areas, then filter according to the preset water depth threshold, without directly connecting camera points to form boundaries. Different localized water accumulation areas are judged separately and then summarized and output.

[0128] Identifier combination rules. When a water depth estimate is rejected for output, it does not participate in the determination of the water area; when the water depth estimate is output normally without a low confidence indicator, and the water area is only derived from a single reference water surface elevation, the water depth estimate is output normally, and only the water area of ​​the local water area is marked with a range pending confirmation indicator; when the water depth estimate has a low confidence indicator and the water area in which it participates has a range pending confirmation indicator, both results are output together and their respective indicators are retained; in engineering mode, the situation where both coexist can be marked as the water area of ​​the local water area being undeterminable, which is specifically stipulated by the deployment strategy. The water depth estimate (20) still indicates Figure 1 and Figure 2 The water depth estimation result 20 is included in the water depth result output module 190. The water accumulation range is a related result output by the water depth result output module 190 in addition to the water depth estimation result 20. It is not confused with the mark 20. The water accumulation range is not marked in the attached figure.

[0129] VIII. System Implementation Examples.

[0130] like Figure 2 As shown, this embodiment also provides an intelligent sensing system for urban waterlogging characteristics, including a data acquisition module 100, a vehicle contour segmentation module 140, a vehicle response and attitude determination module 130, an attitude parameter output module 131, a combined contour construction and water depth inversion module 180, a water depth result output module 190, and a standard vehicle contour and calibration function library 110.

[0131] The data acquisition module 100 is used to acquire the original vehicle water accumulation image 10 of the scene to be tested, corresponding to the image acquisition stage of the method, and provides input data for the entire system.

[0132] The vehicle contour segmentation module 140 is used to perform contour segmentation on the target vehicle in the original vehicle water accumulation image 10 to obtain the visible contour region of the target vehicle. The output visible contour region is used by the visible pixel statistics module 170 to count the number of visible contour pixels a.

[0133] The vehicle response and attitude determination module 130 includes models 1 to 4, which are used to output the vehicle type response distribution and imaging attitude category of the target vehicle on the multi-scale, multi-directional texture map output by the shear wavelet transform module 120, corresponding to the vehicle type response extraction and attitude classification sub-step in the method identification process; the six standard vehicle types are van 301, A-class sedan 302, B-class sedan 303, small SUV 304, large SUV 305, and business MPV 306.

[0134] The attitude parameter output module 131 is used to output imaging parameters Θ=(α,β,d) according to the imaging attitude category. Its output, together with the vehicle model combination weight w, enters the combination contour construction and water depth inversion module 180.

[0135] The combined contour construction and water depth inversion module 180 is the backbone module of the system, used to execute the weighted combination and inversion steps of the method: The vehicle model response distribution is decomposed into a rank-1 non-negative matrix to obtain the vehicle model combination weights w corresponding to the six standard vehicle models. Based on these weights w, the visible contour pixel contributions A_c(h;Θ) and complete contour pixels A_c(0;Θ) of the six pre-established standard vehicle models under imaging parameter Θ are weighted and combined to obtain the visible contour pixel contribution A_w(h;Θ) and the number of complete reference contour pixels A_w^full. (Θ), construct a combined pixel loss function x_w(h;Θ) that monotonically increases with water depth h, x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ), and substitute the observed pixel loss x_obs into the combined pixel loss function x_w(h;Θ) for monotonic inversion to obtain the water depth estimate h^, i.e., the water depth estimation result 20; where, the observed pixel loss x_obs is obtained by normalizing the number of visible contour pixels a after scale correction according to the number of complete reference contour pixels A_w^full(Θ).

[0136] The water depth output module 190 is used to output the water depth estimate h^, and also to output the vehicle combination weight distribution, horizontal angle α, pitch angle β, shooting distance d, submerged pixel ratio and estimated confidence, for direct use by the upper-level waterlogging monitoring platform; when the ground elevation data of the area to be measured and the ground reference position of the target vehicle are obtained, and the local water surface elevation of the corresponding local water accumulation area has been determined by at least one reference water surface elevation, the water depth output module 190 is also used to execute the water accumulation range determination step S6, to determine the reference water surface elevation by the sum of the ground elevation of the corresponding ground reference position and the water depth estimate (20), to determine the local water surface elevation of the local water accumulation area according to at least one reference water surface elevation in the same local water accumulation area, to calculate the grid water depth estimate of each spatial grid, and to determine the local water depth estimate of the local water accumulation area according to the four neighboring domains connected in the upper, lower, left and right of the local water accumulation area without crossing the boundary and resistance of the local water accumulation area. Candidate water accumulation areas are searched for by boundary, and water accumulation grids are filtered according to the preset water depth threshold h_p. Spatially adjacent water accumulation grids are merged and boundaries are extracted. The water depth estimate and the corresponding water accumulation range are output together. When the maximum difference between multiple reference water surface elevations of a certain water accumulation area is greater than the preset water level consistency threshold, the ground elevation data of the water accumulation area is invalid, or the ground reference position cannot be determined, resulting in the local water surface elevation of the water accumulation area being undeterminable, the water depth estimate (20) is retained and the water accumulation range of the water accumulation area is marked as undeterminable. The subsequent calculation of grid water depth estimate, candidate water accumulation area search and water accumulation range output are no longer performed for the water accumulation area, and it does not affect the determination of other water accumulation areas. When there is only one reference water surface elevation in the same water accumulation area, the water accumulation range of the water accumulation area is marked as undeterminable.

[0137] The standard vehicle profile and calibration function library 110 is used to store the visible profile pixel contribution A_c(h;Θ), complete profile pixel A_c(0;Θ), and pixel loss rate-depth calibration function for six types of standard vehicle models under various imaging parameters, and provides calibration data to the combined profile construction and depth inversion module 180; among them, the complete profile pixel A_c(0;Θ) participates in the solution of the optimal linear scale ratio κ and the calculation of the observed pixel loss through the profile matching and scale correction module 160.

[0138] Furthermore, the system in this embodiment also includes a shear wavelet transform module 120, a non-negative matrix decomposition module 150, a contour matching and scale correction module 160, a visible pixel statistics module 170, and a sample library construction module.

[0139] The shear wavelet transform module 120 is used to perform a 4-scale, 8-direction shear wavelet transform on the original vehicle water accumulation image 10 and extract multi-scale, multi-direction texture features. The texture map is output to the vehicle response and attitude determination module 130 as a unified input form for models 1 to 4.

[0140] The nonnegative matrix decomposition module 150 is used to perform rank-1 nonnegative matrix decomposition on the nonnegative response matrix P formed by arranging the vehicle responses of each texture map in rows, and separate the contribution coefficient q and vehicle combination weight w. The vehicle combination weight w is output to the combined contour construction and water depth inversion module 180.

[0141] The contour matching and scale correction module 160 is used to perform contour matching with scaling and translation transformation on the contour of the target vehicle and the combined standard vehicle contour obtained by weighting the contour point set of six standard vehicle types under imaging parameter Θ according to the visible contour region of the target vehicle output by the vehicle contour segmentation module 140, and solve for the optimal linear scale ratio κ; when solving, the contour data in the standard vehicle contour and calibration function library 110 is called as the source of the combined standard vehicle contour.

[0142] The visible pixel statistics module 170 is used to count the number of visible contour pixels a and calculate the observed pixel loss x_obs according to x_obs=1-aκ² / A_w^full(Θ), which is provided to the combined contour construction and water depth inversion module 180; where A_w^full(Θ) is the number of complete reference contour pixels obtained by combining according to vehicle type combination weight w.

[0143] The sample library construction module is used to build training set A, training set B, and calibration function library during the system construction phase. After construction, it provides data to the inference process in the form of standard vehicle contours and calibration function library 110. Sample library construction is a one-time task during the system construction phase. During the inference execution phase, only its construction results are called and it does not participate in frame-by-frame calculation.

[0144] The data flow and processing steps of each module correspond one-to-one: the data acquisition module 100 corresponds to the image acquisition step, the vehicle contour segmentation module 140 corresponds to the segmentation and statistics step, the vehicle response and attitude determination module 130 and the attitude parameter output module 131 correspond to the recognition step, the combined contour construction and water depth inversion module 180 corresponds to the weighted combination and inversion step, and the water depth result output module 190 outputs the final result; the shear wavelet transform module 120, the non-negative matrix decomposition module 150, the contour matching and scale correction module 160 and the visible pixel statistics module 170 are the module-level implementations of the recognition step and the observation construction step, and the standard vehicle contour and calibration function library 110 provides library data for the weighted combination step.

[0145] IX. Experimental Verification.

[0146] The following experimental data are used to verify the technical effectiveness of the method of the present invention in solving the above-mentioned technical problems.

[0147] (1) Real-world scenario experiment.

[0148] Both sets of data are from real-world experiments conducted in Zhengzhou in 2025. The actual water depth was measured manually by personnel carrying a water gauge into the flooded area, simultaneously with vehicle image acquisition, with a measurement accuracy controlled within ±0.5cm. This on-site water gauge measurement serves as the baseline value used in both the comparison method and this method. The low water level scenario occurred at 12:40 PM on July 22, 2025, approximately 100m west of the intersection of Binhe Road and Huayuan Road in Zhengzhou, involving 10 vehicles and 10 video clips, totaling 100 frames. The high water level scenario occurred at 5:30 PM on August 7, 2025, on Jingguang Road in Zhengzhou, involving 2 vehicles and 4 video clips, totaling 100 frames. This method uses a model to predict attitude in the real-world water depth results, representing an end-to-end result and naturally including the propagation of attitude classification errors.

[0149] For the low water level scene, 100 frames were counted. Compared to Method 1 (a 3D rendering matching method), the MAE was 5.35cm, RMSE was 6.21cm, and the failure rate was 0%; compared to Method 2 (a wheel ellipse proportion method), the MAE was 5.01cm, RMSE was 6.88cm, and the failure rate was 0%; the MAE of this method was 4.37cm, RMSE was 4.45cm, and the failure rate was 0%. For the high water level scene, 100 frames were counted. Compared to Method 1, the MAE was 9.75cm, RMSE was 10.37cm, and the failure rate was 0%; compared to Method 2, 48 effective frames were counted, the MAE was 13.01cm, RMSE was 15.73cm, and the failure rate was 52%; the MAE of this method was 6.37cm, RMSE was 7.01cm, and the failure rate was 0%. In low-water-level scenarios, the MAE of this method is reduced by approximately 18.3% and 12.8% compared to comparative method one and comparative method two, respectively; in high-water-level scenarios, the MAE is reduced by approximately 34.7% and 51.0%, respectively, while maintaining 100% effective output rate.

[0150] (2) Multi-view simulation experiment.

[0151] The simulation experiments fixed the water depth at 35 cm and 55 cm, and set the pitch angle β to 0°, 30°, 45° and 60°. Each water depth-pitch angle combination contained 200 images, involving a total of 1600 simulation images.

[0152] When the water depth is fixed at 55cm, the MAE values ​​of the comparison methods 1, 2, and this method are 7.33cm, 7.75cm, and 6.54cm, respectively, and the RMSE values ​​are 7.66cm, 8.22cm, and 7.15cm, respectively, under the condition of β=0°. Under the condition of β=30°, the MAE values ​​are 9.28cm, 9.35cm, and 6.99cm, respectively, and the RMSE values ​​are 9.83cm, 10.33cm, and 7.47cm, respectively. Under the condition of β=45°, the MAE values ​​are 13.39cm, 14.28cm, and 7.38cm, respectively, and the RMSE values ​​are 15.21cm, 15.33cm, and 7.56cm, respectively. Under the condition of β=60°, the MAE values ​​are 17.19cm, 14.77cm, and 9.59cm, respectively, and the RMSE values ​​are 20.04cm, 16.37cm, and 11.04cm, respectively.

[0153] At a fixed water depth of 35 cm, the MAE values ​​for the three parameters at β=0° were 5.89 cm, 6.33 cm, and 5.66 cm, respectively, and the RMSE values ​​were 6.36 cm, 6.45 cm, and 6.08 cm, respectively. At β=30°, the MAE values ​​were 6.88 cm, 7.45 cm, and 6.78 cm, respectively, and the RMSE values ​​were 7.20 cm, 7.73 cm, and 7.57 cm, respectively. At β=45°, the MAE values ​​were 9.31 cm, 7.79 cm, and 6.90 cm, respectively, and the RMSE values ​​were 9.55 cm, 8.44 cm, and 7.36 cm, respectively. At β=60°, the MAE values ​​were 11.35 cm, 8.55 cm, and 6.94 cm, respectively, and the RMSE values ​​were 11.78 cm, 9.07 cm, and 7.79 cm, respectively.

[0154] At a water depth of 55 cm and β = 60°, the RMSE of this method was 11.04 cm, a decrease of approximately 44.9% compared to 20.04 cm in Comparative Method 1 and approximately 32.6% compared to 16.37 cm in Comparative Method 2. When β = 0° increased to 60°, the MAE increases for Comparative Method 1, Comparative Method 2, and this method at a water depth of 55 cm were approximately 134.5%, 90.6%, and 46.6%, respectively; at a water depth of 35 cm, the MAE increases for the three methods were approximately 92.7%, 35.1%, and 22.6%, respectively.

[0155] The results show that the proposed method exhibits a more gradual increase in pitch angle error. The error growth is significantly slower as the pitch angle increases, which is direct evidence that the attitude is incorporated into the calibration dimension rather than corrected retrospectively.

[0156] (3) Horizontal angle mismatch special experiment.

[0157] To isolate the impact of horizontal angle classification errors, at 19 nodes with correct horizontal angles of 0°, 10°, ..., and 180°, the matching nodes were artificially shifted by 30°. Water depth was re-estimated under conditions of β = 0°, 15°, 30°, 45°, 60°, and 75°. The experiment consisted of 19 horizontal angle nodes × 6 pitch angle nodes × 20 repetitions = 2280 trials, with each horizontal angle node containing 120 results. The 30° shift is equivalent to crossing three 10° classification nodes, constituting a significant mismatch stress test. The experimental error increment ΔMAE = MAE(mismatch 30°) - MAE(correct angle match) averaged 6.81 cm, had a median of 6.65 cm, and ranged from 3.88 cm to 10.37 cm (inclusive) across the 19 horizontal angle nodes. The RMSE after mismatch averaged 7.45 cm, had a median of 7.34 cm, and ranged from 4.29 cm to 11.78 cm.

[0158] The results show that the impact of angle mismatch is not negligible, which in turn proves the necessity of setting attitude prediction and angle-by-angle calibration; however, in real scenarios, adjacent category errors mainly occur, and the stress test value cannot be directly equated with the field average error.

[0159] (4) Soft combination verification experiment for unknown vehicles.

[0160] A white sedan in the Zhengzhou deep-water scene was not used as a training vehicle in the model training; it was tested as an unknown vehicle and used for 10 frames. The vehicle composition after non-negative matrix factorization aggregation was as follows: sedans (A-class sedan 302 and B-class sedan 303) had a combined weight of 72.07%; SUVs (small SUV 304 and large SUV 305) had a combined weight of 16.93%; and the remaining vehicles (van 301 and business MPV 306) had a combined weight of 11.00%. When performing hard matching analysis on a single sedan, the bias direction was too shallow (MAE 9.10 cm, RMSE 11.36 cm); when performing hard matching analysis on a single SUV, the bias direction was too deep (MAE 7.30 cm, RMSE 8.94 cm); and when performing mixed weight analysis using non-negative matrix factorization, the bias direction was too shallow (MAE 4.78 cm, RMSE 5.55 cm). Compared to hard matching for a single sedan, the mixed estimation of MAE and RMSE is reduced by approximately 47.5% and 51.1%, respectively; compared to hard matching for a single SUV, the reductions are approximately 34.5% and 37.9%, respectively. The hard matching mismatch error reaches 9.10 cm, a figure that itself is direct evidence that the "unique class prior" assumption has failed. This case serves as validation of the effectiveness of soft combinations for specific vehicles not present in the training set, demonstrating that soft combinations can reduce model mismatch compared to hard matching for a single vehicle model.

[0161] (5) Leave one standard model for testing.

[0162] In the experiment, the Class A sedan 302 was removed from the vehicle training data and category system of Model 1, along with its standard vehicle contour function, pixel loss relation, and water depth calibration basis. Model 1 was retrained with the remaining 5 vehicle categories, and the non-negative matrix factorization input and weight dimensions were adjusted accordingly to 5 categories. Models 2 to 4 still used the original training model, as their training objective was imaging pose rather than vehicle category; the removal of Class A sedan 302 did not change the parameters and function of the pose prediction module. During the testing phase, the remaining Class A sedan 302 was approximated by non-negative combinations of the other 5 vehicle categories.

[0163] In the low-water level scenario, with a complete 6-class vehicle model library, the MAE is 4.37 cm, RMSE is 4.45 cm, and the failure rate is 0%. After removing the A-class sedan 302 base, the remaining 5 classes result in a MAE of 5.71 cm, an RMSE of 7.33 cm, and a failure rate of 0%. In the high-water level scenario, with a complete 6-class vehicle model library, the MAE is 6.37 cm, RMSE is 7.01 cm, and the failure rate is 0%. After removing the A-class sedan 302 base, the remaining 5 classes result in a MAE of 8.30 cm, an RMSE of 9.15 cm, and a failure rate of 0%. After removal, the MAE increased by 1.34 cm and 1.93 cm in the low-water level and RMSE increased by 2.88 cm and 2.14 cm in the high-water level, respectively. However, both groups successfully output 100 frames each, and the failure rate remained at 0%. This indicates that the A-class sedan 302 base does indeed help improve accuracy. It also shows that when the target vehicle model base is missing, the soft combination of the remaining 5 classes can still provide a compensatory representation, and the method does not fail entirely due to the missing category in the standard vehicle model library. Compared to the comparison methods, the low water level retention result of 5.71cm is no longer better than the 5.35cm of comparison method one and the 5.01cm of comparison method two. The high water level retention result of 8.30cm is still better than the 9.75cm of comparison method one and the 13.01cm of comparison method two (where comparison method two only successfully output 48 frames with a failure rate of 52%). The core significance of the retention experiment is to maintain 100% effective output and the ability to compensate for missing vehicle models. The data from this experiment is not intended to claim that the model remains optimal in all scenarios after removal.

[0164] (6) Attitude prediction model accuracy.

[0165] Five-fold cross-validation was used on 2052 simulated images. The horizontal angle α, pitch angle β, and shooting distance d of each simulated image were directly provided by scene-derived parameters. The average accuracy of the simulated five-fold cross-validation for the horizontal angle α was 95%, while the accuracy for real images was 84%. The average accuracy of the simulated five-fold cross-validation for the pitch angle β was 84% ​​(β in the main real Zhengzhou scene ranges from 0° to 15° and includes both extreme values; large pitch angles were verified using simulation). The average accuracy of the simulated five-fold cross-validation for the shooting distance d was 87%, while the accuracy for real images was 85%. The road width, shooting position, and vehicle position in the real scene could be accurately measured, and the horizontal angle and shooting distance were calculated accordingly: the shooting distance was measured by cross-validation using a laser rangefinder and a long meter stick, with an error ≤0.5m; the horizontal angle was calculated based on the shooting position, vehicle position, and site geometry, with an error ≤2°. Each classification label represents a discrete small sector or distance range. The true continuous value is first assigned to the nearest node and then checked against the predicted category.

[0166] 10. Scenario Constraints.

[0167] The primary real-world application scenarios for this method are near-ground level or slightly downward viewing conditions, i.e., pitch angle β ranging from 0° to 15° and including both extreme values. For scenarios with larger pitch angles, i.e., β ranging from 30° to 75° and including both extreme values, existing evidence consists of attitude classification and water depth comparison under software simulation conditions. This evidence serves to demonstrate the feasibility and error trends of the method under controlled viewing angle variations. If engineering tasks require more stringent centimeter-level measurements, the shooting pitch angle should be reduced, multi-frame or multi-view result fusion should be used, or high-pitch-angle, low-confidence results should be transferred to manual verification.

[0168] The above-described solution in this embodiment can reuse existing urban surveillance cameras, eliminating the need for additional dedicated sensors, and can achieve low-cost, large-scale water depth monitoring. The output continuous absolute water depth data can be directly connected to urban flooding early warning and traffic control platforms, and is versatile in scenarios such as low-lying urban roads, underpasses, intelligent traffic dynamic road condition assessment, and flood control and drainage command platform disaster assessment. This method does not depend on specific camera models or installation locations, and can be implemented in any urban scenario where the imaging parameters fall within the coverage area of ​​the calibration grid. There are no pre-requirements on the type or brand of the target vehicle; any vehicle, such as taxis, ride-hailing vehicles, and private cars, can be used as a reference after being represented by soft combination. The method is also not limited to specific water levels; scenarios ranging from low water levels where 1 / 4 of the wheels are submerged to high water levels where the wheels are completely submerged are all within the effective range of the calibration mapping.

[0169] In addition to monitoring water accumulation on urban roads, this method is also applicable to estimating water depth in enclosed or semi-enclosed scenarios such as industrial parks, stations, and ports that have fixed monitoring facilities and are at risk of water accumulation.

[0170] Step S6, which determines the extent of water accumulation, relies on the ground elevation of the area to be measured, the ground reference position of the target vehicle, and the consistency of local water levels. When the ground elevation of a local water accumulation area is missing or invalid, the corresponding ground reference position cannot be determined, the spatial registration error between the image position and the ground position is greater than half the side length of the spatial grid, or the maximum difference between multiple reference water level elevations within the local water accumulation area is greater than a preset water level consistency threshold, only an estimated water depth is output, without determining the extent of water accumulation in that area. The extent of water accumulation in that area is marked as undeterminable. The determination of other local water accumulation areas remains unaffected. The accuracy of the water accumulation boundary is affected by the resolution of the ground elevation data, the accuracy of the spatial registration, and the integrity of the barrier boundary data. When only a single reference water level elevation exists for the same local water accumulation area, the output water accumulation range is the result without multi-observation cross-validation and is marked as pending confirmation.

[0171] XI. Terminology Consistency Explanation In this specification, "vehicle model response" refers to the normalized class response value output by the YOLOv11n model, which is functionally equivalent to the class probability distribution output by the model. However, to avoid confusion with statistical posterior probability, the term "response" is used throughout the document. "Contribution coefficient" refers to each component of the q vector in the rank-1 NMF decomposition, representing the weighted contribution of different scale-direction texture maps to the vehicle model combination representation. "Vehicle model combination weight w" refers to the non-negative combination weight of the target vehicle composed of six standard vehicle models, Σ_kw_k=1. "Pixel loss rate" is synonymous with "submerged pixel ratio," and the term "submerged pixel ratio" is used throughout the document. "Pixel loss rate" refers to the percentage of pixels in the overall vehicle reference profile that are obscured or submerged by water, or the percentage of submerged pixels after scale correction; x_obs is the observed pixel loss, and x_w(h;Θ) is the combined pixel loss function; the number of effective visible pixels counted in visibility determination and anomaly handling is uniformly denoted as the visible profile pixel contribution A_w(h;Θ); "Optimal linear scale ratio κ" refers to the scaling ratio in the length direction obtained through profile matching, and area correction is calculated according to κ²; Θ=(α,β,d) is uniformly referred to as imaging parameters, also known as attitude parameters; the standard vehicle profile and calibration function library are in Figure 1 and Figure 2The unified label is 110; "Combined standard vehicle profile" refers to the profile obtained by weighted combination of the profile point sets of six standard vehicle types under the same imaging parameter conditions according to the model combination weight w. In this specification, "water depth estimate (20)" in the context of water accumulation range determination refers to the water depth estimate that has not been rejected after anomaly processing; "ground reference position" refers to the position of the center of the contact area between the target vehicle wheel and the ground on the ground, without taking the vehicle surface point or water surface position; "reference water surface elevation" refers to the sum of the ground elevation of the ground reference position and the water depth estimate at that location; "local water surface elevation" refers to the water surface elevation determined by at least one reference water surface elevation in the same local water accumulation area, which is shared by all spatial grids in the local water accumulation area. When there is only one reference water surface elevation, that reference water surface elevation is the local water surface elevation. When there are multiple reference water surface elevations and the water level consistency condition is met, the local water surface elevation is the median of all reference water surface elevations; "spatial grid" refers to the geographic spatial grid divided according to the preset side length in the area to be measured, together with the imaging parameter grid and the vehicle three-dimensional grid. The meanings of the triangular mesh model 201 are different; "mesh water depth estimate" refers to the water depth value obtained by setting the difference between the local water surface elevation and the spatial mesh ground elevation to zero after negative values; "barrier boundary" refers to the boundary of a structure or terrain that is known to not have a water passage, determined by geographic information data, road facility data or field survey data; "preset water depth threshold h_p" is the water depth threshold set by the user and h_p≥0 (including 0); "range to be confirmed" refers to the mark attached to the water accumulation range that is only obtained from a single reference water surface elevation and has not been cross-validated by multiple observations, and its corresponding result status is range to be confirmed; "undeterminable" refers to the range result status of the corresponding local water accumulation area when the water accumulation range determination conditions are not met, and the water depth estimate (20) is still retained for output; "multiple valid water depth estimates" refers to each water depth estimate that has not been rejected for output after anomaly processing.

[0172] XII. Explanation of English Units and Symbols

[0173] The Chinese meanings of the English units and symbols appearing in this specific embodiment are as follows: cm is centimeter, a unit of length; m is meter, a unit of length; ° is degree, a unit of angle; % is percentage; MAE is Mean Absolute Error; RMSE is Root Mean Square Error; ROI is Region of Interest, referring to the area in the image where the vehicle is located; HSV is Hue-Saturation-Value, a color space of hue, saturation, and brightness; NMF is Non-negative Matrix Factorization; NNDSVD is Nonnegative Double Singular ValueDecomposition, or Non-negative Bisingular Value Decomposition, is used in this embodiment as a deterministic initialization method for non-negative matrix decomposition. YOLOv11n is the name of a standard lightweight object detection network. Hermite is the surname of a mathematician; monotonic cubic Hermite interpolation refers to the cubic interpolation method named after Hermite. argmax is the maximum index operator, indicating the node index that maximizes the response value within the parentheses. ID is the identifier. F-norm is the Frobenius norm, the square root of the sum of the squares of the elements of a matrix. min indicates taking the minimum value of the objective function. Σ represents summation. Δ represents increment. π_Θ represents the projection transformation corresponding to the imaging parameter Θ. Zbuf represents the depth buffer. λ is the interpolation weight function, with its subscript being 0 or 1. u_i is the ground reference position of the target vehicle corresponding to the i-th water depth estimate (20), i corresponds one-to-one with the instance identifier of the vehicle; z(u_i) is the ground elevation at u_i; h^_i is the water depth estimate corresponding to the i-th target vehicle; r_i is the reference water surface elevation corresponding to the i-th target vehicle, r_i=z(u_i)+h^_i; u_0 is the ground reference position when there is only one water depth estimate (20), z(u_0) is its ground elevation, h^(u_0) is the water depth estimate at this location, corresponding to the water depth estimate result 20, r(u_0) is its reference water surface elevation; H is the local water surface elevation; u is the spatial grid, z(u) is the ground elevation of the spatial grid u, h^(u) is the grid water depth estimate of the spatial grid u; C is the candidate water accumulation area; Ω is the set of grids for the water accumulation range; h_p is the preset water depth threshold; max indicates taking the maximum value.

[0174] The above embodiments are only used to illustrate and not limit the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the present invention without departing from the spirit and scope of the present invention. Any modifications or partial substitutions should be covered within the scope of the claims of the present invention.

Claims

1. An intelligent sensing method for urban waterlogging characteristics, characterized by: Includes the following steps: S1. Obtain the original vehicle water accumulation image of the scene to be tested (10) to provide a processing object for subsequent contour segmentation and parameter recognition; S2. Perform contour segmentation on the target vehicle in the original vehicle water accumulation image (10) to obtain the visible contour region of the target vehicle, and count the number of pixels in the visible contour region to obtain the number of visible contour pixels a, which provides an observation basis for water depth inversion. S3. Identify the vehicle type combination weight w and imaging parameter Θ of the target vehicle. The imaging parameter Θ represents the imaging posture when the target vehicle is photographed. The vehicle type combination weight w is a non-negative six-dimensional weight that sums to 1. The six-dimensional weights correspond to six standard vehicle types in turn. The six standard vehicle types are van (301), A-class sedan (302), B-class sedan (303), small SUV (304), large SUV (305), and business MPV (306). S4. The visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) of the six pre-established standard vehicle types under imaging parameter Θ are weighted and combined according to the vehicle type combination weight w to obtain the visible contour pixel contribution A_w(h;Θ) and the number of complete reference contour pixels A_w^full(Θ) of the combined vehicle type; where A_w(h;Θ) = Σw_c·A_c(h;Θ), A_w^full(Θ) = Σw_c·A_c(0;Θ), and the symbol Σ represents the weight of the combined vehicle type. The subscript c is summed from 1 to 6, w_c is the weight of the standard vehicle of the c-th class in the vehicle combination weight w, h is the water depth, and c is the serial number of the standard vehicle; based on the ratio of the visible contour pixel contribution A_w(h;Θ) to the number of complete reference contour pixels A_w^full(Θ), a combined pixel loss function x_w(h;Θ) is constructed, x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ), and the combined pixel loss function x_w(h;Θ) increases monotonically with the water depth h; S5. Substitute the scale-corrected observation pixel loss x_obs into the combined pixel loss function x_w(h;Θ) for monotonic inversion to obtain the water depth estimate h^=x_w^(-1)(x_obs;Θ) (20); where, the observation pixel loss x_obs=1-aκ² / A_w^full(Θ), κ is the optimal linear scale ratio obtained by contour matching of the target vehicle contour and the standard vehicle contour, and the observation pixel loss x_obs is obtained by scale correction of the number of visible contour pixels a by the square of the optimal linear scale ratio κ and normalization to the number of complete reference contour pixels A_w^full(Θ).

2. The intelligent sensing method for urban waterlogging characteristics according to claim 1, characterized in that: In step S3, identifying the weight w of the vehicle model combination includes: Multi-scale and multi-directional texture transformation was performed on the original vehicle water accumulation image (10) to obtain multiple texture maps of different scales and directions; Extract the vehicle model response of the target vehicle to six standard vehicle models from the texture map. The vehicle model response is the normalized response value for each standard vehicle model in the six standard vehicle models. Arrange the vehicle responses from each texture map in rows to form a non-negative response matrix P∈R_+^(M×6), where M is the number of texture maps and R_+ represents the set of non-negative real numbers; The non-negative response matrix P is decomposed into rank-1 non-negative matrix, which separates the non-negative response matrix P into contribution coefficient q and vehicle combination weight w, wherein the contribution coefficient q represents the non-negative contribution of each texture map to the representation of the vehicle combination, and the vehicle combination weight w is normalized to satisfy a sum of 1; The rank-1 nonnegative matrix decomposition is solved using deterministic initialization and multiplicative update.

3. The intelligent sensing method for urban waterlogging characteristics according to claim 1, characterized in that: The imaging parameters Θ include horizontal angle α, pitch angle β and shooting distance d; horizontal angle α is the observation azimuth angle formed by the rotation of the camera center (402) around the vertical axis of the target vehicle in the horizontal plane, pitch angle β is the angle between the optical axis of the camera and the horizontal plane, and shooting distance d is the straight-line distance between the camera center (402) and the vehicle reference point (401) of the target vehicle. The horizontal angle α, the pitch angle β, and the shooting distance d are discretized into multiple nodes to form an imaging parameter grid. Among them, the horizontal angle α consists of 19 nodes ranging from 0° to 180° with 10° intervals, including 0° and 180°; the pitch angle β consists of 6 nodes at 0°, 15°, 30°, 45°, 60°, and 75°; and the shooting distance d consists of 3 nodes at 8 m, 16 m, and 24 m. In step S4, the visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) of the six standard vehicle types under the imaging parameter Θ are pre-established according to the nodes of the imaging parameter grid.

4. The intelligent sensing method for urban waterlogging characteristics according to claim 3, characterized in that: The visible contour pixel contribution A_c(h;Θ) and complete contour pixel A_c(0;Θ) of the six standard vehicle models at each node of the imaging parameter grid are pre-established by constructing a standard vehicle contour and calibration function library (110). The construction process includes: For the three-dimensional triangular mesh model of each of the six standard vehicle types (201), multiple horizontal cutting planes (202) are set along the height direction at a preset interval. Geometrically intersect each horizontal tangent plane (202) with the triangular facets (203) of the vehicle's three-dimensional triangular mesh model (201) to obtain intersection line segments (204). A closed contour is constructed from the intersection line segments (204) within the same horizontal tangent plane (202), and the closed contour with the largest area is retained as the outermost contour (205) of this height layer. Under the imaging conditions corresponding to each node, joint visibility determination is performed on the contour points on the outermost contour (205) of each height layer. The joint visibility determination includes projection condition, normal vector condition, depth buffer condition and slice height condition. The projection condition is that the projection of the contour point on the image plane is located within the region of interest of the vehicle. The normal vector condition is that the angle between the normal vector at the contour point and the line-of-sight vector pointing from the contour point to the camera is an acute angle. The depth buffer condition is that the depth of the contour point in the camera coordinate system is not greater than the depth buffer value at the projection position of the contour point. The slice height condition is that when calculating the contribution of visible contour pixels at water depth h, only contour points on horizontal slices with a height higher than water depth h are counted. Pixels corresponding to contour points that meet all conditions are counted as visible pixels of that height layer, while pixels corresponding to contour points that do not meet any conditions are excluded. The visible pixels of each height layer are accumulated and normalized along the height direction to obtain the visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) of each standard vehicle at the corresponding node. Perform order-preserving regression on the pixel loss samples of each standard vehicle model at each node of the imaging parameter grid and each water depth sampling point, correct local non-monotonic points, and then perform monotonic interpolation to form a calibration function h=f(x;Θ) that monotonically increases with water depth, and store it in the standard vehicle profile and calibration function library (110); wherein, the pixel loss sample is determined by x=1-A_c(h;Θ) / A_c(0;Θ), where x is the pixel loss and h is the water depth.

5. The intelligent sensing method for urban waterlogging characteristics according to claim 1, characterized in that: In step S5, the observed pixel loss x_obs is calculated according to the following formula: x_obs=1-aκ² / A_w^full(Θ); where a is the number of visible contour pixels counted in step S2, κ is obtained by contour matching of the target vehicle contour and the standard vehicle contour by scaling and translation transformation, the standard vehicle contour is the combined standard vehicle contour obtained by weighted combination of the contour point sets of six standard vehicle types under the imaging parameter Θ according to the vehicle type combination weight w, and A_w^full(Θ) is the number of complete reference contour pixels; when the calculated value of the observed pixel loss x_obs is less than 0, it is set to 0, when the calculated value of the observed pixel loss x_obs is greater than 1, it is set to 1, and a low confidence indicator is output in both cases of setting it to 0 or setting it to 1.

6. The intelligent sensing method for urban waterlogging characteristics according to claim 1, characterized in that: It also includes exception handling steps: When the confidence level of vehicle type identification in step S3 is lower than the preset vehicle type response confidence level threshold, the weight w of the vehicle type combination identified in step S3 is retained and a low confidence flag is output, or a definite water depth estimate h^(20) is refused to be given. When there are multiple overlapping target vehicles in the original vehicle water accumulation image (10), an instance identifier is assigned to each target vehicle, and steps S2 to S5 are executed for each vehicle according to the instance identifier to obtain the water accumulation depth estimate corresponding to each target vehicle. The median of multiple valid water accumulation depth estimates in the same water accumulation area is taken as the water accumulation depth estimate of that area, and the dispersion of the median is retained as an uncertainty measure. When the wheels of the target vehicle are completely submerged in water, the system continues to perform the statistics of visible outline pixels by using horizontal slices on the vehicle body that are higher than the wheels and still have visible outline pixels. When there are not enough effective horizontal slices for the entire vehicle, the estimation is terminated.

7. The intelligent sensing method for urban waterlogging characteristics according to claim 3, characterized in that: It also includes the sequential calling steps of the calibration function: The imaging parameter Θ identified in step S3 is used to determine the grid nodes adjacent to the imaging parameter Θ in the imaging parameter grid, and the normalized positions t_α, t_β and t_d of the imaging parameter Θ between two adjacent nodes are calculated in each dimension of horizontal angle α, pitch angle β and shooting distance d. For the calibration function pre-established at each node of the imaging parameter grid, trilinear interpolation is performed according to the normalized positions t_α, t_β and t_d in each dimension to obtain the calibration function f(x;Θ) under the imaging parameter Θ. The calibration function is a function of water depth with respect to pixel loss that is pre-established based on the visible contour pixel contribution A_c(h;Θ) and the complete contour pixel A_c(0;Θ) at each node and increases monotonically with water depth. The interpolation weight in each dimension is determined by the normalized position in that dimension.

8. The intelligent sensing method for urban waterlogging characteristics according to claim 1, characterized in that: It also includes step S6 for determining the extent of water accumulation: Obtain at least one water depth estimate (20) obtained from steps S1 to S5 at the same time or during the same observation period, the ground reference position of the target vehicle corresponding to each water depth estimate (20) and the ground elevation data of the area to be measured, and spatially match each water depth estimate (20) with the corresponding ground reference position. Local waterlogging areas are delineated according to the effective range of ground elevation, the section of road to be measured, the known catchment area, or the preset spatial division; under the condition that the local water surface is treated as a horizontal plane, the elevation of each reference water surface is determined by the sum of the ground elevation of the corresponding ground reference position and the estimated water depth (20) for each water depth estimate (20), and each reference water surface elevation is assigned to the corresponding local waterlogging area according to the spatial position of the ground reference position corresponding to each reference water surface elevation; When multiple reference water surface elevations exist for the same localized water accumulation area, if the maximum difference between the multiple reference water surface elevations within the localized water accumulation area is not greater than a preset water level consistency threshold, then the median of the reference water surface elevations within the localized water accumulation area is taken as the localized water surface elevation of the localized water accumulation area. If the maximum difference is greater than the preset water level consistency threshold, then only the water accumulation range of the localized water accumulation area is marked as undeterminable. The localized water accumulation area marked as undeterminable will no longer undergo subsequent calculations of grid water accumulation depth, candidate water accumulation area search, and water accumulation range output. When only one reference water surface elevation exists for the same localized water accumulation area, that reference water surface elevation is taken as the localized water surface elevation of the localized water accumulation area, and a range pending confirmation mark is added to the output water accumulation range of the localized water accumulation area. Different localized water accumulation areas are determined separately and do not affect each other. For each localized waterlogged area not marked as undeterminable, the following processing is performed: Calculate the difference between the local water surface elevation of the localized waterlogged area and the ground elevation of each spatial grid within the localized waterlogged area, and set the negative values ​​of the difference to zero to obtain the grid waterlogged depth estimate of each spatial grid within the localized waterlogged area; map the ground reference position corresponding to the localized waterlogged area to the spatial grid of the area to be measured, and use the mapped spatial grid as a seed, within the localized waterlogged area, search according to the four neighboring connectivity relationships of the grid with a grid waterlogged depth estimate greater than 0 and belonging to the localized waterlogged area, without crossing the boundary and barrier boundary of the localized waterlogged area, to obtain the candidate waterlogged area C of the localized waterlogged area, wherein the barrier boundary is a structure boundary or terrain boundary that is known to not have a water passage determined based on geographic information data, road facility data or field survey data; Spatial grids whose estimated water depth in candidate water accumulation area C of the local water accumulation area is greater than the preset water depth threshold h_p are identified as water accumulation grids, where h_p≥0 and includes 0; Spatially adjacent water accumulation grids within the local water accumulation area are merged and their boundaries are extracted, and the water accumulation range corresponding to the local water accumulation area and the preset water depth threshold h_p is output.

9. An intelligent sensing system for urban waterlogging characteristics, characterized in that: include: The data acquisition module (100) is used to acquire the original vehicle water accumulation image (10) of the scene to be tested. The vehicle contour segmentation module (140) is used to perform contour segmentation on the target vehicle in the original vehicle water accumulation image (10) to obtain the visible contour area of ​​the target vehicle. The vehicle response and attitude determination module (130) is used to identify the vehicle response distribution and imaging attitude category of the target vehicle corresponding to six standard vehicle types; the six standard vehicle types are van (301), A-class sedan (302), B-class sedan (303), small SUV (304), large SUV (305) and business MPV (306). The attitude parameter output module (131) is used to output the imaging parameter Θ according to the imaging attitude category, wherein the imaging parameter Θ represents the imaging attitude when shooting the target vehicle; The combined contour construction and water depth inversion module (180) is used to obtain the vehicle combination weights w corresponding to the six standard vehicle types from the vehicle type response distribution. The vehicle combination weights w are non-negative six-dimensional weights that sum to 1. The visible contour pixel contributions A_c(h;Θ) and complete contour pixels A_c(0;Θ) of the six pre-established standard vehicle types under the imaging parameter Θ are weighted and combined according to the vehicle combination weights w to obtain the visible contour pixel contributions A_w(h;Θ) and the number of complete reference contour pixels A_w^full(Θ) of the combined vehicle type, and construct a monotonically increasing value with water depth h. The combined pixel loss function x_w(h;Θ) is added, x_w(h;Θ)=1-A_w(h;Θ) / A_w^full(Θ); and the observed pixel loss x_obs is substituted into the combined pixel loss function x_w(h;Θ) for monotonic inversion to obtain the water depth estimate h^(20) of the scene to be tested; wherein, the observed pixel loss x_obs is obtained by normalizing the number of visible contour pixels a after scale correction according to the number of complete reference contour pixels A_w^full(Θ), and the number of visible contour pixels a is obtained by statistics of the visible contour region; The water depth result output module (190) is used to output the estimated water depth h^ (20). The standard vehicle profile and calibration function library (110) is used to provide the combined profile construction and water depth inversion module (180) with the visible profile pixel contribution A_c(h;Θ) and the complete profile pixel A_c(0;Θ) of six standard vehicle models under various imaging parameters.

10. The intelligent sensing system for urban waterlogging characteristics according to claim 9, characterized in that: Also includes: The shear wavelet transform module (120) is used to perform shear wavelet transform on the original vehicle water accumulation image (10) to obtain multiple texture maps of different scales and directions, which are used by the vehicle response and attitude determination module (130) to extract the vehicle type response and imaging attitude category. The non-negative matrix decomposition module (150) is used to perform rank-1 non-negative matrix decomposition on the non-negative response matrix P composed of the vehicle vehicle responses of each texture map arranged in rows, to separate the contribution coefficient q and the vehicle vehicle combination weight w, and output the vehicle vehicle combination weight w to the combined contour construction and water depth inversion module (180). The contour matching and scale correction module (160) is used to perform contour matching by scaling and translation transformation on the contour of the target vehicle and the combined standard vehicle contour obtained by weighted combination of the contour point set of six standard vehicle types under imaging parameter Θ according to the visible contour region of the target vehicle output by the vehicle contour segmentation module (140), and solve the optimal linear scale ratio κ. The visible pixel statistics module (170) is used to count the number of visible contour pixels a, and calculate the observed pixel loss x_obs according to x_obs=1-aκ² / A_w^full(Θ), and provide it to the combined contour construction and water depth inversion module (180); where A_w^full(Θ) is the number of complete reference contour pixels obtained by combining according to the vehicle model combination weight w; It also includes a sample library construction module, which is used to build the standard vehicle profile and calibration function library (110) during the system construction phase. The standard vehicle profile and calibration function library (110) stores the visible profile pixel contribution A_c(h;Θ), the complete profile pixel A_c(0;Θ) for six types of standard vehicle models under various imaging parameters Θ, and a calibration function that monotonically increases with water depth, formed by order-preserving regression and monotonically interpolation of the ratio of the visible profile pixel contribution A_c(h;Θ) to the complete profile pixel A_c(0;Θ); After the construction is completed, the standard vehicle profile and calibration function library (110) provides the combined profile construction and water depth inversion module (180) with the visible profile pixel contribution A_c(h;Θ) and the complete profile pixel A_c(0;Θ) of six standard vehicle models under each imaging parameter Θ.

Citation Information

Patent Citations

  • An urban inland inundation water depth detection method based on deep learning

    CN109816040A

  • Urban ponding depth estimation method and system based on multi-reference object system

    CN118691838A