# US 2021/0341330 A1 · System for automatically measuring discharge in real-time based on cctv image and method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0341330 A1
- Document ID: US20210341330A1
- Status: Published application
- Kind: A1
- Application number: 16/617,359
- Filed: 2018-11-29
- Published: 2021-11-04
- Earliest claimed: 2018-11-13
- Assignees: Hydrosem; Republic of Korea (National Disaster Management Research Institute)
- Applicants: Hydrosem; Republic of Korea (National Disaster Management Research Institute)
- Inventors: Seo Jun KIM; Byung Man YOON; Ho Jun YOU; Dong Su KIM; Tae Sung CHEONG; Jae Seung JOO; Hyeon Seok CHOI
- Web page: https://patentgrep.com/patent/US20210341330A1

## CPC

- H04N 7/18: Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- G01C 13/006: {horizontal movement}
- G01F 1/002: wherein the flow is in an open channel
- G01F 1/7086: using optical detecting arrangements
- G01F 1/712: using auto-correlation or cross-correlation detection means
- G01F 9/001: {with electric, electro-mechanic or electronic means (G01F9/008 and G01F9/02 take precedence)}
- G01F 23/02: by gauge glasses or other apparatus involving a window or transparent tube for directly observing the level to be measured or the level of a liquid column in free communication with the main body of the liquid
- G01F 23/2962: Measuring transit time of reflected waves
- G01P 5/26: by measuring the direct influence of the streaming fluid on the properties of a detecting optical wave
- G01S 15/08: Systems for measuring distance only (indirect measurement G01S15/46)
- G01S 15/88: Sonar systems specially adapted for specific applications (seismic or acoustic prospecting or detecting G01V1/00)
- G01S 19/01: Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06T 7/66: of image moments or centre of gravity
- G06V 10/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/62: relating to a temporal dimension, e.g. time-based feature extraction; Pattern tracking
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G01F: MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01P: MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT (measuring or recording blood flow A61B5/02, A61B8/06; monitoring speed or deceleration of electrically-propelled vehicles B60L3/00; vehicle lighting systems adapted to indicate speed B60Q1/54; determining position or course in navigation, measuring ground distance in geodesy or surveying G01C; combined measuring devices for measuring two or more variables of movement G01C23/00; measuring velocity of sound G01H; measuring velocity of light G01J7/00; measuring direction or velocity of solid objects by reception or emission of radiowaves or other waves and based on propagation effects, e.g. Doppler effect, propagation time, direction of propagation, G01S; measuring speed of nuclear radiation G01T; measuring acceleration of gravity G01V; {measuring or recording the speed of trains B61L23/00; speed indicators incorporated in motor vehicles B60K35/00; measuring frequency or phase G01R; traffic control G08G})
- G01S: RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Disclosed is a system for automatically measuring a discharge in real time based on a CCTV image. The system includes: a water depth measurement device filtering water depth data measured by a measurement means with a local linear regression-based bivariate scatterplot smoothing technique through flexible bandwidth application to calculate the water depth of a stream; an image acquisition device acquiring a continuous image of a flow speed measurement side of the stream; an image analysis PC using an image of the image acquisition device to measure the surface flow speed in real time and receiving a measured water depth from the water depth measurement device to measure the discharge in real time with cross-section data; and a discharge calculation and management server for transmitting and displaying a real-time discharge measurement result based on a web.

## Claims

### Claim 1

A closed-circuit television (CCTV) image based real-time automatic discharge measurement system, the system comprising:
a water depth measurement device configured to filter water depth data measured by a measurement unit using a local linear regression-based bivariate scatterplot smoothing technique through adaptive bandwidth application to calculate a water depth of a stream;
an image acquisition device configured to acquire consecutive images of a flow velocity measurement site of the stream;
an image analysis personal computer (PC) configured to measure a surface flow velocity in real time using the images of the image acquisition device and receive the measured water depth from the water depth measurement device to measure a discharge in real time with cross-section data; and
a discharge calculation and management server configured to transmit and display a real-time discharge measurement result based on the Web.

### Claim 2 (depends on 1)

