A multi-mode regional sound field cache calculation method based on water body uniformity determination

By using a multi-mode cache calculation method that reads and distinguishes water body uniformity determination in memory at one time, the problem of frequent file I/O and repetitive calculation in traditional regional sound field calculation is solved, and efficient regional sound field calculation is achieved.

CN123177752APending Publication Date: 2026-11-27崂山国家实验室
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654478.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The frequent file I/O operations in traditional regional sound field calculation methods lead to low computational efficiency, and the cache organization is not sensitive to water characteristics, resulting in repeated sound velocity calculations and redundant reads, especially with large-scale, high-resolution meshing, where efficiency issues are particularly prominent.

Method used

A multi-mode regional sound field buffer calculation method based on water homogeneity determination is adopted. The original environmental data of all grid points and all directions in the region are read and written into memory at one time. The data access characteristics are distinguished according to water homogeneity, and a multi-mode buffer table is established to reduce file I/O operations and eliminate repeated sound velocity calculations.

Benefits of technology

Significantly reduces file I/O operations, eliminates repetitive speed calculations and redundant reads, improves computational efficiency, shortens computation time by 3.1-4.3 times, reduces disk access overhead, and maintains computational accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177752A_ABST
    Figure CN123177752A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of marine acoustic calculation, and discloses a multi-mode regional sound field cache calculation method based on water body uniformity determination. In view of the problems that the traditional regional sound field calculation method is low in calculation efficiency due to frequent file IO, and the cache organization is not sensitive to the water body characteristics, so that repeated sound velocity calculation and redundant reading still exist under the uniform water body, the application proposes a multi-mode cache based on water body uniformity determination. The original environmental data of all grid points and all directions in the region are read into the memory at one time, the water body mode is determined by using the data of each direction in the database, and the water body type mode identifier is written back. Subsequently, the data is read from the memory according to the water body type mode, instead of repeated reading and calculation without difference for each calculation unit. Compared with the traditional regional sound field calculation method, the application greatly reduces the file IO operation, eliminates the repeated sound velocity calculation, and accelerates the regional sound field calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of marine acoustic computing technology and relates to a multi-mode regional sound field buffer calculation method based on water body homogeneity determination, which is particularly suitable for scenarios that require large-scale sound field background field data, such as route planning and sonar performance evaluation. Background Technology

[0002] Regional sound field calculation can provide background field data based on underwater acoustic propagation for applications such as route planning.

[0003] like Figure 2 As shown, the traditional method for calculating the sound field in a region is to divide the target sea area into grids according to latitude and longitude, calculate the propagation loss of each grid point in all directions, and finally obtain the sound field distribution in the entire region.

[0004] Count rows in a certain region Column number The grid is divided, and each grid point is assigned an azimuth value. The calculation of propagation loss in each direction requires a total of [number] steps. Calculation of secondary propagation loss.

[0005] like Figure 3 The diagram shows the calculation of propagation loss for a single grid point in all directions.

[0006] In traditional regional sound field calculation methods, once the grid division and calculation orientation are determined, for each grid point and each orientation, it is necessary to read four types of environmental data from the data file: temperature, salinity, topography, and substrate.

[0007] Due to the enormous number of grid points and locations traversed (total...), (each computing unit), traditional methods frequently trigger file I / O operations such as "open file - read data - close file", with a total number of up to [number missing] times. Second-rate.

[0008] File I / O operations are high-latency operations compared to memory access.

[0009] Frequent disk / file reads become the main performance bottleneck for regional sound field calculations, resulting in low computational efficiency and long computation time, especially under large-scale, high-resolution meshing, this problem is particularly prominent.

[0010] Furthermore, traditional methods use the same data acquisition and calculation process for all grid points, without distinguishing the degree of change in the water body.

[0011] When the temperature and salinity of a grid point are highly consistent in all directions and at all distances, the required sound velocity profiles for all directions are essentially the same profile. However, since traditional methods do not distinguish the degree of change in the water body, they still repeatedly read the file and repeatedly call the empirical formula for sound velocity in each direction, which will result in a large amount of redundant reading and repeated calculation.

[0012] Furthermore, since existing caching schemes mostly store data in a fixed cache organization and do not differentiate data access characteristics based on water body properties, this data consistency and computational reusability across different locations cannot be utilized, further restricting the efficiency of large-area sound field calculations.

[0013] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art. Summary of the Invention

[0014] To address the issues of low computational efficiency due to frequent file I / O in traditional regional sound field calculation methods, and the insensitivity of cache organization to water characteristics leading to repetitive sound velocity calculations and redundant readings even in homogeneous water bodies, this invention proposes a multi-mode regional sound field cache calculation method based on water homogeneity determination. This method reads and writes the original environmental data of all grid points and all directions within the region into computer memory at once. It distinguishes the access characteristics of environmental data based on water homogeneity and organizes multi-mode cache accordingly, which significantly reduces file I / O operations, eliminates repetitive sound velocity calculations, and accelerates regional sound field calculations.

