Underwater robot operation risk prediction method, system, equipment and medium

By fusing the prior knowledge of experts with data, using multi-level risk prediction models and particle swarm algorithms and other technical means, the problem of scarce risk data sets of underwater robot operations is solved, and high accuracy and real-time risk prediction is achieved.

CN119647950AActive Publication Date: 2025-03-18BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411711938.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

The prior art is difficult to achieve high-accurate dynamic prediction of underwater robot operation risk under the limited data volume, especially when the underwater robot operation risk data set is scarce.

Method used

By fusing the prior knowledge of experts with data, using technical means such as hierarchical analysis method, trapezoidal fuzzy membership function and particle swarm algorithm, a multi-level risk prediction model is built to reduce dependence on data volume.

Benefits of technology

It improves the accuracy and real-time prediction of underwater robot operation risk, enhances the interpretability and application convenience of the model, and can effectively deal with complex risks in the underwater operation environment in practical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119647950A_ABST
    Figure CN119647950A_ABST
Patent Text Reader

Abstract

The invention discloses an underwater robot operation risk prediction method, system and device and a medium, and relates to the field of risk prediction, and the method comprises the steps: inputting a to-be-predicted risk value vector into a basic risk prediction model, and obtaining a first risk level prediction value; obtaining a corresponding weight by using an analytic hierarchy process, and determining a second risk level value according to the weight; calculating the risk membership degree of each risk factor value by using a trapezoidal fuzzy membership function, determining the risk level corresponding to the maximum risk membership degree as a discrete risk level value, and inputting the discrete risk level value into the risk level fuzzy mapping model to obtain a third risk level predicted value; counting the number of different risk levels, inputting the number into a risk prediction model based on risk level number statistics, and outputting a fourth risk level prediction value; and determining the weights of the four risk level predicted values by adopting a particle swarm algorithm, thereby determining the comprehensive operation risk value of the underwater robot. According to the method, the underwater robot operation risk prediction with higher accuracy is realized under limited data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of risk prediction, and in particular to a method, system, device and medium for predicting risks in underwater robot operations. Background Art

[0002] In the academic field of underwater robot risk prediction, the current mainstream methods can be summarized into three categories: Bayesian network, Markov chain model and system dynamics modeling and analysis. Although these methods can provide offline preliminary assessment of the risk status of underwater robots to a certain extent, the complexity of their implementation mechanism, the intensiveness of computing resources, and the lack of real-time and application convenience significantly restrict their ability to meet the immediate needs of risk prediction systems in complex underwater operating environments.

[0003] Given the high risk of underwater robot missions and the irreversibility of potential losses, it is particularly urgent to build a risk prediction system that can respond in real time and has high prediction accuracy. Deep neural networks obviously have the ability to evaluate in real time, but due to the increase in the number of neural network nodes, more data is needed to achieve better prediction results. However, the underwater robot operation risk data set is scarce, so the scarcity of underwater robot operation risk data has become a key factor restricting the improvement of model performance. Therefore, it is necessary to implement an effective risk prediction strategy that reduces data volume dependence to alleviate the problem of insufficient data, and further promote the efficiency and reliability of risk prediction systems in practical applications. Summary of the invention

[0004] The purpose of this application is to provide a method, system, device and medium for predicting the risks of underwater robot operations, which can achieve more accurate dynamic prediction of underwater robot operation risks under the premise of limited data volume.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a method for predicting the risk of underwater robot operations, the method comprising:

[0007] Obtaining a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes a plurality of risk factor values;

[0008] Inputting the risk value vector to be predicted into a basic risk prediction model to obtain a first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, wherein the first training set includes a sample risk value vector and a first risk level sample value;

[0009] Using the analytic hierarchy process, experts score each risk factor value in the risk value vector to be predicted, obtain the weight corresponding to each risk factor value, and determine the second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and the risk averaging model;

[0010] Using a trapezoidal fuzzy membership function, respectively calculating the risk membership corresponding to each risk factor value in the risk value vector to be predicted, and determining the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value;

[0011] Inputting the discrete risk level value of each risk factor value into the risk level fuzzy mapping model to obtain the third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model with a second training set, wherein the second training set includes the discrete risk level value of the sample risk factor value and the corresponding third risk level sample value;

[0012] Counting the number of different risk levels in the third risk level prediction value of each risk factor value, and inputting the number of different risk levels into a risk prediction model based on risk level quantity statistics, and outputting a fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model using a third training set, and the third training set includes the number of different risk levels in the third risk level sample values ​​of the sample risk factor values ​​and the corresponding fourth risk level sample values;

[0013] The particle swarm algorithm is used to determine the weights of the first risk level prediction value, the second risk level value, the third risk level prediction value and the fourth risk level prediction value, so as to determine the comprehensive operation risk value of the underwater robot.

[0014] Optionally, the risk value vector to be predicted includes ocean current risk factor values, temperature risk factor values, water density risk factor values, reef risk factor values, aquatic plant risk factor values, swimming fish risk factor values, power system risk factor values, power system risk factor values, operating distance risk factor values ​​and operating depth risk factor values.