The system of claim 1, wherein the water depth measurement device includes:
a Global Positioning System (GPS) reception unit configured to receive GPS information according to an installation position of the stream water depth measurement device from a GPS satellite;
an ultrasonic sensor unit configured to transmit ultrasonic waves to a surface of a measurement target, receive reflected waves formed by the transmitted ultrasonic waves being reflected from the surface of the measurement target and being returned, and measure a distance from the surface of the measurement target on the basis of a time difference between an ultrasonic transmission time and a reflected wave reception time, an ultrasonic transmission velocity, and a reflection velocity of the reflected wave;
a positioning data filtering unit configured to filter positioning data of the ultrasonic sensor unit and minimize uncertainty of the water depth measurement due to rough water surface ripples of a small stream; and
a water depth calculating unit configured to calculate a water depth, which is a distance from a bottom of the measurement target to the water surface of the measurement target, using altitude information included in the GPS information received from the GPS reception unit, distance information filtered by the positioning data filtering unit and measured by the ultrasonic sensor unit, and distance information between a structure and the bottom of the measurement target.

### Claim 3 (depends on 2)

The system of claim 2, wherein the positioning data filtering unit includes:
a smoothed value estimating unit configured to estimate a smoothed value at an arbitrary position in the measured positioning data;
a smoothed most probable value calculating unit configured to calculate a plurality of smoothed most probable values for an initial fixed bandwidth such that a square of an estimated error is minimum;
a cross-validated residual calculating unit configured to calculate a cross-validated residual for each bandwidth;
an optimal bandwidth calculating unit configured to calculate an optimal bandwidth for each point;
a bandwidth selecting unit configured to select a bandwidth close to an optimal bandwidth from among initially input bandwidths; and
a final smoothed most probable value calculating unit configured to calculate a final smoothed most probable value by linear interpolation using the smoothed most probable value.

### Claim 4 (depends on 1)

The system of claim 1, wherein the image analysis PC includes:
an image conversion analysis unit configured to dynamically extract frames of the consecutive images in order to normalize image data of the image acquisition device, image-convert the extracted frames, and perform homography calculation;
an analysis region extracting unit configured to extract an analysis region of an analysis point;
a pixel flow velocity calculating unit configured to calculate a pixel flow velocity using an image in the analysis region of the analysis point extracted by the analysis region extracting unit;
an actual flow velocity calculating unit configured to convert the pixel flow velocity calculated by the pixel flow velocity calculating unit into an actual flow velocity;
a water depth measuring unit configured to filter the measured water depth data to calculate a water depth of the stream; and
a discharge calculating unit configured to perform real-time discharge calculation using the actual flow velocity of the actual flow velocity calculating unit and the water depth information of the water depth measuring unit.

### Claim 5 (depends on 4)

The system of claim 4, wherein, in order to perform homography calculation, the image conversion analysis unit calculates average X and Y coordinates of input points, moves corresponding coordinates to an origin, converts a distance between the input points and the average X and Y coordinates, and normalizes image data.

### Claim 6 (depends on 4)

The system of claim 4, wherein, in order to calculate a surface flow velocity field to which an optical flow is applied, the pixel flow velocity calculating unit reads a preset grid setting, declares the number (N) of images to be analyzed and an array for storing analysis results, stores the image in the array, and calculates the surface flow velocity field by repeating analysis between images as many times as the number of grid points.

### Claim 7 (depends on 4)

The system of claim 4, wherein, in order to calculate a point flow velocity, the pixel flow velocity calculating unit calculates the pixel flow velocity by declaring an image parameter and a grid point parameter and extracting the image at a grid point position, and calculates the point flow velocity by declaring a grid point position parameter, a pixel flow velocity parameter, and a filter coefficient parameter and performing filtering when a calculated flow velocity error is greater than the filter coefficient.

### Claim 8 (depends on 4)

The system of claim 4, wherein, in order to correct distortion of the image photographed by the image acquisition device, four reference points are installed at a height of a bank such that coordinates of an image of the reference point viewed by a camera are not changed even when a water depth is changed, and actual coordinates (X′0, Y′0, Z′0) of a point (A′) at the same height as a water surface are obtained using actual coordinates (Xc, Yc, H) of the camera, a height (H) from the camera to the water surface, and actual coordinates (X0, Y0, Z0) of a reference point (A) on the bank.

### Claim 9

A closed-circuit television (CCTV) image based real-time automatic discharge measurement method, the method comprising:
an operation of acquiring consecutive images of a flow velocity measurement site of a stream;
an image conversion analyzing operation of dynamically extracting frames of the consecutive images, image-converting the extracted frames, and performing homography calculation in order to normalize the acquired image data;
an operation of extracting an analysis region of an analysis point and calculating a pixel flow velocity through the extracted image in the analysis region of the analysis point;
an operation of converting the calculated pixel flow velocity into an actual flow velocity and calculating a discharge using the actual flow velocity; and
an operation of receiving water depth information calculated by a positioning filtering process, storing the water depth information in a database through a Web page of a Web server, and providing the corresponding discharge and water depth information through the Web page of the Web server.