[0015] To achieve the above objectives, the present invention adopts the following technical solution: A multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination includes the following steps: Step 1. Read all raw environmental data of all grid points and all directions within the area from the data file and write it into the computer memory at once. The environmental data includes temperature, salinity, topography, and substrate. Create an environment data cache table in the in-memory database; Each cache record in the cache table corresponds to a grid point and a location, and is uniquely identified by a combination of row index, column index, and location index. After the cache table is established, all computing units are traversed according to grid point and location, and the four types of environmental data are written into the cache table one by one. That is, the cache table contains environmental data for all grid points and all locations. The cache table has a single-table, multi-schema structure. Homogeneous and non-homogeneous water bodies share the same cache table, identified only by their water body schema. Field differentiation; at this point, the water body pattern at each grid point is unknown. Set the field to empty; Step 2. For each grid point, determine its water body type using the environmental data from each location already stored in the database; Step 3. Based on the water body type determination result, adjust the row index in the cache table established in Step 1. With column index Equal to the grid point identifier All cached records, batch The field is updated to the corresponding judgment result; Among them, when the water body type is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1; Step 4. For each grid point in each orientation, identify it according to its water body pattern. Retrieve environmental data from the cache table using the corresponding cache key, and calculate the sound speed profile. Then, the sound field model is invoked to obtain the propagation loss.

[0016] Furthermore, based on the aforementioned multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination, this invention also proposes a corresponding multi-mode regional acoustic field buffer calculation system based on water body homogeneity determination, the scheme of which is as follows: A multi-mode regional acoustic field buffering calculation system based on water body homogeneity determination includes the following modules: The preprocessing module is used to read and write the raw environmental data of all grid points and all directions in the area from the data file into the computer memory at one time. The environmental data includes temperature, salinity, topography, and substrate. Create an environment data cache table in the in-memory database; Each cache record in the cache table corresponds to a grid point and a location, and is uniquely identified by a combination of row index, column index, and location index. After the cache table is established, all computing units are traversed according to grid point and location, and the four types of environmental data are written into the cache table one by one. That is, the cache table contains environmental data for all grid points and all locations. The cache table has a single-table, multi-schema structure. Homogeneous and non-homogeneous water bodies share the same cache table, identified only by their water body schema. Field differentiation; at this point, the water body pattern at each grid point is unknown. Set the field to empty; The water uniformity determination module uses the environmental data from all directions already stored in the database to determine the water type for each grid point. The water body type pattern update module is used to update the row indexes in the established cache table based on the water body type determination result. With column index Equal to the grid point identifier All cached records, batch The field is updated to the corresponding judgment result; Among them, when the water body type is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1; And a batch propagation loss calculation module, used to calculate the loss for each grid point in each orientation, based on its... Retrieve environmental data from the cache table using the corresponding cache key, and calculate the sound speed profile. Then, the sound field model is invoked to obtain the propagation loss.

[0017] Furthermore, based on the aforementioned multi-mode regional sound field buffer calculation method based on water body homogeneity determination, this invention also proposes a computer device, which includes a memory and one or more processors.

[0018] Executable code is stored in memory. When the processor executes the executable code, it implements the steps of the multi-mode regional acoustic field buffer calculation method based on water homogeneity determination.

[0019] Furthermore, based on the aforementioned multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination, this invention also proposes a computer-readable storage medium storing a program thereon, which, when executed by a processor, is used to implement the steps of the aforementioned multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination.

[0020] The present invention has the following advantages: As described above, this invention discloses a multi-mode regional sound field caching calculation method based on water body homogeneity determination. This method first proposes a multi-mode caching concept based on water body homogeneity determination, which involves reading all regional environmental data at once and storing it in memory. Water body patterns are determined using the stored environmental data from each location, and pattern identifiers are written back. Subsequent data is retrieved from memory according to the pattern, rather than repeatedly reading and calculating from each computational unit indiscriminately. Secondly, this invention distinguishes data access characteristics based on water body patterns and defines two cache key structures, achieving a differentiated key structure design. The first type uses grid point identifiers. The first method uses a key, with only one cached record for each grid point, shared across all orientations, for accessing location point attributes (temperature, salinity, substrate); the second method uses grid point identifiers. with directional signs combination The key is used to access propagation path attributes (terrain) by reading data separately according to azimuth. In homogeneous water bodies, the sound velocity profile does not change with azimuth; it is calculated once per grid point and reused across all azimuths. In non-homogeneous water bodies, all data are cached separately according to azimuth. This key structure directly corresponds to the physical law of sound field environment data changing with azimuth. Furthermore, when the water body type is determined to be homogeneous, this invention calculates the sound velocity profile only once based on the reference azimuth and reuses it across all azimuths, omitting the need for each grid point. In this invention, redundant location point data in non-reference azimuth rows can be cleared and memory released, thus eliminating redundant calculations and storage in uniform water bodies. Furthermore, this invention replaces traditional file I / O with memory reads. During the calculation phase, memory is read according to the corresponding cache key, and single-point lookups hit memory pages. Data retrieval time is reduced from the level of file I / O to the level of memory, and the memory data is completely consistent with the file data. Attached Figure Description

[0021] Figure 1 This is a flowchart of a multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination in an embodiment of the present invention; Figure 2 This is a schematic diagram of the regional grid division; Figure 3 This is a schematic diagram illustrating the calculation of omnidirectional propagation loss at a single point. Figure 4 This is a schematic diagram of the traditional one-way propagation loss calculation process; Figure 5 A schematic diagram illustrating the time consumption for traditional calculation of omnidirectional propagation loss at a single point; Figure 6 This is a schematic diagram illustrating the time consumption for calculating the regional propagation loss using the method of the present invention. Detailed Implementation