[0015] Optionally, the fully connected neural network model includes an input layer, a hidden layer and an output layer connected in sequence.

[0016] Optionally, the training process of the basic risk prediction model specifically includes:

[0017] Inputting the sample risk value vector into the fully connected neural network model to obtain a predicted value of the first risk level of the sample;

[0018] A first loss function is constructed based on the first risk level prediction value of the sample and the first risk level sample value, and the network parameters of the fully connected neural network model are iteratively optimized according to the first loss function until the iterative optimization round reaches a maximum value or the first loss function reaches a minimum value, and the iterative optimization is stopped to obtain the basic risk prediction model.

[0019] Optionally, the analytic hierarchy process is used to perform expert scoring on each risk factor value in the risk value vector to be predicted, and the weight corresponding to each risk factor value is obtained, which specifically includes:

[0020] Using the analytic hierarchy process, experts score each risk factor value in the risk value vector to be predicted to obtain a scoring matrix;

[0021] Performing eigendecomposition on the scoring matrix to obtain the maximum eigenvalue of the scoring matrix;

[0022] Based on the maximum eigenvalue of the scoring matrix, performing a consistency check on the scoring matrix to obtain a consistency ratio;

[0023] Obtaining a random consistency index, and obtaining a test coefficient based on the random consistency index and the consistency ratio;

[0024] When the test coefficient is less than a preset threshold, the eigenvector corresponding to the maximum eigenvalue of the scoring matrix is ​​calculated;

[0025] The eigenvector is normalized and used as the weight corresponding to each risk factor value.

[0026] Optionally, based on the weights corresponding to the risk factor values ​​and the risk averaging model, determining the second risk level value corresponding to the risk value vector to be predicted specifically includes:

[0027] The weights corresponding to the risk factor values ​​and the risk factor values ​​are weighted averaged to obtain the weighted risk value;

[0028] The risk averaging model interval corresponding to the weighted risk value is determined, and a second risk level value corresponding to the risk value vector to be predicted is determined.

[0029] Optionally, when the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A1=(0, 0.1, 0.2, 0.3), the risk level corresponding to the maximum risk membership of the risk factor value is low risk, and the discrete risk level value of the risk factor value is 1;

[0030] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A2=(0.25, 0.35, 0.45, 0.55), the risk level corresponding to the maximum risk membership of the risk factor value is a lower risk, and the discrete risk level value of the risk factor value is 2;

[0031] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A3=(0.5, 0.6, 0.7, 0.8), the risk level corresponding to the maximum risk membership of the risk factor value is a high risk, and the discrete risk level value of the risk factor value is 3;

[0032] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A4=(0.75, 0.85, 0.95, 1), the risk level corresponding to the maximum risk membership of the risk factor value is a high risk, and the discrete risk level value of the risk factor value is 4.

[0033] In a second aspect, the present application provides an underwater robot operation risk prediction system, the underwater robot operation risk prediction system is used to implement the underwater robot operation risk prediction method, and the underwater robot operation risk prediction system includes:

[0034] A data acquisition unit, used to acquire a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes a plurality of risk factor values;

[0035] A first risk level prediction value determination unit is used to input the risk value vector to be predicted into a basic risk prediction model to obtain a first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, and the first training set includes a sample risk value vector and a first risk level sample value;

[0036] A second risk level value determination unit is used to perform expert scoring on each risk factor value in the risk value vector to be predicted by using a hierarchical analysis method to obtain a weight corresponding to each risk factor value, and determine a second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and a risk averaging model;

[0037] A discrete risk level value determination unit is used to calculate the risk membership corresponding to each risk factor value in the risk value vector to be predicted by using a trapezoidal fuzzy membership function, and determine the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value;

[0038] A third risk level prediction value determination unit is used to input the discrete risk level value of each risk factor value into a risk level fuzzy mapping model to obtain a third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model using a second training set, wherein the second training set includes discrete risk level values ​​of sample risk factor values ​​and corresponding third risk level sample values;

[0039] a fourth risk level prediction value determination unit, for counting the number of different risk levels in the third risk level prediction value of each risk factor value, and inputting the number of different risk levels into a risk prediction model based on risk level quantity statistics, and outputting a fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model using a third training set, and the third training set includes the number of different risk levels in the third risk level sample values ​​of the sample risk factor values ​​and the corresponding fourth risk level sample values;

[0040] The comprehensive operation risk value determination unit is used to use a particle swarm algorithm to determine the weight of the first risk level prediction value, the weight of the second risk level value, the weight of the third risk level prediction value and the weight of the fourth risk level prediction value, thereby determining the comprehensive operation risk value of the underwater robot.

[0041] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described methods for predicting risks of underwater robot operations.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned methods for predicting risks of underwater robot operations.

[0043] According to the specific embodiments provided in this application, this application has the following technical effects:

