A red tide disaster influence range evaluation method and system based on grid recursion
By using a multi-level grid dynamic construction and an improved MAML meta-learning algorithm, combined with tracer particle swarm and measured data correction, the problem of balancing simulation accuracy and efficiency in the assessment of red tide impact range is solved, and accurate tracking and adaptive assessment of the dynamic drift of red tide are achieved.
Patent Information
- Application Number
- CN202611690704.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for assessing the impact range of red tides struggle to balance simulation accuracy and computational efficiency during the drift of red tide algal patches. Fixed grids lead to location discrepancies, single concentration field simulation methods are insufficient to characterize cluster migration, assessment models lack adaptability, and recursive errors accumulate significantly.
A method employing multi-level grid dynamic construction, dual-field coupled recursive calculation, red tide front adaptive encryption, meta-learning risk inference and rolling fusion correction is adopted. By triggering grid migration reconstruction through algal spot centroid displacement, combined with tracer particle swarm random walk term and improved MAML meta-learning algorithm, adaptive adjustment and error correction are achieved.
It improves the accuracy and timeliness of red tide impact assessment, can dynamically track algal patch drift, accurately characterize cluster migration and frontal regions, adapt to environmental changes, reduce recursive errors, and enhance the intelligence level of assessment.
Smart Images

Figure CN123155757A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of marine disaster monitoring and early warning technology, and in particular to a method and system for assessing the impact range of red tide disasters based on grid recursion. Background Technology
[0002] Red tides are a frequent ecological disaster in nearshore waters. Timely and accurate assessment of their impact on sensitive coastal targets after an outbreak is a crucial prerequisite for emergency response and disaster prevention and mitigation. Currently, the assessment of the impact range of red tides mainly relies on numerical models on fixed grids for simulation calculations. However, red tide algal patches drift continuously with ocean currents, and their location and morphology are constantly changing. Fixed grids can easily lead to a disconnect between the computational area and the actual location of the algal patches after they drift, making it difficult to balance simulation accuracy and computational efficiency with limited computing resources.
[0003] Meanwhile, red tide algae often exhibit collective behaviors such as swarm migration during their drift. Existing single-concentration-field simulation methods are unable to accurately characterize this non-completely random migration process, resulting in a large deviation between the simulated concentration field and the actual algal patch distribution. In areas with drastic concentration changes, such as red tide fronts, the resolution of uniform grids is insufficient to accurately capture the position and morphology of the front, thus affecting the determination of the red tide diffusion path and coverage boundary.
[0004] Furthermore, the evolution of red tides is significantly influenced by environmental factors such as ocean currents and wind fields. The correlation between concentration and hazard impact varies between different red tide events and within the same event, shifting either overall or locally with changes in environmental conditions. Existing assessment models are typically trained once based on historical data, lacking the ability to detect and adaptively adjust to this drift phenomenon. This leads to systematic biases in assessment results when environmental conditions change abruptly. Simultaneously, model errors accumulate over time during recursive calculations. Without a continuous correction mechanism based on measured data, the deviation between the assessed impact range and the actual situation will increase. Summary of the Invention
[0005] One objective of this invention is to propose a grid-based recursive method and system for assessing the impact range of red tide disasters. This invention fully integrates key steps such as multi-level grid dynamic construction, dual-field coupled recursive calculation, adaptive densification of red tide fronts, spatiotemporal superposition of influencing factors, meta-learning risk inference and rolling fusion correction. It constructs an intelligent risk impact range assessment process that includes algal spot centroid displacement triggering overall grid migration and reconstruction, mutual verification and fusion of concentration field and tracer particle swarm through fractional Brownian motion random walk, fine grid recursion within the frontal gradient zone, improved MAML meta-learning algorithm introducing concept drift detection and adaptive adjustment mechanism, and weighted replacement of measured monitoring field and rolling correction of parameters. This enables accurate tracking of the red tide evolution process, adaptive assessment of the impact range, and continuous error correction in the context of dynamic algal spot drift. This invention possesses advantages such as good grid migration conservation, strong ability to characterize population migration behavior, high frontal region resolution, dual-layer adaptive macro-drift and micro-drift, and closed-loop control of recursive error. It can significantly improve the accuracy, timeliness, and self-optimization ability of red tide impact range assessment, thereby effectively solving problems in existing methods such as the disconnect between the computational region and algal patch location, insufficient characterization of algal cluster migration, difficulty in adapting assessment models to environmental drift, and continuous accumulation of recursive errors.
[0006] A method for assessing the impact range of red tide disasters based on grid recursion according to an embodiment of the present invention includes the following steps: S1. Obtain red tide monitoring data and basic environmental data, determine the spatial location and vulnerability level of sensitive targets along the coast, and obtain information on the distribution of sensitive targets; S2. Generate a multi-level grid system based on red tide monitoring data. Determine whether to migrate and reconstruct the entire secondary simulation grid based on the displacement of the algal spot centroid, and migrate the concentration field to the new grid. Output the multi-level grid system. S3. Perform dual-field coupled recursive calculations on a multi-level grid system to solve the advection-diffusion-growth equation of the concentration field. Discretize the algal patches into a tracer particle swarm and add a fractional Brownian motion random walk term to advance the particle positions. Compare and fuse the particle density field with the concentration field as the initial value for the next recursion to obtain the spatiotemporal evolution sequence. S4. Calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence, determine the red tide front, and perform fine-grid recursion. After determining to stop the densification calculation, connect the centroids of the concentration field at each recursion time in sequence to obtain the red tide diffusion path. Determine the boundary of the covered area by the position of the red tide front. S5. Spatiotemporally superimpose the concentration field in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and use the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs to adapt to the macroscopic drift of red tide evolution, fine-tune the microscopic drift, calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. S6. Roll in new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, replace it with the measured monitoring field and restart the recursive calculation. At the same time, correct the preset drift coefficient and preset population growth rate, correct the impact range assessment results, obtain the final impact range assessment results and output them in combination with the red tide diffusion path.
[0007] Optionally, S1 specifically includes: S11. Extract the chlorophyll a concentration distribution map of the target sea area, and mark the sea areas that exceed the preset red tide discrimination threshold as red tide algal spots. Read the outer edge of the red tide algal spots to obtain the location and boundary range of the red tide algal spots. S12. Collect water samples within the red tide algal patch area, observe and determine the dominant algal species, count the number of algal cells per unit volume of water sample using a cell counting chamber, obtain the cell concentration, and summarize the location, boundary range, dominant algal species, and cell concentration of the red tide algal patch into red tide monitoring data. S13. Read the sea surface current field output by the ocean numerical forecast product, read the wind field output by the weather forecast product, read the tidal data output by the tidal forecast product, read the shoreline topography data in the electronic nautical chart data, and combine them to obtain the basic environmental data. S14. Divide the coastal area into aquaculture areas, coastal tourism areas, water intake areas and ecological protection areas according to land use type, and record the spatial location of each sensitive target along the coast. S15. Based on the degree of damage to each sensitive coastal target after being affected by red tide and the time required for recovery, the vulnerability level of water intake and aquaculture area is set as high, the vulnerability level of coastal tourist area is set as medium, and the vulnerability level of ecological protection area is set as low. S16. The spatial location and vulnerability level of each sensitive target along the coast are summarized into sensitive target distribution information, which, together with red tide monitoring data and basic environmental data, serves as assessment input data.
[0008] Optionally, S2 specifically includes: S21. Within the target sea area, divide the area into grids with a first preset grid spacing to generate a primary background grid covering the target sea area. With the algal spot as the center, extend the red tide algal spot boundary by a second preset distance to generate a rectangular frame. Divide the rectangular frame with the second preset grid spacing to generate a secondary projection grid. Superimpose and combine the primary background grid and the secondary projection grid to output a multi-level grid system. S22. At each recursive time step, multiply the concentration value of each grid cell by the center coordinate of the grid cell, sum the results, and divide by the sum of the concentration values of all grid cells to calculate the concentration-weighted centroid position of the concentration field at the current time. Subtract the concentration-weighted centroid position recorded during the last overall migration reconstruction to obtain the displacement of the algal patch centroid. S23. Divide the length of the displacement of the algal spot centroid by the radius of the secondary inference grid domain to obtain the displacement ratio. When the displacement ratio exceeds the preset ratio, the secondary inference grid is migrated and reconstructed as a whole. That is, take the concentration-weighted centroid position at the current moment as the algal spot centroid, and regenerate a rectangle by expanding the boundary range of the red tide algal spot by the second preset distance. Divide the rectangle by the second preset grid spacing to generate a new secondary inference grid. S24. Multiply the concentration value of each grid cell on the old second-level inference grid by the area of the grid cell to obtain the cell mass. Add the cell mass of the overlapping area between the grid cell and the new second-level inference grid to the corresponding new grid cell, and divide by the area of the new grid cell to obtain the concentration value of the new grid cell. Output the multi-level grid system.
[0009] Optionally, S3 specifically includes: S31. Within the boundary range of the red tide algal patch, the measured cell concentration of each water sample point is interpolated onto each grid cell, and the concentration value of the grid cells outside the boundary range is set to zero to obtain the initial concentration field. S32. At each recursive time step, read the sea surface current field, wind field, and tidal data. Multiply the concentration value of each grid cell by the velocity vector synthesized from the three to obtain the advection term. Multiply the difference between the concentration values of each grid cell and the adjacent grid cells by the preset diffusion coefficient to obtain the diffusion term. Multiply the concentration value of each grid cell by the product of the preset population growth rate and the remainder of the current concentration value to obtain the growth term. Sum the three terms to update the concentration value of the grid cell. S33. Tracer particles are deployed at a third preset interval within the boundary range of the red tide algal patch. Each tracer particle carries the concentration value of its grid cell and forms a tracer particle swarm. S34. At each recursive time, the combined velocity vector of the sea surface current field, wind field, and tide data at the current position of the tracer particle is multiplied by the recursive time step to obtain a deterministic displacement. A random number with a mean of zero that follows a normal distribution is multiplied by the Hearst exponent of the recursive time step and multiplied by the preset diffusion intensity to obtain a random displacement. The two are added together to obtain the new position of the corresponding tracer particle. S35. For each grid cell, sum the concentration values carried by each tracer particle falling into the corresponding grid cell and divide by the area of the grid cell. By traversing all grid cells, the global particle density field is obtained. S36. Normalize the particle density field and concentration field by dividing them by their respective maximum values. Calculate the absolute value of the difference between the two normalized values for each grid cell to obtain the deviation distribution. When the proportion of the number of grid cells in the deviation distribution that are greater than the preset deviation threshold to the total number of grid cells exceeds the preset proportion, it is determined that the deviation exceeds the preset deviation threshold. S37. Look up the table to read the cluster characteristic weight corresponding to the dominant algal species type, multiply the particle density field by the cluster characteristic weight, multiply the concentration field by one minus the cluster characteristic weight, and add them up cell by cell to obtain the fusion field. Use the fusion field as the initial value for the next recursion. S38. Repeat the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion at each recursive time step, and arrange the fused fields of each recursive time step in chronological order to obtain the spatiotemporal evolution sequence.
[0010] Optionally, S4 specifically includes: S41. In the recursion of the spatiotemporal evolution sequence, for each grid cell, calculate the square root of the sum of the squares of the differences between the concentration value and the concentration values of the four adjacent grid cells in each grid cell, divide by the second preset grid spacing to obtain the spatial gradient of the concentration field of the grid cell, and traverse all grid cells to obtain the spatial gradient distribution of the concentration field. S42. When the spatial gradient of the concentration field of a grid cell exceeds the threshold of the front criterion, the grid cell is determined to be a red tide front. S43. Connect the grid cells identified as red tide fronts one by one with the adjacent grid cells whose spatial gradient of the concentration field exceeds half of the front criterion threshold. The connected grid cell set forms a gradient band. S44. Within the gradient band, the grid is divided into finer grids with the fourth preset grid spacing to generate a finer grid. On the finer grid, the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion are repeatedly performed at each recursive time step to complete the finer grid recursion using the finer grid. S45. When the number of grid cells identified as red tide fronts within the encrypted grid no longer increases in the recursion of a preset number of consecutive iterations, the encryption calculation is stopped. S46. At each recursive time, multiply the concentration values of all grid cells by the center coordinates of the grid cells, sum them, and divide by the sum of the concentration values of all grid cells to calculate the centroid of the concentration field at the recursive time. Connect the centroids of the concentration fields at each recursive time in chronological order to obtain the red tide diffusion path. S47. Connect the outermost outer edge lines of the grid cells that are determined to be red tide fronts at each recursive time, and determine the boundary of the coverage area by the position of the red tide front.
[0011] Optionally, S5 specifically includes: S51. Read the spatial location of each sensitive target along the coast one by one, find the grid cell into which the spatial location falls, and arrange the concentration values of the corresponding grid cells at each recursive time in chronological order to obtain the concentration change sequence. S52. The recursive time when the concentration value in the concentration change sequence first exceeds the preset threshold is taken as the arrival time of the sensitive target, and the maximum value of the concentration value at each recursive time in the concentration change sequence is taken as the peak concentration of the sensitive target. S53. Sum the time spans of each adjacent recursive time when the concentration value in the concentration change sequence exceeds the preset threshold, and use this as the duration of the influence of the sensitive target. S54. Look up the table to read the toxicity level of the dominant algal species and the vulnerability level of the sensitive target. Divide the peak concentration by the preset index upper limit and the duration of the impact by the preset duration upper limit. Combine the toxicity score and the vulnerability score to form a four-dimensional input vector. Build a three-layer feedforward network and initialize the initial network parameters. Use the four-dimensional input vector of historical red tide events and the measured value of the disaster impact index to form a historical task set. The tasks are executed alternately for inner layer update and outer layer update until it is verified that the loss no longer decreases. Complete the meta-training and adapt to macroscopic drift. S55. At each recursive time, the four-dimensional input vector of each sensitive target at the current recursive time is substituted into a three-layer feedforward network with the current initial network parameters as parameters, and the predicted value of the disaster impact index is calculated forward. The absolute value of the difference between the predicted value of the previous recursive time with the measured value of the disaster impact index at the current recursive time is taken to obtain the single deviation. When the single deviation exceeds the preset multiple of the historical average deviation, it is determined that a drift has occurred, and the concept drift detection is completed. S56. When a drift is determined to occur, the four-dimensional input vectors of each sensitive target from the recursive time after the drift to the current recursive time and the corresponding measured values of the disaster impact index are used to form a fine-tuning sample set. The measured values of the disaster impact index are calculated by dividing the peak concentration at the current recursive time by the preset index upper limit and adding the duration of the impact by the preset duration upper limit, and then multiplying by the toxicity score. S57. The average absolute value of the velocity vector difference between the sea surface current field at the current recursion time and the previous recursion time in each grid cell of the second-level recursion grid domain is taken as the change in the sea surface current field. When the change in the sea surface current field exceeds the preset change threshold, the first and second values of each four-dimensional input vector in the fine-tuning sample set are multiplied by the ratio of the change in the sea surface current field to the preset change threshold and then fed into the three-layer feedforward network. S58. On the fine-tuning sample set, update the preset inner layer step number of the initial network parameters along the gradient descent direction to obtain the fine-tuned initial network parameters, adapt to the local shift in the input and output relationship caused by the change in the flow field, i.e., micro-drift, and complete the adaptive adjustment. S59. Substitute the four-dimensional input vector of each sensitive target at the current recursive time into a three-layer feedforward network with the finely adjusted initial network parameters as parameters, calculate the disaster impact index of each sensitive target, divide the disaster impact index by the preset index upper limit and multiply it by the vulnerability score corresponding to the vulnerability level of the sensitive target to obtain the emergency response urgency of each sensitive target. S510. Compare the urgency of emergency response with the preset level classification threshold to classify the impact level, and output the impact range assessment results.
[0012] Optionally, S54 specifically includes: S541. Look up the table to read the toxicity level of the dominant algal species corresponding to the dominant algal species type, read the vulnerability level of each sensitive target along the coast as the vulnerability level of the sensitive target, divide the peak concentration of each sensitive target by the preset index upper limit to obtain the first value, divide the duration of the impact by the preset duration upper limit to obtain the second value, take the toxicity score according to the preset toxicity score rule corresponding to the toxicity level of the dominant algal species, take the vulnerability score according to the preset vulnerability score rule corresponding to the vulnerability level of the sensitive target, and concatenate the first value, the second value, the toxicity score, and the vulnerability score into a four-dimensional input vector in sequence. S542. Construct a three-layer feedforward network with the number of input layer nodes set to the preset number of input nodes, the number of hidden layer nodes set to the preset number of hidden nodes, and the number of output layer nodes set to the preset number of output nodes as the base network of the improved MAML meta-learning algorithm. The output layer outputs the disaster impact index, and the weight matrix and bias vector of each layer are randomly initialized as the initial network parameters. S543. The historical task set is composed of the four-dimensional input vectors of each sensitive target in the historical red tide event and the corresponding measured values of the disaster impact index. The historical task set is divided into the meta-training task set and the few-sample fine-tuning task set according to the preset division ratio. S544. Perform inner layer updates on each task in the meta-training task set. Substitute the four-dimensional input vector of each time step of the task into a three-layer feedforward network with the initial network parameters as parameters, calculate the predicted value of the disaster impact index, sum the squares of the difference between the predicted value and the measured value and divide by the number of time steps of the task to obtain the training loss. Calculate the gradient of the training loss with respect to the initial network parameters, subtract the preset inner layer learning rate from the initial network parameters and multiply by the gradient, update the preset number of inner layer steps, and obtain the task adaptation parameters for the corresponding task. S545. Perform outer layer update: Substitute the four-dimensional input vector of each time step of the task into the three-layer feedforward network with the task adaptation parameters as parameters, calculate the validation loss in the forward calculation, calculate the gradient of the validation loss with respect to the initial network parameters, and subtract the preset outer layer learning rate from the initial network parameters and multiply by the gradient to obtain the updated initial network parameters. S546. Alternately execute inner and outer layer updates for each task, repeating until the loss is verified to no longer decrease, thus completing meta-training and adapting to the overall shift in the input-output relationship caused by the red tide evolution, i.e., macroscopic drift.
[0013] Optionally, S6 specifically includes: S61. Input new red tide monitoring data according to the preset rolling cycle. The new red tide monitoring data includes the location, boundary range, dominant algal species and cell concentration of newly monitored red tide algal patches. S62. The boundary range of the newly monitored algal spot is superimposed and compared with the boundary of the covered area. The shortest distance between each point on the outer edge of the boundary range of the newly monitored algal spot and the boundary of the covered area is summed and divided by the number of points on the outer edge to obtain the boundary deviation value. When the boundary deviation value exceeds the preset boundary deviation threshold, it is determined that the deviation exceeds the set threshold and the actual monitoring field fusion replacement is triggered. S63. When the measured monitoring field fusion replacement is triggered, the cell concentration of the newly monitored water sample point is interpolated to each grid cell to obtain the measured monitoring field. The measured monitoring field is multiplied by the preset fusion weight, and the current recursive field is multiplied by one minus the preset fusion weight. The results are added to each grid cell to obtain the replaced recursive field. The recursive calculation is restarted with the replaced recursive field as the initial condition. S64. After each measurement monitoring field fusion replacement is completed, the boundary deviation value is recorded as a correction amount. The cumulative correction amounts are divided by the number of corrections to obtain the average correction amount. When the average correction amount is greater than zero, the preset drift coefficient is multiplied by the average correction amount. When the average correction amount is less than zero, the preset drift coefficient is multiplied by the absolute value of the average correction amount. The preset drift coefficient is then corrected based on the cumulative correction amounts. S65. Divide the average correction by the number of recursive time intervals between the two measured monitoring field fusion replacements to obtain the correction rate per unit time. Multiply the preset population growth rate by one minus the correction rate per unit time to obtain the corrected preset population growth rate. Restart the recursive calculation with the replaced recursive field as the initial condition. Re-execute S3 to S5 to correct the impact range assessment results and obtain the final impact range assessment results, which are then combined with the red tide diffusion path for output.
[0014] A red tide disaster impact range assessment system based on grid recursion according to an embodiment of the present invention includes: The data acquisition module is used to acquire red tide monitoring data and basic environmental data, determine the spatial location and vulnerability level of sensitive targets along the coast, and obtain information on the distribution of sensitive targets; The grid construction module is used to generate a multi-level grid system based on red tide monitoring data, determine whether to migrate and reconstruct the entire secondary inference grid based on the displacement of the algal spot centroid, migrate the concentration field to the new grid, and output the multi-level grid system. The recursive calculation module is used to perform dual-field coupled recursive calculations on a multi-level grid system, solve the advection-diffusion-growth equation of the concentration field, discretize the algal spots into tracer particle swarms and add fractional Brownian motion random walk terms to advance the particle positions, compare and fuse the particle density field with the concentration field as the initial value for the next recursion, and obtain the spatiotemporal evolution sequence. The front determination module is used to calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence, determine the red tide front, and perform fine mesh recursion. After the determination stops the densification calculation, the centroids of the concentration field at each recursion time are connected sequentially to obtain the red tide diffusion path. The boundary of the covered area is determined by the position of the red tide front. The impact assessment module is used to spatiotemporally overlay the concentration field in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and take the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs to adapt to the macro-drift of red tide evolution, fine-tune the micro-drift, calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. The rolling correction module is used to continuously input new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, the actual monitoring field is fused and replaced, and the recursive calculation is restarted. At the same time, the preset drift coefficient and preset population growth rate are corrected, and the final impact range assessment result is output.
[0015] The beneficial effects of this invention are: This invention addresses the issues of disconnect between fixed grids and algal patch locations, and the difficulty in balancing accuracy and efficiency, by constructing a multi-level grid system and a dynamic migration and reconstruction mechanism. It employs an algal patch centroid displacement ratio criterion to trigger the overall migration and reconstruction of the secondary extrapolation grid, combined with interpolated migration concentration fields based on unit mass conservation. Through comparison and fusion of the concentration field and a tracer particle swarm incorporating fractional Brownian motion random walks, it effectively characterizes the migration behavior of red tide algal clusters. By determining the red tide front through spatial gradients and recursively refining the gradient within the gradient band, it achieves high-resolution capture of the frontal region. An improved MAML meta-learning algorithm, incorporating concept drift detection and adaptive adjustment mechanisms, adapts to macroscopic drift through meta-training and microscopic drift through online detection and few-sample fine-tuning, enabling the evaluation model to adapt to environmental changes. A closed-loop correction mechanism is formed by weighted replacement of measured monitoring fields and adjustments to preset drift coefficients and preset population growth rates based on previous corrections. Ultimately, this achieves precise tracking of the dynamic evolution of red tides and continuous correction of their impact range, effectively improving the accuracy, timeliness, and adaptability of the evaluation. Attached Figure Description
[0016] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a red tide disaster impact range assessment method based on grid recursion proposed in this invention; Figure 2 This is a structural diagram of a red tide disaster impact range assessment system based on grid recursion proposed in this invention; Figure 3 This is a flowchart of the improved MAML meta-learning impact assessment proposed in this invention, which introduces a concept drift detection and adaptive adjustment mechanism. Detailed Implementation
[0017] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0018] refer to Figures 1-3 A grid-based recursive method for assessing the impact range of red tide disasters includes the following steps: S1. Acquire red tide monitoring data and basic environmental data. The red tide monitoring data includes the location, boundary range, dominant algal species, and cell concentration of red tide algal patches. The basic environmental data includes sea surface current field, wind field, tidal data, and shoreline topography data. Determine the spatial location and vulnerability level of sensitive targets along the coast and obtain sensitive target distribution information. S2. Generate a multi-level grid system based on the location and boundary range of red tide algal spots in the red tide monitoring data. This includes a primary background grid covering the target sea area and a secondary projection grid centered on the algal spot. When the displacement of the algal spot centroid exceeds a preset proportion of the radius of the secondary projection grid domain, the secondary projection grid is migrated and reconstructed as a whole. The concentration field on the old grid is migrated to the new grid through grid conservation interpolation, and the multi-level grid system is output. S3. Using the boundary range of algal patches and cell concentration as initial conditions, perform dual-field coupled recursive calculations on a multi-level grid system to solve the advection-diffusion-growth equation of the concentration field. Discretize the algal patches into tracer particle swarms and add fractional Brownian motion random walk terms to advance the particle positions. Normalize and compare the particle density field and the concentration field. When the deviation exceeds the preset deviation threshold, the particles are weighted and fused according to the cluster characteristics of the dominant algal species. The fused field is used as the initial value for the next recursion to obtain the spatiotemporal evolution sequence of the red tide concentration field. S4. Calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence. When it exceeds the threshold of the front criterion, it is determined to be a red tide front. Then, a fine mesh is activated in the gradient zone to perform fine mesh recursion. After the determination stops the fine mesh calculation, the centroids of the concentration field at each recursion time are connected sequentially to obtain the red tide diffusion path. The boundary of the covered area is determined by the position of the red tide front. S5. Spatiotemporally superimpose the concentration field at each recursive time in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and take the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs. Through meta-training, it adapts to the macro-drift of red tide evolution, and through few-sample fine-tuning, it adapts to the micro-drift caused by changes in the flow field. Calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. S6. Roll in new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, replace the current recursive field with the measured monitoring field and restart the recursive calculation. At the same time, correct the preset drift coefficient and preset population growth rate according to the previous corrections, correct the impact range assessment results, obtain the final impact range assessment results and output them in combination with the red tide diffusion path.
[0019] This invention significantly improves the accuracy and timeliness of red tide disaster impact assessment. By generating a multi-level grid system and reconstructing the entire grid when the centroid displacement of an algal patch exceeds the limit, dynamic tracking of the algal patch by the grid is achieved, avoiding the truncation of algal patch movement by fixed grid boundaries. Through dual-field coupled recursive calculation, the concentration field solution and tracer particle swarm simulation are mutually verified and integrated, and a fractional Brownian motion random walk term is introduced to enhance the ability to characterize the irregular diffusion pattern of algal patches. The red tide front is automatically identified in the recursion and fine-grid densification recursion is enabled to improve the accuracy of boundary characterization. The obtained red tide diffusion path and coverage area boundary provide intuitive basis for emergency response. An improved MAML meta-learning algorithm with concept drift detection and adaptive adjustment mechanism is introduced. Meta-training adapts to macro-drift and small-sample fine-tuning adapts to micro-drift, maintaining high assessment accuracy even under limited historical data. By continuously accessing measured data, fusing and replacing data to restart the recursion, and correcting the drift coefficient and population growth rate, an "assessment-correction" closed loop is formed, ensuring that the assessment results are consistently close to the actual disaster situation, significantly improving the intelligence level of red tide monitoring, early warning, and emergency response.
[0020] In this embodiment, S1 specifically includes: S11. Extract the chlorophyll a concentration distribution map of the target sea area from satellite remote sensing imagery. Mark sea areas where the chlorophyll a concentration exceeds a preset red tide detection threshold as red tide patches. Read the outer edge of the red tide patches to obtain their location and boundary range. The preset red tide detection threshold is calculated by taking the mean μ and standard deviation σ of the chlorophyll a concentration during historical red tide-free periods in the target sea area, and then calculating μ+2σ as the red tide detection threshold. The preset red tide detection threshold ranges from 5 to 20 mg / m³. 3 When the chlorophyll a concentration during historical periods without red tides follows a normal distribution, the confidence level corresponding to μ+2σ is 95%. That is, when the chlorophyll a concentration in the sea area exceeds this threshold, it is abnormally high and red tide can be determined to have occurred. S12. Collect water samples within the red tide algal patch area, observe and determine the dominant algal species, count the number of algal cells per unit volume of water sample using a cell counting chamber, obtain the cell concentration, and summarize the location, boundary range, dominant algal species, and cell concentration of the red tide algal patch into red tide monitoring data. S13. Read the sea surface current field output by the ocean numerical forecast product, read the wind field output by the weather forecast product, read the tidal data output by the tidal forecast product, read the shoreline topography data in the electronic nautical chart data, and combine them to obtain the basic environmental data. S14. Divide the coastal area into aquaculture areas, coastal tourism areas, water intakes and ecological protection areas according to land use type, and record the spatial location of each sensitive coastal target. The sensitive coastal targets refer to aquaculture areas, coastal tourism areas, water intakes and ecological protection areas located in the coastal area and affected by red tide. S15. Based on the degree of damage to each sensitive coastal target affected by red tide and the time required for recovery, the vulnerability level of water intake and aquaculture area is set as high, the vulnerability level of coastal tourism area is set as medium, and the vulnerability level of ecological protection area is set as low. Among them, the greater the degree of damage and the longer the recovery time required, the higher the vulnerability level of the sensitive coastal target. S16. The spatial location and vulnerability level of each sensitive target along the coast are summarized into sensitive target distribution information, which, together with red tide monitoring data and basic environmental data, serves as assessment input data.
[0021] In this embodiment, S2 specifically includes: S21. Within the target sea area, divide the area into grids with a first preset grid spacing to generate a primary background grid covering the target sea area. Using the algal spot as the center, extend the boundary of the red tide algal spot by a second preset distance to generate a rectangular frame. Divide the rectangular frame with the second preset grid spacing to generate a secondary projection grid. Superimpose and combine the primary background grid and the secondary projection grid to output a multi-level grid system. The first preset grid spacing is determined by the following steps: Calculate the length L of the major axis of the boundary of the red tide algal spot, and use L / 20 as the first preset grid spacing. The value range of the first preset grid spacing is 500~2000m. When the first preset grid spacing is not less than L / 20, the total number of grids does not exceed the upper limit of computing resources. The radius of the outer circle of the secondary projection grid is the radius of the secondary projection grid domain. The second preset distance is 0.5~1 times the length L of the major axis to ensure that the red tide algal spot does not exceed the rectangular frame range between two adjacent overall migration reconstructions. The second preset grid spacing is the first preset grid spacing divided by 4~8 to ensure that the resolution of the secondary projection grid is higher than that of the primary background grid. S22. At each recursive time step, multiply the concentration value of each grid cell by the center coordinate of the grid cell, sum the results, and divide by the sum of the concentration values of all grid cells to calculate the concentration-weighted centroid position of the concentration field at the current time. Subtract the concentration-weighted centroid position recorded during the last overall migration reconstruction to obtain the displacement of the algal patch centroid. S23. Divide the length of the displacement of the algal spot centroid by the radius of the secondary inference grid domain to obtain the displacement ratio. When the displacement ratio exceeds the preset ratio, the secondary inference grid is migrated and reconstructed as a whole. That is, the concentration-weighted centroid position at the current moment is taken as the centroid of the algal spot, and a rectangle is generated by expanding the boundary range of the red tide algal spot by a second preset distance. The rectangle is divided by the second preset grid spacing to generate a new secondary inference grid. The preset ratio is the ratio obtained by multiplying the average current velocity of the sea surface current field in the target sea area during the red tide season by the recursive calculation time step and then dividing it by the radius of the secondary inference grid domain. The preset ratio ranges from 1 / 4 to 1 / 2. When it is not less than 1 / 4, the red tide algal spot will not drift out of the expansion range of the secondary inference grid domain radius between two adjacent overall migration and reconstruction. When it is not greater than 1 / 2, the calculation amount of the overall migration and reconstruction frequency and the grid conservation interpolation is kept within an acceptable range. S24. Multiply the concentration value of each grid cell on the old second-level inference grid by the area of the grid cell to obtain the cell mass. Add the cell mass of the overlapping area of the grid cell and the new second-level inference grid to the corresponding new grid cell, and divide it by the area of the new grid cell to obtain the concentration value of the new grid cell. Complete the overall migration and reconstruction, and output the multi-level grid system.
[0022] In this embodiment, S3 specifically includes: S31. Within the boundary range of the red tide algal patch, the measured cell concentration of each water sample point is interpolated onto each grid cell, and the concentration value of the grid cells outside the boundary range is set to zero to obtain the initial concentration field. S32. At each recursive time step, read the sea surface current field, wind field, and tidal data. Multiply the concentration value of each grid cell by the velocity vector synthesized from the three to obtain the advection term. Multiply the difference between the concentration values of each grid cell and its adjacent grid cells by a preset diffusion coefficient to obtain the diffusion term. Multiply the concentration value of each grid cell by the product of the preset population growth rate and the remainder of the current concentration value to obtain the growth term. Sum the three terms to update the concentration value of the grid cell. The preset diffusion coefficient is the square of the second preset grid spacing divided by the time step of the recursive calculation and then multiplied by 0.01~0.1. The larger the preset diffusion coefficient, the faster the concentration field diffuses between adjacent grid cells. The preset population growth rate is the daily average concentration growth multiple of the dominant algal species in historical red tide events minus 1, with a value range of 0.2~0.8 / day. The larger the preset population growth rate, the faster the concentration field grows. S33. Tracer particles are deployed at a third preset interval within the boundary range of the red tide algal patch. Each tracer particle carries the concentration value of its grid cell and forms a tracer particle swarm. The third preset interval is the second preset grid interval multiplied by 1 / 2 to 1. The smaller the third preset interval, the more refined the spatial distribution of the red tide algal patch is depicted by the tracer particle swarm. S34. At each recursive time step, the combined velocity vector of the sea surface current field, wind field, and tide data at the current position of the tracer particle is multiplied by the recursive time step to obtain a deterministic displacement. A random number with a mean of zero that follows a normal distribution is multiplied by the Hearst exponent of the recursive time step and then multiplied by a preset diffusion intensity to obtain a random displacement. The two are added together to obtain the new position of the corresponding tracer particle. The value of the Hearst exponent ranges from 0.5 to 1. When the Hearst exponent is greater than 0.5, the trajectory of the tracer particle is positively correlated, that is, it continuously shifts in the same direction, which is used to simulate the cluster migration behavior of red tide algal patches. The preset diffusion intensity is the daily random diffusion distance corresponding to the dominant algal species divided by the Hearst exponent of the recursive time step, and the value ranges from 10 to 100 m. The larger the preset diffusion intensity, the greater the random migration amplitude of the tracer particle. S35. For each grid cell, sum the concentration values carried by each tracer particle falling into the corresponding grid cell and divide by the area of the grid cell. By traversing all grid cells, the global particle density field is obtained. S36. Normalize the particle density field and concentration field by dividing them by their respective maximum values. Calculate the absolute value of the difference between the two normalized values for each grid cell to obtain the deviation distribution. When the proportion of grid cells with a deviation greater than a preset deviation threshold in the deviation distribution exceeds a preset percentage, the deviation is determined to exceed the preset deviation threshold. The reference value of the preset deviation threshold is the average deviation of normalized comparisons in historical red tide events, with a value range of 0.1 to 0.3. The smaller the preset deviation threshold, the more frequently the weighted fusion is triggered. The preset percentage ranges from 10% to 30%, with a smaller preset percentage indicating a stricter determination. S37. Look up the cluster characteristic weight corresponding to the dominant algal species type in the table, multiply the particle density field by the cluster characteristic weight, multiply the concentration field by one minus the cluster characteristic weight, and add them up cell by cell to obtain the fusion field. Use the fusion field as the initial value for the next recursion. The cluster characteristic weight is the aggregation ratio of the dominant algal species in the red tide algal patch that forms chain-like or clump-like groups. The value range is 0.1~0.9. The dominant algal species that form chain-like or clump-like groups take 0.6~0.9, and the dominant algal species that are dispersed take 0.1~0.4. S38. Repeat the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion at each recursive time step. Arrange the fused fields at each recursive time step in chronological order to obtain the spatiotemporal evolution sequence of the red tide concentration field.
[0023] In this embodiment, S4 specifically includes: S41. In the recursion of the spatiotemporal evolution sequence, for each grid cell, calculate the square root of the sum of the squares of the differences between the concentration value and the concentration values of the four adjacent grid cells in each grid cell, divide by the second preset grid spacing to obtain the spatial gradient of the concentration field of the grid cell, and traverse all grid cells to obtain the spatial gradient distribution of the concentration field. S42. When the spatial gradient of the concentration field of a grid cell exceeds the front criterion threshold, the grid cell is determined to be a red tide front. The front criterion threshold is the average spatial gradient of the concentration field at the outer edge of the red tide algal patch in historical red tide events. 1 to 2 times the average value is calculated as the front criterion threshold. The value range of the front criterion threshold is 0.01 to 0.05 / (m·day). When the front criterion threshold is not less than 1 times the average value, it can distinguish the concentration fluctuations between the red tide front and the algal patch. When it is not greater than 2 times the average value, it will not miss the red tide front. S43. Connect the grid cells identified as red tide fronts one by one with the adjacent grid cells whose spatial gradient of the concentration field exceeds half of the front criterion threshold. The connected grid cell set forms a gradient band. S44. Within the gradient zone, the grid is divided into finer grids with a fourth preset grid spacing to generate a finer grid. On the finer grid, the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion are repeatedly performed at each recursive time step to complete the finer grid recursion using the finer grid. The fourth preset grid spacing is the second preset grid spacing divided by 2 to 4. The smaller the fourth preset grid spacing, the more refined the red tide front position is depicted, and the greater the increase in the computational load of the finer grid. S45. When the number of grid cells identified as red tide fronts within the encrypted grid no longer increases in the recursion of a preset number of consecutive iterations, the encryption calculation is stopped. The preset number of iterations is the rate of change of the number of grid cells identified as red tide fronts within the encrypted grid at each iteration. When the rate of change is less than 5%, the required number of iterations is used as a reference value. The value of the preset number of iterations is 3 to 5 times. When the preset number of iterations is not less than 3 times, the interference of short-term fluctuations is excluded. When the preset number of iterations is not greater than 5 times, the encrypted grid is avoided from occupying computing resources for a long time. S46. At each recursive time, multiply the concentration values of all grid cells by the center coordinates of the grid cells, sum them, and divide by the sum of the concentration values of all grid cells to calculate the centroid of the concentration field at the recursive time. Connect the centroids of the concentration fields at each recursive time in chronological order to obtain the red tide diffusion path. S47. Connect the outermost outer edge lines of the grid cells that are determined to be red tide fronts at each recursive time, and determine the boundary of the coverage area by the position of the red tide front.
[0024] In this embodiment, S5 specifically includes: S51. Read the spatial location of each sensitive target along the coast one by one, find the grid cell into which the spatial location falls, and arrange the concentration values of the corresponding grid cells at each recursive time in chronological order to obtain the concentration change sequence of the sensitive target location. S52. The arrival time of the sensitive target is taken as the recursive time when the concentration value in the concentration change sequence first exceeds the preset threshold. The maximum value of the concentration value at each recursive time in the concentration change sequence is taken as the peak concentration of the sensitive target. The preset threshold is obtained by looking up the table to read the minimum influencing cell concentration corresponding to the dominant algal species. When the concentration value first exceeds the preset threshold, it is considered that the red tide algal cells have affected the sensitive target along the coast. S53. Sum the time spans of each adjacent recursive time when the concentration value in the concentration change sequence exceeds the preset threshold, and use this as the duration of the influence of the sensitive target. S54. Retrieve the toxicity level of the dominant algal species corresponding to the dominant algal species type from a table. Read the vulnerability level of each sensitive coastal target as its vulnerability level. Divide the peak concentration of each sensitive target by a preset index upper limit to obtain a first value. Divide the duration of the impact by a preset duration upper limit to obtain a second value. Take the toxicity score according to the preset toxicity score rule corresponding to the dominant algal species toxicity level, and take the vulnerability score according to the preset vulnerability score rule corresponding to the sensitive target vulnerability level. Concatenate the first value, second value, toxicity score, and vulnerability score sequentially into a four-dimensional input vector. The preset index upper limit is the maximum peak concentration of sensitive targets in historical red tide events. The preset duration upper limit... The limit is the maximum duration of the impact on sensitive targets in historical red tide events. The toxicity level of the dominant algal species is a classification based on the toxicity of the toxins secreted by the dominant algal species. The preset toxicity score rule is that the toxicity level of the dominant algal species is high, medium, and low, respectively, with 1.0, 0.6, and 0.3. When the toxicity level of the dominant algal species is high, the toxicity is strong, and the highest score should be taken to highlight its contribution to the disaster impact index. The preset vulnerability score rule is that the vulnerability level of the sensitive target is high, medium, and low, respectively, with 1.0, 0.6, and 0.3. When the vulnerability level of the sensitive target is high, the damage is large and the recovery time is long, so the highest score should be taken to prioritize emergency response. S55. Construct a three-layer feedforward network with a preset number of input layer nodes, a preset number of hidden layer nodes, and a preset number of output layer nodes as the base network for the improved MAML meta-learning algorithm. The output layer outputs the disaster impact index. Randomly initialize the weight matrix and bias vector of each layer as the initial network parameters. The preset number of input nodes is 4, corresponding to the dimension of the four-dimensional input vector. The preset number of hidden nodes ranges from 8 to 16. When the preset number of hidden nodes is less than 8, the network's expressive ability is insufficient to fit the nonlinear relationship between the disaster impact index and the input. When it is greater than 16, the increase in the number of network parameters leads to an increase in the computational cost of meta-training that exceeds the acceptable range. The preset number of output nodes is 1, corresponding to a single-value output of the disaster impact index. S56. A historical task set is formed by the four-dimensional input vectors of each sensitive target in the historical red tide event and the corresponding measured values of the disaster impact index. The historical task set is divided into a meta-training task set and a few-sample fine-tuning task set according to a preset division ratio. The preset division ratio is 7:3 based on the number of events, ensuring that the meta-training task set has sufficient samples and that the few-sample fine-tuning task set retains enough tasks for verification. S57. Perform inner layer updates on each task in the meta-training task set. Substitute the four-dimensional input vector of each time step of the task into a three-layer feedforward network with the initial network parameters as parameters, and calculate the predicted value of the disaster impact index. Sum the squares of the differences between the predicted and measured values and divide by the number of time steps of the task to obtain the training loss. Calculate the gradient of the training loss with respect to the initial network parameters. Subtract the preset inner layer learning rate from the initial network parameters and multiply by the gradient. Update the preset inner layer steps a preset number of times to obtain the task adaptation parameters for the corresponding task. The preset inner layer learning rate... The learning rate ranges from 0.001 to 0.01. When the preset inner layer learning rate is not less than 0.001, the task adaptation parameters can fully adapt to the local characteristics of a single task within the preset inner layer steps. When it is not greater than 0.01, the inner layer update will not cross the minimum loss value, resulting in adaptation failure. The preset inner layer steps range from 5 to 10 steps. When the preset inner layer steps are not less than 5 steps, the task adaptation parameters can fully fit the local characteristics of a single task. When it is not greater than 10 steps, the computational load of the inner layer update remains within an acceptable range. S58. Perform outer layer update: Substitute the four-dimensional input vector of the task at each time step into the three-layer feedforward network with the task adaptation parameters as parameters, calculate the validation loss in the forward pass, calculate the gradient of the validation loss with respect to the initial network parameters, subtract the preset outer layer learning rate from the initial network parameters and multiply by the gradient to obtain the updated initial network parameters. The preset outer layer learning rate is in the range of 0.0001~0.001, and the preset outer layer learning rate is less than the preset inner layer learning rate to ensure that the initial network parameters converge smoothly in the outer layer update. S59. Alternately execute inner layer updates and outer layer updates for each task, repeating until it is verified that the loss no longer decreases, complete the meta-training, and adapt to the overall shift in the input and output relationship caused by the red tide evolution, i.e. macro-drift. S510. At each recursive time step, the four-dimensional input vector of each sensitive target at the current recursive time step is substituted into a three-layer feedforward network with the current initial network parameters as parameters. The predicted value of the disaster impact index is calculated forward. The absolute value of the difference between the predicted value of the previous recursive time step with obtained measured verification data and the measured value of the disaster impact index at the current recursive time step is taken to obtain the single deviation. When the single deviation exceeds a preset multiple of the historical average deviation, it is determined that a drift has occurred, and concept drift detection is completed. The historical average deviation is the average of the absolute values of the difference between the predicted value and the measured value of the disaster impact index calculated forward with the initial network parameters on each task of the few-sample fine-tuning task set. The preset multiple ranges from 2 to 3. When the preset multiple is not less than 2, it excludes misjudgments caused by random fluctuations. When it is not greater than 3, it can start adaptive adjustment in time after the drift occurs. S511. When a drift is determined to occur, the four-dimensional input vectors of each sensitive target from the recursive time after the drift to the current recursive time and the corresponding measured values of the disaster impact index are used to form a fine-tuning sample set. The measured values of the disaster impact index are calculated by dividing the peak concentration at the current recursive time by the preset index upper limit and adding the duration of the impact by the preset duration upper limit, and then multiplying by the toxicity score. S512. The mean of the absolute values of the velocity vector differences between the sea surface current field at the current recursive time and the previous recursive time in each grid cell of the second-level recursive grid domain is taken as the change in the sea surface current field. When the change in the sea surface current field exceeds the preset change threshold, the first and second values of each four-dimensional input vector in the fine-tuning sample set are multiplied by the ratio of the change in the sea surface current field to the preset change threshold and then fed into the three-layer feedforward network. The preset change threshold is the mean of the change in the sea surface current field in historical red tide events. When taking the mean, significant changes in the current field can be identified, but data scaling will not be frequently triggered due to the threshold being too low. S513. On the fine-tuning sample set, update the preset inner layer step number of the initial network parameters along the gradient descent direction to obtain the fine-tuned initial network parameters. This adapts to the local shift in the input-output relationship caused by the change in the flow field, i.e., micro-drift, and completes the adaptive adjustment. The fine-tuned initial network parameters are used to calculate the disaster impact index at subsequent recursive time steps. S514. Substitute the four-dimensional input vector of each sensitive target at the current recursive time into a three-layer feedforward network with the finely tuned initial network parameters as parameters, calculate the disaster impact index of each sensitive target, divide the disaster impact index by the preset index upper limit and multiply it by the vulnerability score corresponding to the vulnerability level of the sensitive target to obtain the emergency response urgency of each sensitive target. S515. The urgency of emergency response is compared with a preset level classification threshold to classify the impact level, and the impact range assessment result is output. The preset level classification threshold is as follows: when the urgency of emergency response is greater than a first preset threshold, it is classified as Level 1; when the urgency of emergency response is between the first preset threshold and a second preset threshold, it is classified as Level 2; and when the urgency of emergency response is less than the second preset threshold, it is classified as Level 3. The first preset threshold is 0.7, and the second preset threshold is 0.4. Coastal sensitive targets classified as Level 1 when the first preset threshold is 0.7 are all targets with significantly high urgency of emergency response. Coastal sensitive targets classified as Level 3 when the second preset threshold is 0.4 can have their emergency response temporarily postponed.
[0025] This implementation significantly improves the accuracy and practicality of sensitive target impact assessment through refined designs in steps S51 to S515. By extracting concentration change sequences for each target, the arrival time, peak concentration, and duration of impact are accurately determined, providing a quantitative basis for impact assessment. Toxicity level, vulnerability level, and normalized values are concatenated into a four-dimensional input vector to construct a three-layer feedforward basis network. Meta-training is completed by alternating inner and outer layer updates using MAML to adapt to macroscopic drift caused by red tide evolution. Conceptual drift detection promptly captures prediction biases, and the input vector is scaled and fine-tuned with few samples when the flow field changes significantly, adapting to microscopic drift and ensuring the assessment model remains effective under dynamic sea conditions. The final output disaster impact index and emergency response urgency are divided into three impact levels based on thresholds, providing intuitive and actionable decision support for emergency resource allocation and response priority ranking.
[0026] The improved MAML meta-learning algorithm of this invention is similar to the original MAML meta-learning algorithm in that both retain the core architecture of meta-learning, namely, using a three-layer feedforward network as the base network, calculating the gradient on a single task through inner layer updates to obtain task-adaptive parameters, and calculating the gradient of the validation loss with respect to the initial network parameters through outer layer updates to update the initial network parameters. Inner and outer layer updates are performed alternately for each task until the validation loss no longer decreases. Finally, the learned initial network parameters are used as model parameters with fast adaptation capabilities.
[0027] The difference lies in that this invention breaks through the limitation of the original MAML model, where model parameters are fixed after training and cannot perceive changes in data distribution during red tide evolution. It introduces a concept drift detection and adaptive adjustment mechanism. Building upon the original model's continuous prediction using initial network parameters, this invention incorporates a drift detection step in step S510. This is achieved by subtracting the predicted value at the previous recursive time from the measured value at the current recursive time, taking the absolute value, and comparing it with a preset multiple of the historical average deviation. This enables automatic identification of macroscopic and microscopic drift. Subsequently, in steps S511 and S512, a fine-tuning sample set is dynamically constructed when drift occurs. Using the change in the sea surface current field within the secondary inference grid domain as a trigger condition, the first and second values in the four-dimensional input vector are scaled according to the ratio of the current field change to a preset change threshold, explicitly injecting the abrupt change information of the current field into the model input. Subsequently, in step S513, the initial network parameters are updated along the gradient descent direction on the fine-tuning sample set to fine-tune with a small number of samples to adapt to the local shift in the input-output relationship caused by changes in the flow field.
[0028] Based on the above improvements, the beneficial effects of this invention are that, through concept drift detection and flow field-triggered adaptive fine-tuning, the improved MAML meta-learning algorithm can promptly detect prediction deviations and initiate parameter corrections in response to sudden changes in sea state during red tide evolution. This breaks the limitation that the original MAML model cannot respond to data distribution drift after meta-training, and realizes dynamic connection between meta-learning and rolling monitoring. This design significantly enhances the model's adaptability to complex sea conditions such as drastic changes in flow field, and can more accurately capture the input-output relationship after drift. The combination of meta-training adapting to macro-drift and few-sample fine-tuning adapting to micro-drift maintains high disaster impact index assessment accuracy even under conditions of limited historical data and sparse experimental verification data, enhancing the system's robustness and emergency response capability in dynamic marine environments.
[0029] In this embodiment, S6 specifically includes: S61. Access new red tide monitoring data according to a preset rolling cycle. The new red tide monitoring data includes the location, boundary range, dominant algal species, and cell concentration of newly monitored red tide algal patches. The preset rolling cycle is the time obtained by dividing the average flow velocity of the sea surface current field in the target sea area during the red tide season by the second preset grid spacing as a reference value. When the preset rolling cycle is not greater than this time, the recursive calculation drift can be corrected in time. When it is not less than one-quarter of this time, the access frequency will not exceed the data acquisition capability. S62. The boundary range of the newly monitored algal patch is superimposed and compared with the boundary of the covered area. The shortest distance between each point on the outer edge of the boundary range of the newly monitored algal patch and the boundary of the covered area is summed and divided by the number of points on the outer edge to obtain the boundary deviation value. When the boundary deviation value exceeds the preset boundary deviation threshold, it is determined that the deviation exceeds the set threshold, and the actual monitoring field fusion replacement is triggered. The preset boundary deviation threshold is the average value of the boundary deviation values in the statistical correction as a reference value. When the preset boundary deviation threshold is not less than the average value, false triggering caused by monitoring noise is excluded. When it is not greater than twice the average value, the drift of the boundary of the covered area can be detected in time. S63. When triggering the fusion replacement of the measured monitoring field, the cell concentration of the newly monitored water sample points is interpolated onto each grid cell to obtain the measured monitoring field. The measured monitoring field is multiplied by a preset fusion weight, and the current recursive field is multiplied by one minus the preset fusion weight. The results are added up cell by cell to obtain the replaced recursive field. The recursive calculation is restarted with the replaced recursive field as the initial condition. The preset fusion weight is the ratio obtained by dividing the number of newly monitored cell concentration samples by the number of grid cells covered by the measured monitoring field as a reference value. The larger the preset fusion weight, the closer the recursive calculation is to the measured state. S64. After each measurement monitoring field fusion replacement is completed, the boundary deviation value is recorded as a correction amount. The cumulative correction amounts are divided by the number of corrections to obtain the average correction amount. When the average correction amount is greater than zero, the preset drift coefficient is multiplied by the average correction amount. When the average correction amount is less than zero, the preset drift coefficient is multiplied by the absolute value of the average correction amount. The preset drift coefficient is corrected according to the previous correction amounts. The preset drift coefficient is the offset ratio of the recursive field relative to the measured state caused by the random walk of the tracer particles in the recursive calculation. When the average correction amount is greater than zero, the recursive field is systematically too large. Adjusting it proportionally can reduce the subsequent recursive deviation. When the average correction amount is less than zero, the recursive field is systematically too small. Adjusting it proportionally can reduce the subsequent recursive deviation. S65. Divide the average correction amount by the number of recursive time intervals between two measured monitoring field fusion replacements to obtain the unit time correction rate. Multiply the preset population growth rate by one minus the unit time correction rate to complete the correction of the preset population growth rate based on the previous correction amounts. The corrected preset population growth rate is used for the recursive calculation after restart. When the unit time correction rate is greater than zero, the measured growth is slower than the recursive growth. Proportionally reducing the preset population growth rate can make the recursive calculation after restart closer to the measured growth. S66. Restart the recursive calculation with the replaced recursive field as the initial condition, and re-execute S3 to S5 to correct the impact range assessment results, obtain the final impact range assessment results and output them in combination with the red tide diffusion path.
[0030] A grid-based recursive red tide disaster impact range assessment system includes: The data acquisition module is used to acquire red tide monitoring data and basic environmental data, determine the spatial location and vulnerability level of sensitive targets along the coast, and obtain information on the distribution of sensitive targets; The grid construction module is used to generate a multi-level grid system based on red tide monitoring data, determine whether to migrate and reconstruct the entire secondary inference grid based on the displacement of the algal spot centroid, migrate the concentration field to the new grid, and output the multi-level grid system. The recursive calculation module is used to perform dual-field coupled recursive calculations on a multi-level grid system, solve the advection-diffusion-growth equation of the concentration field, discretize the algal spots into tracer particle swarms and add fractional Brownian motion random walk terms to advance the particle positions, compare and fuse the particle density field with the concentration field as the initial value for the next recursion, and obtain the spatiotemporal evolution sequence. The front determination module is used to calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence, determine the red tide front, and perform fine mesh recursion. After the determination stops the densification calculation, the centroids of the concentration field at each recursion time are connected sequentially to obtain the red tide diffusion path. The boundary of the covered area is determined by the position of the red tide front. The impact assessment module is used to spatiotemporally overlay the concentration field in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and take the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs to adapt to the macro-drift of red tide evolution, fine-tune the micro-drift, calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. The rolling correction module is used to continuously input new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, the actual monitoring field is fused and replaced, and the recursive calculation is restarted. At the same time, the preset drift coefficient and preset population growth rate are corrected, and the final impact range assessment result is output.
[0031] Example 1: To verify the feasibility of this invention in practice, it was applied to the red tide disaster emergency response platform of a marine environmental monitoring center in a coastal city. This center is responsible for red tide monitoring and early warning in approximately 3,800 square kilometers of nearshore waters in the city and surrounding areas, covering 12 important aquaculture areas, 6 bathing beaches, 4 large industrial water intakes, and 2 national marine protected areas, with a total of 24 sensitive coastal targets. The peak red tide season in this area is from May to October each year, with an average of 7 to 9 red tide events occurring annually. *Noctiluca scintillans*, *Skeletonema costatum*, and *Prorocentrum donghaiense* are the dominant algal species. Red tide algal patches drift rapidly with ocean currents and wind, and the affected area of a single event ranges from several square kilometers to hundreds of square kilometers.
[0032] In the actual operation of this platform, traditional red tide impact assessment mainly relies on numerical models on fixed grids, using uniform resolution for simulation calculations. Because red tide algal patches continuously drift with ocean currents, the fixed grid often results in a disconnect between the computational domain and the actual location of the algal patches. Expanding the computational domain to cover the drift range increases computational load, and a single full-time simulation on a regular server often takes several hours to complete, failing to meet the timeliness requirements of emergency response. Furthermore, traditional methods use a single concentration field for simulation, making it difficult to characterize the collective behavior of red tide algal cluster migration. In the red tide front region, insufficient grid resolution easily leads to errors in frontal position judgment. In addition, traditional assessment models are trained once based on historical data. When ocean current conditions change significantly, the correspondence between concentration and disaster impact drifts, and the assessment results gradually accumulate biases, lacking effective adaptive correction methods.
[0033] In practical deployment, the method of this invention integrates chlorophyll concentration data retrieved from satellite remote sensing, dissolved oxygen and pH data measured by buoys, and sea surface current and wind field data from numerical weather prediction. After determining the initial distribution of red tide algal patches, a first-level extrapolation grid covering the distribution area of the algal patches and a second-level extrapolation grid containing the algal patch area are constructed. When the proportion of the algal patch centroid displacement exceeds a preset threshold, the entire second-level extrapolation grid is reconstructed and migrated to the new grid through element mass conservation interpolation, ensuring that the simulation always follows the actual location of the algal patches. In the recursive calculation, the concentration field solved by the advection-diffusion-growth equation is compared and fused with the tracer particle swarm with fractional Brownian motion random walk terms, and a fused field is formed by weighting with cluster characteristics to characterize the cluster migration behavior of algae. When the spatial gradient of the concentration field exceeds a threshold, a red tide front is identified, and the recursive calculation is automatically densified within the gradient band, improving the spatial resolution of the front region. The evaluation phase employs an improved MAML meta-learning algorithm that incorporates concept drift detection and adaptive adjustment mechanisms. The meta-training phase adapts to macroscopic drift among different red tide events. In the online phase, after detecting drift through single-blindness detection, network parameters are fine-tuned using a small number of measured samples, and the input vector is scaled according to changes in the sea surface current field to adapt to microscopic drift. Each time a new batch of monitoring data is obtained, the recursion is restarted by weighting the measured monitoring field, and the preset drift coefficient and preset population growth rate are adjusted based on previous corrections, forming a closed-loop correction.
[0034] To verify the practical effectiveness of this invention, the center selected red tide events occurring during peak red tide periods for comparative verification. The method of this invention and the original fixed-grid numerical model method were run in parallel under the same initial conditions and data inputs. Table 1 below shows the comparative data between the method of this invention and the traditional method in assessing the impact range of red tides during red tide events: Table 1. Performance Comparison Data of the Invention and Traditional Methods in Assessing the Impact Range of Red Tide Disasters Based on the comparative data shown in Table 1, it can be seen that the grid-based red tide disaster impact range assessment method proposed in this invention shows significant performance advantages over the traditional fixed grid numerical model in five typical red tide events, especially in key indicators such as impact range assessment accuracy, frontal position judgment, calculation timeliness, level matching degree, and error control.
[0035] Regarding the accuracy of impact range assessment, this invention maintained a high level of over 92% in all five red tide events, averaging 93.78%, far exceeding the average accuracy of approximately 68.98% for traditional methods. For example, in Event 3 (Prorocentrum dinoflagellates in the East China Sea), due to the rapid drift and widespread expansion of this type of algal patch, the traditional fixed-grid method gradually became disconnected from the actual location of the algal patch in the later stages of the event, achieving only an assessment accuracy of 66.9%. In contrast, this invention triggered the overall migration and reconstruction of the secondary extrapolation grid through the criterion of the proportion of the algal patch centroid displacement, ensuring that the simulated area always followed the actual location of the algal patch, achieving an assessment accuracy of 92.8%, an improvement of nearly 26 percentage points.
[0036] Regarding frontal position determination, this invention identifies red tide fronts through spatial gradients of the concentration field and performs recursive derivation within the gradient zone, reducing the frontal position determination error from an average of 4.16 kilometers using traditional methods to 1.21 kilometers. For example, in Incident 5, the traditional method resulted in a frontal deviation of 4.6 kilometers, which was sufficient to cause significant shifts in the deployment locations of interception facilities in aquaculture areas. In contrast, this invention controls the deviation to within 1.5 kilometers, providing a reliable basis for precise protection of sensitive targets along the coast.
[0037] In terms of computational efficiency, this invention uses a multi-level grid system to dynamically allocate computing resources, reducing the time required for a single full-time simulation from an average of 233.75 minutes using traditional methods to approximately 49.13 minutes, increasing the computation speed by nearly five times. This allows the evaluation results to be updated immediately after significant algal patch drift, meeting the timeliness requirements of emergency response.
[0038] In terms of grade matching degree and error control, the average grade matching degree of the present invention reaches 89.80%, which is significantly higher than the 63.43% of the traditional method. The relative deviation of the evaluation results is reduced from an average of 20.05% of the traditional method to 5.15%, indicating that the evaluation results of the present invention are more refined and closer to reality.
[0039] Overall, this invention achieves precise tracking of the dynamic drift of red tide algal patches and efficient and accurate assessment of their impact range in red tide events involving different dominant algal species such as Noctiluca scintillans, Skeletalella costatum, and Prorocentrum donghaiense. This is achieved through the organic combination of multi-level grid dynamic migration, dual-field coupling recursion, and closed-loop rolling correction. The accuracy and timeliness are particularly significantly improved in scenarios of rapid algal patch drift and long-duration events, demonstrating broad practical application value and promising prospects for deployment and promotion.
[0040] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for assessing the impact range of red tide disasters based on grid recursion, characterized in that, Includes the following steps: S1. Obtain red tide monitoring data and basic environmental data, determine the spatial location and vulnerability level of sensitive targets along the coast, and obtain information on the distribution of sensitive targets; S2. Generate a multi-level grid system based on red tide monitoring data. Determine whether to migrate and reconstruct the entire secondary simulation grid based on the displacement of the algal spot centroid, and migrate the concentration field to the new grid. Output the multi-level grid system. S3. Perform dual-field coupled recursive calculations on a multi-level grid system to solve the advection-diffusion-growth equation of the concentration field. Discretize the algal patches into a tracer particle swarm and add a fractional Brownian motion random walk term to advance the particle positions. Compare and fuse the particle density field with the concentration field as the initial value for the next recursion to obtain the spatiotemporal evolution sequence. S4. Calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence, determine the red tide front, and perform fine-grid recursion. After determining to stop the densification calculation, connect the centroids of the concentration field at each recursion time in sequence to obtain the red tide diffusion path. Determine the boundary of the covered area by the position of the red tide front. S5. Spatiotemporally superimpose the concentration field in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and use the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs to adapt to the macroscopic drift of red tide evolution, fine-tune the microscopic drift, calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. S6. Roll in new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, replace it with the measured monitoring field and restart the recursive calculation. At the same time, correct the preset drift coefficient and preset population growth rate, correct the impact range assessment results, obtain the final impact range assessment results and output them in combination with the red tide diffusion path.
2. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S1 specifically includes: S11. Extract the chlorophyll a concentration distribution map of the target sea area, and mark the sea areas that exceed the preset red tide discrimination threshold as red tide algal spots. Read the outer edge of the red tide algal spots to obtain the location and boundary range of the red tide algal spots. S12. Collect water samples within the red tide algal patch area, observe and determine the dominant algal species, count the number of algal cells per unit volume of water sample using a cell counting chamber, obtain the cell concentration, and summarize the location, boundary range, dominant algal species, and cell concentration of the red tide algal patch into red tide monitoring data. S13. Read the sea surface current field output by the ocean numerical forecast product, read the wind field output by the weather forecast product, read the tidal data output by the tidal forecast product, read the shoreline topography data in the electronic nautical chart data, and combine them to obtain the basic environmental data. S14. Divide the coastal area into aquaculture areas, coastal tourism areas, water intake areas and ecological protection areas according to land use type, and record the spatial location of each sensitive target along the coast. S15. Based on the degree of damage to each sensitive coastal target after being affected by red tide and the time required for recovery, the vulnerability level of water intake and aquaculture area is set as high, the vulnerability level of coastal tourist area is set as medium, and the vulnerability level of ecological protection area is set as low. S16. The spatial location and vulnerability level of each sensitive target along the coast are summarized into sensitive target distribution information, which, together with red tide monitoring data and basic environmental data, serves as assessment input data.
3. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S2 specifically includes: S21. Within the target sea area, divide the area into grids with a first preset grid spacing to generate a primary background grid covering the target sea area. With the algal spot as the center, extend the red tide algal spot boundary by a second preset distance to generate a rectangular frame. Divide the rectangular frame with the second preset grid spacing to generate a secondary projection grid. Superimpose and combine the primary background grid and the secondary projection grid to output a multi-level grid system. S22. At each recursive time step, multiply the concentration value of each grid cell by the center coordinate of the grid cell, sum the results, and divide by the sum of the concentration values of all grid cells to calculate the concentration-weighted centroid position of the concentration field at the current time. Subtract the concentration-weighted centroid position recorded during the last overall migration reconstruction to obtain the displacement of the algal patch centroid. S23. Divide the length of the displacement of the algal spot centroid by the radius of the secondary inference grid domain to obtain the displacement ratio. When the displacement ratio exceeds the preset ratio, the secondary inference grid is migrated and reconstructed as a whole. That is, take the concentration-weighted centroid position at the current moment as the algal spot centroid, and regenerate a rectangle by expanding the boundary range of the red tide algal spot by the second preset distance. Divide the rectangle by the second preset grid spacing to generate a new secondary inference grid. S24. Multiply the concentration value of each grid cell on the old second-level inference grid by the area of the grid cell to obtain the cell mass. Add the cell mass of the overlapping area between the grid cell and the new second-level inference grid to the corresponding new grid cell, and divide by the area of the new grid cell to obtain the concentration value of the new grid cell. Output the multi-level grid system.
4. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S3 specifically includes: S31. Within the boundary range of the red tide algal patch, the measured cell concentration of each water sample point is interpolated onto each grid cell, and the concentration value of the grid cells outside the boundary range is set to zero to obtain the initial concentration field. S32. At each recursive time step, read the sea surface current field, wind field, and tidal data. Multiply the concentration value of each grid cell by the velocity vector synthesized from the three to obtain the advection term. Multiply the difference between the concentration values of each grid cell and the adjacent grid cells by the preset diffusion coefficient to obtain the diffusion term. Multiply the concentration value of each grid cell by the product of the preset population growth rate and the remainder of the current concentration value to obtain the growth term. Sum the three terms to update the concentration value of the grid cell. S33. Tracer particles are deployed at a third preset interval within the boundary range of the red tide algal patch. Each tracer particle carries the concentration value of its grid cell and forms a tracer particle swarm. S34. At each recursive time, the combined velocity vector of the sea surface current field, wind field, and tide data at the current position of the tracer particle is multiplied by the recursive time step to obtain a deterministic displacement. A random number with a mean of zero that follows a normal distribution is multiplied by the Hearst exponent of the recursive time step and multiplied by the preset diffusion intensity to obtain a random displacement. The two are added together to obtain the new position of the corresponding tracer particle. S35. For each grid cell, sum the concentration values carried by each tracer particle falling into the corresponding grid cell and divide by the area of the grid cell. By traversing all grid cells, the global particle density field is obtained. S36. Normalize the particle density field and concentration field by dividing them by their respective maximum values. Calculate the absolute value of the difference between the two normalized values for each grid cell to obtain the deviation distribution. When the proportion of the number of grid cells in the deviation distribution that are greater than the preset deviation threshold to the total number of grid cells exceeds the preset proportion, it is determined that the deviation exceeds the preset deviation threshold. S37. Look up the table to read the cluster characteristic weight corresponding to the dominant algal species type, multiply the particle density field by the cluster characteristic weight, multiply the concentration field by one minus the cluster characteristic weight, and add them up cell by cell to obtain the fusion field. Use the fusion field as the initial value for the next recursion. S38. Repeat the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion at each recursive time step, and arrange the fused fields of each recursive time step in chronological order to obtain the spatiotemporal evolution sequence.
5. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S4 specifically includes: S41. In the recursion of the spatiotemporal evolution sequence, for each grid cell, calculate the square root of the sum of the squares of the differences between the concentration value and the concentration values of the four adjacent grid cells in each grid cell, divide by the second preset grid spacing to obtain the spatial gradient of the concentration field of the grid cell, and traverse all grid cells to obtain the spatial gradient distribution of the concentration field. S42. When the spatial gradient of the concentration field of a grid cell exceeds the threshold of the front criterion, the grid cell is determined to be a red tide front. S43. Connect the grid cells identified as red tide fronts one by one with the adjacent grid cells whose spatial gradient of the concentration field exceeds half of the front criterion threshold. The connected grid cell set forms a gradient band. S44. Within the gradient band, the grid is divided into finer grids with the fourth preset grid spacing to generate a finer grid. On the finer grid, the operations of solving the advection-diffusion-growth equation of the concentration field, advancing the particle position, obtaining the particle density field, normalization comparison, and weighted fusion are repeatedly performed at each recursive time step to complete the finer grid recursion using the finer grid. S45. When the number of grid cells identified as red tide fronts within the encrypted grid no longer increases in the recursion of a preset number of consecutive iterations, the encryption calculation is stopped. S46. At each recursive time, multiply the concentration values of all grid cells by the center coordinates of the grid cells, sum them, and divide by the sum of the concentration values of all grid cells to calculate the centroid of the concentration field at the recursive time. Connect the centroids of the concentration fields at each recursive time in chronological order to obtain the red tide diffusion path. S47. Connect the outermost outer edge lines of the grid cells that are determined to be red tide fronts at each recursive time, and determine the boundary of the coverage area by the position of the red tide front.
6. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S5 specifically includes: S51. Read the spatial location of each sensitive target along the coast one by one, find the grid cell into which the spatial location falls, and arrange the concentration values of the corresponding grid cells at each recursive time in chronological order to obtain the concentration change sequence. S52. The recursive time when the concentration value in the concentration change sequence first exceeds the preset threshold is taken as the arrival time of the sensitive target, and the maximum value of the concentration value at each recursive time in the concentration change sequence is taken as the peak concentration of the sensitive target. S53. Sum the time spans of each adjacent recursive time when the concentration value in the concentration change sequence exceeds the preset threshold, and use this as the duration of the influence of the sensitive target. S54. Look up the table to read the toxicity level of the dominant algal species and the vulnerability level of the sensitive target. Divide the peak concentration by the preset index upper limit and the duration of the impact by the preset duration upper limit. Combine the toxicity score and the vulnerability score to form a four-dimensional input vector. Build a three-layer feedforward network and initialize the initial network parameters. Use the four-dimensional input vector of historical red tide events and the measured value of the disaster impact index to form a historical task set. The tasks are executed alternately for inner layer update and outer layer update until it is verified that the loss no longer decreases. Complete the meta-training and adapt to macroscopic drift. S55. At each recursive time, the four-dimensional input vector of each sensitive target at the current recursive time is substituted into a three-layer feedforward network with the current initial network parameters as parameters, and the predicted value of the disaster impact index is calculated forward. The absolute value of the difference between the predicted value of the previous recursive time with the measured value of the disaster impact index at the current recursive time is taken to obtain the single deviation. When the single deviation exceeds the preset multiple of the historical average deviation, it is determined that a drift has occurred, and the concept drift detection is completed. S56. When a drift is determined to occur, the four-dimensional input vectors of each sensitive target from the recursive time after the drift to the current recursive time and the corresponding measured values of the disaster impact index are used to form a fine-tuning sample set. The measured values of the disaster impact index are calculated by dividing the peak concentration at the current recursive time by the preset index upper limit and adding the duration of the impact by the preset duration upper limit, and then multiplying by the toxicity score. S57. The average absolute value of the velocity vector difference between the sea surface current field at the current recursion time and the previous recursion time in each grid cell of the second-level recursion grid domain is taken as the change in the sea surface current field. When the change in the sea surface current field exceeds the preset change threshold, the first and second values of each four-dimensional input vector in the fine-tuning sample set are multiplied by the ratio of the change in the sea surface current field to the preset change threshold and then fed into the three-layer feedforward network. S58. On the fine-tuning sample set, update the preset inner layer step number of the initial network parameters along the gradient descent direction to obtain the fine-tuned initial network parameters, adapt to the local shift in the input and output relationship caused by the change in the flow field, i.e., micro-drift, and complete the adaptive adjustment. S59. Substitute the four-dimensional input vector of each sensitive target at the current recursive time into a three-layer feedforward network with the finely adjusted initial network parameters as parameters, calculate the disaster impact index of each sensitive target, divide the disaster impact index by the preset index upper limit and multiply it by the vulnerability score corresponding to the vulnerability level of the sensitive target to obtain the emergency response urgency of each sensitive target. S510. Compare the urgency of emergency response with the preset level classification threshold to classify the impact level, and output the impact range assessment results.
7. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 6, characterized in that, Specifically, S54 includes: S541. Look up the table to read the toxicity level of the dominant algal species corresponding to the dominant algal species type, read the vulnerability level of each sensitive target along the coast as the vulnerability level of the sensitive target, divide the peak concentration of each sensitive target by the preset index upper limit to obtain the first value, divide the duration of the impact by the preset duration upper limit to obtain the second value, take the toxicity score according to the preset toxicity score rule corresponding to the toxicity level of the dominant algal species, take the vulnerability score according to the preset vulnerability score rule corresponding to the vulnerability level of the sensitive target, and concatenate the first value, the second value, the toxicity score, and the vulnerability score into a four-dimensional input vector in sequence. S542. Construct a three-layer feedforward network with the number of input layer nodes set to the preset number of input nodes, the number of hidden layer nodes set to the preset number of hidden nodes, and the number of output layer nodes set to the preset number of output nodes as the base network of the improved MAML meta-learning algorithm. The output layer outputs the disaster impact index, and the weight matrix and bias vector of each layer are randomly initialized as the initial network parameters. S543. The historical task set is composed of the four-dimensional input vectors of each sensitive target in the historical red tide event and the corresponding measured values of the disaster impact index. The historical task set is divided into the meta-training task set and the few-sample fine-tuning task set according to the preset division ratio. S544. Perform inner layer updates on each task in the meta-training task set. Substitute the four-dimensional input vector of each time step of the task into a three-layer feedforward network with the initial network parameters as parameters, calculate the predicted value of the disaster impact index, sum the squares of the difference between the predicted value and the measured value and divide by the number of time steps of the task to obtain the training loss. Calculate the gradient of the training loss with respect to the initial network parameters, subtract the preset inner layer learning rate from the initial network parameters and multiply by the gradient, update the preset number of inner layer steps, and obtain the task adaptation parameters for the corresponding task. S545. Perform outer layer update: Substitute the four-dimensional input vector of each time step of the task into the three-layer feedforward network with the task adaptation parameters as parameters, calculate the validation loss in the forward calculation, calculate the gradient of the validation loss with respect to the initial network parameters, and subtract the preset outer layer learning rate from the initial network parameters and multiply by the gradient to obtain the updated initial network parameters. S546. Alternately execute inner and outer layer updates for each task, repeating until the loss is verified to no longer decrease, thus completing meta-training and adapting to the overall shift in the input-output relationship caused by the red tide evolution, i.e., macroscopic drift.
8. The method for assessing the impact range of red tide disasters based on grid recursion according to claim 1, characterized in that, S6 specifically includes: S61. Input new red tide monitoring data according to the preset rolling cycle. The new red tide monitoring data includes the location, boundary range, dominant algal species and cell concentration of newly monitored red tide algal patches. S62. The boundary range of the newly monitored algal spot is superimposed and compared with the boundary of the covered area. The shortest distance between each point on the outer edge of the boundary range of the newly monitored algal spot and the boundary of the covered area is summed and divided by the number of points on the outer edge to obtain the boundary deviation value. When the boundary deviation value exceeds the preset boundary deviation threshold, it is determined that the deviation exceeds the set threshold and the actual monitoring field fusion replacement is triggered. S63. When the measured monitoring field fusion replacement is triggered, the cell concentration of the newly monitored water sample point is interpolated to each grid cell to obtain the measured monitoring field. The measured monitoring field is multiplied by the preset fusion weight, and the current recursive field is multiplied by one minus the preset fusion weight. The results are added to each grid cell to obtain the replaced recursive field. The recursive calculation is restarted with the replaced recursive field as the initial condition. S64. After each measurement monitoring field fusion replacement is completed, the boundary deviation value is recorded as a correction amount. The cumulative correction amounts are divided by the number of corrections to obtain the average correction amount. When the average correction amount is greater than zero, the preset drift coefficient is multiplied by the average correction amount. When the average correction amount is less than zero, the preset drift coefficient is multiplied by the absolute value of the average correction amount. The preset drift coefficient is then corrected based on the cumulative correction amounts. S65. Divide the average correction by the number of recursive time intervals between the two measured monitoring field fusion replacements to obtain the correction rate per unit time. Multiply the preset population growth rate by one minus the correction rate per unit time to obtain the corrected preset population growth rate. Restart the recursive calculation with the replaced recursive field as the initial condition. Re-execute S3 to S5 to correct the impact range assessment results and obtain the final impact range assessment results, which are then combined with the red tide diffusion path for output.
9. A grid-based recursive red tide disaster impact range assessment system, implementing the grid-based recursive red tide disaster impact range assessment method according to any one of claims 1 to 8, characterized in that, include: The data acquisition module is used to acquire red tide monitoring data and basic environmental data, determine the spatial location and vulnerability level of sensitive targets along the coast, and obtain information on the distribution of sensitive targets; The grid construction module is used to generate a multi-level grid system based on red tide monitoring data, determine whether to migrate and reconstruct the entire secondary inference grid based on the displacement of the algal spot centroid, migrate the concentration field to the new grid, and output the multi-level grid system. The recursive calculation module is used to perform dual-field coupled recursive calculations on a multi-level grid system, solve the advection-diffusion-growth equation of the concentration field, discretize the algal spots into tracer particle swarms and add fractional Brownian motion random walk terms to advance the particle positions, compare and fuse the particle density field with the concentration field as the initial value for the next recursion, and obtain the spatiotemporal evolution sequence. The front determination module is used to calculate the spatial gradient of the concentration field in the recursion of the spatiotemporal evolution sequence, determine the red tide front, and perform fine mesh recursion. After the determination stops the densification calculation, the centroids of the concentration field at each recursion time are connected sequentially to obtain the red tide diffusion path. The boundary of the covered area is determined by the position of the red tide front. The impact assessment module is used to spatiotemporally overlay the concentration field in the spatiotemporal evolution sequence with the distribution information of sensitive targets, calculate the arrival time, peak concentration and duration of impact for each sensitive target, construct an improved MAML meta-learning algorithm that introduces concept drift detection and adaptive adjustment mechanism, and take the toxicity level of dominant algal species and the vulnerability level of sensitive targets as inputs to adapt to the macro-drift of red tide evolution, fine-tune the micro-drift, calculate the disaster impact index and emergency response urgency of each sensitive target, classify the impact level, and output the impact range assessment results. The rolling correction module is used to continuously input new red tide monitoring data. When the deviation between the boundary range of the newly monitored algal patch and the boundary of the covered area exceeds the set threshold, the actual monitoring field is fused and replaced, and the recursive calculation is restarted. At the same time, the preset drift coefficient and preset population growth rate are corrected, and the final impact range assessment result is output.