[0022] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments: Example 1 This embodiment 1 describes a multi-mode regional sound field cache calculation method based on water body uniformity determination. The method proposes a multi-mode cache idea based on water body uniformity determination. The idea is to first read all environmental data in the region at once and store it in memory, and then use the data of each direction that has been stored in the database to determine the water body uniformity of each grid point. During the calculation, the environmental data is obtained from memory according to the corresponding cache record based on the determination result, thereby reducing file IO and repeated sound velocity calculation.

[0023] When the water body changes little, the differences in temperature and salinity between different locations are small, and the sound velocity profiles in each location change little along the propagation distance; however, the sound field model shows little variation in small-amplitude sound velocity profiles. Since the differences are not sensitive, a single profile is used to represent all orientations and distances of the grid point, which affects the final propagation loss. The impact is negligible.

[0024] Based on this, grid points are divided into two categories according to the degree of water body variation: homogeneous water bodies and non-homogeneous water bodies. To describe the acquisition and caching methods of environmental data in these two categories, they are further divided into two attribute categories based on whether the data changes with the direction of propagation: Location point attribute, refers only to the location of grid points. Relevant data that does not change with the direction of propagation; propagation path attributes, referring to data that needs to be propagated along the direction of propagation. Sampling data that varies with orientation.

[0025] The attribute attribution of environmental data in the above two scenarios and the resulting differences are as follows: I. Homogeneous water body (small variations in water volume): The water body changes little. The variation with distance is negligible.

[0026] In this case, the differences in temperature, salinity, and substrate in all directions can be ignored and considered as location point attributes; topography It still changes with the direction of propagation, which is a propagation path attribute, and sampling is required along each propagation direction.

[0027] Therefore, the grid point is only taken at a distance of 0 from the reference azimuth row (i.e., at a distance of...). ) Calculation of sound speed profile from temperature and salinity profiles , and use it to represent the sound velocity profile at all directions and all distances of that grid point.

[0028] In each grid point All orientations share the same profile, requiring only one calculation and can be reused across orientations.

[0029] II. Non-homogeneous water bodies (with significant variations in water quality): Temperature, salinity, topography, and substrate are all propagation path attributes and need to be obtained point by point along the propagation direction according to their respective sampling step lengths; , , All of these vary with orientation and require calculation on a unit-by-unit basis.

[0030] In this embodiment, one orientation of a grid point constitutes a calculation unit.

[0031] Therefore, the sound velocity profile is simplified under the premise that the error is negligible. Prepare and improve computational efficiency.

[0032] Accordingly, cache keys and key structures are defined for the location point attribute and propagation path attribute, respectively. The cache key refers to the combination of fields used to locate the target data during read access, and the key structure refers to the selection and organization of the cache keys.

[0033] Location point attributes are identified by grid points As a cache key, only one cache record is stored for the same grid point, and it is used by that grid point. All directions are shared; propagation path attributes are identified by grid points. Combination with directional markers As the cache key, a cache record is stored for each orientation of the same grid point.

[0034] For the same environmental data cache table, data access is organized using the two key structures mentioned above according to the water body mode (uniform water body and non-uniform water body), and the field composition of the table remains unchanged. This is called "multi-mode caching".

[0035] It's important to note that the cache key described above and the storage primary key (composed of row, column, and azimuth indexes) in step 1 below are at two different levels. The storage primary key uniquely identifies each cached record during the write phase, ensuring no duplicate records are generated in the cache table. The cache key is used during the calculation phase to read data from the cache table, referring to the combination of fields used to locate the target data when accessing data in the water body mode. Using the same cache table and the same set of fields, when reading location point attributes, the grid point identifier is used as the cache key, allowing a single read to access all directions shared by that grid point. When reading propagation path attributes, the combination of the grid point identifier and the azimuth identifier is used as the cache key, reading direction by direction. Therefore, the two cache key structures represent two access methods selected on the same table in the water body mode; they are not two different tables and do not change the storage primary key of the cached record.

[0036] like Figure 1 As shown, the multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination includes the following steps: Step 1. Full data read and temporary storage in the database.

[0037] The raw environmental data of all grid points and all orientations within the region is read from the data file and written to the computer's RAM in one go. The raw environmental data includes temperature. ,salinity ,terrain , bottom material .

[0038] In this embodiment, the computer's RAM preferably adopts the SQLite in-memory database memory mode, where data resides only in memory and does not generate disk files, and is released after the program finishes running.

[0039] At this point, the water body pattern of each grid point is unknown, therefore its water body pattern label is... Currently unavailable (empty). Various environmental data along the propagation direction. The sampling points are obtained one by one according to the sampling step size of step A in the traditional regional sound field calculation method.

[0040] An environment data cache table is created in the in-memory database. Each cache record in the table corresponds to a location of a grid point, and its field structure is shown in Table 1 below. It uses a combination of row index, column index, and location index. It uniquely identifies a cache record, which is the storage primary key of that cache record.

[0041] Table 1 Environment Data Cache Table

[0042] After the table is built, all calculation units are traversed according to grid points and orientations, and the four types of environmental data are written into the above cache table one by one. That is, the cache table contains environmental data for all grid points and all orientations.

[0043] After writing, the cache table stores a total of One cached record.

[0044] Note that during writing, The field is temporarily missing (set to null); in addition, if a record with the same storage primary key already exists in the cache table, the original record will be replaced with the newly written data to avoid generating duplicate records.

[0045] The cache table has a single-table, multi-schema structure. Uniform and non-uniform water bodies share the same cache table, and are identified only by their water body schema. Field distinction.