[0044] The present application discloses a method, system, device and medium for predicting the risk of underwater robot operations. In this method, firstly, by integrating the expert's prior knowledge with the data, the interpretability and prediction accuracy of the model are enhanced compared with the single data-driven risk prediction method. Secondly, the expert knowledge is extracted as a feature model, and the evaluation results of each model are integrated through ensemble learning, which can solve the problem that the underwater robot risk prediction data set is small and cannot drive the deep network model. Finally, the particle swarm algorithm is used to optimize the weights of each risk level prediction value, so that the accuracy of the corresponding risk level prediction result is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of a process flow of a method for predicting risks of underwater robot operations provided in one embodiment of the present application;

[0047] Figure 2 A schematic diagram of a fully connected neural network model provided in one embodiment of the present application;

[0048] Figure 3 A schematic diagram of a trapezoidal fuzzy membership function provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of a particle swarm weight optimization iterative process provided in an embodiment of the present application;

[0050] Figure 5 Schematic diagram of the change of loss value of the basic risk prediction model;

[0051] Figure 6 Schematic diagram of the changes in the evaluation accuracy of the basic risk prediction model;

[0052] Figure 7 This is a schematic diagram of the change of loss value in the evaluation process after particle swarm optimization;

[0053] Figure 8 This is a schematic diagram of the change in evaluation accuracy after particle swarm optimization;

[0054] Fig. 9 A schematic diagram of the functional modules of an underwater robot operation risk prediction system provided by an embodiment of the present application;

[0055] Fig.10 A schematic diagram of the structure of a computer device provided in one embodiment of the present application.

[0056] Reference numerals:

[0057] Data acquisition unit 1, first risk level prediction value determination unit 2, second risk level value determination unit 3, discrete risk level value determination unit 4, third risk level prediction value determination unit 5, fourth risk level prediction value determination unit 6, comprehensive operation risk value determination unit 7. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0059] In order to solve the problem of scarce and small amount of risk data on existing underwater robot operations, this application integrates domain expert knowledge and experience into the data model to achieve the fusion of data and prior knowledge, and improve the accuracy of risk prediction of underwater robot operation risk prediction model driven by small sample data with less data volume. Specifically, the expert knowledge adopted in this application includes risk weights based on the analytic hierarchy process, risk level fuzzy mapping, and risk level quantitative statistics. The above three types of expert knowledge are integrated into the basic neural network model to form three risk prediction models. The idea of ​​ensemble learning is adopted, and the four underwater robot operation risk prediction level values ​​such as the basic risk level prediction model directly trained with the original data are assigned certain weights. The corresponding weight distribution is optimized through the particle swarm algorithm, thereby achieving the improvement of the accuracy of the risk prediction method.

[0060] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0061] In an exemplary embodiment, Figure 1 As shown, a method for predicting the risk of underwater robot operation is provided, comprising the following steps S1 to S7. Among them:

[0062] Step S1, obtaining a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes multiple risk factor values.

[0063] Specifically, the risk value vector to be predicted includes ocean current risk factor value, temperature risk factor value, water density risk factor value, reef risk factor value, aquatic plant risk factor value, swimming fish risk factor value, power system risk factor value, power system risk factor value, operation distance risk factor value and operation depth risk factor value.

[0064] Step S2, input the risk value vector to be predicted into the basic risk prediction model to obtain a first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, and the first training set includes a sample risk value vector and a first risk level sample value.

[0065] As an optional implementation, in step S2, the fully connected neural network model includes an input layer, a hidden layer and an output layer connected in sequence. The schematic diagram of the fully connected neural network model is as follows: Figure 2 As shown. Among them, the hidden layer uses the following formula as the activation function:

[0066] ReLU(y hid )=max(0,y hid ) (1)

[0067] Among them, max is a function that finds the maximum value of multiple variables; y hid is the output of the neurons in the previous layer of neural network.

[0068] The output layer uses the following formula as the probability estimate of the four risk levels of low risk, lower risk, higher risk and high risk:

[0069]

[0070] Among them, y o is the output of the output layer neural network neuron; y oi is the neural network output corresponding to each risk level, i takes 1, 2, 3, 4, corresponding to low risk, lower risk, higher risk and high risk respectively.

[0071] As an optional implementation, in step S2, the training process of the basic risk prediction model specifically includes:

[0072] Step S21, inputting the sample risk value vector into the fully connected neural network model to obtain a sample first risk level prediction value.

[0073] Step S22, constructing a first loss function based on the first risk level prediction value of the sample and the first risk level sample value, and iteratively optimizing the network parameters of the fully connected neural network model according to the first loss function until the iterative optimization round reaches a maximum value or the first loss function reaches a minimum value, stopping the iterative optimization, and obtaining the basic risk prediction model.

[0074] Specifically, the first training set is a small sample data set of existing underwater robot operation risk prediction. Each sample in the small sample data set contains a ten-dimensional input (i.e., sample risk value vector) and a one-dimensional output (i.e., first risk level sample value). The ten-dimensional input includes ocean current risk factor values, temperature risk factor values, water density risk factor values, reef risk factor values, aquatic plant risk factor values, swimming fish risk factor values, power system risk factor values, power system risk factor values, operation distance risk factor values, and operation depth risk factor values. Among the output first risk level sample values, 1 represents low risk, 2 represents lower risk, 3 represents higher risk, and 4 represents high risk.