### Claim 10 (depends on 9)

The method of claim 9, wherein, in the image conversion analyzing operation, in order to perform homography calculation, average X and Y coordinates of input points are calculated, corresponding coordinates are moved to an origin, a distance between the input points and the average X and Y coordinates is converted, and image data is normalized.

### Claim 11 (depends on 9)

The method of claim 9, wherein, in order to calculate a surface flow velocity field to which an optical flow is applied, the operation of calculating the pixel flow velocity includes:
an operation of defining a grid parameter including M points to be analyzed;
an operation of reading a preset grid setting and declaring the number (N) of images to be analyzed an array for storing analysis results;
an operation of storing the images photographed by a camera in the array;
an operation of storing the analysis results in the array by repeating analysis between images as many times as the number of grid points.

### Claim 12 (depends on 9)

The method of claim 9, wherein, in order to calculate a point flow velocity calculation, the operation of calculating the pixel flow velocity includes:
an operation of declaring image and grid point parameters and extracting the image at a grid point position;
an operation of applying an optical flow pixel flow velocity calculation algorithm, declaring a grid point position parameter, a pixel flow velocity parameter, and a filter coefficient parameter and converting the grid point position and the pixel flow velocity into the actual flow velocity; and
an operation of performing filtering when the calculated flow velocity error is greater than the filter coefficient, and otherwise, an operation of outputting a result of the flow velocity calculation.

### Claim 13 (depends on 9)

The method of claim 9, wherein, in the operation of calculating the pixel flow velocity,
an equation for pixel flow velocity calculation is defined as
I(x,y,t)+I(x+δx,y+δy,t+δt)),
here, I denotes a pixel value of the image, x denotes an X-direction coordinate, y denotes a Y-direction coordinate, t denotes time, and δt denotes an amount of time change.

### Claim 14 (depends on 13)

The method of claim 13, wherein the equation for pixel flow velocity calculation is defined as
I
⁡
(
x
+
δ
⁢
⁢
x
,
y
+
δ
⁢
⁢
y
,
t
+
δ
⁢
⁢
t
)
=
I
⁡
(
x
,
y
,
t
)
+
∂
I
∂
x
⁢
δ
⁢
x
+
∂
I
∂
y
⁢
δ
⁢
⁢
y
+
∂
I
∂
⁢
t
⁢
δ
⁢
⁢
t
+
,
and using the fact that a sum of the derivatives of a right expression should be zero, an equation for the pixel flow velocity calculation is defined as
∂
I
∂
x
⁢
δ
⁢
⁢
x
+
∂
I
∂
y
⁢
δ
⁢
y
+
∂
I
∂
t
⁢
δ
⁢
⁢
t
=
0
→
I
X
⁢
V
X
+
I
Y
⁢
V
Y
=
-
I
t
,
here, Ix denotes an X-direction differential matrix of the image, Iy denotes a Y-direction differential matrix of the image, Vx denotes an X-direction pixel velocity, Vy denotes a Y-direction pixel velocity, and It denotes a time differential matrix of the image.

### Claim 15 (depends on 14)

The method of claim 14, wherein the equation for pixel flow velocity calculation is defined as Av=b
A
=
[
I
x
⁡
(
q
1
)
I
y
⁡
(
q
1
)
I
x
⁡
(
q
2
)
I
y
⁡
(
q
2
)
⋮
⋮
I
x
⁡
(
q
n
)
I
y
⁡
(
q
n
)
]
⁢
v
=
[
V
x
V
y
]
⁢
b
=
[
-
I
t
⁡
(
q
1
)
-
I
t
⁡
(
q
2
)
⋮
-
I
t
⁡
(
q
n
)
]
,
here, qn denotes an nth pixel, and n denotes the number of pixels in the image.

### Claim 16 (depends on 9)

The method of claim 9, wherein, in the operation of converting the calculated pixel flow velocity into the actual flow velocity and calculating the discharge using the actual flow velocity, the actual flow velocity is defined as
Vγ=Vp×LPP×K,
here, Vγ denotes the actual flow velocity, Vp denotes the pixel flow velocity, LPP denotes a distance per pixel, and K denotes a scale factor.

### Claim 17 (depends on 9)

The method of claim 9, wherein, in the operation of converting the calculated pixel flow velocity into the actual flow velocity and calculating the discharge using the actual flow velocity,
the discharge is calculated using a water depth of the analysis point and the actual flow velocity as illustrated in an equation below
Q
=
∑
i
=
0
N
⁢
A
i
⁢
V
i
,
here, Q denotes the flow rate, Ai denotes a unit area of the analysis point, and Vi denotes the flow velocity of the analysis point.