[0046] sound speed profile Instead of being stored as a field in the cache table, it is calculated in real time from environmental data during the calculation phase.

[0047] The preferred storage method for each field of each cache record in the cache table is as follows: The float arrays corresponding to the four types of environmental data (temperature, salinity, topography, and substrate) are packaged element by element into binary data blocks according to IEEE 754 double precision and stored in the corresponding fields of the cache record.

[0048] During reading, the binary data block is deserialized according to IEEE 754 double precision and restored to the corresponding category of environmental data.

[0049] Of course, the above are just examples. You can also use text serialization methods such as JSON or MessagePack (a binary serialization format), or split it into normalized sub-tables according to distance / depth. These will not be elaborated here.

[0050] Step 2. Determine the homogeneity of the water body.

[0051] For each grid point, the water body type is determined using the environmental data from various locations that have been stored in the database.

[0052] The water body types are the homogeneous water bodies and non-homogeneous water bodies mentioned above.

[0053] The determination is based on the profile at the reference azimuth row distance 0. The deviations of the temperature profile and salinity profile at all azimuths and all distances of the grid point from the reference are compared with the deviations of the seabed parameters at each azimuth row from the reference azimuth.

[0054] Specifically, define grid points The formula for measuring the consistency of water body types is as follows: ; in This represents the water body type consistency score. Indicates the orientation of each grid point; , Grid points No. Location, distance Location, Depth Temperature and salinity at the location The number of sampling points in the distance direction. This represents the number of sampling points in the depth direction. when , middle At a distance of 0, when Corresponding to the reference azimuth row.

[0055] This is the substrate parameter vector.

[0056] in These are the sound velocity, density, and sound attenuation coefficient of the substrate, respectively. middle Corresponding to the reference azimuth line. , , These are reference values ​​for temperature, salinity, and seabed parameters, all of which are constants taken based on typical variations in the sea area.

[0057] To facilitate a unified determination using a single threshold, the temperature, salinity, and sediment terms in the above formula are all normalized according to their respective reference values.

[0058] Of course, this embodiment is not limited to As a reference azimuth row, it can also be selected Any of the directions.

[0059] As a dimensionless quantity, a preset threshold for water body type determination is used. Rules for determining water body type: like It is determined to be a homogeneous body of water, that is Otherwise, it is judged as a non-uniform water body, i.e. .