[0075] Step S3, using the hierarchical analysis method, experts score each risk factor value in the risk value vector to be predicted, obtain the weight corresponding to each risk factor value, and determine the second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and the risk averaging model.

[0076] As an optional implementation, in step S3, the expert scoring is performed on each risk factor value in the risk value vector to be predicted by using the hierarchical analysis method to obtain the weight corresponding to each risk factor value, which specifically includes:

[0077] Step S31, using the analytic hierarchy process, experts score each risk factor value in the risk value vector to be predicted to obtain a scoring matrix.

[0078] Experts in the field of underwater robot operations were invited to compare ten risk factors, including ocean currents, temperature, reefs, aquatic plants, fish, electricity, power, operation distance and operation depth, in pairs. Scoring was performed according to the standard nine-level grading table of the hierarchical analysis method. The scoring results of each expert will form a 10-order square matrix. The mode of the elements in the same position in each 10-order square matrix is ​​taken as the final scoring result, and a 10-order square matrix is ​​obtained, which is the scoring matrix. Among them, the elements a symmetrical about the main diagonal are ij a ji =1, and the matrix main diagonal element a ii = 0. For example, if the importance of the ocean current risk factor value relative to the temperature risk factor value is 3, then a in the matrix 12 =3, The importance of the temperature risk factor value to the reef risk factor value is but a 32 =2.

[0079] Step S32, perform eigendecomposition on the scoring matrix to obtain the maximum eigenvalue of the scoring matrix. The maximum eigenvalue is obtained by calculating all eigenvalues ​​of the scoring matrix and taking the maximum value.

[0080] Step S33: Based on the maximum eigenvalue of the scoring matrix, a consistency check is performed on the scoring matrix to obtain a consistency ratio; the consistency ratio is calculated according to the following formula:

[0081]

[0082] Among them, λ is the maximum eigenvalue of the scoring matrix, and n is the order of the scoring matrix.

[0083] Step S34, obtaining a random consistency index, and obtaining a test coefficient based on the random consistency index and the consistency ratio.

[0084] Considering that the increase in CI value may be caused by the increase in random factors due to the increase in matrix order, when testing whether the scoring matrix has satisfactory consistency, it is also necessary to compare CI with the random consistency index RI to obtain the test coefficient CR, which is calculated as follows:

[0085]

[0086] In the formula, the RI value is related to the order of the scoring matrix, and its relationship with the order n of the scoring matrix can be determined by looking up the standard RI value table.

[0087] Step S35, when the test coefficient is less than a preset threshold, the eigenvector corresponding to the maximum eigenvalue of the scoring matrix is ​​calculated.

[0088] If the test coefficient CRCR exceeds the preset threshold of 0.1, the decision experts need to revise their initial judgment. After all necessary pairwise comparisons and revisions, if the preset threshold CR is lower than 0.1, the consistency test can be passed, and then the eigenvalues ​​of the scoring matrix are calculated, the maximum eigenvalue is taken, and the eigenvector corresponding to the maximum eigenvalue is calculated.

[0089] Step S36, normalizing the feature vector, and using the normalized feature vector as the weight corresponding to each risk factor value.

[0090] As an optional implementation, in step S3, based on the weights corresponding to the risk factor values ​​and the risk averaging model, determining the second risk level value corresponding to the risk value vector to be predicted specifically includes:

[0091] Step S37, performing weighted average on the weights corresponding to the risk factor values ​​and the risk factor values ​​to obtain a weighted risk value;

[0092] Step S38, determining the risk averaging model interval corresponding to the weighted risk value, and determining the second risk level value corresponding to the risk value vector to be predicted.

[0093] The normalized eigenvector is used as the weight w1 corresponding to each risk factor value. After obtaining the weight w1, each risk factor value is weighted and summed in a linear weighted manner. That is, for a risk vector r composed of ten risk factor values, its weighted risk value is w1 Tr, after obtaining the final weighted risk value, the second risk level value is determined according to the risk averaging model, that is, when the weighted risk value is in the interval [0, 0.25], the second risk level value is low risk; when the weighted risk value is in the interval (0.25, 0.5], the second risk level value is relatively low risk; when the weighted risk value is in the interval (0.5, 0.75], the second risk level value is relatively high risk; when the weighted risk value is in the interval (0.75, 1], the second risk level value is high risk.

[0094] Step S4, using a trapezoidal fuzzy membership function, respectively calculates the risk membership corresponding to each risk factor value in the risk value vector to be predicted, and determines the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value.

[0095] As an optional implementation, in step S4, the trapezoidal fuzzy membership function is as follows: Figure 3 As shown, when the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A1=(0, 0.1, 0.2, 0.3), the risk level corresponding to the maximum risk membership of the risk factor value is low risk, and the discrete risk level value of the risk factor value is 1.

[0096] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A2=(0.25, 0.35, 0.45, 0.55), the risk level corresponding to the maximum risk membership of the risk factor value is a lower risk, and the discrete risk level value of the risk factor value is 2.

