Ocean bottom intelligent identification method fusing machine learning and related equipment
By integrating ant colony intelligence with neural networks, the topology and parameters of the marine sediment identification model are automatically optimized, solving the problems of insufficient identification accuracy and robustness in existing technologies and achieving efficient marine sediment identification.
Patent Information
- Application Number
- CN202611270572.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to achieve high-precision automatic identification of marine sediments, especially due to the complex nonlinear relationship between backscattering intensity and sediment type, as well as overlapping acoustic response characteristics. This makes it difficult to guarantee the accuracy and robustness of existing methods. Furthermore, the selection of network structure and parameters relies on manual trial and error, which is time-consuming and prone to getting trapped in local optima.
By employing a method that integrates ant colony intelligence and neural networks, the topology of the neural network is initialized, and multi-mode fine-grained search and dynamic pheromone adjustment are performed based on the ant colony to automatically optimize the network topology and parameters. Combined with an internal and external loop mechanism, high accuracy and generalization performance are achieved.
It has achieved automation and intelligence in marine sediment identification, eliminating reliance on human experience and significantly improving identification efficiency and accuracy. It can obtain high-performance models that meet the requirements on the validation set.
Smart Images

Figure CN123158362A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and related equipment for intelligent identification of marine sediments that integrates machine learning. Background Technology
[0002] Accurate identification of marine sediment types is fundamental to marine engineering surveys, marine resource development, and marine environmental monitoring. Acoustic equipment such as multibeam echo sounders and side-scan sonar can simultaneously acquire high-resolution water depth data, seabed backscatter intensity data, and seabed acoustic images. These data contain rich information reflecting the grain size, hardness, and other characteristics of seabed sediments, providing important data sources for sediment classification. However, a complex nonlinear relationship exists between backscatter intensity and sediment type, and the acoustic response characteristics of different sediment types often overlap, posing a significant challenge to high-precision automatic identification.
[0003] Currently, methods for identifying substrates based on multibeam data mainly include physical model inversion and data-driven methods. Physical models require establishing accurate acoustic scattering models and obtaining precise environmental parameters, which is challenging in practical applications. Early data-driven methods relied on manually designed features, such as statistics and fractal dimensions, combined with support vector machines or random forests for classification; however, feature engineering is cumbersome and has limited generalization ability. In recent years, deep neural networks have been introduced due to their automatic feature extraction capabilities, effectively improving recognition accuracy. However, network performance heavily depends on the appropriate selection of topology and training hyperparameters. In practice, the selection of these structures and parameters mainly relies on manual trial and error, which is time-consuming and prone to getting trapped in local optima. Commonly used gradient descent optimizers are sensitive to initial weights and easily converge to local minima, making it difficult to guarantee model accuracy and robustness. Some studies have attempted to use swarm intelligence methods such as genetic algorithms and particle swarm optimization to automatically search for network hyperparameters or structures, but these algorithms generally suffer from premature convergence and difficulties in dynamically balancing global exploration and local exploitation capabilities, making it impossible to stably obtain high-precision models. Furthermore, most existing methods separate network structure design from parameter training, failing to achieve integrated and coordinated optimization of the two, which limits the full potential of model performance. Summary of the Invention
[0004] The main objective of this invention is to propose a method, device, electronic device, storage medium, and program product for intelligent identification of marine sediment that integrates machine learning, aiming to solve at least one problem of the prior art.
[0005] To achieve the above objectives, one aspect of this invention proposes a method for intelligent identification of marine sediments that integrates machine learning, the method comprising: Obtain a multibeam dataset and divide it into a training set and a validation set; each data sample in the multibeam dataset includes feature data and is associated with substrate type label data; Initialize the topology of the neural network, and initialize the ant population based on the topology; wherein the ant population includes a first number of ant individuals, and each ant individual corresponds to a set of network parameters; Traverse every individual ant in the ant colony, use a neural network and training set to identify the accuracy, obtain the first accuracy of each individual ant, take the individual with the highest first accuracy as the best individual, and take the individual with the lowest first accuracy as the worst individual. If the first accuracy of the best individual exceeds the prediction accuracy threshold, the best individual is taken as the target individual; otherwise, the heuristic factor of each ant individual is obtained based on the first accuracy, the best individual, the worst individual, and the iteration progress. The individual transition probability of each ant individual is obtained by converting the heuristic factor and pheromone concentration of the same ant individual. Based on the individual transfer probability, a multi-mode fine search is performed on each ant individual to update the ant population, and the pheromone concentration of each ant individual is dynamically adjusted based on a preset adjustment strategy. The inner loop iteration count is incremented. If the inner loop iteration count does not exceed the maximum iteration count, the process returns to traversing each individual ant in the ant colony and using the neural network and training set to perform accuracy identification until the target individual is obtained or the inner loop iteration count exceeds the maximum iteration count. If the inner loop iteration count exceeds the maximum iteration count, the optimal individual is taken as the target individual. A recognition model is constructed using the target individual and the neural network. The second accuracy of the recognition model is obtained by using the validation set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations in the inner loop is initialized, and the step of initializing the ant population based on the topology is returned to be executed until the second accuracy exceeds the prediction accuracy threshold. The recognition model is then used as the target model. The target model is used to identify the bottom sediment based on real-time feature data.
[0006] In some alternative approaches, the neural network includes an input layer, hidden layers, and an output layer. The number of nodes in the input layer is determined based on the number of parameters in the feature data, the number of nodes in the output layer is determined based on the number of substrate types, and the initial number of nodes in the hidden layer is configured based on the number of nodes in the input and output layers. The topology is updated by updating the number of nodes in the hidden layers. The network parameters include weight parameters and threshold parameters. Initializing the ant colony based on the topology includes the following steps: If the topology has not been updated, the product of the number of nodes in the input layer and the number of nodes in the hidden layer is added to the product of the number of nodes in the hidden layer and the number of nodes in the output layer to obtain the second number. The third number is obtained based on the sum of the number of nodes in the hidden layer and the number of nodes in the output layer. The second number represents the number of weight parameters, and the third number represents the number of threshold parameters. A fourth number of parameter values are randomly generated within a first preset range to represent individual ants, and an ant population is then constructed based on the first number of randomly generated individual ants; wherein, the fourth number is the sum of the second number and the third number; If the topology has been updated, a baseline individual is adaptively constructed based on the target individual obtained before the topology update, taking into account the change in the number of nodes in the hidden layer before and after the topology update. Specifically, when the number of nodes in the hidden layer remains unchanged after the topology is updated, the target individual is directly used as the baseline individual; when the number of nodes in the hidden layer decreases after the topology is updated, the corresponding parameter values in the target individual are discarded to obtain the baseline individual; when the number of nodes in the hidden layer increases after the topology is updated, a fifth number of parameter values are randomly generated within a first preset range and added as the parameters corresponding to the target individual to obtain the baseline individual; the fifth number represents the number of nodes in the hidden layer that increases after the topology is updated. By randomly assigning values to each parameter in the baseline individual, new ant individuals are generated, and then an ant population is constructed based on the first number of ant individuals generated by the random assignment. The topology update includes: when the first accuracy of the target individual is lower than the first threshold, the number of nodes in the hidden layer is randomly increased; when the first accuracy of the target individual is higher than the first threshold and the second accuracy is lower than the second threshold, the number of nodes in the hidden layer is randomly decreased; otherwise, the number of nodes in the hidden layer is not adjusted.
[0007] In some alternative approaches, each individual ant in the ant colony is traversed, and accuracy is determined using a neural network and a training set to obtain the first accuracy for each individual ant. This includes the following steps: The first ant in the ant colony is taken as the first individual; The network parameters of the first individual are used as candidate parameters, and the candidate parameters are applied to the neural network to obtain the candidate model; Initialize the correct number of samples, and use the first data sample in the training set as a candidate sample. The candidate samples are input into the candidate model so that the candidate model can process the feature data of the candidate samples to obtain the predicted substrate type. If the predicted substrate type and the label data type are the same for the candidate sample, increment the number of correct samples. The next data sample in the training set is used as a candidate sample. The process of inputting the candidate sample into the candidate model is repeated until all data samples in the training set have been traversed. The first accuracy of the first body is obtained based on the ratio of the number of correct samples to the total number of samples in the training set. Take the next ant in the ant colony as the first individual, and return to execute the step of taking the network parameters of the first individual as candidate parameters, until the first accuracy of each ant individual in the ant colony is obtained.
[0008] In some alternative approaches, the heuristic factor for each ant individual is derived based on the first accuracy, the best individual, the worst individual, and the iteration progress, including the following steps: The first accuracy of the best individual is taken as the maximum accuracy, and the first accuracy of the worst individual is taken as the minimum accuracy. The iteration progress is obtained by comparing the current number of inner loop iterations with the maximum number of iterations. Based on the negative value of the iteration progress, the iteration decay term is obtained by calculating the natural exponential function. The first ant in the ant colony is taken as the second ant, and the first accuracy of the second ant is taken as the candidate accuracy. The first value is obtained by calculating the difference between the candidate accuracy and the minimum accuracy as the numerator and the difference between the maximum accuracy and the minimum accuracy as the denominator. Multiply the first value by the iterative decay term to obtain the heuristic factor of the second volume; Take the next ant in the ant colony as the second individual, and return to execute the step of using the first accuracy of the second individual as the candidate accuracy, until the heuristic factor of each ant individual in the ant colony is obtained.
[0009] In some alternative methods, the individual transition probability of each ant individual is obtained based on the heuristic factor and pheromone concentration of the same ant individual, including the following steps: The initial probability value of each ant individual is obtained by multiplying the heuristic factor of the same ant individual by the pheromone concentration. The second value is obtained by summing the initial probability values of all individual ants in the ant colony. The individual transition probability of each ant is obtained by comparing the initial probability value with the second probability value.
[0010] In some alternative approaches, a multi-modal fine-grained search is performed on individual ants based on their transition probabilities to update the ant population, including the following steps: The first ant in the ant colony is considered the third individual; Randomly generate a judgment value within a second preset range; If the individual transition probability of the third entity is greater than the judgment value, a third value is randomly generated within the third preset range. The fourth value is obtained by subtracting the iteration progress from 1. The network parameters of the third entity are incrementally assigned by the product of the third value and the fourth value to obtain the updated individual corresponding to the third entity. The iteration progress is determined according to the ratio of the current number of inner loop iterations to the maximum number of iterations. If the individual transition probability of the third individual is less than or equal to the judgment value, the fifth value is obtained based on the difference between the network parameters of the optimal individual and the third individual. The sixth value is randomly generated within the preset normal distribution. The network parameters of the third individual are incrementally assigned by the product of the fifth value and the sixth value to obtain the updated individual corresponding to the third individual. Treat the next ant in the ant colony as the third individual, and return to the step of randomly generating a judgment value within the second preset range, until all ant individuals in the ant colony have been traversed, and update the ant colony based on the update individual corresponding to each ant individual.
[0011] In some alternative methods, the pheromone concentration of each individual ant is dynamically adjusted based on a preset adjustment strategy, including the following steps: Based on the negative value of the iteration progress, the iteration decay term is obtained by operating on the natural exponential function; where the iteration progress is determined by the ratio of the current number of inner loop iterations to the maximum number of iterations. The first accuracy of the best individual is taken as the maximum accuracy, and the first accuracy of the worst individual is taken as the minimum accuracy. The individual ants in the ant population before the update are sorted in descending order of the first accuracy to obtain the ant sequence; where the ant sequence is labeled with the sequence number of each individual ant. The first ant in the ant sequence is taken as the fourth ant; The first pheromone is obtained by multiplying the pheromone concentration of the fourth individual by the iterative decay term; The seventh value is obtained by taking the difference between the first accuracy rate and the minimum accuracy rate of the fourth individual as the numerator and the difference between the maximum accuracy rate and the minimum accuracy rate as the denominator. The second pheromone is obtained by multiplying the preset pheromone enhancement factor, the seventh value, and the pheromone concentration of the fourth individual. If the ratio of the fourth individual's serial number to the first quantity is less than the preset ratio, the third pheromone of the fourth individual will be assigned a fixed reward base value; otherwise, the third pheromone of the fourth individual will be assigned a value of 0. The pheromone concentration of the fourth individual is updated based on the sum of the first, second, and third pheromones, and the updated pheromone concentration is then associated with the corresponding ant individual in the updated ant colony. The next ant in the ant sequence is treated as the fourth ant, and this process continues until the pheromone concentration of each ant is updated.
[0012] To achieve the above objectives, another aspect of the present invention proposes a marine sediment intelligent identification device integrating machine learning, the device comprising: The acquisition module is used to acquire the multibeam dataset and divide the multibeam dataset into a training set and a validation set; each data sample in the multibeam dataset includes feature data and each data sample is associated with substrate type label data; The initialization module is used to initialize the topology of the neural network and initialize the ant population based on the topology; wherein, the ant population includes a first number of ant individuals, and each ant individual corresponds to a set of network parameters; The accuracy module is used to traverse each individual ant in the ant colony, use a neural network and training set to identify the accuracy, obtain the first accuracy of each individual ant, select the individual with the highest first accuracy as the best individual, and select the individual with the lowest first accuracy as the worst individual. The determination module is used to select the best individual as the target individual if the first accuracy of the best individual exceeds the prediction accuracy threshold; otherwise, it transforms the first accuracy, the best individual, the worst individual, and the iteration progress to obtain the heuristic factors of each ant individual. The probability module is used to obtain the individual transition probability of each ant individual based on the heuristic factor and pheromone concentration of the same ant individual. The update module is used to perform multi-mode fine-grained search on each ant individual based on the individual transfer probability in order to update the ant population and dynamically adjust the pheromone concentration of each ant individual based on a preset adjustment strategy. The iteration module is used to increment the number of iterations in the inner loop. If the number of iterations in the inner loop does not exceed the maximum number of iterations, the operation of the accuracy module is returned until the target individual is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the best individual is taken as the target individual. The verification module is used to build an identification model using the target individual and the neural network, and to verify the second accuracy of the identification model using the verification set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations of the inner loop is initialized, and the operation of initializing the ant population based on the topology in the initialization module is returned to be executed until the second accuracy exceeds the prediction accuracy threshold, and the identification model is used as the target model. The application module uses the target model to identify the substrate based on real-time feature data.
[0013] To achieve the above objectives, another aspect of the present invention provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned method.
[0014] To achieve the above objectives, another aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned method.
[0015] To achieve the above objectives, another aspect of the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method.
[0016] The embodiments of this invention include at least the following beneficial effects: This invention provides a method, device, electronic device, storage medium, and program product for intelligent identification of marine sediments integrating machine learning. This solution acquires a multibeam dataset and divides the dataset into a training set and a validation set. Each data sample in the multibeam dataset includes feature data, and each data sample is associated with a sediment type label. The topology of the neural network is initialized, and an ant population is initialized based on the topology. The ant population includes a first number of ant individuals, each corresponding to a set of network parameters. Each ant individual in the population is traversed, and accuracy is determined using the neural network and the training set to obtain the first accuracy of each ant individual. The ant individual with the highest first accuracy is designated as the optimal individual, and the ant individual with the lowest first accuracy is designated as the worst individual. If the first accuracy of the optimal individual exceeds the prediction accuracy threshold, the optimal individual is designated as the target individual; otherwise, the heuristic factor for each ant individual is obtained based on the first accuracy, the optimal individual, the worst individual, and the iteration progress. Based on the same ant... The heuristic factor and pheromone concentration of individual ants are converted to obtain the individual transition probability of each ant. Based on the individual transition probability, a multi-mode fine search is performed on each ant to update the ant population. The pheromone concentration of each ant is dynamically adjusted based on a preset adjustment strategy. The number of iterations in the inner loop is incremented. If the number of iterations in the inner loop does not exceed the maximum number of iterations, the process returns to traversing each ant in the ant population and using the neural network and training set to perform accuracy identification until the target individual is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the optimal individual is taken as the target individual. A recognition model is constructed using the target individual and the neural network. The second accuracy of the recognition model is obtained by using the validation set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations in the inner loop is initialized, and the process returns to the step of initializing the ant population based on the topology until the second accuracy exceeds the prediction accuracy threshold. The recognition model is then taken as the target model. The target model is used to identify the substrate based on real-time feature data. This invention integrates ant colony intelligence with neural networks to automatically optimize network topology and parameters, eliminating reliance on human experience. It generates heuristic factors based on the best and worst individuals and iteration progress, and combines this with a dynamic pheromone adjustment strategy to effectively balance global exploration and local development, accelerating convergence and improving global optimization accuracy. Multi-mode fine-grained search enriches population update methods, significantly enhancing the ability to escape local optima. An internal and external loop mechanism enables hierarchical optimization of topology and parameters, ensuring high accuracy and generalization performance of the model on the validation set. The entire identification process is automated; only an accuracy threshold needs to be set to obtain a high-performance seabed identification model that meets the requirements, greatly improving the efficiency and intelligence level of marine seabed identification. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of an implementation environment for the intelligent identification method for marine sediment using fusion machine learning provided in this embodiment of the invention; Figure 2 This is a flowchart illustrating the intelligent identification method for marine sediments that integrates machine learning, provided in an embodiment of the present invention. Figure 3 This is a schematic diagram of the overall process of the intelligent identification method for marine sediment integrating machine learning provided in this embodiment of the invention; Figure 4 This is a schematic diagram of the structure of the intelligent marine sediment identification device integrating machine learning provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of this invention; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this invention as detailed in the appended claims.
[0019] It is understood that the terms "first," "second," etc., used in this invention may be used to describe various concepts, but unless specifically stated otherwise, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of embodiments of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" or "when" as used herein may be interpreted as "when," "in response to determination," or "in the event of a determination."
[0020] The terms “at least one,” “multiple,” “each,” “any,” etc., used in this invention, “at least one” includes one, two, or more than two; “multiple” includes two or more than two; “each” refers to each of the corresponding multiple; and “any” refers to any one of the multiple.
[0021] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this invention is for descriptive purposes only and is not intended to limit the invention.
[0022] To facilitate understanding of the technical solution of this invention, the key terms that may be involved in the technical solution of this invention will first be explained: Ant Colony Optimization (ACO) is an intelligent metaheuristic optimization algorithm proposed by scholar Dorigo, inspired by the foraging behavior of ants in nature. Its core relies on a pheromone positive feedback mechanism to find the optimal value, and it is widely used for solving the minimum value of discrete and continuous functions. In nature, ants randomly explore routes, releasing pheromones that evaporate over time along the way. Shorter paths are more efficient, leading to a continuous accumulation of pheromone concentration. Subsequent ants will prioritize areas with high pheromone density, eventually causing the colony to converge to the optimal route. The algorithm replicates this pattern to construct its mathematical model. While possessing advantages such as distributed parallel search, strong robustness, and adaptability to various optimization problems, it also suffers from drawbacks such as slow convergence, parameter sensitivity, and susceptibility to local minima. Subsequent improvements, such as maximum-minimum ant colony optimization and ant colony systems, have been developed and are now applied to various engineering optimization scenarios involving finding minimum values, including function extrema, path planning, workshop scheduling, and logistics allocation.
[0023] Sediment identification refers to the technical process of determining the material composition, structural characteristics, and distribution patterns of sediments on and below the surface of the seabed, lakebed, or riverbed by analyzing their physical, chemical, and acoustic properties. Sediment identification is a fundamental task in marine geological surveys, hydrological monitoring, and mineral resource exploration, and its results directly impact subsequent engineering planning, resource development, and environmental protection decisions.
[0024] Multibeam technology, as an important means of seabed identification, infers seabed type by measuring the differences in the propagation speed of sound waves of different frequencies in sediments. Different types of seabed (such as sand, mud, gravel, and coral reefs) have different physical properties, resulting in significant differences in the speed at which sound waves propagate. For example, sandy seabeds have larger interparticle pores, leading to lower sound wave propagation speeds; while clayey seabeds have finer particles, resulting in relatively higher sound wave propagation speeds. By collecting sound wave data at different depths and angles using multibeam sensors, acoustic feature maps of the seabed can be constructed, enabling accurate classification and identification of seabed types. Multibeam seabed identification technology has advantages such as non-invasiveness, high efficiency, and wide coverage, allowing for rapid acquisition of seabed information without damaging the seabed environment. Combined with modern signal processing and machine learning algorithms, this technology can achieve automated and intelligent seabed analysis, providing crucial data support for marine scientific research and marine engineering construction.
[0025] Back Propagation Neural Network (BPNN) is a multi-layer feedforward neural network based on the backpropagation algorithm, and is one of the most widely used artificial neural network models. This network consists of an input layer, hidden layers, and an output layer. Neurons in each layer are connected by weights. Signals propagate forward from the input layer to the output layer, while errors propagate backward from the output layer to all layers. The weights are continuously adjusted using gradient descent to minimize the prediction error. BPNN has powerful nonlinear fitting capabilities and self-learning abilities, automatically extracting feature patterns from large amounts of data, making it suitable for various machine learning tasks such as classification, regression, and prediction. However, traditional BPNN suffers from problems such as being prone to getting trapped in local optima and slow convergence speed, requiring improvements through optimization algorithms (such as ant colony optimization) to enhance its learning efficiency and generalization ability.
[0026] In related technologies, there is an urgent need for an intelligent identification method for marine sediment that can automatically and collaboratively optimize neural network topology and parameters, and effectively balance global search and local fine search capabilities.
[0027] In view of this, this invention provides a method and related equipment for intelligent identification of marine sediments integrating machine learning. This method acquires a multibeam dataset and divides it into a training set and a validation set. Each data sample in the multibeam dataset includes feature data, and each data sample is associated with a label data representing the sediment type. The topology of the neural network is initialized, and an ant population is initialized based on this topology. The ant population includes a first number of ant individuals, each corresponding to a set of network parameters. Each ant individual in the population is traversed, and accuracy is determined using the neural network and the training set to obtain a first accuracy for each ant individual. The ant individual with the highest first accuracy is designated as the optimal individual, and the ant individual with the lowest first accuracy is designated as the worst individual. If the first accuracy of the optimal individual exceeds a prediction accuracy threshold, the optimal individual is designated as the target individual; otherwise, a heuristic factor for each ant individual is obtained based on the first accuracy, the optimal individual, the worst individual, and the iteration progress. The heuristic factor and information of the same ant individual are then used to determine the target individual. Pheromones concentration is converted to obtain the individual migration probability of each ant individual; based on the individual migration probability, a multi-mode fine search is performed on each ant individual to update the ant population, and the pheromone concentration of each ant individual is dynamically adjusted based on a preset adjustment strategy; the number of inner loop iterations is incremented, and if the number of inner loop iterations does not exceed the maximum number of iterations, the process returns to traversing each ant individual in the ant population, using a neural network and training set to perform accuracy identification, until the target individual is obtained or the number of inner loop iterations exceeds the maximum number of iterations. If the number of inner loop iterations exceeds the maximum number of iterations, the optimal individual is taken as the target individual; an identification model is constructed using the target individual and the neural network, and the second accuracy of the identification model is obtained using a validation set; if the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of inner loop iterations is initialized, and the process returns to the step of initializing the ant population based on the topology, until the second accuracy exceeds the prediction accuracy threshold, and the identification model is taken as the target model; the target model is used to identify the substrate based on real-time feature data. This invention integrates ant colony intelligence with neural networks to automatically optimize network topology and parameters, eliminating reliance on human experience. It generates heuristic factors based on the best and worst individuals and iteration progress, and combines this with a dynamic pheromone adjustment strategy to effectively balance global exploration and local development, accelerating convergence and improving global optimization accuracy. Multi-mode fine-grained search enriches population update methods, significantly enhancing the ability to escape local optima. An internal and external loop mechanism enables hierarchical optimization of topology and parameters, ensuring high accuracy and generalization performance of the model on the validation set. The entire identification process is automated; only an accuracy threshold needs to be set to obtain a high-performance seabed identification model that meets the requirements, greatly improving the efficiency and intelligence level of marine seabed identification.
[0028] It is understood that the intelligent identification method for marine sediments integrating machine learning provided by this invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal can be a smartphone, tablet, laptop, or desktop computer, but it is not limited to these.
[0029] like Figure 1 The diagram shown is a schematic representation of an implementation environment provided by an embodiment of the present invention. (Refer to...) Figure 1 The implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected via a network, either wirelessly or via a wired connection, to complete data transmission and exchange.
[0030] Server 101 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0031] Additionally, server 101 can also be a node server in a blockchain network. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms.
[0032] Terminal 102 can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. Terminal 102 and server 101 can be directly or indirectly connected via wired or wireless communication, and this embodiment of the invention does not impose any limitations.
[0033] For example, based on Figure 1The implementation environment shown in this embodiment of the invention provides a method for intelligent identification of marine sediments that integrates machine learning. The following description uses the application of this method in server 101 as an example. It can be understood that this method can also be applied to terminal 102.
[0034] Reference Figure 2 , Figure 2 This is an optional flowchart of the intelligent identification method for marine sediments that integrates machine learning provided in the embodiments of the present invention. The executing entity of the intelligent identification method for marine sediments that integrates machine learning can be any of the aforementioned computer devices (including servers or terminals). Figure 2 The method may include, but is not limited to, steps S100 to S900.
[0035] Step S100: Obtain the multibeam dataset and divide the multibeam dataset into a training set and a validation set; Each data sample in the multi-beam dataset includes feature data, and each data sample is associated with a substrate type label. The multi-beam dataset is organized and managed along the survey line dimension and discretized into regular grid results using a spatial interpolation algorithm. Grid cells are bound to multi-dimensional observation-derived attributes: carrier attitude parameters (roll angle, pitch angle, bow deviation angle), beam geometry parameters (beam emission incident angle, acoustic wave two-way propagation distance), and acoustic quality parameters (backscattering intensity, signal-to-noise ratio, signal quality, beam effectiveness code). This set of multi-source attributes constitutes the complete feature dataset required for model prediction.
[0036] For example, in some specific implementations, acquiring a multibeam dataset can be achieved by collecting multibeam data from publicly available datasets, academic papers, research reports, and other publicly available materials. The main data collected includes multibeam feature data of a specified area and label data such as seabed type. Feature data includes spatial location (longitude, latitude), timestamps, water depth values, acoustic parameters (such as round-trip time, backscattering intensity, etc.), environmental factors (such as seawater sound velocity profile, temperature, etc.), and equipment status (such as ship motion attitude, transmission frequency, etc.). Label data mainly refers to seabed type (including sand, mud, gravel, etc.).
[0037] It should be noted that in some preferred embodiments, before dividing the multibeam dataset, data preprocessing and normalization can be performed on the multibeam dataset, which can be implemented as follows: After acquiring the original multibeam dataset, preprocessing and normalization are required to ensure the effectiveness of subsequent ant colony optimization and BP neural network training. Feature data is obtained through actual collection by the multibeam system equipment; this data belongs to grid data. Label data is obtained directly through sediment sampling (such as grab buckets or columnar samplers) or directly from existing sediment classification models; this data is either grid data or point data. Missing values in the original data are handled by interpolation or mean imputation to fill in the missing data in the dataset, and feature data and label data are constructed in the same grid model. Outlier detection is performed on the grid model; statistical analysis methods are used to identify and remove data points exceeding a reasonable range to avoid interference from outliers in model training. Then, noise reduction is performed on the data, using filtering algorithms to remove noise interference generated during measurement. Finally, data normalization is performed, mapping each feature data to the [0,1] interval to eliminate dimensional differences between different features, ensuring that each feature has equal weight and influence during the ant colony optimization process. Then, a standard dataset is obtained by equidistant sampling within the grid.
[0038] The standardized data here is in the form of <water depth, round trip time, backscatter intensity, seawater sound velocity profile, ..., seabed type>, with the number of feature values generally between 10 and 20, meaning the input to the BP neural network is between 10 and 20. This can be determined based on the measured data. Typically, all collected data are used as data features. This data will later be divided into training and validation sets.
[0039] For example, in some specific implementations, dividing the training and validation sets can be achieved by: using stratified sampling to split the dataset, ensuring that the distribution ratio of various substrate samples in the training and validation sets is consistent with the original overall dataset, and avoiding model training imbalance caused by the quantity deviation of a single substrate sample. All samples are traversed, and each type of substrate sample, such as sand, mud, gravel, and coral reef, is grouped and classified separately based on the label "substrate type," and the number of samples corresponding to each type of substrate is counted. The training set is tentatively set to account for 75% of the total samples, and the validation set for 25%, with the ratio flexibly adjusted according to the actual amount of measured data. For each type of substrate data, sampling is performed randomly, that is, each type of substrate data is divided into a training set and a validation set according to a 75%:25% ratio, resulting in a training set and a validation set containing all types.
[0040] Step S200: Initialize the topology of the neural network and initialize the ant population based on the topology; The ant colony consists of a first number of individual ants, and each individual ant corresponds to a set of network parameters. It should be noted that the neural network includes an input layer, a hidden layer, and an output layer. The number of nodes in the input layer is determined based on the number of parameters in the feature data, the number of nodes in the output layer is determined based on the number of substrate types, and the initial number of nodes in the hidden layer is configured based on the number of nodes in the input and output layers. The topology update is an update of the number of nodes in the hidden layer. Network parameters include weight parameters and threshold parameters. In some embodiments, initializing the ant colony based on the topology may include the following steps: If the topology has not been updated, the product of the number of nodes in the input layer and the number of nodes in the hidden layer is added to the product of the number of nodes in the hidden layer and the number of nodes in the output layer to obtain a second number; a third number is obtained based on the sum of the number of nodes in the hidden layer and the number of nodes in the output layer; wherein, the second number represents the number of weight parameters, and the third number represents the number of threshold parameters; a fourth number of parameter values are randomly generated within a first preset range as individual ants, and then an ant colony is constructed based on the randomly generated first number of individual ants; wherein, the fourth number is the sum of the second and third numbers; if the topology has been updated, the ant colony is initialized based on the topology... The target individual obtained before the update is adaptively constructed into a baseline individual based on the changes in the number of nodes in the hidden layer before and after the topology update. Specifically, if the number of nodes in the hidden layer remains unchanged after the topology update, the target individual is directly used as the baseline individual; if the number of nodes in the hidden layer decreases after the topology update, the corresponding parameter values in the target individual are discarded to obtain the baseline individual; if the number of nodes in the hidden layer increases after the topology update, a fifth number of parameter values are randomly generated within a first preset range and added as the parameters corresponding to the target individual to obtain the baseline individual. The fifth number represents the increase in the number of nodes in the hidden layer after the topology update. By randomly assigning each parameter value in the baseline individual, new ant individuals are generated, and an ant population is constructed based on the first number of ant individuals generated by random assignment. The topology update includes: if the first accuracy rate of the target individual is lower than a first threshold, the number of nodes in the hidden layer is randomly increased; if the first accuracy rate of the target individual is higher than the first threshold and the second accuracy rate is lower than the second threshold, the number of nodes in the hidden layer is randomly decreased; otherwise, the number of nodes in the hidden layer is not adjusted.
[0041] For example, in some specific implementations, after the dataset is partitioned, the topology of the BP neural network needs to be updated. The topology of the BP neural network includes an input layer. Hidden layer and output layer The number of nodes and their connection methods, including the number of nodes in the input layer. This equals the number of multibeam feature data (a fixed value), such as P-wave velocity, S-wave velocity, and wave velocity ratio; the number of output layer nodes. Equal to the number of substrate categories (a fixed value); number of hidden layer nodes This represents the model's learning and generalization ability. This invention employs a dynamic adjustment mechanism, adaptively updating the number of hidden layer nodes based on the requirements of the substrate identification task and data characteristics. The specific adjustment logic is as follows: When initializing the topology, Perform the initialization operation using the following formula, where RInt(1,10) represents a random integer value in the range [1,10]. This is the random adjustment coefficient.
[0042]
[0043] When updating the topology, it will dynamically change based on the accuracy of the current training and validation sets, as follows: For the optimal model, the accuracy based on the current training and validation sets will be recorded. For example, if the training set accuracy is found to be too low (below 80%), it indicates that the current model's fitting ability is insufficient, and the number of hidden layer nodes needs to be increased to enhance the model's fitting ability. When the training accuracy is high (above 80%) but the validation accuracy is low (below 60%), it indicates that the current model is overfitting, and the number of hidden layer nodes needs to be reduced to reduce model complexity. In other cases, the number of hidden layer nodes remains unchanged. Hidden layer node count The adjustment formula is as follows: The function represents rounding to the nearest integer, where R(0,0.1) represents a random value in the range [0,0.1]. This is a scaling factor (which can be a fixed value or a random number within a certain range). Whether to increase or decrease it depends on the changes in the accuracy of the training and validation sets.
[0044]
[0045] Once the topology of the neural network is determined, it is necessary to initialize or update the connection weights and threshold parameters between the input layer and the hidden layer, and between the hidden layer and the output layer.
[0046] Specifically, initializing an ant colony can be achieved as follows: the ant colony consists of a large number of individual ants, each with multiple parameters representing the weight parameters w and threshold parameters b of a backpropagation (BP) neural network. For a topology of... The BP neural network has a total of [number] weight parameters w to be optimized. There are a total of [number] threshold parameters b to be optimized. There are a total of [number] parameters. In simple terms, an individual ant represents a backpropagation (BP) neural network.
[0047] When initializing an ant colony, a single ant is initialized using a random number. Then repeat the MaxAntCnt execution time to complete the ant colony. The initialization is as follows. The weight parameter w and the threshold parameter b both range from [-1, 1]. This represents a normal distribution with a mean of 0 and a standard deviation of 1.
[0048]
[0049]
[0050]
[0051] When initializing the ant colony later, it will be based on the existing best individuals. Initialize the current population using the following formula, where BestA represents the best individual obtained in the previous iteration, and M represents the number of parameters in the previous network topology.
[0052]
[0053]
[0054]
[0055]
[0056] One point to note here is that, because the network topology may be adjusted as mentioned above, the number of parameters may not be consistent. (Assuming the optimal individual...) The corresponding network topology is T1, and the current network topology is T2.
[0057] If the network topology of T2 is consistent with that of T1, and the parameters correspond one-to-one, then there will be no problem in executing the above formula.
[0058] If T2 has fewer hidden layer nodes than T1, then the parameters corresponding to the extra hidden layers in T1 will be discarded, and T2 will correspond one-to-one with the remaining parameters of T1, so the above formula will execute without any problems.
[0059] If T2 increases the number of hidden layer nodes compared to T1, the parameters corresponding to the extra hidden layers in T2 will be randomly initialized, and the other parameters of T2 will correspond one-to-one with those of T1. Then the above formula will execute without any problems.
[0060] Step S300: Traverse each individual ant in the ant colony, use the neural network and training set to identify the accuracy, obtain the first accuracy of each individual ant, take the individual with the highest first accuracy as the best individual, and take the individual with the lowest first accuracy as the worst individual. It should be noted that in some embodiments, traversing each individual ant in the ant colony and using a neural network and training set to perform accuracy identification to obtain the first accuracy of each individual ant may include the following steps: taking the first individual ant in the ant colony as the first individual; taking the network parameters of the first individual as candidate parameters and applying the candidate parameters to the neural network to obtain a candidate model; initializing the number of correct individuals and taking the first data sample in the training set as a candidate sample; inputting the candidate sample into the candidate model so that the candidate model processes the feature data of the candidate sample to obtain the predicted substrate type; if the predicted substrate type corresponding to the candidate sample is the same as the type of the label data, incrementing the number of correct individuals; taking the next data sample in the training set as a candidate sample and returning to the step of inputting the candidate sample into the candidate model until all data samples in the training set have been traversed, and obtaining the first accuracy of the first individual based on the ratio of the number of correct individuals to the total number of samples in the training set; taking the next individual ant in the ant colony as the first individual and returning to the step of taking the network parameters of the first individual as candidate parameters, until obtaining the first accuracy of each individual ant in the ant colony.
[0061] For example, in some specific implementations, calculating the recognition accuracy based on the BP model can be achieved as follows: Each ant carries the core parameters of the BP neural network. Applying these parameters yields a prediction model; that is, one ant represents one prediction model. The training set data is input into the prediction model to obtain the predicted substrate type, which is then compared with the true type to calculate the accuracy. To explain, the training data consists of many data points. Each data point input into the prediction model determines whether the prediction is accurate. Based on the training set, the accuracy can be calculated. Thus, the prediction model represented by one ant can calculate an accuracy Prec. This accuracy represents the ant's adaptive value; a larger value indicates better model performance. The calculation formula is as follows: Where TrueSize represents the number of correctly predicted data points, and TestSetSize represents the number of training set data points.
[0062]
[0063] In summary, for each ant on the training set, the Prec value of the output result, i.e., the fitness function value, is calculated. Simultaneously, the best-performing ant (BestA) and the worst-performing ant are recorded.
[0064] Step S400: If the first accuracy of the best individual exceeds the prediction accuracy threshold, the best individual is taken as the target individual; otherwise, the heuristic factor of each ant individual is obtained based on the first accuracy, the best individual, the worst individual and the iteration progress. It should be noted that in some embodiments, the heuristic factor for each ant individual is obtained based on the first accuracy, the best individual, the worst individual, and the iteration progress. This may include the following steps: taking the first accuracy of the best individual as the maximum accuracy and the first accuracy of the worst individual as the minimum accuracy; obtaining the iteration progress based on the ratio of the current number of iterations in the inner loop to the maximum number of iterations, and obtaining the iteration decay term based on the negative value of the iteration progress using the natural exponential function; taking the first ant individual in the ant population as the second individual, and taking the first accuracy of the second individual as the candidate accuracy; taking the difference between the candidate accuracy and the minimum accuracy as the numerator, and taking the difference between the maximum accuracy and the minimum accuracy as the denominator, to obtain the first value; multiplying the first value by the iteration decay term to obtain the heuristic factor for the second individual; taking the next ant individual in the ant population as the second individual, and returning to execute the step of taking the first accuracy of the second individual as the candidate accuracy, until the heuristic factors for each ant individual in the ant population are obtained.
[0065] For example, in some specific implementations, if the accuracy Prec of the best ant BestA exceeds MaxPrec (which is defined according to requirements, with a default value of 0.95), it means that the optimal parameters have been found, and the inner loop for finding the optimal parameters ends at this point; otherwise, it needs to continue iterating.
[0066] The updating of the heuristic coefficients can be achieved by iterating through every ant in the population. Calculate the normalized heuristic coefficient (Also known as the heuristic factor), the formula is as follows:
[0067] in, This indicates the current individual's recognition accuracy. This represents the maximum accuracy in the current population, that is, the accuracy of the best individual. This represents the minimum accuracy in the current population, that is, the accuracy of the worst individual. Let represent the natural exponential function, *iter* represent the current iteration number, and *MaxWalkCnt* be the maximum number of iterations. The higher the accuracy of an individual, the higher the heuristic coefficient, and vice versa. Meanwhile, in the formula... As an iterative decay term, its value is large in the early stage of iteration, amplifying the heuristic factor and encouraging global exploration; in the later stage of iteration, its value becomes smaller and smaller, weakening the weight of global exploration and guiding local fine-grained optimization.
[0068] Step S500: Based on the heuristic factor and pheromone concentration of the same ant individual, the individual transition probability of each ant individual is obtained. It should be noted that, in some embodiments, the individual transition probability of each ant individual is obtained by converting the heuristic factor and pheromone concentration of the same ant individual, which may include the following steps: multiplying the heuristic factor of the same ant individual by the pheromone concentration to obtain the initial probability value of each ant individual; summing the initial probability values of all ant individuals in the ant population to obtain a second value; and obtaining the individual transition probability of each ant individual based on the ratio of the initial probability value to the second value.
[0069] For example, in some specific implementations, calculating the ant transfer probability can be achieved as follows: during the ant colony optimization process, the ant's transfer probability determines its search direction, directly affecting the algorithm's search efficiency and optimization ability. For substrate identification data, this invention constructs a two-dimensional heuristic factor, fusing a two-dimensional heuristic factor with iterative progress adaptive weights, to calculate the transfer probability of each ant choosing a global or local search mode, enabling the ants to search in directions with higher identification accuracy.
[0070] This invention integrates pheromone concentrations With heuristic factors Calculate the individual transition probability The formula used to determine whether to switch between global or local search is as follows. This represents the pheromone concentration of an individual, with an initial value of 1.0 by default. Individual transition probability. A higher value indicates a better bottom sediment identification effect for the current ant's corresponding BP network weight threshold combination, at which point a local fine-grained search should be initiated; conversely, a lower value indicates a global extended search should be initiated.
[0071]
[0072] In general, the higher the accuracy of an individual ant, the higher the transition probability, and the greater the likelihood of performing a local fine-grained search to further improve accuracy; conversely, the lower the accuracy of an individual ant, the lower the transition probability, and the greater the likelihood of performing a global search to improve the model's generalization.
[0073] Step S600: Perform a multi-mode fine search on each ant individual based on the individual transfer probability to update the ant population, and dynamically adjust the pheromone concentration of each ant individual based on a preset adjustment strategy. It should be noted that in some embodiments, performing a multi-mode fine-grained search on each ant individual based on the individual transition probability to update the ant population may include the following steps: taking the first ant individual in the ant population as the third individual; randomly generating a judgment value within a second preset range; if the individual transition probability of the third individual is greater than the judgment value, randomly generating a third value within a third preset range, obtaining a fourth value by subtracting the iteration progress from 1, and incrementally assigning a value to the network parameters of the third individual by multiplying the third value and the fourth value to obtain the updated individual corresponding to the third individual; wherein, the iteration progress is determined based on the ratio of the current number of iterations in the inner loop to the maximum number of iterations; if the individual transition probability of the third individual is less than or equal to the judgment value, obtaining a fifth value based on the difference between the network parameters of the optimal individual and the third individual, randomly generating a sixth value within a preset normal distribution, and incrementally assigning a value to the network parameters of the third individual by multiplying the fifth value and the sixth value to obtain the updated individual corresponding to the third individual; taking the next ant individual in the ant population as the third individual, returning to the step of randomly generating a judgment value within the second preset range, until all ant individuals in the ant population have been traversed, and updating the ant population based on the updated individuals corresponding to each ant individual.
[0074] For example, in some specific embodiments, performing a multi-mode fine-grained search can be implemented as follows: To balance global search and local exploration capabilities, this invention designs a multi-mode fine-grained search strategy, enabling the ant colony to adopt different search modes at different search stages. The process involves iterating through each individual ant in the colony and randomly calculating a random number within the range [0,1]. ,if Execute the global search strategy; otherwise, execute the local search strategy.
[0075] For global search, using ants Taking parameter information updates as an example, the formula is as follows: This indicates the updated ant position. This represents a random value within the interval [-0.4, 0.4], iter represents the current iteration number, and MaxWalkCnt is the maximum number of iterations.
[0076]
[0077]
[0078] For local search, using ants Taking parameter information updates as an example, the formula is as follows: This indicates the updated ant position, BestA represents the current best ant, and w represents the differential scaling factor, with a default value of 0.1. This represents a normal distribution with a mean of 0 and a standard deviation of 0.3.
[0079]
[0080] In summary, individual ants determine whether to perform a global or local search based on transition probabilities. This dual-mode search strategy guides different ants to execute the corresponding strategies, balancing search efficiency and accuracy.
[0081] It should be noted that in some embodiments, dynamically adjusting the pheromone concentration of each individual ant based on a preset adjustment strategy may include the following steps: obtaining an iteration decay term based on the negative value of the iteration progress using a natural exponential function; wherein, the iteration progress is determined according to the ratio of the current number of iterations in the inner loop to the maximum number of iterations; taking the first accuracy of the best individual as the maximum accuracy and the first accuracy of the worst individual as the minimum accuracy; sorting each individual ant in the ant population before the update according to the first accuracy from largest to smallest to obtain an ant sequence; wherein, the ant sequence sequentially labels the sequence number of each individual ant; taking the first individual ant in the ant sequence as the fourth individual; obtaining the first pheromone based on the product of the pheromone concentration of the fourth individual and the iteration decay term; and then... The difference between the first accuracy rate and the minimum accuracy rate of an individual is used as the numerator, and the difference between the maximum accuracy rate and the minimum accuracy rate is used as the denominator to calculate the seventh value. The preset pheromone enhancement factor, the seventh value, and the pheromone concentration of the fourth individual are multiplied to obtain the second pheromone. If the ratio of the fourth individual's sequence number to the first quantity is less than the preset ratio, the third pheromone of the fourth individual is assigned a fixed reward base value; otherwise, the third pheromone of the fourth individual is assigned a value of 0. The pheromone concentration of the fourth individual is updated according to the sum of the first, second, and third pheromones, and the updated pheromone concentration is associated with the fourth individual in the updated ant population. The next ant in the ant sequence is taken as the fourth individual, until the pheromone concentration of each ant individual is updated.
[0082] For example, in some specific implementations, the dynamic adjustment of pheromones in the population can be achieved by dynamically adjusting the pheromones of each ant after the search is completed. This invention proposes measures such as global pheromone evaporation, precision adaptive increment, and additional incentives for outstanding individuals, as detailed below.
[0083] Global evaporation of pheromones (i.e., the first pheromone): All ant pheromones decay synchronously according to their volatility coefficient, as shown in the following formula, where... The value represents the pheromone concentration of an individual, iter represents the current iteration number, and MaxWalkCnt is the maximum number of iterations.
[0084]
[0085] Precision adaptive increment ( (i.e., the second pheromone): Pheromones are allocated based on the relative difference in individual accuracy; the higher the recognition accuracy, the larger the increment. The best individual receives the largest pheromone increment, while the worst individual receives no pheromone increment. The formula is as follows: This indicates the current individual's recognition accuracy. This represents the maximum accuracy in the current population, that is, the accuracy of the best individual. This represents the minimum accuracy in the current population, that is, the accuracy of the worst individual.
[0086]
[0087] Additional incentives for outstanding individuals ( (i.e., the second pheromone): All ants are sorted according to accuracy, and the top 10% of individuals are selected and given a fixed reward base Q, as shown in the following formula:
[0088] Based on the above three factors, the updated pheromones were finally obtained. The ant colony is traversed one by one to complete the pheromone update for all individuals. That is, the updated pheromone concentration of the i-th ant individual.
[0089]
[0090] Step S700: Increment the number of iterations in the inner loop. If the number of iterations in the inner loop does not exceed the maximum number of iterations, return to the step of traversing each individual ant in the ant colony and using the neural network and training set to perform accuracy identification until the target individual is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the best individual is taken as the target individual. For example, in some specific implementations, steps S300 to S700 are the inner loop of the ant colony optimization algorithm searching for the optimal solution. Each time it is executed, the iteration count of the inner loop, iter, is incremented by 1. When iter exceeds the maximum iteration count, MaxWalkCnt, it indicates that the global and local multi-mode search of the ant colony under the current network topology has exhausted the preset iteration resources, and the inner loop optimization process terminates. Otherwise, proceed to step S300, re-traverse all individual ants, recalculate the substrate identification accuracy corresponding to each BP network parameter combination, and continue to carry out the next round of pheromone update and multi-mode search iteration.
[0091] Step S800: Construct an identification model using the target individual and the neural network, and verify the second accuracy of the identification model using the validation set. If the second accuracy does not exceed the prediction accuracy threshold, update the topology, initialize the number of iterations in the inner loop, and return to execute the step of initializing the ant population based on the topology until the second accuracy exceeds the prediction accuracy threshold. Then, use the identification model as the target model. For example, in some specific implementations, when this step is reached, based on the topology as... The optimal hyperparameters have been found for the given BP neural network and training dataset, and the best individual, BestA, has been recorded. All network weights and threshold parameters carried by BestA are extracted as globally optimal hyperparameters for the current topology. The basic BP network model is then initialized based on this set of optimal parameters.
[0092] Some preferred implementations of the recognition model can be achieved as follows: Backpropagation fine-tuning: The best individual, BestA, is used as the parameters of the BP neural network. This is applied to the BP neural network, and the network connection weights and thresholds are adjusted layer by layer along the error backpropagation path. This is done because the parameters optimized by the ant colony are only globally optimal solutions. Backpropagation fine-tuning can correct parameter biases through gradient correction, slightly reducing prediction errors and improving the model's recognition accuracy and generalization ability.
[0093] Update the optimal BP neural network model: The previous steps have determined the topology of the BP neural network and identified the optimal core parameters of the neural network. At this point, the network topology is updated for real-time data, and the BP neural network-driven substrate identification model is ready.
[0094] Furthermore, based on the constructed optimal BP neural network-driven sediment identification model, the validation set is input into the prediction model to predict sediment distribution. This calculation process is consistent with step S300, except that step S300 uses the training set, while this process uses the validation set. The accuracy is then calculated. (i.e., the second accuracy rate).
[0095] If the prediction accuracy If the result exceeds MaxPrec, it indicates that the optimal model (i.e., the target model) has been found. Otherwise, the process data is reset: only the globally optimal ant individual BestA obtained from the inner ant colony optimization is retained as the baseline for the next round of population initialization, and all other temporary iteration data is cleared, including the ant colony inner loop iteration count iter, the temporary search parameters of each ant individual, the intermediate calculated values of pheromones in each round of iteration, the temporary records of accuracy in each round, and all other process variables. Then, the BP network topology adaptive update outer loop is restarted, and the number of hidden layer nodes is dynamically adjusted according to the accuracy deviation of the training set and validation set, starting a new round of two-layer iterative optimization process.
[0096] Step S900: Use the target model to identify the bottom sediment based on real-time feature data; For example, in some specific implementations, upon reaching this step, after a two-layer iterative architecture and testing / verification of the accuracy of the dual datasets, an optimal identification model is obtained. This model combines the advantages of improved ant colony global optimization and backpropagation fine-tuning, thus concluding the entire process. Finally, the optimal model obtained through optimization can be applied to identify the substrate based on real-time feature data.
[0097] To explain in detail the principle of the technical solution of the present invention, the overall process of the present invention will be described below with reference to some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and should not be regarded as a limitation of the present invention.
[0098] To address the shortcomings of existing technologies, this invention proposes a method for intelligent identification of marine sediments that integrates machine learning, such as... Figure 3 As shown, the method of the present invention can be implemented through the following steps: Step 1: Obtain the multibeam dataset. Collect multibeam data from publicly available datasets, academic papers, research reports, and other publicly available materials. The main data collected includes multibeam feature data for a specified area and label data such as seabed type. Feature data includes spatial location (longitude, latitude), timestamps, water depth values, acoustic parameters (such as round-trip time, backscatter intensity, etc.), environmental factors (such as seawater sound velocity profile, temperature, etc.), and equipment status (such as ship motion attitude, transmission frequency, etc.). Label data mainly includes seabed type (including sand, mud, gravel, etc.). Proceed to Step 2.
[0099] Step 2: Data Preprocessing and Normalization. After acquiring the original multibeam dataset, preprocessing and normalization are required to ensure the effectiveness of subsequent ant colony optimization and BP neural network training. Feature data is obtained through actual collection by the multibeam system equipment; this data belongs to grid data. Label data is obtained directly through sediment sampling (such as grab buckets or columnar samplers) or directly from existing sediment classification models; this data is either grid data or point data. Missing values in the original data are handled by interpolation or mean imputation to fill in the missing data in the dataset, and feature data and label data are constructed in the same grid model. For the grid model, outlier detection is performed; statistical analysis methods are used to identify and remove data points that exceed a reasonable range to avoid interference from outliers in model training. Then, the data is denoised by using filtering algorithms to remove noise interference generated during the measurement process. Finally, data normalization is performed, mapping each feature data to the [0,1] interval to eliminate the dimensional differences between different features and ensure that each feature has equal weight and influence during the ant colony optimization process. Then, a standard data set is obtained by using equidistant sampling in the grid.
[0100] The standardized data here is in the form of <water depth, round trip time, backscatter intensity, seawater sound velocity profile, ..., seabed type>, with typically 10 to 20 feature values, meaning the input to the BP neural network is between 10 and 20. This can be determined based on measured data; generally, all collected data are used as features. This data will later be divided into training and validation sets. Proceed to step 3.
[0101] Step 3: Divide the dataset into training and validation sets. Based on the unified dataset after normalization and equidistant sampling in Step 2, stratified sampling is used to divide the dataset, ensuring that the distribution ratio of various sediment types in the training and validation sets is consistent with the original overall dataset, avoiding model training imbalance caused by the number of samples from a single sediment type. All samples are traversed, and each type of sediment (sand, mud, gravel, coral reef, etc.) is grouped separately using the label "sediment type" as the stratification basis. The number of samples corresponding to each sediment type is counted. The training set is tentatively set to 75% of the total samples, and the validation set to 25%. This ratio can be flexibly adjusted based on the actual amount of measured data. For each type of sediment data, random sampling is used, meaning that each type of sediment data is divided into training and validation sets at a ratio of 75%:25%, resulting in training and validation sets containing all types. Proceed to Step 4.
[0102] Step 4: Update the BP network topology. After partitioning the dataset, the topology of the BP neural network needs to be updated. The topology of the BP neural network includes the input layer. Hidden layer and output layer The number of nodes and their connection methods, including the number of nodes in the input layer. This equals the number of multibeam feature data (a fixed value), such as P-wave velocity, S-wave velocity, and wave velocity ratio; the number of output layer nodes. Equal to the number of substrate categories (a fixed value); number of hidden layer nodes This represents the model's learning and generalization ability. This invention employs a dynamic adjustment mechanism, adaptively updating the number of hidden layer nodes based on the requirements of the substrate identification task and data characteristics. The specific adjustment logic is as follows: The first time step 4 is executed, Perform the initialization operation using the following formula, where RInt(1,10) represents a random integer value in the range [1,10]. This is the random adjustment coefficient.
[0103]
[0104] In the second and subsequent executions of step 4, the accuracy will be dynamically adjusted based on the current training and validation set accuracy, as follows: For the optimal model, the accuracy based on the current training and validation sets will be recorded. If the training set accuracy is found to be too low (below 80%), it indicates that the current model's fitting ability is insufficient, and the number of hidden layer nodes needs to be increased to enhance the model's fitting ability. When the training accuracy is high (above 80%) but the validation accuracy is low (below 60%), it indicates that the current model is overfitting, and the number of hidden layer nodes needs to be reduced to decrease model complexity. In other cases, the number of hidden layer nodes remains unchanged. Hidden layer node count The adjustment formula is as follows: The function represents rounding to the nearest integer, where R(0,0.1) represents a random value in the range [0,0.1]. This is a scaling factor (which can be a fixed value or a random number within a certain range). Whether to increase or decrease it depends on the changes in the accuracy of the training and validation sets.
[0105]
[0106] Once the topology of the neural network is determined, it is necessary to initialize or update the connection weights and threshold parameters between the input layer and the hidden layer, and between the hidden layer and the output layer. These two parameters are information carried by each ant, and the initialization formula will be completed in step 6.
[0107] Step 5: Initialize ant colony algorithm parameters. The parameters involved in the ant colony algorithm are as follows: MaxAntCnt represents the number of individual ants and the size of the ant colony. The value can be chosen based on the requirements, with a default value of 100.
[0108] The maximum number of steps an ant can take (MaxWalkCnt) is the maximum number of overall movements the ant colony can make, which is also the maximum number of iterations of the colony (maximum number of inner loop iterations). The value can be set according to the needs, and the default value is 25.
[0109] The pheromone enhancement factor EN has a value greater than 0. When an ant takes a step, its own pheromone will be enhanced by a fixed proportion of EN in addition to being volatilized.
[0110] The pheromone reward base Q is determined based on experience, and is required to be greater than 0, with a default value of 1.
[0111] The prediction accuracy threshold is MaxPrec. If the prediction accuracy is not lower than MaxPrec, it means that the optimal model has been found and the internal search loop has ended.
[0112] Proceed to step 6.
[0113] Step 6: Initialize the ant colony location. An ant colony consists of a large number of individual ants, each with multiple parameters representing the weight parameters w and threshold parameters b of a backpropagation (BP) neural network. For the topology... The BP neural network has a total of [number] weight parameters w to be optimized. There are a total of [number] threshold parameters b to be optimized. There are a total of [number] parameters. In simple terms, an individual ant represents a backpropagation (BP) neural network.
[0114] When step 6 is executed for the first time, an individual ant is initialized using a random number. Then repeat the MaxAntCnt execution time to complete the ant colony. The initialization is as follows. The weight parameter w and the threshold parameter b both range from [-1, 1]. This represents a normal distribution with a mean of 0 and a standard deviation of 1.
[0115]
[0116]
[0117]
[0118] The second execution is based on the existing optimal individual. Initialize the current population using the following formula, where BestA represents the best individual obtained in the previous iteration, and M represents the number of parameters in the previous network topology.
[0119]
[0120]
[0121]
[0122]
[0123] One point to note here is that because step 4 may adjust the network topology, the number of parameters here may not be consistent. (Assuming the optimal individual...) The corresponding network topology is T1, and the current network topology is T2.
[0124] If the network topology of T2 is consistent with that of T1, and the parameters correspond one-to-one, then there will be no problem in executing the above formula.
[0125] If T2 has fewer hidden layer nodes than T1, then the parameters corresponding to the extra hidden layers in T1 will be discarded, and T2 will correspond one-to-one with the remaining parameters of T1, so the above formula will execute without any problems.
[0126] If T2 increases the number of hidden layer nodes compared to T1, the parameters corresponding to the extra hidden layers in T2 will be randomly initialized, and the other parameters of T2 will correspond one-to-one with those of T1. Then the above formula will execute without any problems.
[0127] After the population is initialized, the pheromone concentration for each individual is initialized, with a default value of 1. Proceed to step 7.
[0128] Step 7: Calculate the recognition accuracy based on the BP model. Each ant carries the core parameters of the BP neural network. Applying these parameters yields a prediction model; that is, one ant represents one prediction model. The training set data is input into the prediction model to obtain the predicted substrate type, which is then compared with the true type to calculate the accuracy. To explain, the training data consists of many data points. Each data point input into the prediction model determines the accuracy of the prediction. Based on the training set, the accuracy can be calculated. Thus, the prediction model represented by one ant can calculate an accuracy Prec. This accuracy represents the ant's adaptive value; a higher value indicates better model performance. The calculation formula is as follows: Where TrueSize represents the number of correctly predicted data points, and TestSetSize represents the number of training set data points.
[0129]
[0130] In summary, for the training set, iterate through each ant and calculate the Prec of the output result, which is the fitness function value. Simultaneously, record the best-performing ant at that moment, BestA. Proceed to step 8.
[0131]
[0132] Step 8: Meet the accuracy requirements. If the accuracy Prec of the best ant, BestA, exceeds MaxPrec (this is defined according to requirements, with a default value of 0.95), it means that the optimal parameters have been found. At this point, the inner loop for finding the optimal parameters ends, and we proceed to step 14. Otherwise, we need to continue iterating and proceed to step 9.
[0133] Step 9: Update the heuristic coefficients. Iterate through every ant in the population. Calculate the normalized heuristic coefficient (Also known as the heuristic factor), the formula is as follows:
[0134] in, This indicates the current individual's recognition accuracy. This represents the maximum accuracy in the current population, that is, the accuracy of the best individual. This represents the minimum accuracy in the current population, that is, the accuracy of the worst individual. Let represent the natural exponential function, *iter* represent the current iteration number, and *MaxWalkCnt* be the maximum number of iterations. The higher the accuracy of an individual, the higher the heuristic coefficient, and vice versa. Meanwhile, in the formula... This is the iterative decay term. Its value is large in the early stages of iteration, amplifying the heuristic factor and encouraging global exploration; its value decreases in the later stages of iteration, weakening the weight of global exploration and guiding local fine-tuning. Proceed to step 10.
[0135] Step 10: Calculate the ant migration probability. In the ant colony optimization process, the migration probability of an ant determines its search direction, directly affecting the algorithm's search efficiency and optimization ability. For substrate identification data, this invention constructs a two-dimensional heuristic factor, fusing a two-dimensional heuristic factor with iterative progress adaptive weights, to calculate the migration probability of each ant choosing a global or local search mode, enabling ants to search in directions with higher identification accuracy.
[0136] This invention integrates pheromone concentrations With heuristic factors Calculate the individual transition probability The formula used to determine whether to switch between global or local search is as follows. This represents the pheromone concentration of an individual, with an initial value of 1.0 by default. Individual transition probability. A higher value indicates a better bottom sediment identification effect for the current ant's corresponding BP network weight threshold combination, at which point a local fine-grained search should be initiated; conversely, a lower value indicates a global extended search should be initiated.
[0137]
[0138] In general, the higher the accuracy of an individual ant, the higher the transition probability, and the greater the likelihood of performing a local fine-grained search to further improve accuracy; conversely, the lower the accuracy of an individual ant, the lower the transition probability, and the greater the likelihood of performing a global search to improve the model's generalization ability. Step 11.
[0139] Step 11: Perform a multi-mode refined search. To balance global search and local exploration capabilities, this invention designs a multi-mode refined search strategy, allowing the ant colony to employ different search modes at different search stages. The process involves iterating through each individual ant in the colony and randomly calculating a number within the range [0,1]. ,if Execute the global search strategy; otherwise, execute the local search strategy.
[0140] For global search, using ants Taking parameter information updates as an example, the formula is as follows: This indicates the updated ant position. This represents a random value within the interval [-0.4, 0.4], iter represents the current iteration number, and MaxWalkCnt is the maximum number of iterations.
[0141]
[0142]
[0143] For local search, using ants Taking parameter information updates as an example, the formula is as follows: This indicates the updated ant position, BestA represents the current best ant, and w represents the differential scaling factor, with a default value of 0.1. This represents a normal distribution with a mean of 0 and a standard deviation of 0.3.
[0144]
[0145] In summary, individual ants determine whether to perform a global search or a local search based on the transition probability. This dual-mode search strategy can guide different ants to execute the corresponding strategies, balancing search efficiency and search accuracy. Proceed to step 12.
[0146] Step 12: Dynamic adjustment of pheromones in the population. After the search is completed, it is necessary to dynamically adjust the pheromones of each ant. This invention proposes measures such as global pheromone evaporation, precision adaptive increment, and additional incentives for outstanding individuals, as detailed below.
[0147] Global pheromone volatilization: All ant pheromones decay synchronously according to the volatilization coefficient, as shown in the following formula, where... The value represents the pheromone concentration of an individual, iter represents the current iteration number, and MaxWalkCnt is the maximum number of iterations.
[0148]
[0149] Precision-adaptive increment: Pheromones are allocated based on the relative difference in individual accuracy. The higher the recognition accuracy, the larger the increment. The best individual receives the largest pheromone increment, while the worst individual receives no pheromone increment. The formula is as follows: This indicates the current individual's recognition accuracy. This represents the maximum accuracy in the current population, that is, the accuracy of the best individual. This represents the minimum accuracy in the current population, that is, the accuracy of the worst individual.
[0150]
[0151] Additional incentives for outstanding individuals: All ants are sorted by accuracy, and the top 10% of individuals are selected and given a fixed reward base Q, as shown in the following formula:
[0152] Based on the above three factors, the updated pheromones were finally obtained. Then, traverse the ant colony one by one to complete the pheromone update for all individuals, and proceed to step 13.
[0153]
[0154] Step 13: Exceeding the iteration count. Steps 7 to 12 are the inner loop of the ant colony optimization algorithm searching for the optimal solution. Each time it is executed, the iteration count of the inner loop, iter, is incremented by 1. When iter exceeds the maximum iteration count, MaxWalkCnt, it indicates that the global and local multi-mode search of the ant colony under the current network topology has exhausted the preset iteration resources. The inner loop optimization process terminates, and the process jumps to step 14. Otherwise, it returns to step 7, re-traverses all individual ants, recalculates the substrate identification accuracy corresponding to each BP network parameter combination, and continues the next round of pheromone update and multi-mode search iteration.
[0155] Step 14: Find the optimal hyperparameters. At this step, based on the topology... The optimal hyperparameters have been found for the BP neural network and training dataset, and the best individual, BestA, has been recorded. All network weights and threshold parameters carried by BestA are extracted as globally optimal hyperparameters for the current topology. The basic BP network model is initialized based on this set of optimal parameters, and then proceed to step 15.
[0156]
[0157] Step 15: Backpropagation Fine-tuning. Using the best individual (BestA) as the parameters for the BP neural network, this is applied to the BP neural network, and the network connection weights and thresholds are adjusted layer by layer along the error backpropagation path. This is done because the ant colony optimization parameters only provide a globally optimal solution; backpropagation fine-tuning can correct parameter biases through gradient correction, slightly reducing prediction errors and improving the model's recognition accuracy and generalization ability. Proceed to Step 16.
[0158] Step 16: Update the optimal BP neural network model. Having determined the BP neural network topology in Step 4 and identified the optimal core parameters in Step 15, the network topology is now updated for real-time data. The BP neural network-driven substrate identification model is now ready. Proceed to Step 17.
[0159] Step 17: Calculate the identification accuracy based on the prediction model. Based on the constructed optimal BP neural network-driven sediment identification model, using the validation set as input, predict the sediment distribution. This calculation process is consistent with Step 7, except that Step 7 uses the training set, while Step 17 uses the validation set. The accuracy is then calculated. Proceed to step 18.
[0160] Step 18: Meet the accuracy requirements. If the prediction accuracy... If the value exceeds MaxPrec, it indicates that the optimal model has been found; proceed to step 20. Otherwise, proceed to step 19.
[0161] Step 19: Reset process data. Only retain the globally optimal ant individual BestA obtained from the inner ant colony optimization as the baseline for the next round of population initialization, and clear all other temporary iteration data: including the ant colony inner loop iteration count iter, temporary search parameters of each ant individual, intermediate calculated values of pheromones in each iteration, temporary records of accuracy in each round, and all other process variables. Then proceed to Step 4 to restart the BP network topology adaptive update outer loop, dynamically adjust the number of hidden layer nodes based on the accuracy deviation of the training set and validation set, and start a new round of two-layer iterative optimization process.
[0162] Step 20: Find the optimal substrate identification model. Steps 4 to 19 constitute the outer loop of the BP neural network topology update, and steps 7 to 12 are the inner loop of the ant colony optimization algorithm to find the optimal model. When this step is reached, after the two-layer iterative architecture and the accuracy verification of the two datasets, the optimal identification model that meets the standard is obtained. This model has the advantages of both improved ant colony global optimization and BP reverse fine-tuning. The whole process is over.
[0163] In summary, this invention finds the optimal parameters of a BP neural network by improving the ant colony optimization algorithm, thereby constructing a high-precision marine sediment identification model. Compared with existing technologies, this invention has at least the following beneficial effects: 1) An improved ant colony optimization algorithm was used to perform global optimization, obtain the optimal weights and thresholds of the BP neural network, and build a high-precision machine learning model for marine sediment identification. 2) An adaptive dynamic control mechanism was designed to optimize the update logic of parameters such as pheromone and search strategy in the ant colony algorithm, effectively improving the accuracy of substrate type classification and identification; 3) Construct a two-layer iterative verification architecture of "ant colony optimization inner loop + BP network topology update outer loop", and combine it with a two-stage accuracy verification process of training set and validation set to significantly enhance the model's generalization and adaptation capabilities.
[0164] like Figure 4 As shown, this embodiment of the invention also provides a marine sediment intelligent identification device 900 that integrates machine learning, which can implement the above-described method. This device may include: The acquisition module 901 is used to acquire the multibeam dataset and divide the multibeam dataset into a training set and a validation set; wherein, each data sample in the multibeam dataset includes feature data and each data sample is associated with substrate type label data; Initialization module 902 is used to initialize the topology of the neural network and initialize the ant population based on the topology; wherein, the ant population includes a first number of ant individuals, and each ant individual corresponds to a set of network parameters; The accuracy module 903 is used to traverse every individual ant in the ant colony, use a neural network and training set to identify the accuracy, obtain the first accuracy of each individual ant, take the individual with the highest first accuracy as the best individual, and take the individual with the lowest first accuracy as the worst individual. The decision module 904 is used to determine the target individual if the first accuracy of the best individual exceeds the prediction accuracy threshold; otherwise, it transforms the first accuracy, the best individual, the worst individual, and the iteration progress to obtain the heuristic factor of each ant individual. Probability module 905 is used to obtain the individual transition probability of each ant individual based on the heuristic factor and pheromone concentration of the same ant individual. The update module 906 is used to perform a multi-mode fine search on each ant individual based on the individual transfer probability in order to update the ant population and dynamically adjust the pheromone concentration of each ant individual based on a preset adjustment strategy. The iteration module 907 is used to increment the number of iterations in the inner loop. If the number of iterations in the inner loop does not exceed the maximum number of iterations, the operation of the accuracy module 903 is returned until the target individual is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the optimal individual is taken as the target individual. The verification module 908 is used to build an identification model using the target individual and the neural network, and to verify the second accuracy of the identification model using the verification set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations of the inner loop is initialized, and the operation of initializing the ant population based on the topology in the initialization module 902 is returned to be executed until the second accuracy exceeds the prediction accuracy threshold, and the identification model is used as the target model. Application module 909 uses the target model to identify the substrate based on real-time feature data.
[0165] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0166] This invention also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described above. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0167] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0168] like Figure 5 As shown, Figure 5 The hardware structure of an electronic device 1000 according to another embodiment is illustrated. The electronic device 1000 includes: The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (aSIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention. The memory 1002 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RaM). The memory 1002 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001. Input / output interface 1003 is used to implement information input and output; The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004); The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.
[0169] The electronic device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0170] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0171] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0172] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0173] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0174] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0175] The present invention provides a method, device, electronic device, storage medium, and program product for intelligent identification of marine sediments integrating machine learning. It acquires a multibeam dataset and divides it into a training set and a validation set. Each data sample in the multibeam dataset includes feature data, and each data sample is associated with a sediment type label. The topology of a neural network is initialized, and an ant population is initialized based on this topology. The ant population includes a first number of ant individuals, each corresponding to a set of network parameters. Each ant individual in the population is traversed, and accuracy is determined using the neural network and the training set. A first accuracy for each ant individual is obtained, and the ant individual with the highest first accuracy is designated as the optimal individual, and the ant individual with the lowest first accuracy is designated as the worst individual. If the first accuracy of the optimal individual exceeds a prediction accuracy threshold, the optimal individual is designated as the target individual; otherwise, a heuristic factor for each ant individual is derived based on the first accuracy, the optimal individual, the worst individual, and the iteration progress. The heuristic factor for the same ant individual is then used to further refine the heuristic factor. The individual migration probability of each ant is obtained by converting pheromone concentration. Based on the migration probability, a multi-mode fine-grained search is performed on each ant to update the ant population. The pheromone concentration of each ant is dynamically adjusted based on a preset adjustment strategy. The number of iterations in the inner loop is incremented. If the number of iterations in the inner loop does not exceed the maximum number of iterations, the process returns to traversing each ant in the ant population, using a neural network and training set to perform accuracy identification, until the target ant is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the optimal ant is selected as the target ant. A recognition model is constructed using the target ant and the neural network. The second accuracy of the recognition model is obtained by validating it using a validation set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations in the inner loop is initialized, and the process returns to initialize the ant population based on the topology, until the second accuracy exceeds the prediction accuracy threshold. The recognition model is then selected as the target model. The target model is used to identify the substrate based on real-time feature data. This invention integrates ant colony intelligence with neural networks to automatically optimize network topology and parameters, eliminating reliance on human experience. It generates heuristic factors based on the best and worst individuals and iteration progress, and combines this with a dynamic pheromone adjustment strategy to effectively balance global exploration and local development, accelerating convergence and improving global optimization accuracy. Multi-mode fine-grained search enriches population update methods, significantly enhancing the ability to escape local optima. An internal and external loop mechanism enables hierarchical optimization of topology and parameters, ensuring high accuracy and generalization performance of the model on the validation set. The entire identification process is automated; only an accuracy threshold needs to be set to obtain a high-performance seabed identification model that meets the requirements, greatly improving the efficiency and intelligence level of marine seabed identification.
[0176] The embodiments described in this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.
[0177] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present invention, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0178] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0179] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0180] The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of the present invention should be within the scope of the claims of the present invention.
Claims
1. A method for intelligent identification of marine sediments integrating machine learning, characterized in that, The method includes the following steps: A multibeam dataset is obtained, and the multibeam dataset is divided into a training set and a validation set; wherein, each data sample in the multibeam dataset includes feature data, and each data sample is associated with substrate type label data; Initialize the topology of the neural network, and initialize an ant colony based on the topology; wherein the ant colony includes a first number of individual ants, and each individual ant corresponds to a set of network parameters; The accuracy of each ant in the ant colony is identified by traversing the neural network and the training set. The first accuracy of each ant is obtained. The ant with the highest first accuracy is taken as the best ant, and the ant with the lowest first accuracy is taken as the worst ant. If the first accuracy of the optimal individual exceeds the prediction accuracy threshold, the optimal individual is taken as the target individual; otherwise, the heuristic factor of each ant individual is obtained based on the first accuracy, the optimal individual, the worst individual, and the iteration progress. The individual transition probability of each ant individual is obtained by converting the heuristic factor and pheromone concentration of the same ant individual. Based on the individual transfer probability, a multi-mode fine search is performed on each ant individual to update the ant population, and the pheromone concentration of each ant individual is dynamically adjusted based on a preset adjustment strategy. The inner loop iteration count is incremented. If the inner loop iteration count does not exceed the maximum iteration count, the process returns to the step of traversing each individual ant in the ant colony and using the neural network and the training set to perform accuracy identification until the target individual is obtained or the inner loop iteration count exceeds the maximum iteration count. If the inner loop iteration count exceeds the maximum iteration count, the optimal individual is taken as the target individual. A recognition model is constructed using the target individual and the neural network. The second accuracy of the recognition model is verified using the validation set. If the second accuracy does not exceed the prediction accuracy threshold, the topology is updated, the number of iterations in the inner loop is initialized, and the step of initializing the ant population based on the topology is returned to be executed until the second accuracy exceeds the prediction accuracy threshold. The recognition model is then used as the target model. The target model is used to identify the substrate based on real-time feature data.
2. The method according to claim 1, characterized in that, The neural network includes an input layer, a hidden layer, and an output layer. The number of nodes in the input layer is determined based on the number of parameters in the feature data. The number of nodes in the output layer is determined based on the number of categories of substrate types. The initial number of nodes in the hidden layer is configured based on the number of nodes in the input layer and the number of nodes in the output layer. The topology update is an update of the number of nodes in the hidden layer. The network parameters include weight parameters and threshold parameters. Initializing the ant colony based on the topology includes the following steps: If the topology has not been updated, the product of the number of nodes in the input layer and the number of nodes in the hidden layer is added to the product of the number of nodes in the hidden layer and the number of nodes in the output layer to obtain a second quantity, and a third quantity is obtained based on the sum of the number of nodes in the hidden layer and the number of nodes in the output layer; wherein, the second quantity represents the number of weight parameters, and the third quantity represents the number of threshold parameters; A fourth number of parameter values are randomly generated within a first preset range as individual ants, and then the ant population is constructed based on the first number of randomly generated individual ants; wherein, the fourth number is the sum of the second number and the third number; If the topology has been updated, a baseline individual is adaptively constructed based on the target individual obtained before the topology update, taking into account the change in the number of nodes in the hidden layer before and after the topology update. Wherein, when the number of nodes in the hidden layer remains unchanged after the topology update, the target individual is directly used as the baseline individual; when the number of nodes in the hidden layer decreases after the topology update, the corresponding parameter values in the target individual are discarded to obtain the baseline individual; when the number of nodes in the hidden layer increases after the topology update, a fifth number of parameter values are randomly generated within the first preset range and added as the parameters corresponding to the target individual to obtain the baseline individual; the fifth number represents the number of times the number of nodes in the hidden layer increases after the topology update. By randomly assigning values to each parameter in the baseline individual, new ant individuals are generated, and the ant population is constructed based on the first number of ant individuals generated by the random assignment. The update of the topology includes: when the first accuracy of the target individual is lower than a first threshold, randomly increasing the number of nodes in the hidden layer; when the first accuracy of the target individual is higher than the first threshold and the second accuracy is lower than a second threshold, randomly decreasing the number of nodes in the hidden layer; otherwise, not adjusting the number of nodes in the hidden layer.
3. The method according to claim 1, characterized in that, The process of traversing each individual ant in the ant colony and using the neural network and the training set to perform accuracy recognition to obtain the first accuracy of each individual ant includes the following steps: The first ant in the ant colony is taken as the first individual; The network parameters of the first individual are used as candidate parameters, and the candidate parameters are applied to the neural network to obtain a candidate model; Initialize the correct number of samples, and use the first data sample in the training set as a candidate sample. The candidate samples are input into the candidate model so that the candidate model can process the feature data of the candidate samples to obtain a predicted substrate type. If the predicted substrate type and the type of the label data are the same as the candidate sample, the correct number is incremented. The next data sample in the training set is used as the candidate sample. The step of inputting the candidate sample into the candidate model is returned until all data samples in the training set have been traversed. The first accuracy of the first individual is obtained based on the ratio of the number of correct samples to the total number of samples in the training set. Take the next ant in the ant colony as the first individual, and return to the step of taking the network parameters of the first individual as candidate parameters, until the first accuracy of each ant individual in the ant colony is obtained.
4. The method according to claim 1, characterized in that, The process of obtaining the heuristic factors for each ant individual based on the first accuracy, the best individual, the worst individual, and the iteration progress includes the following steps: The first accuracy rate of the best individual is taken as the maximum accuracy rate, and the first accuracy rate of the worst individual is taken as the minimum accuracy rate. The iteration progress is obtained by comparing the current number of inner loop iterations with the maximum number of iterations. Based on the negative value of the iteration progress, the iteration decay term is obtained by calculating the natural exponential function. The first ant in the ant colony is taken as the second individual, and the first accuracy of the second individual is taken as the candidate accuracy. The first value is obtained by using the difference between the candidate accuracy and the minimum accuracy as the numerator and the difference between the maximum accuracy and the minimum accuracy as the denominator. Multiply the first value by the iterative decay term to obtain the heuristic factor of the second individual; Take the next ant in the ant colony as the second individual, and return to the step of taking the first accuracy of the second individual as the candidate accuracy, until the heuristic factor of each ant individual in the ant colony is obtained.
5. The method according to claim 1, characterized in that, The process of converting the heuristic factor and pheromone concentration of the same ant individual into the individual transition probability of each ant individual includes the following steps: The initial probability value of each ant individual is obtained by multiplying the heuristic factor of the same ant individual by the pheromone concentration. The initial probability values of all individual ants in the ant colony are summed to obtain a second value; The individual migration probability of each ant is obtained based on the ratio of the initial probability value to the second value.
6. The method according to claim 1, characterized in that, The step of performing a multi-modal fine-grained search on each individual ant based on the individual transfer probability to update the ant population includes the following steps: The first ant in the ant colony is considered the third individual; Randomly generate a judgment value within a second preset range; If the individual transition probability of the third entity is greater than the judgment value, a third value is randomly generated within a third preset range. A fourth value is obtained by subtracting the iteration progress from 1. The network parameters of the third entity are incrementally assigned by multiplying the third value and the fourth value to obtain the updated individual corresponding to the third entity. The iteration progress is determined based on the ratio of the current inner loop iteration count to the maximum iteration count. If the individual transition probability of the third individual is less than or equal to the judgment value, a fifth value is obtained based on the difference between the network parameters of the optimal individual and the third individual, and a sixth value is randomly generated within a preset normal distribution. The network parameters of the third individual are incrementally assigned by the product of the fifth value and the sixth value to obtain the updated individual corresponding to the third individual. The next ant in the ant colony is taken as the third individual, and the step of randomly generating a judgment value within the second preset range is returned to be executed until all ant individuals in the ant colony have been traversed. The ant colony is then updated based on the update individual corresponding to each ant individual.
7. The method according to claim 1, characterized in that, The method of dynamically adjusting the pheromone concentration of each individual ant based on a preset adjustment strategy includes the following steps: Based on the negative value of the iteration progress, the iteration decay term is obtained by operating on the natural exponential function; wherein, the iteration progress is determined based on the ratio of the current number of inner loop iterations to the maximum number of iterations; The first accuracy rate of the best individual is taken as the maximum accuracy rate, and the first accuracy rate of the worst individual is taken as the minimum accuracy rate. Based on the first accuracy rate in descending order, the individual ants in the ant population before the update are sorted to obtain an ant sequence; wherein, the ant sequence is sequentially marked with the sequence number of each individual ant. The first ant in the ant sequence is taken as the fourth ant; The first pheromone is obtained by multiplying the pheromone concentration of the fourth individual with the iterative decay term; The difference between the first accuracy rate and the minimum accuracy rate of the fourth individual is used as the numerator, and the difference between the maximum accuracy rate and the minimum accuracy rate is used as the denominator to calculate the seventh value. The second pheromone is obtained by multiplying the preset pheromone enhancement factor, the seventh value, and the pheromone concentration of the fourth individual. If the ratio of the sequence number of the fourth individual to the first quantity is less than a preset ratio, the third pheromone of the fourth individual is assigned a fixed reward base value; otherwise, the third pheromone of the fourth individual is assigned a value of 0. The pheromone concentration of the fourth individual is updated based on the sum of the first pheromone, the second pheromone, and the third pheromone, and the updated pheromone concentration is associated with the ant individual corresponding to the fourth individual in the updated ant colony. The next ant in the ant sequence is designated as the fourth ant, and this process continues until the pheromone concentration of each ant is updated.
8. A smart identification device for marine seabed sediments integrating machine learning, characterized in that, The apparatus for implementing the method of claim 1 includes: The acquisition module is used to acquire a multibeam dataset and divide the multibeam dataset into a training set and a validation set; wherein, each data sample in the multibeam dataset includes feature data and each data sample is associated with substrate type label data; An initialization module is used to initialize the topology of the neural network and initialize an ant colony based on the topology; wherein the ant colony includes a first number of individual ants, and each individual ant corresponds to a set of network parameters; The accuracy module is used to traverse each individual ant in the ant colony, use the neural network and the training set to identify the accuracy, obtain the first accuracy of each individual ant, take the individual ant with the highest first accuracy as the best individual, and take the individual ant with the lowest first accuracy as the worst individual. The determination module is used to select the optimal individual as the target individual if the first accuracy of the optimal individual exceeds the prediction accuracy threshold; otherwise, it uses the first accuracy, the optimal individual, the worst individual, and the iteration progress to convert the heuristic factors of each ant individual into heuristic factors. The probability module is used to obtain the individual transition probability of each ant individual based on the heuristic factor and pheromone concentration of the same ant individual; The update module is used to perform a multi-mode fine search on each ant individual based on the individual transfer probability in order to update the ant population, and to dynamically adjust the pheromone concentration of each ant individual based on a preset adjustment strategy. The iteration module is used to increment the number of iterations in the inner loop. If the number of iterations in the inner loop does not exceed the maximum number of iterations, the operation of the accuracy module is returned until the target individual is obtained or the number of iterations in the inner loop exceeds the maximum number of iterations. If the number of iterations in the inner loop exceeds the maximum number of iterations, the optimal individual is taken as the target individual. The verification module is used to construct an identification model using the target individual and the neural network, verify the identification model using the verification set to obtain a second accuracy rate, and if the second accuracy rate does not exceed the prediction accuracy rate threshold, update the topology, initialize the number of iterations of the inner loop, and return to execute the operation of initializing the ant population based on the topology in the initialization module until the second accuracy rate exceeds the prediction accuracy rate threshold, and then use the identification model as the target model. The application module uses the target model to identify the substrate based on real-time feature data.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.