[0060] Simultaneously constrain consistency between all aspects ( Direction) and the stability of the sound speed profile along distance ( (Direction): The former ensures that the same profile can be reused across azimuths in a uniform water body, while the latter ensures that the profile at distance 0 can represent the entire path.

[0061] in, The smaller the value, the more likely the grid point is to be represented by the profile at the reference azimuth row distance of 0. The smaller the deviation of the profile at all azimuths and distances, the better. Of course, in addition to the automatic determination based on data consistency mentioned above, manual determination can also be made based on prior knowledge of the sea area or the water body type marked in the model configuration, which will not be elaborated on here.

[0062] Step 3. Update the water body pattern identifier.

[0063] Based on the water body type determination result in step 2, the row index of the cache table established in step 1 is adjusted. With column index Equal to all cached records identified by that grid point, batch them. The field is updated to the corresponding judgment result.

[0064] Among them, when it is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1.

[0065] As a preferred processing method, for grid points determined to be homogeneous water bodies, their non-reference orientations can be adjusted. In the middle and the reference azimuth Redundant location point attributes are set to null to free up memory.

[0066] in, That is, the first in each grid point one direction This indicates the orientation of each grid point.

[0067] The cleanup conditions are limited to It does not affect the reference azimuth. The location point attribute. Specifically, for =0 and azimuth index The cached records, and its , , Set all three fields to empty.

[0068] Because the location point attributes under a uniform water body are only displayed in the reference orientation ( The records that are read and set to empty will not be used for data retrieval in subsequent calculation stages. Therefore, it is sufficient to set these three fields to empty without the need for data migration or other additional operations.

[0069] The sharing of location point attributes for all azimuths of the same grid point is achieved by the rule in step 4 of taking data from the reference azimuth row once by pressing the grid point key and reusing the calculated sound velocity profile across azimuths (see the data taking rules in step 4).

[0070] Step 4. Calculate the loss of mass propagation.

[0071] This invention defines two cache key structures when reading environmental data, as follows: The first method uses grid points for identification. As a cache key, only one cache record is stored for the same grid point, and it is shared by all orientations. It is used to store location point attributes, including temperature, salinity, and substrate. The second method uses grid points for identification. with directional signs combination This is the cache key, cached separately according to location, used to store propagation path attributes, including terrain.

[0072] For each grid point Each direction Based on its water body model identifier The environment data is read from the cache table according to the corresponding cache key and deserialized to calculate the sound speed profile. Then, the propagation loss is obtained by calling the sound field model. .

[0073] Among them, according to The process of reading environment data from the cache table using the corresponding cache key is as follows: I. Homogeneous water body ( ): Location point attributes are derived from the reference orientation row. Obtain and calculate the sound speed profile accordingly. Only once and reused within the process, by all grid points Each location is shared, eliminating the need for repeated calculations or repeated storage of sound velocity profiles.

[0074] The location attribute includes temperature. ,salinity and substrate The calculated sound velocity profile is buffered for subsequent azimuth calculations of this grid point, and released after all azimuth calculations for this grid point are completed.

[0075] Index by row Column index Equal to the current grid point identifier and orientation index Read a cached record based on the given conditions and retrieve its temperature. ,salinity and substrate Three fields.

[0076] in , Only the section at distance 0 is taken. Take the entire distance range and calculate the sound speed profile accordingly. .

[0077] terrain According to each direction Obtain.

[0078] Then press the current grid point marker and the current orientation marker. Read the corresponding cached record and retrieve it. Field.

[0079] II. Non-homogeneous water bodies ( ): temperature ,salinity ,terrain , bottom material All four environmental data points are propagation path attributes and vary with location. The sound velocity profile is obtained and calculated unit by unit.

[0080] The specific data retrieval method is as follows: based on the current grid point identifier and the current orientation identifier. Read a cached record one at a time, and retrieve the contents of each cached record in one go. , , , Four fields.

[0081] In this case, the number of calculations for the sound velocity profile is the same as in the traditional method. The speedup in this case compared to the traditional method comes from the reduction of file I / O. The elimination of repeated calculations of the sound velocity profile only occurs in the case of a uniform water body (see the uniform water body data acquisition rules in step I).

[0082] The above data retrieval process quickly locates the cached record in the cache table using the cache key (using an index-based lookup, reducing the complexity of a single-point lookup). Furthermore, all data retrieval pages are hit, significantly reducing data retrieval latency compared to repetitive file I / O.

[0083] The memory data and file data are completely identical; in a homogeneous water body, the profile at a distance of 0 represents the entire propagation path, and the introduced deviation is determined by the water body type threshold. Under constraints, the deviation between the propagation loss calculation results and those of traditional methods is negligible.

[0084] During the computation phase, data is read from memory according to the corresponding cache key, and a single lookup hits a memory page, reducing the data retrieval time from the level of file I / O to the level of memory. , Furthermore, the memory data and the file data are completely identical.

[0085] Steps 1 to 3 above constitute a one-time preprocessing stage to achieve full data reading and storage, uniformity determination, and water body type pattern identification update. Step 4 is the calculation stage, which calculates data according to the pattern, and the sound velocity profile is not calculated repeatedly under uniform water bodies.

[0086] In addition, to verify the effectiveness of the method of the present invention, the following first gives the calculation process of single-point single-directional propagation loss in the traditional regional sound field calculation method, and gives the calculation time of propagation loss for all grid points in the traditional method.

[0087] The calculation process for propagation loss at a single point and in a single direction is as follows: Figure 4 As shown, it includes the following steps: Step A. Obtain environmental data.

[0088] Get a specified location from the data file At the designated location Environmental data. Among them... For row index, ; For column indexes, .

[0089] Record the total number of grid points ,in , These represent the number of rows and the number of columns, respectively.

[0090] , .

[0091] Environmental data includes temperature ,salinity ,terrain , bottom material There are four types of information, and all types of data are along the direction of propagation. Obtained by sampling. , This is an array of profiles that vary with distance (each distance sampling point corresponds to a set of depth-temperature / salinity profiles), with a sampling step size of [missing information]. The number of sampling points in the distance direction is ;in For the distance direction sampling point index, The corresponding distance is 0. The distance-depth array has a sampling step size of 1. . The sampling step size is a set of substrate parameters including substrate sound velocity, density, and sound attenuation coefficient. .

[0092] Step B. Calculation of the speed of sound.

[0093] For each distance sampling point, based on the temperature obtained in step A ,salinity With depth Changing profile data (denoted as) , ).

[0094] The sound velocity profile at this distance from the sampling point was obtained by calculating layer by layer using the empirical formula for sound velocity. (A set of depth-velocity arrays).

[0095] The sound velocity profiles at each distance from the sampling point constitute the sound velocity profile at that location and orientation. : .

[0096] The above formula is a simplified form of the nine-term empirical formula for the speed of sound proposed by Mackenzie in 1981. It retains the dominant terms of temperature, salinity, and depth, while omitting higher-order small quantities such as the square of depth and the temperature-depth product.

[0097] Step C. Calculate propagation loss.

[0098] sound speed profile ,terrain , bottom material The three types of data are used as input to the sound field model to calculate the propagation loss at that location and direction. , Unit: dB.

[0099] The time consumed at a single point and in a single direction consists of two parts: reading temperature, salinity, topography, and sediment from the data file is the I / O time (Input / Output Time), while the calculation of sound speed and propagation loss is the computation time.

[0100] Record the file read time for a single data type as The time required to calculate the speed of sound is The propagation loss calculation takes time. The calculation time for the propagation loss in a single direction is... .

[0101] Single point, all-round (total) The total time required to calculate the propagation loss in each direction is: Its time consumption components are as follows: Figure 5 As shown.

[0102] The time required to calculate the propagation loss for all grid points is: .

[0103] The time consumption model of the method of this invention is as follows: Figure 6 As shown.

[0104] Traditional methods for each All processes require reading four types of data from the file and calculating the speed of sound. The total time consumed is: ,in Calculate the time taken to account for propagation loss.

[0105] The total time required for this invention consists of two parts: one-time preprocessing and unit-by-unit calculation. The preprocessing stage includes two parts: full reading of environmental data and determination of water body patterns.

[0106] Full read time Each of the four data types, calculated by grid points and orientation units, is read equivalently once; since a full read only requires opening the file once, it eliminates the need for... Secondary file switch, therefore .

[0107] Water body model determination time Each grid point is determined once, including the time for binary data block deserialization and consistency measurement calculation, a step that traditional regional sound field calculation methods do not have.

[0108] During the computation phase, each unit is read from memory using a cache key (time consumption) Calculate the sound velocity profile (time depends on the water model) and call the sound field model to calculate the propagation loss (time for uniform model). Non-uniform mode time consumption ).