[0097] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A3=(0.5, 0.6, 0.7, 0.8), the risk level corresponding to the maximum risk membership of the risk factor value is a higher risk, and the discrete risk level value of the risk factor value is 3.

[0098] When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A4=(0.75, 0.85, 0.95, 1), the risk level corresponding to the maximum risk membership of the risk factor value is a high risk, and the discrete risk level value of the risk factor value is 4.

[0099] Specifically, the trapezoidal fuzzy membership function can be expressed as It needs to satisfy 0≤α≤l≤m≤β, where α is The lower boundary of The upper boundary of [l,m] is the relative most likely value interval. For the fuzzy mapping of the risk level of each risk factor, a comment set A = {low risk, lower risk, higher risk, high risk} is established. The representation can be expressed as: A1 = (0, 0.1, 0.2, 0.3), A2 = (0.25, 0.35, 0.45, 0.55), A3 = (0.5, 0.6, 0.7, 0.8), A4 = (0.75, 0.85, 0.95, 1).

[0100] After the trapezoidal fuzzy membership function is determined, the membership of each risk factor value in the ten risk factors is calculated to belong to low risk, relatively low risk, relatively high risk and high risk respectively. According to the maximum membership principle, that is, the current risk value is sorted for each risk level and the maximum value is taken. The risk level corresponding to the risk value of each of the ten risk factors is determined according to the risk level corresponding to the maximum membership value. After determining the risk level, the risk value corresponding to each risk factor value in the ten-dimensional input is mapped to discrete risk level values: 1, 2, 3, 4, corresponding to low risk, relatively low risk, relatively high risk and high risk respectively.

[0101] Step S5, inputting the discrete risk level value of each risk factor value into the risk level fuzzy mapping model to obtain the third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model with a second training set, and the second training set includes the discrete risk level values ​​of the sample risk factor values ​​and the corresponding third risk level sample values.

[0102] Step S6, counting the number of different risk levels in the third risk level prediction value of each risk factor value, and inputting the number of different risk levels into the risk prediction model based on risk level quantity statistics, and outputting the fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model with a third training set, and the third training set includes the number of different risk levels in the third risk level sample value of the sample risk factor value and the corresponding fourth risk level sample value.

[0103] Specifically, the number of each risk level is also an important priori feature. Based on the third risk level prediction value of each risk factor value obtained in step S5, the number of each risk level after fuzzy mapping is counted. The number of level statistics corresponding to the ten-dimensional risk factors, that is, the number of low-risk risk factors, the number of lower-risk risk factors, the number of higher-risk risk factors, and the number of high-risk risk factors are used as input. Figure 2 The fully connected neural network model shown is used for parameter training to obtain a risk prediction model based on the quantitative statistics of risk levels.

[0104] Step S7, using a particle swarm algorithm to respectively determine the weight of the first risk level prediction value, the weight of the second risk level value, the weight of the third risk level prediction value, and the weight of the fourth risk level prediction value, thereby determining the comprehensive operation risk value of the underwater robot.

[0105] After the four risk features are extracted using the above steps S2-S6, the idea of ​​ensemble learning combined prediction is adopted to treat the result of each feature prediction as an independent unit, assign a specific weight, and optimize the weight through the particle swarm algorithm to improve the accuracy of the corresponding results. The particle swarm weight optimization iterative process diagram is shown in the figure. Figure 4 shown.

[0106] In the particle swarm algorithm, each particle as a basic optimization unit includes two attributes: position p i and speed v i , that is, each particle in the group has its own velocity vector and position vector. In this application, the position vector is mapped to the weight w of each risk level using the following formula: i :

[0107]

[0108] Where q is the dimension of the position vector x, i is an integer and i∈[1,n], where q is 4, i.e., the four different risk level prediction methods in steps S2-S6 above.

[0109] After the mapping is completed, in the 10-dimensional search space, the particle swarm size is 50. Among these 50 particles, the position vector of the i-th particle at time k in the n-dimensional space is p i (k)=(p i1 (k),p i2 (k)...p i4 (k)), the particle has a velocity vector v i (k)=(v i1 (k),v i2 (k)...v i4 (k)), the optimal position searched by the particle itself is p ib =(p ib1 ,p ib2 ...p ib4 ), the global optimal position of all particles is p best =(p b1 ,p b2 …p b4 ), the speed and position update formulas of the ith particle used in this application are respectively formula (6) and (7)

[0110] v i (k+1)=0.6v i(k)+0.3r1(p best -p i (k))+0.5r2(p ib -p i (k))(6)

[0111] p i (k+1)=p i (k)+v i (k+1) (7)

[0112] Among them, r1 and r2 are n-dimensional vectors composed of random numbers, r 1i ∈[0,1],r 2i ∈[0,1]. The optimization goal of the particle swarm in this application is to minimize the following formula:

[0113]

[0114] in, is the risk level of the model output under the current weight, y i is the actual risk level in the data set. The maximum number of iterations during iterative updating is 100, the speed range constraint is -0.5≤v≤0.5, and the position constraint is 0.05≤x≤1.