### Claim 18 (depends on 9)

The method of claim 9, wherein the water depth information calculated by a positioning filter process is calculated by including:
transmitting ultrasonic waves to a surface of a measurement target and receiving reflected waves formed by the transmitted ultrasonic waves being reflected from the surface of the measurement target and returned;
estimating a smoothed value at an arbitrary position to filter the positioning data received by the ultrasonic sensor, calculating a plurality of smoothed most probable values for an initial fixed bandwidth such that a square of an estimated error is minimum, and calculating a cross-validated residual for each bandwidth;
calculating an optimal bandwidth for each point and selecting a bandwidth close to the optimal bandwidth from among initially input bandwidths;
calculating a final smoothed most probable value by linear interpolation using the smoothed most probable value; and
calculating a distance from the surface of the measurement target using the filtered positioning data on the basis of a time difference between an ultrasonic transmission time and a reflected wave reception time, an ultrasonic transmission velocity, and a reflection velocity of the reflected wave, and calculating a water depth.

### Claim 19 (depends on 18)

The method of claim 18, wherein, in order to estimate a smoothed value at an arbitrary position for filtering the positioning data,
{circumflex over (f)}(xi), which is a smoothed value at an arbitrary position xi in scatterplots, is estimated by local regression using a least-squares method using an equation,
Ê[Y|xi]={circumflex over (α)}+{circumflex over (β)}xj,xjϵNi,
here, N denotes a local bandwidth around xi and is optimized for each position, and
when a specific bandwidth J is given and the number of parameters in the bandwidth is N,
a local linear regression tracker is obtained using an equation,
ŷk={circumflex over (α)}+{circumflex over (β)}xk,k=1, . . . ,N,
here, {circumflex over (α)} and {circumflex over (β)} are obtained by linear regression of local data which is present in i−J/2, . . . , i+J/2, and ŷi become smoothed most probable values corresponding to the position xi.

### Claim 20 (depends on 19)

The method of claim 19, wherein, in order to calculate a smoothed most probable value that is linked to a locally adaptive bandwidth, when an observation y=f(x) and a bandwidth J(x) at the x position are given, J(x) and f(x) are calculated such that the square of an estimation error is minimized, using an equation,
e2(f,J)=E[Y−f(X|J(X))]2.

### Claim 21 (depends on 20)

The method of claim 20, wherein, in order to minimize the square of the estimation error, when the number of pieces of whole data is n, a plurality of smoothed most probable values f(x) are calculated for initial fixed bandwidths J of various sizes between 0<j<n, and a cross-validated residual is calculated for each bandwidth J by the cross-validated residual calculating unit using an equation,
r
(
i
)
⁢
(
J
)
=
[
y
i
-
f
^
⁡
(
x
i
|
J
)
]
/
(
1
-
1
J
-
(
x
i
-
x
¯
J
)
2
V
J
)
,
wherein, equations,
V
J
=
1
n
⁢
∑
j
=
i
-
J
/
2
i
+
J
/
2
⁢
(
x
i
-
x
¯
J
)
2
,
x
¯
J
=
1
J
⁢
∑
j
=
i
-
J
/
2
i
+
J
/
2
⁢
x
i
are satisfied.

### Claim 22 (depends on 21)

The method of claim 21, wherein, in order to derive ê(f,J|xi) as a result of smoothing |r(i)(J)| for xi having a bandwidth of J=0.2n and to calculate an optimal bandwidth Jcv(xi) at each point,
the optimal bandwidth is calculated using an equation,
ê(f,Jcv|xi)=minê(f,J|xi),
and
a value of J corresponding to êmin among derived maximum errors ê for the plurality of bandwidths J in a specific position, xi, becomes the optimal bandwidth Jcv.

### Claim 23 (depends on 22)

The method of claim 22, wherein Jcv(xi) for each xi is re-smoothed with the bandwidth of J=0.2n, and then a bandwidth close to Jcv(xi) among the initially input bandwidths by the bandwidth selecting unit is selected using an equation,
Ji1≤Jcv(xi)≤Ji2,
when smoothed most probable values corresponding to two initial bandwidths Ji1, Ji2 which are selected for the obtained xi are y*i1, y*i2 respectively, y*i is obtained using the two values in linear interpolation using an equation,
y*i=(y*i1−y*i2)/Ji1−Ji2)(J*cv(xi)−Ji2)+y*i2,
and
the final smoothed most probable value y*i corresponding to xi reuses the smoothed value with a bandwidth of J=0.5n.