[0109] I. Uniform Water Body Model: The sound velocity profile has fixed location and orientation attributes, requiring only one calculation per grid point. The propagation loss calculation is also simplified due to the reduced input time. Therefore: (1) in This represents the total time consumed under the uniform water body model.

[0110] II. Non-uniform water body model: The sound velocity profile is a propagation path attribute and needs to be calculated on a per-element (azimuth path) basis. Therefore: (2) in This represents the total time taken for the non-uniform water body model.

[0111] Introduce a time consumption ratio parameter: , .

[0112] in This is the ratio of the time taken to read a type of environmental data after a full load to the time taken to read that type of data unit by unit. This is the ratio of the time spent reading a type of environmental data from an in-memory database by cache key during the computation phase to the time spent reading the same type of data unit by unit from a disk data file using traditional methods. Once data resides in memory once, reading no longer involves opening and closing files or disk addressing. A value of 0.01 indicates that the memory read time is 1% of the file read time.

[0113] when This reflects the savings achieved by eliminating the need for the duplicate file switch during full read. This means that although reading is still required A data block, but because the file is only opened / closed once, it is omitted. The overhead of file switching is reduced to 10% of the time required to read a single type of data, which is equivalent to that of traditional methods.

[0114] The data is given directly based on actual measurements or experience. Traditional methods do not distinguish between different water body models, and their calculation of sound velocity in one direction is time-consuming. Compared with the time consumption of single-directional sound velocity calculation in non-uniform mode of the present invention Same, that is .

[0115] The time required for sound speed calculation varies depending on the mode, and meets the requirements. .

[0116] in The time taken to calculate the sound velocity profile once per grid point in uniform mode. The time required to calculate propagation loss in uniform mode. , .

[0117] in, The time taken to calculate the sound velocity profile along the propagation direction at each sampling point in a non-uniform water body mode is compared to the time taken to calculate the sound velocity profile only once per grid point in a uniform water body mode. Non-uniform water bodies require independent calculation of the sound velocity profile for each computational unit, increasing the number of calculations and interpolation overhead. The value of 2 indicates that the time required for a single sound velocity calculation is twice that of the uniform mode. The time taken to calculate propagation loss under a uniform water body model is compared to the time taken by traditional methods. In the uniform model, the sound velocity profile is simplified to location point attributes, reducing the input preparation and computational load of the sound field model. Taking 0.8 means that the time consumption is reduced to 80% of the traditional method.

[0118] The sound velocity profile is simplified to location point attributes, and the computational cost of the sound field model is reduced.

[0119] The comparison of time-consuming variables between the traditional method and the method of the present invention is shown in Table 2 below.

[0120] Table 2 Comparison of various time-consuming variables between the traditional method and the method of this invention

[0121] The following examples illustrate this with specific numerical values.

[0122] set up: , , , Second, Seconds (time taken to calculate the sound velocity profile per grid point in uniform mode). Seconds (time for calculating a single-azimuth sound velocity profile in a non-uniform mode; traditional methods do not distinguish between water body modes, and their single-azimuth sound velocity calculation time is...) Similarly, it is 0.3 seconds. Second, Seconds (time spent calculating propagation loss in uniform mode) Seconds; Scale parameter , (Full read eliminates the need for repeated switching, and the equivalent single-class read takes only 10% of the time of traditional methods.) , .

[0123] Table 3 shows a comparison of the total time consumption between the method of the present invention and the traditional method.

[0124] Table 3 Comparison of total time consumption between the traditional method and the method of this invention

[0125] It should be noted that when all grid points are uniform water bodies, the above formula (1) corresponds to the lower limit of the time consumption of the present invention; when all grid points are non-uniform water bodies, the above formula (2) corresponds to the upper limit of the time consumption of the scheme.

[0126] In actual sea areas, the two modes are usually combined, and the total time is between the two.

[0127] Furthermore, in the uniform water body mode, this invention also eliminates the need for each grid point. Calculation of the repeating sound velocity profile: To ensure that the location point attributes and orientation remain unchanged, the calculation is performed only once on the reference orientation row and reused across orientations. During the calculation phase, location point attributes are also retrieved only from the reference orientation row to avoid repeated readings; and through optional cleanup in step 3, redundant location point attributes in non-reference orientation rows can be set to null to free up memory. This saves 7 redundant calculations per grid point.

[0128] As can be seen from the above examples, under typical computational conditions, the present invention achieves a speedup of approximately 3.1 to 4.3 times compared to traditional methods; by utilizing a multi-mode caching structure, both cache storage redundancy and redundant calculation of sound velocity profiles are eliminated simultaneously in uniform water bodies.

[0129] Compared with traditional methods, the present invention has at least the following beneficial effects: 1. Significantly reduces file I / O: Environment data is read from the data file only once, avoiding the overhead of traditional methods. Repeated file reads reduce disk / file access overhead.

[0130] 2. Eliminates redundant calculations and reads in homogeneous water bodies: With the help of multi-mode caching, in uniform water bodies, only the location point attributes of the reference azimuth row are calculated / obtained and reused for all azimuths, saving each grid point from It can perform repeated sound velocity profile calculations and clean up redundant data in non-reference azimuth rows.