[0115] A specific embodiment is provided below to further illustrate the underwater robot operation risk prediction method proposed in this application.

[0116] Step 1: This embodiment uses the existing underwater robot operation risk prediction small-scale dataset, which contains 390 samples, including 118 high-risk samples, 92 relatively high-risk samples, 87 relatively low-risk samples, and 93 low-risk samples. Take the input risk value vector of the first sample in the underwater robot operation risk dataset as the risk value vector to be predicted, and record it as r = [0.579, 0.199, 0.012, 0.191, 0.02, 0.378, 0.213, 0.059, 0.007, 0.96] T .

[0117] Step 2: Input the risk value vector r to be predicted into the basic risk prediction model to obtain the first risk level prediction value. Among them, for the trained basic risk prediction model, the final evaluation accuracy is about 80% under the premise of ensuring generalization performance. The loss value change diagram is as follows: Figure 5 As shown, the evaluation accuracy diagram is as follows Figure 6 shown.

[0118] Step 3, according to the steps of the hierarchical analysis method, invite experts in the field of underwater robot operations to complete the pairwise comparison of the ten risk factors, and score them according to the standard nine-level grading table of the hierarchical analysis method. The scoring results of each expert will form a 10-order square matrix, and the elements in the same position of each 10-order square matrix will be the mode as the final scoring matrix. Then the scoring matrix is ​​subjected to a consistency test, where in this embodiment, λ=10.3 is calculated, n is 10, the RI value is 1.49, and the calculated consistency ratio CR value is 0.034, which does not exceed the threshold of 0.1 and can pass the consistency test. The eigenvector is calculated based on the maximum eigenvalue and normalized to obtain the weight vector of the risk factor:

[0119] w1=[0.092,0.031,0.04,0.075,0.151,0.151,0.075,0.225,0.094,0.064] T .

[0120] After obtaining the weights, the ten risk factors in a risk sample are linearly weighted to form a ten-digit input vector and the weight vector to perform the inner product to obtain the final risk value, thereby determining the risk level. Taking the risk value vector r to be predicted as an example, the weighted calculation is w T ·r, the risk value is 0.148. According to the uniform distribution, the risk value in the interval [0,0.25) is low risk, the risk value in (0.25,0.5] is relatively low risk, the risk value in (0.5,0.75] is relatively high risk, and the risk value in (0.75,1] is high risk. The second risk level value of this risk sample is determined to be low risk.

[0121] Step 4: The trapezoidal fuzzy membership function established in this embodiment is as follows: Figure 3 As shown, the risk factor with low risk after risk value mapping is labeled 1, the risk factor with relatively low risk after risk value mapping is labeled 2, the risk factor with low risk after higher risk value mapping is labeled 3, and the risk factor with high risk after risk value mapping is labeled 4.

[0122] After the trapezoidal fuzzy membership function is determined, the membership of the risk value corresponding to each risk factor is calculated to belong to low risk, lower risk, higher risk and high risk respectively. The final risk level of each risk factor risk data is determined according to the maximum membership principle. Taking the ocean current risk factor in the risk value vector r to be predicted as an example, its ocean current risk value is 0.579, and its memberships belonging to the four risk levels are 0, 0, 1, 0. Its maximum membership belongs to higher risk, and the risk level number is 3. After being mapped to discrete risk levels, it is input into the risk level fuzzy mapping model to obtain the third risk level prediction value of each risk factor value.

[0123] Step 5, based on the risk level fuzzy mapping in step 4, the number of each risk level after fuzzy mapping is counted. The level statistical quantity corresponding to the ten-dimensional risk factors, that is, the four-dimensional data of the number of low-risk risk factors, the number of relatively low-risk risk factors, the number of relatively high-risk risk factors, and the number of high-risk risk factors are used as input to the risk prediction model based on risk level quantity statistics, and the fourth risk level prediction value is output.

[0124] Step 6: Use the particle swarm optimization algorithm to determine the weights of the first risk level prediction value, the second risk level value, the third risk level prediction value, and the fourth risk level prediction value, so as to determine the comprehensive operation risk value of the underwater robot. Figure 7 and Figure 8 As shown, the model prediction accuracy is 95%. The weight vector finally obtained in this embodiment is w = [0.163, 0.174, 0.632, 0.032] T .

[0125] The models in the above steps were tested using the data set corresponding to this embodiment, and the model prediction accuracy reached 90%, and the risk prediction accuracy was improved by 15% compared with the basic neural network sub-model. This example illustrates that the application improves the risk prediction accuracy of underwater robot operations.

[0126] Beneficial effects of this application:

[0127] 1. The underwater robot operation risk prediction method provided in this application enhances the interpretability and prediction accuracy of the model compared to a single data-driven risk prediction method by integrating the expert's prior knowledge with data.

[0128] 2. The underwater robot operation risk prediction method provided in this application extracts expert knowledge into a feature model and fuses the evaluation results of each model through ensemble learning. This can solve the problem that the underwater robot risk prediction data set is small and cannot drive the deep network model.

