River surface feature dynamic enhancement method and device
Through the MDP algorithm and specially designed throwing device, the problem of expensive and time-consuming river surface flow velocity measurement technology is solved, efficient and accurate measurement of the river surface flow velocity field is achieved, and the feasibility and accuracy of measurement under adverse environmental conditions are ensured. .
Patent Information
- Application Number
- CN202410556660.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-30
AI Technical Summary
Existing river surface flow velocity measurement technology is expensive and time-consuming, manual measurement is difficult to implement under adverse environmental conditions, and the tracer particle throwing method based on computer image velocity measurement algorithm is difficult to achieve optimal density and spatial distribution, and cannot effectively extract river surface flow velocity characteristics. .
The MDP algorithm is used for dynamic planning and decision-making of the tracer particle scattering area, and a scattering device is designed to efficiently and accurately form a uniform, extensive, and accurate particle spatial distribution and seeding density in the measurement area through the particle emitter to realize the river Optimal measurement of surface flow velocity field information.
It achieves efficient and accurate river surface flow velocity measurement, can effectively measure the river surface flow velocity field under adverse environmental conditions, reduces the cost and time of manual measurement, and improves the accuracy and reliability of measurement.
Smart Images

Figure CN118566531A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of river surface velocity measurement, and in particular to a method and device for dynamically enhancing river surface characteristics. Background Art
[0002] Measuring the surface velocity of a river is a key step in obtaining the river runoff, which is of great significance to environmental protection and engineering practice. Velocity measurement activities are usually expensive and time-consuming, requiring the presence of highly qualified personnel and forward-looking planning, and manual measurement is difficult to implement under unfavorable environmental conditions. Although the development of computer image velocity measurement algorithms is widely used to observe the velocity by throwing tracer particles on the river surface, this method is also difficult to achieve the optimal density and spatial distribution of tracer particles to extract the velocity characteristics of various locations on the river surface. To this end, we propose a method and device for dynamically enhancing river surface characteristics. Summary of the invention
[0003] The main purpose of the present invention is to provide a method and device for dynamically enhancing river surface features, adopt an MDP algorithm to dynamically plan and decide on the scattering area of tracer particles, and propose a structural form of a scattering device, so that the particle scatterer is efficient and accurate, so as to form an optimal particle spatial distribution and seeding density that is uniform, widespread, and accurate in the measurement area and can reflect the velocity information of the river surface flow field, which can effectively solve the problems in the background technology.
[0004] The principle of MDP algorithm is:
[0005] Select a measurement area S, divide the measurement area evenly into rectangular grids with i rows and j columns, and define a rectangular grid s with the i-th row and j-th column ij Corresponding to the state of the particle emitter, the particle emitter is the intelligent agent.
[0006] The MDP algorithm is used as the particle throwing decision, and the state transition probability matrix P(s(i-1)j|s ij ) represents the state s ij Transfer to (i-1)j The probability of the agent performing an action in each state is assumed to be uniformly distributed. i =(a 上 , a 下 , a 左 , a 右 , a 不动 ), define the reward function
[0007] R(s,a)=-c1·v c2 / (ρ c3 / ρcv1)=-c1·SDI [1]
[0008] v represents the level of particle spatial clustering in the measurement area; ρ is the particle seeding density; ρcv1 is the reference seeding density; SDI is the seeding distribution index, and the size of the immediate reward is based on the seeding distribution index; c1, c2, c3 are the evaluation coefficients of the seeding distribution index, which are re-given through image evaluation after each particle throwing;
[0009] To judge the value of a state, we need to calculate the expected return of all trajectories starting from this state, that is,
[0010] V π (s) = E π [G t |S t =s] [2]
[0011]
[0012] Formula [3] represents the return along the trajectory formed by the strategy from the state at time t. In order to gradually weaken the judgment of the subsequent state on the current state and make the iteration converge in the end, a discount factor γ between 0 and 1 is introduced;
[0013] The strategy optimization method based on strategy iteration requires continuous strategy evaluation and strategy improvement until the value converges, and then it is considered that the optimal strategy has been obtained;
[0014] According to the Markov property and formula [2], the Bellman equation can be obtained:
[0015]
[0016] According to the above Bellman equation formula, the strategy can be updated based on the value function in strategy improvement.
[0017]
[0018]
[0019] Based on the greedy strategy, the probability corresponding to the maximum action value can be set to 1, and the expected return at this time is guaranteed:
[0020] a * q(s,a * )=q(s,a * )≥P(a1|s1)·q(s1,a1)+P(a2|s2)·q(s2,a2)+P(a3|s3)·q(s3,a3)+… [8]
[0021] So it is advisable to:
[0022] ∏ * (s) = argmax Π(s) V* (s) [9]
[0023] Combining the Bellman equation with formula [6] and formula [9], the strategy can be continuously optimized until convergence during the strategy iteration process.
[0024] In order to achieve the above object, the technical solution adopted by the present invention is:
[0025] A method for dynamically enhancing river surface features, comprising:
[0026] Select a measurement area S, divide the measurement area evenly into rectangular grids with i rows and j columns, and define a rectangular grid s with the i-th row and j-th column ij Corresponding to the state of the particle emitter, the river scene in the measurement area S is photographed in real time;
[0027] Randomly throwing a number of tracer particles into the measurement area S, obtaining an initial image of the measurement area, processing the initial image, and evaluating the characteristic state of the initial image, wherein the characteristic state includes particle density and distribution state;
[0028] A particle throwing decision strategy π is constructed according to the MDP algorithm, and the optimal decision action for particle throwing is selected through the decision strategy model. The selection process of the optimal decision action for particle throwing includes the following steps:
[0029] s01, randomly throwing a number of tracer particles into the measurement area S, obtaining an initial image of the measurement area, processing the initial image, and evaluating the characteristic state of the initial image;
[0030] s02, initialize the strategy π according to the evaluation result of the initial image feature state, initialize the strategy parameter MDP(s,a,γ,p,r) according to the evaluation result of the initial image feature state, and take l=0, where s is the state parameter of the particle emitter, a is the action parameter of the particle emitter, γ is the discount factor, and γ∈(0,1), p is the state transition probability of the particle emitter, r is the reward value, and l is the change in the state value function;
[0031] s03, based on the current initialization strategy π, loop through the state s, {v} = {V k (s)}, iteratively update the value function V of the state k (s), record l = max(l,|vV k (s)|), where v represents the spatial clustering level of particles in the measurement area, V k (s) is the value function of state s after the kth iteration;
[0032] s04, set the termination condition threshold, determine the relationship between l and the termination condition threshold, if l < termination condition threshold, the current strategy converges and the current iteration ends;
[0033] s05, for all states s, according to the formula In the formula, π(a|s)=1 means adopting the new action a * ,π(a|s)=0 means that the new action a is not adopted * , loop through state s, get the action corresponding to the maximum action value function of state s, get the new strategy, back to s03, if all state optimal actions or the state value of the new strategy no longer changes, it is considered that the iteration has reached the optimal strategy and value, and execute the next step;
[0034] s06, the transmitter is in the current state s, and looks for the target state s' with the maximum current value in the state domain. Based on the optimal strategy Π, the trajectory from the current state to the target state is obtained, that is, the shortest trajectory that can obtain the maximum reward. The expression of the maximum expected reward from the current state to the target state is:
[0035] V π (s) = E π [G t |S t =s]
[0036]
[0037] The above formula represents the reward along the trajectory formed by strategy π from the state at time t, which makes the transmitter transfer to various states along this trajectory and throw a number of particles in each state according to the size of the immediate reward. The expression of the reward function is:
[0038]
[0039] Where ρ is the particle seeding density, ρcv1 is the particle reference seeding density, SDI is the seeding distribution index, the immediate reward size is based on the seeding distribution index, c1, c2, c3 are the evaluation coefficients of the seeding distribution index, and their values are re-given by the process image evaluation results after each particle throwing;
[0040] s07, evaluate the seeding distribution index value of the current entire measurement area S and each state area. If it is less than the ideal expectation, go back to s01, otherwise end;
[0041] The process image of the measurement area is obtained, and the particle emitter scatters particles in the measurement area S according to the obtained optimal decision action for particle scattering. At the same time, the characteristic state of the process image is evaluated until the particle density and distribution state in the image reach the ideal expectation, and the particle scattering action is stopped.
[0042] A river surface feature dynamic enhancement device, comprising a particle emitter, a main control module, an image acquisition module, and an image evaluation module;
[0043] The image acquisition module is used to take real-time photos of the river scene in the measurement area S;
[0044] The image evaluation module is connected to the image acquisition module and is used to process the acquired real-time image of the measurement area S and evaluate the characteristic state of the initial image, wherein the characteristic state includes the particle density and distribution state;
[0045] The main control module is connected to the image evaluation module, and is used to construct a particle throwing decision strategy π according to the MDP algorithm, select the optimal decision action for particle throwing through the model, determine the immediate reward size and the shortest trajectory that can obtain the maximum reward according to the obtained optimal decision action for particle throwing, and generate a control instruction according to the obtained optimal decision action for particle throwing;
[0046] The particle emitter is connected to the main control module, and in response to the control instruction generated by the main control module, the particle emitter performs particle throwing and transfer on the measurement area S according to the shortest trajectory of the maximum reward obtained, and throws a number of tracer particles equal to the immediate reward during the transfer process;
[0047] The workflow of the main control module specifically includes the following steps:
[0048] s1, randomly throwing a number of tracer particles into the measurement area S through the particle emitter, and acquiring an initial image of the measurement area S through the image acquisition module, and the image evaluation module processes the initial image to evaluate the characteristic state of the initial image, including the particle density and distribution state in the measurement area S;
[0049] s2, initialize the strategy π according to the evaluation result of the initial image feature state, initialize the strategy parameter MDP(s,a,γ,p,r) according to the evaluation result of the initial image feature state, and take l=0, where s is the state parameter of the particle emitter, a is the action parameter of the particle emitter, γ is the discount factor, and γ∈(0,1), p is the state transition probability of the particle emitter, r is the reward value, and l is the change in the state value function;
[0050] s3, based on the current initialization strategy π, loop through the state s, {v} = {V k (s)}, iteratively update the value function V of the state k (s), record l = max(l,|vV k (s)|), where v represents the spatial clustering level of particles in the measurement area, V k(s) is the value function of state s after the kth iteration;
[0051] s4, set the termination condition threshold, determine the relationship between l and the termination condition threshold, if l < termination condition threshold, the current strategy converges and the current iteration ends;
[0052] s5, for all states s, according to the formula In the formula, π(a|s)=1 means adopting the new action a * ,π(a|s)=0 means that the new action a is not adopted * , loop through state s, get the action corresponding to the maximum action value function of state s, get the new strategy, back to s03, if all state optimal actions or the state value of the new strategy no longer changes, it is considered that the iteration has reached the optimal strategy and value, and execute the next step;
[0053] s6, the transmitter is in the current state s, looking for the target state s' with the maximum current value in the state domain, and obtaining the trajectory from the current state to the target state based on the optimal strategy Π, that is, the shortest trajectory with the maximum reward;
[0054] s7, according to the reward function, determines the immediate reward size when the transmitter transfers to each state along the shortest trajectory of maximum reward, where the expression of the reward function is:
[0055]
[0056] Where ρ is the particle seeding density, ρcv1 is the particle reference seeding density, SDI is the seeding distribution index, the immediate reward size is based on the seeding distribution index, c1, c2, c3 are the evaluation coefficients of the seeding distribution index, and their values are re-given by the process image evaluation results after each particle throwing;
[0057] s7, evaluate the seeding distribution index value of the current entire measurement area S and each state area. If it is less than the ideal expectation, go back to s01, otherwise end;
[0058] s8, generating control instructions for the particle emitter according to the determined shortest trajectory of maximum reward and the immediate reward size;.
[0059] The device also includes a memory, a processor, and an electronic program stored in the memory and capable of running on the processor, wherein the processor can implement the steps of the method described in any one of claims 1 to 3 when running the electronic program.
[0060] The particle emitter comprises a shell, a launch tube, a steering mechanism, a power mechanism, a microcontroller, and a particle generator;
[0061] The particle generator is installed inside the shell and connected to the emission tube, and is used to generate tracer particles;
[0062] The microcontroller is connected to the main control module, and in response to the control instruction generated by the main control module, the microcontroller generates a transfer drive signal for controlling the steering mechanism and a transmission drive signal for controlling the power mechanism;
[0063] The steering mechanism is installed inside the housing and connected to the transmitting tube. In response to the transfer drive signal generated by the microcontroller, the steering mechanism controls the transmitting tube to transfer along the shortest trajectory for obtaining the maximum return.
[0064] The power mechanism is installed inside the shell and connected to the launch tube. In response to the launch drive signal generated by the microcontroller, the power mechanism controls the launch tube to launch a number of tracer particles equal to the size of the immediate reward.
[0065] The power mechanism comprises:
[0066] Gas cylinders for storing high pressure gases;
[0067] a booster air pump for powering the particle emitter to emit tracer particles;
[0068] A solenoid valve for controlling the launch tube to launch tracer particles;
[0069] A single chip microcomputer for controlling the opening and closing of the electronic valve;
[0070] One end of the booster air pump is connected to the gas cylinder, and the other end is connected to the solenoid valve. In response to the emission drive signal generated by the microcontroller, the single-chip microcomputer controls the opening and closing time of the solenoid valve and the rotation speed of the booster air pump to enable the launch tube to emit a number of tracer particles equal to the size of the immediate reward.
[0071] The present invention has the following beneficial effects:
[0072] Compared with the prior art, the technical solution of the present invention selects a measurement area S, divides the measurement area evenly into rectangular grids of i rows and j columns, and defines a rectangular grid s of the i-th row and j-th column. ijAccording to the state of the corresponding particle emitter, the river scene of the measurement area S is photographed in real time, the initial image of the measurement area is obtained for processing, and a particle scattering decision strategy is constructed according to the MDP algorithm. The characteristic state initialization strategy π and the parameter MDP (s, a, γ, p, r) of the initial image including the particle density and distribution state are evaluated, and the optimal decision action for particle scattering is selected through the decision strategy model, and the particle emitter is controlled to scatter particles in the measurement area S according to the obtained optimal decision action for particle scattering, and the process image of the measurement area is obtained for characteristic state evaluation. When the particle density and distribution state in the image reach the ideal expectation, the particle scattering action is stopped, and the MDP algorithm is used for dynamic planning and decision of the scattering area of the tracer particles, and a structural form of a scattering device is proposed, so that the particle scatterer is efficient and accurate, so as to form an optimal particle spatial distribution and seeding density that is uniform, extensive, accurate, and can reflect the velocity information of the river surface velocity field in the measurement area. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 A flow chart of a method for dynamically enhancing river surface characteristics according to the present invention;
[0074] Figure 2 A logic control block diagram for obtaining the optimal decision action for a river surface feature dynamic enhancement method of the present invention;
[0075] Figure 3 It is a schematic diagram of the overall structure of a device for dynamically enhancing river surface characteristics according to the present invention. DETAILED DESCRIPTION
[0076] The present invention will be further described below in conjunction with specific implementation methods, wherein the accompanying drawings are only used for exemplary descriptions and represent only schematic diagrams rather than actual drawings, and should not be understood as limiting the present invention. In order to better illustrate the specific implementation methods of the present invention, some parts of the accompanying drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product.
[0077] Example 1
[0078] The specific implementation process of the solution of the present invention includes the following steps:
[0079] Step 1: Select the measurement area S and divide it into i-row and j-column rectangular grids. Define the i-th row and j-th column rectangular grid s ij Corresponding to the state of the particle emitter, the river scene in the measurement area S is photographed in real time through the image acquisition module.
[0080] Step 2: randomly sprinkle a number of tracer particles into the measurement area S through the particle emitter, and obtain the initial image of the measurement area S through the image acquisition module. The image evaluation module processes the initial image and evaluates the characteristic state of the initial image, including the particle density and distribution state in the measurement area S;
[0081] Step 3: Initialize the strategy π according to the evaluation result of the initial image feature state, and initialize the strategy parameter MDP(s,a,γ,p,r) according to the evaluation result of the initial image feature state, taking l=0, where s is the state parameter of the particle emitter, a is the action parameter of the particle emitter, γ is the discount factor, and γ∈(0,1), p is the state transition probability of the particle emitter, r is the reward value, and l is the change in the state value function;
[0082] Step 4: Based on the current initialization strategy π, loop through the state s, {v} = {V k (s)}, iteratively update the value function V of the state k (s), record l = max(l,|vV k (s)|), where v represents the spatial clustering level of particles in the measurement area, V k (s) is the value function of state s after the kth iteration;
[0083] Step 5: Set the termination condition threshold and determine the relationship between l and the termination condition threshold. If l < the termination condition threshold, the current strategy converges and the current iteration ends.
[0084] Step 6: For all states s, according to the formula In the formula, π(a|s)=1 means adopting the new action a * ,π(a|s)=0 means that the new action a is not adopted * , loop through state s, get the action corresponding to the maximum action value function of state s, get the new strategy, and return to step 2. If the optimal actions of all states or the state value of the new strategy no longer changes, it is considered that the iteration has reached the optimal strategy and value, and the next step is executed;
[0085] Step 7: The transmitter is in the current state s, and searches for the target state s' with the maximum current value in the state domain. Based on the optimal strategy Π, the trajectory from the current state to the target state is obtained, that is, the shortest trajectory with the maximum reward.
[0086] Step 8: Determine the immediate reward size when the transmitter transfers to each state along the shortest trajectory of maximum reward according to the reward function, where the expression of the reward function is:
[0087]
[0088] Where ρ is the particle seeding density, ρcv1 is the particle reference seeding density, SDI is the seeding distribution index, the immediate reward size is based on the seeding distribution index, c1, c2, c3 are the evaluation coefficients of the seeding distribution index, and their values are re-given by the process image evaluation results after each particle throwing;
[0089] Step nine, generating a control instruction for the particle emitter according to the determined shortest trajectory of the maximum reward and the immediate reward size;
[0090] Step 10, in response to the control instruction generated by the main control module, the microcontroller generates a transfer drive signal for controlling the steering mechanism and a transmission drive signal for controlling the power mechanism;
[0091] Step eleven, in response to the transfer drive signal generated by the microcontroller, the steering mechanism controls the launch tube to transfer along the shortest trajectory of the maximum reward. At the same time, in response to the launch drive signal generated by the microcontroller, the power mechanism controls the launch tube to launch a number of tracer particles equal to the immediate reward. Specifically, in response to the launch drive signal generated by the microcontroller, the single-chip microcomputer controls the opening and closing time of the solenoid valve and the speed of the booster air pump to achieve the launch of the launch tube. The number of tracer particles is equal to the immediate reward;
[0092] Step 12: evaluate the seeding distribution index value of the current entire measurement area S and each state area. If it is less than the ideal expectation, return to step 2, otherwise end.
[0093] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for dynamic enhancement of river surface features, It is characterized in that include: Select a measurement area S, divide the measurement area evenly into rectangular grids with i rows and j columns, and define a rectangular grid s with the i-th row and j-th column ij Corresponding to the state of the particle emitter, the river scene in the measurement area S is photographed in real time; Randomly throwing a number of tracer particles into the measurement area S, obtaining an initial image of the measurement area, processing the initial image, and evaluating the characteristic state of the initial image, wherein the characteristic state includes particle density and distribution state; Construct a particle throwing decision strategy π according to the MDP algorithm, and select the optimal decision action for particle throwing through the decision strategy model; The process image of the measurement area is obtained, and the particle emitter scatters particles in the measurement area S according to the obtained optimal decision action for particle scattering. At the same time, the characteristic state of the process image is evaluated until the particle density and distribution state in the image reach the ideal expectation, and the particle scattering action is stopped.
2. A method for dynamically enhancing river surface features according to claim 1, It is characterized in that The process of selecting the optimal decision action for particle throwing includes the following steps: s01, randomly throwing a number of tracer particles into the measurement area S, obtaining an initial image of the measurement area, processing the initial image, and evaluating the characteristic state of the initial image; s02, initialize the strategy π according to the evaluation result of the initial image feature state, initialize the strategy parameter MDP(s,a,γ,p,r) according to the evaluation result of the initial image feature state, and take l=0, where s is the state parameter of the particle emitter, a is the action parameter of the particle emitter, γ is the discount factor, and γ∈(0,1), p is the state transition probability of the particle emitter, r is the reward value, and l is the change in the state value function; s03, based on the current initialization strategy π, loop through the state s, {v} = {V k (s)}, iteratively update the value function V of the state k (s), record l = max(l,|vV k (s)), where v represents the spatial clustering level of particles in the measurement area, V k (s) is the value function of state s after the kth iteration; s04, set the termination condition threshold, determine the size relationship between l and the termination condition threshold, if l < termination condition threshold, the current strategy converges and the current iteration ends; s05, for all states s, according to the formula In the formula, π(a|s)=1 means adopting the new action a * ,π(a|s)=0 means that the new action a is not adopted * , loop through state s, get the action corresponding to the maximum action value function of state s, get the new strategy, back to s03, if all state optimal actions or the state value of the new strategy no longer changes, it is considered that the iteration has reached the optimal strategy and value, and execute the next step; s06, the transmitter is in the current state s, and looks for the target state s' with the largest current value in the state domain. Based on the optimal strategy Π, the trajectory from the current state to the target state is obtained, that is, the shortest trajectory that can obtain the maximum reward. The transmitter is transferred to each state along this trajectory, and a number of particles are thrown in each state according to the size of the immediate reward. The expression of the reward function is: Where ρ is the particle seeding density, ρcv 1 is the particle reference seeding density, SDI is the seeding distribution index, the immediate reward size is based on the seeding distribution index, c 1 , c 2 , c 3 is the evaluation coefficient of the seeding distribution index, and its value is re-given through the process image evaluation results after each particle throwing; s07, evaluate the seeding distribution index value of the current entire measurement area S and each state area. If it is less than the ideal expectation, go back to s01, otherwise end.
3. A method for dynamically enhancing river surface features according to claim 2, It is characterized in that The expression for the maximum expected reward from the current state to the target state is: V π (s)=E π [G t |S t =s] The above formula represents the return on the trajectory formed from the state at time t along the strategy π.
4. A device for dynamically enhancing river surface characteristics, It is characterized in that It includes particle emitter, main control module, image acquisition module and image evaluation module; The image acquisition module is used to take real-time photos of the river scene in the measurement area S; The image evaluation module is connected to the image acquisition module and is used to process the acquired real-time image of the measurement area S and evaluate the characteristic state of the initial image, wherein the characteristic state includes the particle density and distribution state; The main control module is connected to the image evaluation module, and is used to construct a particle throwing decision strategy π according to the MDP algorithm, select the optimal decision action for particle throwing through the model, determine the immediate reward size and the shortest trajectory that can obtain the maximum reward according to the obtained optimal decision action for particle throwing, and generate a control instruction according to the obtained optimal decision action for particle throwing; The particle emitter is connected to the main control module, and in response to the control instruction generated by the main control module, the particle emitter performs particle throwing and transfer on the measurement area S according to the shortest trajectory of the maximum reward obtained, and throws a number of tracer particles equal to the immediate reward during the transfer process; The workflow of the main control module specifically includes the following steps: s1, randomly throwing a number of tracer particles into the measurement area S through the particle emitter, and acquiring an initial image of the measurement area S through the image acquisition module, and the image evaluation module processes the initial image to evaluate the characteristic state of the initial image, including the particle density and distribution state in the measurement area S; s2, initialize the strategy π according to the evaluation result of the initial image feature state, initialize the strategy parameter MDP(s,a,γ,p,r) according to the evaluation result of the initial image feature state, and take l=0, where s is the state parameter of the particle emitter, a is the action parameter of the particle emitter, γ is the discount factor, and γ∈(0,1), p is the state transition probability of the particle emitter, r is the reward value, and l is the change in the state value function; s3, based on the current initialization strategy π, loop through the state s, {v} = {V k (s)}, iteratively update the value function V of the state k (s), record l = max(l,|vV k (s)|), where v represents the spatial clustering level of particles in the measurement area, V k (s) is the value function of state s after the kth iteration; s4, set the termination condition threshold, determine the relationship between l and the termination condition threshold, if l < termination condition threshold, the current strategy converges and the current iteration ends; s5, for all states s, according to the formula In the formula, π(a|s)=1 means adopting the new action a * ,π(a|s)=0 means that the new action a is not adopted * , loop through state s, get the action corresponding to the maximum action value function of state s, get the new strategy, back to s03, if all state optimal actions or the state value of the new strategy no longer changes, it is considered that the iteration has reached the optimal strategy and value, and execute the next step; s6, the transmitter is in the current state s, looking for the target state s' with the maximum current value in the state domain, and obtaining the trajectory from the current state to the target state based on the optimal strategy Π, that is, the shortest trajectory with the maximum reward; s7, according to the reward function, determines the immediate reward size when the transmitter transfers to each state along the shortest trajectory of maximum reward, where the expression of the reward function is: Where ρ is the particle seeding density, ρcv 1 is the particle reference seeding density, SDI is the seeding distribution index, the immediate reward size is based on the seeding distribution index, c 1 , c 2 , c 3 is the evaluation coefficient of the seeding distribution index, and its value is re-given through the process image evaluation results after each particle throwing; s7, evaluate the seeding distribution index value of the current entire measurement area S and each state area. If it is less than the ideal expectation, go back to s01, otherwise end; s8, generating control instructions for the particle emitter according to the determined shortest trajectory of maximum reward and the immediate reward size;.
5. A river surface feature dynamic enhancement device according to claim 4, It is characterized in that The device also includes a memory, a processor, and an electronic program stored in the memory and capable of running on the processor, wherein the processor can implement the steps of the method described in any one of claims 1 to 3 when running the electronic program.
6. A river surface feature dynamic enhancement device according to claim 4, It is characterized in that The particle emitter comprises a shell, a launch tube, a steering mechanism, a power mechanism, a microcontroller, and a particle generator; The particle generator is installed inside the shell and connected to the emission tube, and is used to generate tracer particles; The microcontroller is connected to the main control module, and in response to the control instruction generated by the main control module, the microcontroller generates a transfer drive signal for controlling the steering mechanism and a transmission drive signal for controlling the power mechanism; The steering mechanism is installed inside the housing and connected to the transmitting tube. In response to the transfer drive signal generated by the microcontroller, the steering mechanism controls the transmitting tube to transfer along the shortest trajectory for obtaining the maximum return. The power mechanism is installed inside the shell and connected to the launch tube. In response to the launch drive signal generated by the microcontroller, the power mechanism controls the launch tube to launch a number of tracer particles equal to the size of the immediate reward.
7. A river surface feature dynamic enhancement device according to claim 6, It is characterized in that The power mechanism comprises: Gas cylinders for storing high pressure gases; a booster air pump for powering the particle emitter to emit tracer particles; A solenoid valve for controlling the launch tube to launch tracer particles; A single chip microcomputer for controlling the opening and closing of the electronic valve; One end of the booster air pump is connected to the gas cylinder, and the other end is connected to the solenoid valve. In response to the emission drive signal generated by the microcontroller, the single-chip microcomputer controls the opening and closing time of the solenoid valve and the rotation speed of the booster air pump to enable the launch tube to emit a number of tracer particles equal to the size of the immediate reward.