[0131] 3. Significantly improved computational efficiency: Under typical parameters (100×100 grid, 8 directions), the total computation time for the regional sound field was reduced from 424,000 seconds to 98,800 seconds for uniform water bodies (approximately 4.3 times) and 137,300 seconds for non-uniform water bodies (approximately 3.1 times).

[0132] 4. Controllable computational accuracy: This invention only changes the way environmental data is acquired and organized (file reading is changed to structured memory reading according to the corresponding cache key), while the logic for calculating sound velocity and sound field model propagation loss remains unchanged; the deviation introduced by using the profile at distance 0 to represent the entire path in a uniform water body is determined by a threshold. Control can be limited to a negligible range.

[0133] 5. Simple to implement and highly compatible: This invention can achieve multi-mode caching by using mature storage such as SQLite in-memory database (which resides only in memory and does not require disk files), with minimal intrusion into existing sound field calculation frameworks and easy to implement in engineering.

[0134] The method of this invention reduces file I / O operations and repetitive sound velocity calculations and accelerates regional sound field calculations by preprocessing environmental data for one-time reading and caching and reusing it according to the uniformity of water bodies.

[0135] Example 2 This embodiment 2 describes a multi-mode regional sound field buffer calculation system based on water body homogeneity determination. This system is based on the same inventive concept as the multi-mode regional sound field buffer calculation method based on water body homogeneity determination in the above embodiment 1.

[0136] The multi-mode regional sound field buffer calculation system based on water body homogeneity determination in this embodiment includes the following modules: The preprocessing module is used to read and write the raw environmental data of all grid points and all directions in the area from the data file into the computer memory at one time. The environmental data includes temperature, salinity, topography, and substrate. Create an environment data cache table in the in-memory database; Each cache record in the cache table corresponds to a grid point and a location, and is uniquely identified by a combination of row index, column index, and location index. After the cache table is established, all computing units are traversed according to grid point and location, and the four types of environmental data are written into the cache table one by one. That is, the cache table contains environmental data for all grid points and all locations. The cache table has a single-table, multi-schema structure. Homogeneous and non-homogeneous water bodies share the same cache table, identified only by their water body schema. Field differentiation; at this point, the water body pattern at each grid point is unknown. Set the field to empty; The water uniformity determination module uses the environmental data from all directions already stored in the database to determine the water type for each grid point. The water body type pattern update module is used to update the row indexes in the established cache table based on the water body type determination result. With column index Equal to the grid point identifier All cached records, batch The field is updated to the corresponding judgment result; Among them, when the water body type is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1; And a batch propagation loss calculation module, used to calculate the loss for each grid point in each orientation, based on its... Retrieve environmental data from the cache table using the corresponding cache key, and calculate the sound speed profile. Then, the sound field model is invoked to obtain the propagation loss.

[0137] It should be noted that any content not mentioned in the above-described functional modules of the system described in Embodiment 2 can be referred to the step description of the corresponding method in Embodiment 1 above, and will not be repeated in detail here.

[0138] Example 3 This embodiment 3 describes a computer device including a memory and one or more processors. Executable code is stored in the memory. When the processor executes the executable code, it implements the steps of the multi-mode regional sound field buffer calculation method based on water homogeneity determination in embodiment 1 above.

[0139] In this embodiment, the computer device can be any device or apparatus with data processing capabilities, and will not be described in detail here.

[0140] Example 4 This embodiment 4 describes a computer-readable storage medium storing a program that, when executed by a processor, is used to implement the steps of the multi-mode regional sound field buffer calculation method based on water homogeneity determination in embodiment 1 above.

[0141] The computer-readable storage medium can be an internal storage unit of any device or apparatus with data processing capabilities, such as a hard disk or memory, or an external storage device of any device with data processing capabilities, such as a plug-in hard disk, smart media card (SMC), SD card, flash card, etc.

[0142] Of course, the above description is only a preferred embodiment of the present invention. The present invention is not limited to the above-described embodiments. It should be noted that any equivalent substitutions or obvious modifications made by those skilled in the art under the guidance of this specification fall within the scope of this specification and should be protected by the present invention.

Claims

1. A multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination, characterized in that, Includes the following steps: Step 1. Read all raw environmental data of all grid points and all directions within the region from the data file and write it into the computer memory at once, and establish an environmental data cache table in the memory database; the environmental data includes temperature, salinity, topography, and substrate. Each cache record in the cache table corresponds to a grid point and a location, and is uniquely identified by a combination of row index, column index, and location index. After the cache table is established, all computing units are traversed according to grid point and location, and the four types of environmental data are written into the cache table one by one. That is, the cache table contains environmental data for all grid points and all locations. The cache table has a single-table, multi-schema structure. Homogeneous and non-homogeneous water bodies share the same cache table, identified only by their water body schema. Field differentiation means that the water body pattern at each grid point is unknown at this point. Set the field to empty; Step 2. For each grid point, determine its water body type using the environmental data from each location already stored in the database; Step 3. Based on the water body type determination result, adjust the row index in the cache table established in Step 1. With column index Equal to the grid point identifier All cached records, batch The field is updated to the corresponding judgment result; When the water body type is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1; Step 4. For each grid point in each orientation, identify it according to its water body pattern. Retrieve environmental data from the cache table using the corresponding cache key, and calculate the sound speed profile. Then, the sound field model is invoked to obtain the propagation loss.

2. The multi-mode regional sound field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, In step 1, the computer memory uses the memory mode of the SQLite in-memory database.