[0129] 3. The underwater robot operation risk prediction method provided in this application is real-time and practical compared with previous evaluation methods, and can be actually applied to the actual operating environment of underwater robots.

[0130] Based on the same inventive concept, the embodiment of the present application also provides an underwater robot operation risk prediction system for implementing the underwater robot operation risk prediction method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more underwater robot operation risk prediction system embodiments provided below can refer to the limitations of the underwater robot operation risk prediction method above, and will not be repeated here.

[0131] In an exemplary embodiment, Fig. 9 As shown, a system for predicting the risk of underwater robot operations is provided, including: a data acquisition unit 1, a first risk level prediction value determination unit 2, a second risk level value determination unit 3, a discrete risk level value determination unit 4, a third risk level prediction value determination unit 5, a fourth risk level prediction value determination unit 6 and a comprehensive operation risk value determination unit 7.

[0132] The data acquisition unit 1 is used to acquire a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes a plurality of risk factor values.

[0133] The first risk level prediction value determination unit 2 is used to input the risk value vector to be predicted into the basic risk prediction model to obtain the first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, and the first training set includes a sample risk value vector and a first risk level sample value.

[0134] The second risk level value determination unit 3 is used to use the hierarchical analysis method to perform expert scoring on each risk factor value in the risk value vector to be predicted, obtain the weight corresponding to each risk factor value, and determine the second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and the risk averaging model.

[0135] The discrete risk level value determination unit 4 is used to use a trapezoidal fuzzy membership function to calculate the risk membership corresponding to each risk factor value in the risk value vector to be predicted, and determine the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value.

[0136] The third risk level prediction value determination unit 5 is used to input the discrete risk level value of each risk factor value into the risk level fuzzy mapping model to obtain the third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model with a second training set, and the second training set includes the discrete risk level values ​​of the sample risk factor values ​​and the corresponding third risk level sample values.

[0137] The fourth risk level prediction value determination unit 6 is used to count the number of different risk levels in the third risk level prediction value of each risk factor value, and input the number of different risk levels into the risk prediction model based on risk level quantity statistics, and output the fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model with a third training set, and the third training set includes the number of different risk levels in the third risk level sample value of the sample risk factor value and the corresponding fourth risk level sample value.

[0138] The comprehensive operation risk value determination unit 7 is used to use a particle swarm algorithm to determine the weight of the first risk level prediction value, the weight of the second risk level value, the weight of the third risk level prediction value and the weight of the fourth risk level prediction value, thereby determining the comprehensive operation risk value of the underwater robot.

[0139] In an exemplary embodiment, a computer device is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for predicting risks of underwater robot operations.

[0140] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a method for predicting risks of underwater robot operations is implemented.

[0141] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for predicting the risk of underwater robot operations is implemented.

[0142] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0145] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0147] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for predicting underwater robot operation risks, characterized in that: The underwater robot operation risk prediction method comprises: Obtaining a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes a plurality of risk factor values; Inputting the risk value vector to be predicted into a basic risk prediction model to obtain a first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, wherein the first training set includes a sample risk value vector and a first risk level sample value; Using the analytic hierarchy process, experts score each risk factor value in the risk value vector to be predicted, obtain the weight corresponding to each risk factor value, and determine the second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and the risk averaging model; Using a trapezoidal fuzzy membership function, respectively calculating the risk membership corresponding to each risk factor value in the risk value vector to be predicted, and determining the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value; Inputting the discrete risk level value of each risk factor value into the risk level fuzzy mapping model to obtain the third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model with a second training set, wherein the second training set includes the discrete risk level value of the sample risk factor value and the corresponding third risk level sample value; Counting the number of different risk levels in the third risk level prediction value of each risk factor value, and inputting the number of different risk levels into a risk prediction model based on risk level quantity statistics, and outputting a fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model using a third training set, and the third training set includes the number of different risk levels in the third risk level sample values ​​of the sample risk factor values ​​and the corresponding fourth risk level sample values; The particle swarm algorithm is used to determine the weights of the first risk level prediction value, the second risk level value, the third risk level prediction value and the fourth risk level prediction value, so as to determine the comprehensive operation risk value of the underwater robot.

2. The underwater robot operation risk prediction method according to claim 1, characterized in that: The risk value vector to be predicted includes ocean current risk factor value, temperature risk factor value, water density risk factor value, reef risk factor value, aquatic plant risk factor value, swimming fish risk factor value, power system risk factor value, power system risk factor value, operation distance risk factor value and operation depth risk factor value.

3. The underwater robot operation risk prediction method according to claim 1, characterized in that: The fully connected neural network model includes an input layer, a hidden layer and an output layer which are connected in sequence.

4. The underwater robot operation risk prediction method according to claim 3, characterized in that: The training process of the basic risk prediction model specifically includes: Inputting the sample risk value vector into the fully connected neural network model to obtain a predicted value of the first risk level of the sample; A first loss function is constructed based on the first risk level prediction value of the sample and the first risk level sample value, and the network parameters of the fully connected neural network model are iteratively optimized according to the first loss function until the iterative optimization round reaches a maximum value or the first loss function reaches a minimum value, and the iterative optimization is stopped to obtain the basic risk prediction model.