3. The multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, In step 1, the storage method for each field in each cache record in the cache table is as follows: The float arrays corresponding to the four types of environmental data (temperature, salinity, topography, and substrate) are packaged into binary data blocks element by element according to IEEE 754 double precision and stored in the corresponding fields of the cache record. During reading, the binary data block is deserialized according to IEEE 754 double precision and restored to the corresponding category of environmental data.

4. The multi-mode regional sound field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, In step 2, the water body type is determined with reference to the profile at the reference azimuth distance 0. Compare the deviations of the temperature and salinity profiles from the reference at all azimuths and distances of the grid point, as well as the deviations of the seabed parameters at each azimuth from the reference seabed parameters. Define grid points The formula for measuring the consistency of water body types is as follows: ; in This represents the water body type consistency score. Indicates the orientation of each grid point; , Grid points No. Location, distance Location, Depth Temperature and salinity at the location The number of sampling points in the distance direction. This represents the number of sampling points in the depth direction. when , middle At a distance of 0, when Corresponding reference azimuth row; Let be the substrate parameter vector, where These are the sound velocity, density, and sound attenuation coefficient of the substrate, respectively. middle Corresponding to the reference azimuth line. , , These serve as reference values ​​for temperature, salinity, and sediment parameters. Preset water body type determination threshold Rules for determining water body type: like It is determined to be a homogeneous body of water, that is Otherwise, it is judged as a non-uniform water body, i.e. .

5. The multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, Step 3 specifically involves: For grid points identified as homogeneous water bodies, their non-reference orientations are... In the middle and the reference azimuth Redundant location point attribute data should be cleared to free up memory. in, That is, the first in each grid point one direction Indicates the orientation of each grid point; right =0 and azimuth index The cached records, and its , , Set all three fields to empty.

6. The multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, In step 4, two cache key structures are defined when reading environment data, as follows: The first method uses grid points for identification. As a cache key, only one cache record is stored for the same grid point, and it is shared by all orientations. It is used to store location point attributes, including temperature, salinity, and substrate. The second method uses grid points for identification. with directional signs combination This is the cache key, cached separately according to location, used to store propagation path attributes, including terrain.

7. The multi-mode regional acoustic field buffer calculation method based on water body homogeneity determination according to claim 1, characterized in that, In step 4, according to The process of reading environment data from the cache table using the corresponding cache key is as follows: I. Homogeneous water body: Location point attributes are derived from the reference orientation row. Obtain and calculate the sound speed profile accordingly. Only once and reused within the process, by all grid points All directions are shared, and the terrain is divided according to each direction. Obtain; Location point attributes include temperature ,salinity and substrate ; in, That is, the first in each grid point one direction Indicates the orientation of each grid point; The calculated sound velocity profile buffer is used for subsequent azimuth calculations of this grid point, and is released after all azimuth calculations for this grid point are completed. Specifically, row index Column index Equal to the current grid point identifier And directional index Read a cached record based on the given conditions and retrieve its contents. , and Three fields; in , Only the section at distance 0 is taken. Take the entire distance range and calculate the sound speed profile accordingly. Then, according to the current grid point marker and the current orientation marker... Read the corresponding cached record and retrieve it. Fields; II. Non-homogeneous water bodies: temperature ,salinity ,terrain , bottom material All four environmental data points are propagation path attributes and vary with location. Acquire and calculate the sound velocity profile unit by unit; The specific data retrieval method is as follows: based on the current grid point identifier and the current orientation identifier. Read a cached record one at a time, and retrieve the contents of each cached record in one go. , , , Four fields.

8. A multi-mode regional acoustic field buffering calculation system based on water body homogeneity determination, characterized in that, Includes the following modules: The preprocessing module is used to read and write the raw environmental data of all grid points and all directions in the area from the data file into the computer memory at one time. The environmental data includes temperature, salinity, topography, and substrate. Create an environment data cache table in the in-memory database; Each cache record in the cache table corresponds to a grid point and a location, and is uniquely identified by a combination of row index, column index, and location index. After the cache table is established, all computing units are traversed according to grid point and location, and the four types of environmental data are written into the cache table one by one. That is, the cache table contains environmental data for all grid points and all locations. The cache table has a single-table, multi-schema structure. Homogeneous and non-homogeneous water bodies share the same cache table, identified only by their water body schema. Field differentiation; at this point, the water body pattern at each grid point is unknown. Set the field to empty; The water uniformity determination module uses the environmental data from all directions already stored in the database to determine the water type for each grid point. The water body type pattern update module is used to update the row indexes in the established cache table based on the water body type determination result. With column index Equal to the grid point identifier All cached records, batch The field is updated to the corresponding judgment result; Among them, when the water body type is determined to be a homogeneous water body When set to 0, it is determined to be a non-uniform water body. Set to 1; And a batch propagation loss calculation module, used to calculate the loss for each grid point in each orientation, based on its... Retrieve environmental data from the cache table using the corresponding cache key, and calculate the sound speed profile. Then, the sound field model is invoked to obtain the propagation loss.

9. A computer device, comprising a memory and one or more processors; characterized in that, The memory stores executable code, which, when executed by the processor, is used to implement the steps of the multi-mode regional sound field buffer calculation method based on water homogeneity determination as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a program stored thereon; characterized in that, When the program is executed by the processor, it is used to implement the steps of the multi-mode regional sound field buffer calculation method based on water body homogeneity determination as described in any one of claims 1 to 7.