5. The underwater robot operation risk prediction method according to claim 1, characterized in that: By using the hierarchical analysis method, each risk factor value in the risk value vector to be predicted is scored by experts to obtain the weight corresponding to each risk factor value, which specifically includes: Using the analytic hierarchy process, experts score each risk factor value in the risk value vector to be predicted to obtain a scoring matrix; Performing eigendecomposition on the scoring matrix to obtain the maximum eigenvalue of the scoring matrix; Based on the maximum eigenvalue of the scoring matrix, performing a consistency check on the scoring matrix to obtain a consistency ratio; Obtaining a random consistency index, and obtaining a test coefficient based on the random consistency index and the consistency ratio; When the test coefficient is less than a preset threshold, the eigenvector corresponding to the maximum eigenvalue of the scoring matrix is ​​calculated; The eigenvector is normalized and used as the weight corresponding to each risk factor value.

6. The underwater robot operation risk prediction method according to claim 5, characterized in that: Determining the second risk level value corresponding to the risk value vector to be predicted based on the weights corresponding to the risk factor values ​​and the risk averaging model specifically includes: The weights corresponding to the risk factor values ​​and the risk factor values ​​are weighted averaged to obtain the weighted risk value; The risk averaging model interval corresponding to the weighted risk value is determined, and a second risk level value corresponding to the risk value vector to be predicted is determined.

7. The underwater robot operation risk prediction method according to claim 1, characterized in that: When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A1=(0, 0.1, 0.2, 0.3), the risk level corresponding to the maximum risk membership of the risk factor value is low risk, and the discrete risk level value of the risk factor value is 1; When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A2=(0.25, 0.35, 0.45, 0.55), the risk level corresponding to the maximum risk membership of the risk factor value is a lower risk, and the discrete risk level value of the risk factor value is 2; When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A3=(0.5, 0.6, 0.7, 0.8), the risk level corresponding to the maximum risk membership of the risk factor value is a high risk, and the discrete risk level value of the risk factor value is 3; When the maximum risk membership corresponding to the risk factor value belongs to the range corresponding to A4=(0.75, 0.85, 0.95, 1), the risk level corresponding to the maximum risk membership of the risk factor value is a high risk, and the discrete risk level value of the risk factor value is 4.

8. An underwater robot operation risk prediction system, characterized in that: The underwater robot operation risk prediction system is used to implement the underwater robot operation risk prediction method according to claims 1 to 7, and the underwater robot operation risk prediction system includes: A data acquisition unit, used to acquire a risk value vector to be predicted of the underwater robot; the risk value vector to be predicted includes a plurality of risk factor values; A first risk level prediction value determination unit is used to input the risk value vector to be predicted into a basic risk prediction model to obtain a first risk level prediction value; the basic risk prediction model is obtained by training a fully connected neural network model using a first training set, and the first training set includes a sample risk value vector and a first risk level sample value; A second risk level value determination unit is used to perform expert scoring on each risk factor value in the risk value vector to be predicted by using a hierarchical analysis method to obtain a weight corresponding to each risk factor value, and determine a second risk level value corresponding to the risk value vector to be predicted based on the weight corresponding to each risk factor value and a risk averaging model; A discrete risk level value determination unit is used to calculate the risk membership corresponding to each risk factor value in the risk value vector to be predicted by using a trapezoidal fuzzy membership function, and determine the risk level corresponding to the maximum risk membership of each risk factor value as the discrete risk level value of the corresponding risk factor value; A third risk level prediction value determination unit is used to input the discrete risk level value of each risk factor value into a risk level fuzzy mapping model to obtain a third risk level prediction value of each risk factor value; the risk level fuzzy mapping model is obtained by training the fully connected neural network model using a second training set, wherein the second training set includes discrete risk level values ​​of sample risk factor values ​​and corresponding third risk level sample values; a fourth risk level prediction value determination unit, for counting the number of different risk levels in the third risk level prediction value of each risk factor value, and inputting the number of different risk levels into a risk prediction model based on risk level quantity statistics, and outputting a fourth risk level prediction value; the risk prediction model based on risk level quantity statistics is obtained by training the fully connected neural network model using a third training set, and the third training set includes the number of different risk levels in the third risk level sample values ​​of the sample risk factor values ​​and the corresponding fourth risk level sample values; The comprehensive operation risk value determination unit is used to adopt a particle swarm algorithm to respectively determine the weight of the first risk level prediction value, the weight of the second risk level value, the weight of the third risk level prediction value and the weight of the fourth risk level prediction value, thereby determining the comprehensive operation risk value of the underwater robot.

9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the underwater robot operation risk prediction method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the underwater robot operation risk prediction method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Marine rescue ship cruise path planning method

    CN111428916A

  • Marine ecological environment multi-parameter monitoring and disaster risk assessment method based on unmanned ship

    CN118780598A