An unmanned vehicle obstacle avoidance method and device based on a memristor

By using a memristor-based fuzzy control algorithm, the input variables for obstacle avoidance of unmanned vehicles are processed using a memristor array. The fuzzy inference parameters are determined by combining the membership function and the cost function. This solves the problem of poor real-time performance of obstacle avoidance in unmanned vehicles and achieves accurate obstacle avoidance with low power consumption and low latency.

CN117666569BActive Publication Date: 2026-11-27ZHEJIANG LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311564774.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2026-11-27
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

In existing obstacle avoidance technologies for autonomous vehicles, deep learning models have high computational resource requirements and long training times, resulting in poor real-time performance of obstacle avoidance strategies and an inability to respond in a timely manner.

Method used

A fuzzy control algorithm based on memristors is adopted. By obtaining the distances from the front and sides of the unmanned vehicle to obstacles as input variables, the memristor array is used for fuzzification processing. The fuzzy inference parameters are determined by combining the membership function and the cost function, thereby realizing the defuzzification of linear velocity and angular velocity and controlling the unmanned vehicle to avoid obstacles.

Benefits of technology

It enables low-power, low-latency unmanned vehicles to accurately avoid obstacles, improving the real-time performance and accuracy of obstacle avoidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117666569B_ABST
    Figure CN117666569B_ABST
Patent Text Reader

Abstract

In the method and device for obstacle avoidance of unmanned vehicle based on memristor provided in the specification, the nearest distances from the front and both sides of the unmanned vehicle to the obstacles are obtained as input variables by referring to the fuzzy control algorithm, and the input variables are fuzzed by the memristor array to obtain a linear velocity output matrix and an angular velocity output matrix. The membership degree matrix is determined by the membership degree function group for each input variable, and the fuzzy reasoning parameters are obtained by the cost function to further determine the weight matrix, thereby realizing the fuzzy reasoning. The linear velocity and the angular velocity are determined by the de-fuzzing processing of the linear velocity output matrix, the angular velocity output matrix, the weight matrix, the preset linear velocity parameter matrix and the angular velocity parameter matrix, which are used to control the unmanned vehicle to avoid obstacles, so as to achieve the precise obstacle avoidance of the unmanned vehicle with low power consumption and low delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of obstacle avoidance technology for unmanned vehicles, and in particular to an obstacle avoidance method and device for unmanned vehicles based on memristors. Background Technology

[0002] Enabling autonomous vehicles to move flexibly and safely in complex environments is a key focus of autonomous vehicle technology research. The crucial factors in achieving obstacle avoidance capabilities in autonomous vehicles lie in the accuracy of environmental perception and the real-time determination of obstacle avoidance strategies.

[0003] Currently, obstacle avoidance for autonomous vehicles is generally achieved by combining deep learning models with traditional control methods (e.g., fuzzy control). This process involves a deep learning model perceiving environmental information, followed by a fuzzy control system inferring the obstacle avoidance strategy to prevent the vehicle from escaping obstacles. However, deep learning models typically require significant computational resources and time to train, resulting in long training periods and high costs. Furthermore, the high computational demands of deep learning models prevent them from responding promptly, leading to poor real-time performance in determining the obstacle avoidance strategy.

[0004] Based on this, this specification provides an obstacle avoidance method for unmanned vehicles based on memristors. Summary of the Invention

[0005] This specification provides an obstacle avoidance method and apparatus for unmanned vehicles based on memristors, which partially solves the aforementioned problems existing in the prior art.

[0006] The following technical solution is adopted in this specification:

[0007] This specification provides an obstacle avoidance method for unmanned vehicles based on memristors. The method includes:

[0008] Obtain the nearest distances from the front and sides of the autonomous vehicle to obstacles at the current moment, as input variables;

[0009] Based on each input variable, the input variables are fuzzified using a preset memristor array to obtain the linear velocity output matrix and the angular velocity output matrix.

[0010] Based on each input variable, the membership values ​​are obtained through a pre-defined set of membership functions, and the membership matrix is ​​determined.

[0011] Based on the membership matrix, the fuzzy inference parameters are determined using a preset cost function;

[0012] The weight matrix is ​​determined based on the membership matrix and the fuzzy inference parameters;

[0013] Linear velocity is determined by deblurring based on the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix; angular velocity is determined by deblurring based on the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix.

[0014] The unmanned vehicle is controlled to avoid obstacles based on the linear velocity and the angular velocity.

[0015] Optionally, based on each input variable, the membership values ​​are obtained through a preset set of membership functions, and the membership matrix is ​​determined, specifically including:

[0016] For each input variable, determine the direction corresponding to the input variable, and determine the membership functions corresponding to the direction from the preset membership function group. The direction of the input variable includes the front and sides of the unmanned vehicle. The sides correspond to the same membership function, and the front and sides correspond to different membership functions.

[0017] Based on the input variable, the membership values ​​corresponding to the input variable are obtained through the membership functions corresponding to the direction.

[0018] Determine the membership matrix based on the membership values ​​of each input variable.

[0019] Optionally, before obtaining the linear velocity output matrix and angular velocity output matrix by fuzzifying each input variable using a preset memristor array, the method further includes:

[0020] For each input variable, determine its corresponding value range, and determine each value corresponding to the input variable with a preset step size; determine each input variable group based on each value of the input variable; traverse each input variable group through a virtual environment, and record the angular velocity and linear velocity corresponding to each input variable group; determine the dataset based on the input variable groups, angular velocities, and linear velocities; train the angular velocity model and the linear velocity model based on the dataset; determine the parameter values ​​of the angular velocity model and the linear velocity model, wherein the model structures of the angular velocity model and the linear velocity model are the same;

[0021] Based on the parameter values ​​of the linear velocity model, a linear velocity parameter matrix is ​​determined; based on the parameter values ​​of the angular velocity model, an angular velocity parameter matrix is ​​determined, wherein the linear velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms, and the angular velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms.

[0022] The conductivity quantization ratio of linear velocity is determined based on the numerical range of each linear weight coefficient column in the linear velocity parameter matrix and the numerical range of conductance value when the memristor is operating linearly; the conductivity quantization ratio of angular velocity is determined based on the numerical range of each linear weight coefficient in the angular velocity parameter matrix and the numerical range of conductance value when the memristor is operating linearly.

[0023] Based on each element in the linear weight coefficient column of the linear velocity parameter matrix, each element in the linear weight coefficient column of the angular velocity parameter matrix, and each conductivity quantization ratio, determine the quantized conductivity values.

[0024] The memristor array is determined based on the aforementioned conductance values.

[0025] Optionally, based on each input variable, the memristor array is used to perform fuzzification processing on each input variable to obtain the linear velocity output matrix and the angular velocity output matrix, specifically including:

[0026] Based on each input variable, the voltage value corresponding to each input variable is determined by a preset voltage quantization ratio;

[0027] Input each voltage value into the memristor array to obtain each current value output by the memristor array;

[0028] The linear velocity output matrix and angular velocity output matrix are determined based on the current values, the voltage quantization ratio, and the conductance quantization ratio.

[0029] Optionally, the linear velocity is determined by defuzzification processing based on the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix, specifically including:

[0030] Based on the linear velocity output matrix and the constant column of the linear velocity parameter matrix, determine the linear velocity output result corresponding to each fuzzy rule;

[0031] Determine the linear velocity matrix based on the output results of each linear velocity;

[0032] The linear velocity is determined based on the linear velocity matrix and the weight matrix.

[0033] Optionally, the angular velocity is determined by defuzzification processing based on the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix, specifically including:

[0034] Based on the angular velocity output matrix and the constant column of the angular velocity parameter matrix, determine the angular velocity output result corresponding to each fuzzy rule;

[0035] Determine the angular velocity matrix based on the output results of each angular velocity;

[0036] The angular velocity is determined based on the angular velocity matrix and the weight matrix.

[0037] Optionally, the fuzzy inference parameters include linear parameters and constant parameters;

[0038] The weight matrix is ​​determined based on the membership matrix and the fuzzy inference parameters, specifically including:

[0039] The product of the linear parameter and the preset covariance matrix is ​​used as the first product matrix;

[0040] The product of the constant parameter and the preset constant matrix is ​​used as the second product matrix;

[0041] The weight matrix is ​​determined based on the first product matrix, the second product matrix, and the membership matrix.

[0042] This specification provides an obstacle avoidance device for unmanned vehicles based on memristors, the device comprising:

[0043] The acquisition module is used to obtain the nearest distances from the front and sides of the autonomous vehicle to obstacles at the current moment, as input variables;

[0044] The fuzzification module is used to fuzzify each input variable according to the preset memristor array to obtain the linear velocity output matrix and the angular velocity output matrix.

[0045] The membership module is used to obtain the membership values ​​of each input variable and determine the membership matrix by using a preset set of membership functions.

[0046] The fuzzy inference module is used to determine the fuzzy inference parameters based on the membership matrix and a preset cost function.

[0047] The weighting module is used to determine the weighting matrix based on the membership matrix and the fuzzy inference parameters;

[0048] The deblurring module is used to determine the linear velocity by deblurring the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix; and to determine the angular velocity by deblurring the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix.

[0049] The control module is used to control the unmanned vehicle to avoid obstacles based on the linear velocity and the angular velocity.

[0050] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a memristor-based obstacle avoidance method for unmanned vehicles.

[0051] This specification provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements an obstacle avoidance method for unmanned vehicles based on memristors.

[0052] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects: In the obstacle avoidance method for unmanned vehicles based on memristors provided in this specification, the nearest distances from the front and sides of the unmanned vehicle to obstacles are obtained as input variables. Each input variable is then fuzzified using a memristor array to obtain a linear velocity output matrix and an angular velocity output matrix. Each input variable is used to determine a membership matrix through a membership function set, and fuzzy inference parameters are obtained through a cost function. Then, a weight matrix is ​​determined based on the membership matrix and the fuzzy inference parameters. The obtained linear velocity output matrix, angular velocity output matrix, weight matrix, preset linear velocity parameter matrix, and preset angular velocity parameter matrix are used to determine the linear velocity and angular velocity for controlling the unmanned vehicle's obstacle avoidance.

[0053] As can be seen from the above method, by referring to the fuzzy control algorithm, the input variables are fuzzified through the memristor array, the weight matrix is ​​obtained through the membership function and fuzzy inference parameters to realize fuzzy inference, and the linear velocity and angular velocity are determined to realize defuzzification, thus achieving accurate obstacle avoidance of the unmanned vehicle with low power consumption and low latency. Attached Figure Description

[0054] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:

[0055] Figure 1 This is a flowchart illustrating an obstacle avoidance method for unmanned vehicles based on memristors provided in this specification.

[0056] Figure 2 This is a schematic diagram of the memristor array provided in this specification;

[0057] Figure 3 This is a schematic diagram illustrating the acquisition of membership values ​​through a set of membership functions, as provided in this specification.

[0058] Figure 4 This specification provides a schematic diagram of an obstacle avoidance device for an unmanned vehicle based on a memristor.

[0059] Figure 5 This is a schematic diagram of the electronic device structure used to implement an obstacle avoidance method for an unmanned vehicle based on memristors, as provided in this specification. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0061] This specification provides an obstacle avoidance method for unmanned vehicles based on memristors. The technical solution provided in this specification references a fuzzy control algorithm. The server can use a memristor array to perform fuzzification processing of each input variable, and obtain a weight matrix based on the membership matrix and determined fuzzy inference parameters, thus realizing the fuzzy inference process. Linear velocity is determined based on a preset linear velocity parameter matrix, linear velocity output matrix, and weight matrix; angular velocity is determined based on a preset angular velocity parameter matrix, angular velocity output matrix, and weight matrix, achieving defuzzification processing for the corresponding linear and angular velocities.

[0062] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0063] Figure 1 This is a flowchart illustrating an obstacle avoidance method for an unmanned vehicle based on memristors, as provided in this specification, including the following steps:

[0064] S100: Obtain the nearest distances from the front and sides of the autonomous vehicle to obstacles at the current moment, as input variables.

[0065] In one or more embodiments of this specification, the specific device used to implement the obstacle avoidance process for memristor-based autonomous vehicles is not limited, such as a personal computer, mobile terminal, or server. However, since subsequent steps involve data processing and other operations that require significant computing resources, these operations are generally performed by a server. Therefore, this specification will subsequently describe a memristor-based obstacle avoidance method for autonomous vehicles using a server as an example. This server can be a single device or a combination of multiple devices, such as a distributed server; this specification does not impose any limitations on this.

[0066] In one or more embodiments of this specification, as described above, the fuzzy control algorithm includes steps such as fuzzification, fuzzy inference, and defuzzification. Referring to the fuzzy control algorithm, in order to achieve fuzzification of each input variable through a memristor array in subsequent steps, the server needs to determine each input variable for fuzzification in this step.

[0067] Specifically, the server can collect data through a lidar sensor to obtain the closest distances between the autonomous vehicle and obstacles in front, to the left, and to the right at the current moment, using these distances as input variables. The scanning range of the lidar sensor in front of, to the left, and to the right of the autonomous vehicle can be set according to actual needs, but this specification does not limit it.

[0068] For example, using the front of the autonomous vehicle as a baseline, the area within a 30-degree angle to this baseline is the scanning range of the LiDAR sensor in front of the autonomous vehicle. The area to the left of this scanning range, within angles of 30 degrees and 180 degrees to the baseline, is the scanning range of the LiDAR sensor on the left side of the autonomous vehicle. Similarly, the area to the right of this scanning range, within angles of 30 degrees and 180 degrees to the baseline, is the scanning range of the LiDAR sensor on the right side of the autonomous vehicle.

[0069] S102: Based on each input variable, the input variables are fuzzified using a preset memristor array to obtain the linear velocity output matrix and the angular velocity output matrix.

[0070] In one or more embodiments of this specification, each input variable for obstacle avoidance of the unmanned vehicle has been obtained in step S100. Referring to the fuzzy control algorithm, the server can perform fuzzification processing on each input variable in this step.

[0071] Specifically, the server quantizes each input variable into a voltage value within a preset voltage range using a preset voltage quantization ratio. These voltage values ​​are then input to a pre-designed memristor array to obtain the current values ​​output by the array. Using this voltage quantization ratio and preset conductance quantization ratios, the output current values ​​are inversely quantized to determine the linear velocity output matrix and the angular velocity output matrix.

[0072] It should be noted that, for each input variable, the range of values ​​corresponding to that input variable is determined, and each value corresponding to that input variable is determined with a preset step size. Based on the values ​​of each input variable, each input variable group is determined. The virtual environment is used to traverse each input variable group, recording the corresponding angular velocity and linear velocity. Based on each input variable group, each angular velocity, and each linear velocity, a dataset is determined; based on this dataset, the angular velocity model and the linear velocity model are trained. The parameter values ​​of the angular velocity model and the linear velocity model are determined, where the model structures of the angular velocity model and the linear velocity model are identical. Based on the parameter values ​​of the linear velocity model, the linear velocity parameter matrix is ​​determined, and based on the parameter values ​​of the angular velocity model, the angular velocity parameter matrix is ​​determined. The linear velocity parameter matrix includes a column of linear weight coefficients and a column of constants, and the angular velocity parameter matrix also includes a column of linear weight coefficients and a column of constants. Furthermore, based on the numerical ranges of the linear weight coefficients of the linear velocity parameter matrix, the numerical range of the linear weight coefficients of the angular velocity parameter matrix, and the numerical range of the conductance value when the memristor is operating linearly, the conductance quantization ratios of the linear velocity and the angular velocity can be determined. Based on the obtained conductance quantization ratios and parameter values, the conductance value of each memristor in the memristor array is determined, thus defining the memristor array.

[0073] It should be noted that by obtaining the current values ​​through the memristor array and performing reverse quantization on the output current values, the angular velocity output matrix and the linear velocity output matrix are determined. This enables the multiplication of the linear weight coefficient column in the angular velocity parameter matrix with the matrix composed of each input variable, as well as the multiplication of the linear weight coefficient column in the linear velocity parameter matrix with the matrix composed of each input variable.

[0074] For example, the universe of discourse for the closest distance between the autonomous vehicle and obstacles in each direction can be divided into {near, medium, far}, then each input variable corresponds to three membership functions. Since each input variable has three possibilities, the number of fuzzy inference rules is set to 3. 3 This refers to 27 fuzzy inference rules. The angular velocity parameter matrix Z_θ and the linear velocity parameter matrix Z both have dimensions of 27×4, including the linear weight coefficient column which has a dimension of 27×3 and the constant term column which has a dimension of 27×1. Through a memristor array, each current value is obtained, and the output current values ​​are inversely quantized. This is to achieve the multiplication of the linear weight coefficient column in the angular velocity parameter matrix with the matrix composed of each input variable, and the multiplication of the linear weight coefficient column in the linear velocity parameter matrix with the matrix composed of each input variable. as well as Referring to Kirchhoff's current law, based on the quantized voltage values ​​of each input variable, the values ​​are input to a preset memristor array to obtain the current value I for each column. j Taking the determination of the linear velocity output matrix as an example, as follows:

[0075]

[0076] in, The current value output in the j-th column is the product of the quantized conductance values ​​of each linear weight coefficient in the j-th row of the linear velocity parameter matrix implemented for the memristor array and the quantized voltage values ​​of each input variable, where λ is the number of input variables. i,j V represents the conductivity values ​​obtained after quantization based on the linear weighting coefficients in the linear velocity parameter matrix Z. i To obtain the input variable V through a preset voltage quantization ratio i The corresponding voltage value.

[0077] The memristor array can also be configured with a reference column. If the conductance of the memristor during linear operation ranges from 120μS to 200μS, then the conductance values ​​in this reference column can be set to 120μS. Therefore, the output current value I... j Possible forms: Among them, G i,0 This represents the conductance value of each memristor in the baseline column. For example... Figure 2 As shown, Figure 2 This is a schematic diagram of a pre-defined memristor array. Through the integrated circuit of memristors and transistors, the linear weighting coefficient column in the linear velocity parameter matrix is ​​multiplied by the matrix composed of each input variable. The memristor array with j=0 serves as the reference column. Here, BL is the bit line of the memristor array, controlling the input voltage, and WL is the external control signal for the memristor array.

[0078] S104: Based on each input variable, obtain each membership value through a preset membership function set, and determine the membership matrix.

[0079] In one or more embodiments of this specification, as described above, in order to obtain fuzzy inference parameters through a cost function in subsequent steps, and then determine the weight matrix to achieve fuzzy inference, the server needs to obtain each membership value and determine the membership matrix based on each input variable and a preset membership function set in this step.

[0080] Specifically, the server can obtain membership values ​​and determine the membership matrix based on each input variable and a preset set of membership functions. In step S100, the closest distances from both sides to the obstacle use the same partitioning method and the same membership function, while the closest distance from the front to the obstacle uses a different membership function than that used on both sides.

[0081] For example, the universe of discourse for the closest distance between the autonomous vehicle and obstacles in each direction can be divided into {near, medium, far}, then each input variable corresponds to three membership functions. If the membership functions for each direction included in the preset membership function set are all Gaussian membership functions, then the process of obtaining each membership value through each membership function is as follows:

[0082] (1) Gaussian membership function:

[0083]

[0084] Where g(t) represents the membership value, x is the input variable, and σ and μ are preset parameters, both constants. This Gaussian membership function is divided into a linear function part f and a nonlinear function part:

[0085]

[0086] (2) Based on each membership value, determine the membership matrix as follows:

[0087]

[0088] in, F is the membership matrix determined after obtaining the membership values ​​through a pre-defined set of membership functions. g For nonlinear function vectors, The dimension of this nonlinear function vector is the number of membership functions in the membership function set. A g The values ​​in and B g All values ​​in the equation are constant variables, and are based on the linear function part of each membership function. Get A g The values ​​in the table represent the coefficients of the linear function portion of each membership function. Get B g The values ​​in the equation are the constant values ​​of the linear function part of each membership function.

[0089] like Figure 3 As shown, Figure 3 For each input variable, the coefficients of that input variable and the linear function components of the corresponding membership functions are... Multiplication, and with constant values Add them together, and then pass them through a nonlinear function vector. Obtain the membership values ​​of the input variable.

[0090] H in the above formula (2) is a binary covariant matrix, which is determined according to the partitioning of each membership value, as follows:

[0091]

[0092] S106: Based on the membership matrix, determine the fuzzy inference parameters using a preset cost function.

[0093] In one or more embodiments of this specification, as described above, in order to determine the weight matrix for fuzzy inference in subsequent steps, the server needs to determine the fuzzy inference parameters in this step based on the membership matrix and a preset cost function.

[0094] Specifically, the server can determine each membership value in the membership matrix and the partitioning of each membership value, minimizing the preset cost function value under each partitioning condition, and determining the parameter values ​​of the cost function, which are the fuzzy inference parameters. The partitioning of each membership value references the fuzzy inference rules set in the fuzzy control algorithm.

[0095] Continuing with the previous example, the universe of discourse for the closest distance between the autonomous vehicle and obstacles in each direction can be divided into {near, medium, far}, then each input variable corresponds to three membership functions. Given three input variables, each with three membership values, then we should have 3... 3 That is, there are 27 fuzzy inference rules, which means there should be 27 possible divisions for each membership degree value.

[0096] It should be noted that the preset cost function is as follows:

[0097]

[0098] Where λ represents the number of membership values ​​for a single fuzzy inference rule, which is the number of input variables, and g k This represents the membership value of a single fuzzy inference rule, which is to minimize the function value e of the cost function under each partitioning condition, and obtain the corresponding parameter values ​​as fuzzy inference parameters. These fuzzy inference parameters include constant parameter α and linear parameter β.

[0099] S108: Determine the weight matrix based on the membership matrix and the fuzzy inference parameters.

[0100] In one or more embodiments of this specification, as previously described, referring to the fuzzy control algorithm, the weight matrix can be determined in this step based on the membership matrix determined in step S104 and the fuzzy inference parameters determined in step S106.

[0101] Specifically, the server can use the product of the linear parameters in the fuzzy inference parameters determined in step S106 and a preset cofactor matrix as the first product matrix, and the product of the constant parameters in the fuzzy inference parameters determined in step S106 and a preset constant matrix as the second product matrix. The product of the first product matrix and the membership matrix is ​​determined, and this product is added to the second product matrix to obtain a sum matrix. The weight matrix is ​​determined by activating each element in the sum matrix using the sigmoid function. The sigmoid function transformation formula is as follows: The meaning of this function transformation is to determine the σ(x) value corresponding to each x value. In the above, the weight matrix is ​​determined as follows:

[0102] A W =βA I B W =αB I

[0103]

[0104] The fuzzy inference parameters include a linear parameter β and a constant parameter α, A I To pre-set a binary co-occurrence matrix based on the structure of the preset fuzzy rules, B I A is a pre-defined constant matrix, in which all elements are 1. W Let B be the first product matrix. W This is the second product matrix. This is the weight matrix. Let F be the membership matrix. W Used for Each element in the matrix is ​​transformed using the sigmoid function.

[0105] Continuing with the previous example, we obtain three input variables, each with three membership values. Therefore, we have 3... 3 There are 27 fuzzy inference rules, each with three membership values. Each membership value can be one of the three: {near, middle, far}. Therefore, A can be set. I The dimension is 27×9, and the constant matrix B I The dimension is 27×1. A I as follows:

[0106]

[0107] S110: Based on the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix, the linear velocity is determined through defuzzification processing; based on the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix, the angular velocity is determined through defuzzification processing.

[0108] In one or more embodiments of this specification, in order to control the unmanned vehicle to accurately avoid obstacles, a fuzzy control algorithm can be referenced in this step to obtain the output results corresponding to each preset fuzzy inference rule, thereby achieving defuzzification processing and obtaining linear velocity and angular velocity.

[0109] Specifically, for each preset fuzzy inference rule, the server can determine the corresponding linear velocity output result and angular velocity output result based on the linear velocity output matrix, angular velocity output matrix, and the linear velocity parameter matrix and angular velocity parameter matrix determined in step S102. Based on each linear velocity output result, a linear velocity matrix is ​​determined, and then the linear velocity is determined based on this linear velocity matrix and the weight matrix determined in step S108. Similarly, based on each angular velocity output result, an angular velocity matrix is ​​determined, and then the angular velocity is determined based on this angular velocity matrix and the weight matrix determined in step S108.

[0110] Continuing with the previous example, if the input variables are x1, x2, and x3, and there are 27 fuzzy inference rules, then the linear velocity parameter matrix and angular velocity parameter matrix obtained in step S102 both contain three columns of linear weight coefficients and one column of constant terms, and the dimensions of both the linear velocity parameter matrix and the angular velocity parameter matrix are 27×4. Therefore, for each fuzzy inference rule k, the corresponding linear velocity output result is as follows:

[0111] u k,s =(z 1-k,s x1+z 2-k,s x2+z 3-k,s x3)+z 4-k,s

[0112] Among them, u k,s The output result is the linear velocity corresponding to the fuzzy inference rule k, (z 1-k,s x1+z 2-k,s x2+z 3-k,s x3) ​​is the element corresponding to the fuzzy inference rule k in the linear velocity output matrix, and also the linear velocity output result u. k,s The linear part of z. 1-k,s , z 2-k,s , z 3-k,s These are the elements in the linear weight coefficient column of the linear velocity parameter matrix, and also the linear velocity output u. k,s The linear weighting coefficients, z 4-k,s The element in the constant column of the linear velocity parameter matrix is ​​also the linear velocity output u. k,s The constant term.

[0113] Similarly, the angular velocity output corresponding to the fuzzy inference rule k is as follows:

[0114] u k,θ =(z 1-k,θ x1+z 2-k,θ x2+z 3-k,θ x3)+z 4-k,θ

[0115] Among them, uk,θ The output result is the angular velocity corresponding to the fuzzy inference rule k, (z 1-k,θ x1+z 2-k,θθ x2+z 3-k,θ x3) ​​is the element corresponding to the fuzzy inference rule k in the angular velocity output matrix, and also the angular velocity output result u. k,θ The linear part of z. 1-k,θ , z 2-k,θ , z 3-k,θ The elements in the linear weight coefficient column of the angular velocity parameter matrix are also the angular velocity output result u. k,θ The linear weighting coefficients, z 4-k,θ The element in the constant column of the angular velocity parameter matrix is ​​also the angular velocity output value u. k,θθ The constant term.

[0116] The formula for determining linear velocity or angular velocity is as follows:

[0117]

[0118] Among them, y k w is the linear velocity or angular velocity. k Let u be the weight corresponding to the fuzzy inference rule k in the weight matrix. k The output result (linear velocity output result or angular velocity output result) corresponding to the fuzzy inference rule k is n, where n is the number of fuzzy inference rules.

[0119] The formula for determining linear velocity or angular velocity can be expressed as:

[0120]

[0121] in, For linear velocity output matrix or angular velocity output matrix, y k Linear velocity or angular velocity ( Let z(1:27,1:3) be the linear weight coefficient column in the linear velocity parameter matrix or the linear weight coefficient column in the angular velocity parameter matrix, and z(1:27,4) be the constant term column in the linear velocity parameter matrix or the constant term column in the angular velocity parameter matrix. T Represents the transpose of the matrix "·". Let B be the weight matrix. I This is a constant matrix preset in step S108, in which each element is 1.

[0122] S112: Control the unmanned vehicle to avoid obstacles based on the linear velocity and the angular velocity.

[0123] Specifically, the server can control the forward speed and direction of the unmanned vehicle based on the linear velocity and angular velocity determined in step S110, thereby enabling the unmanned vehicle to accurately avoid obstacles.

[0124] In the above steps, by referencing fuzzy control algorithms, the server can utilize a memristor array to fuzzify each input variable. Simultaneously, based on the membership matrix and determined fuzzy inference parameters, a weight matrix is ​​obtained to achieve fuzzy inference. Defuzzification is then performed using the linear velocity parameter matrix, angular velocity parameter matrix, linear velocity output matrix, angular velocity output matrix, and weight matrix, thereby determining the angular and linear velocities. By controlling the autonomous vehicle with the determined linear and angular velocities, precise obstacle avoidance with low power consumption and low latency is achieved.

[0125] The above describes one or more embodiments of an obstacle avoidance method for unmanned vehicles based on memristors, and based on the same idea, this specification also provides a corresponding obstacle avoidance device for unmanned vehicles based on memristors, such as... Figure 4 As shown.

[0126] Module 500 obtains the current distances from the front and sides of the autonomous vehicle to the nearest obstacles, which are used as input variables.

[0127] The fuzzification module 501 performs fuzzification processing on each input variable through a preset memristor array to obtain the linear velocity output matrix and the angular velocity output matrix.

[0128] Membership module 502 obtains membership values ​​and determines the membership matrix based on each input variable and a preset set of membership functions.

[0129] The fuzzy inference module 503 determines the fuzzy inference parameters based on the membership matrix and a preset cost function.

[0130] The weighting module 504 determines the weighting matrix based on the membership matrix and the fuzzy inference parameters.

[0131] The deblurring module 505 determines the linear velocity through deblurring based on the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix; and determines the angular velocity through deblurring based on the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix.

[0132] The control module 506 controls the unmanned vehicle to avoid obstacles based on the linear velocity and the angular velocity.

[0133] Optionally, the membership module 502 is specifically used to determine the direction corresponding to each input variable, and to determine the membership functions corresponding to the direction from a preset membership function group. The direction of the input variable includes the front and sides of the unmanned vehicle, the sides correspond to the same membership function, and the front and sides correspond to different membership functions.

[0134] Based on the input variable, the membership values ​​corresponding to the input variable are obtained through the membership functions corresponding to the direction.

[0135] Determine the membership matrix based on the membership values ​​of each input variable.

[0136] Optionally, the fuzzification module 501 is specifically used to determine the voltage value corresponding to each input variable according to each input variable through a preset voltage quantization ratio;

[0137] Input each voltage value into the memristor array to obtain each current value output by the memristor array;

[0138] The linear velocity output matrix and angular velocity output matrix are determined based on the current values, the voltage quantization ratio, and the conductance quantization ratio.

[0139] Optionally, the defuzzification module 505 is specifically used to determine the linear velocity output result corresponding to each fuzzy rule based on the linear velocity output matrix and the constant column of the linear velocity parameter matrix;

[0140] Determine the linear velocity matrix based on the output results of each linear velocity;

[0141] The linear velocity is determined based on the linear velocity matrix and the weight matrix.

[0142] Optionally, the defuzzification module 505 is specifically used to determine the angular velocity output result corresponding to each fuzzy rule based on the angular velocity output matrix and the constant column of the angular velocity parameter matrix;

[0143] Determine the angular velocity matrix based on the output results of each angular velocity;

[0144] The angular velocity is determined based on the angular velocity matrix and the weight matrix.

[0145] Optionally, the weighting module 504 is specifically used to multiply the linear parameter by a preset covariance matrix as the first product matrix;

[0146] The product of the constant parameter and the preset constant matrix is ​​used as the second product matrix;

[0147] The weight matrix is ​​determined based on the first product matrix, the second product matrix, and the membership matrix.

[0148] Optionally, the device may also include a memristor module 507, which is specifically used to: determine the value range corresponding to each input variable for each input variable; determine each value corresponding to the input variable with a preset step size; determine each input variable group based on each value of each input variable; traverse each input variable group through a virtual environment and record the angular velocity and linear velocity corresponding to each input variable group; determine a dataset based on each input variable group, each angular velocity, and each linear velocity; train an angular velocity model and a linear velocity model based on the dataset; and determine each parameter value of the angular velocity model and each parameter value of the linear velocity model, wherein the model structure of the angular velocity model and the linear velocity model is the same.

[0149] Based on the parameter values ​​of the linear velocity model, a linear velocity parameter matrix is ​​determined; based on the parameter values ​​of the angular velocity model, an angular velocity parameter matrix is ​​determined, wherein the linear velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms, and the angular velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms.

[0150] The conductivity quantization ratio of linear velocity is determined based on the numerical range of each linear weight coefficient column in the linear velocity parameter matrix and the numerical range of conductance value when the memristor is operating linearly; the conductivity quantization ratio of angular velocity is determined based on the numerical range of each linear weight coefficient in the angular velocity parameter matrix and the numerical range of conductance value when the memristor is operating linearly.

[0151] Based on each element in the linear weight coefficient column of the linear velocity parameter matrix, each element in the linear weight coefficient column of the angular velocity parameter matrix, and each conductivity quantization ratio, determine the quantized conductivity values.

[0152] The memristor array is determined based on the aforementioned conductance values.

[0153] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 This paper presents an obstacle avoidance method for unmanned vehicles based on memristors.

[0154] This instruction manual also provides Figure 5 The diagram shows a schematic structural representation of the electronic device. Figure 5 At the hardware level, the device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business logic. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1The present invention describes an obstacle avoidance method for unmanned vehicles based on memristors. Of course, this specification does not exclude other implementation methods besides software implementation, such as logic devices or a combination of hardware and software, etc. In other words, the execution entity of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.

[0155] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0156] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0157] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0158] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0159] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0160] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0161] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0162] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0164] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0165] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0166] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0167] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0168] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0169] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. An obstacle avoidance method for unmanned vehicles based on memristors, characterized in that, include: Obtain the closest distances from the front and sides of the autonomous vehicle to obstacles at the current moment, as input variables; For each input variable, determine its corresponding value range, and determine each value corresponding to the input variable with a preset step size; determine each input variable group based on each value of the input variable; traverse each input variable group through a virtual environment, and record the angular velocity and linear velocity corresponding to each input variable group; determine the dataset based on the input variable groups, angular velocities, and linear velocities; train the angular velocity model and the linear velocity model based on the dataset; determine the parameter values ​​of the angular velocity model and the linear velocity model, wherein the model structures of the angular velocity model and the linear velocity model are the same. Based on the parameter values ​​of the linear velocity model, a linear velocity parameter matrix is ​​determined; based on the parameter values ​​of the angular velocity model, an angular velocity parameter matrix is ​​determined, wherein the linear velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms, and the angular velocity parameter matrix includes a column of linear weight coefficients and a column of constant terms. Based on the numerical range of the linear weight coefficient column in the linear velocity parameter matrix and the angular velocity parameter matrix, and the numerical range of the conductance value when the memristor is operating linearly, the conductance quantization ratio of the linear velocity and the conductance quantization ratio of the angular velocity are determined respectively; wherein, both the linear velocity parameter matrix and the angular velocity parameter matrix include a linear weight coefficient column and a constant term column; Based on each element of the linear weight coefficient column in the linear velocity parameter matrix and the angular velocity parameter matrix, and the corresponding conductance quantization ratio, the quantized conductance values ​​are determined, and the memristor array is determined based on the conductance values. The memristor array is used to fuzzify each input variable, including: determining the voltage value corresponding to each input variable according to a preset voltage quantization ratio; inputting each voltage value into the memristor array to obtain each current value output by the memristor array; and determining the linear velocity output matrix and angular velocity output matrix according to each current value, the voltage quantization ratio, and the conductance quantization ratio. Based on each input variable, the membership values ​​are obtained through a pre-defined set of membership functions, and the membership matrix is ​​determined. Based on the membership matrix, the fuzzy inference parameters are determined using a preset cost function; The weight matrix is ​​determined based on the membership matrix and the fuzzy inference parameters; Linear velocity is determined by defuzzification based on the linear velocity output matrix, the linear velocity parameter matrix, and the weight matrix; angular velocity is determined by defuzzification based on the angular velocity output matrix, the angular velocity parameter matrix, and the weight matrix. The unmanned vehicle is controlled to avoid obstacles based on the linear velocity and the angular velocity.

2. The method as described in claim 1, characterized in that, Based on each input variable, the membership values ​​are obtained through a pre-defined set of membership functions, and the membership matrix is ​​determined, specifically including: For each input variable, determine the direction corresponding to the input variable, and determine the membership functions corresponding to the direction from the preset membership function group. The direction of the input variable includes the front and sides of the unmanned vehicle. The sides correspond to the same membership function, and the front and sides correspond to different membership functions. Based on the input variable, the membership values ​​corresponding to the input variable are obtained through the membership functions corresponding to the direction. Determine the membership matrix based on the membership values ​​of each input variable.

3. The method as described in claim 1, characterized in that, Based on the linear velocity output matrix, the preset linear velocity parameter matrix, and the weight matrix, the linear velocity is determined through defuzzification processing, specifically including: Based on the linear velocity output matrix and the constant column of the linear velocity parameter matrix, determine the linear velocity output result corresponding to each fuzzy rule; Determine the linear velocity matrix based on the output results of each linear velocity; The linear velocity is determined based on the linear velocity matrix and the weight matrix.

4. The method as described in claim 1, characterized in that, Based on the angular velocity output matrix, the preset angular velocity parameter matrix, and the weight matrix, the angular velocity is determined through defuzzification processing, specifically including: Based on the angular velocity output matrix and the constant column of the angular velocity parameter matrix, determine the angular velocity output result corresponding to each fuzzy rule; Determine the angular velocity matrix based on the output results of each angular velocity; The angular velocity is determined based on the angular velocity matrix and the weight matrix.

5. The method as described in claim 1, characterized in that, The fuzzy inference parameters include linear parameters and constant parameters; The weight matrix is ​​determined based on the membership matrix and the fuzzy inference parameters, specifically including: The product of the linear parameter and the preset covariance matrix is ​​used as the first product matrix; The product of the constant parameter and the preset constant matrix is ​​used as the second product matrix; The weight matrix is ​​determined based on the first product matrix, the second product matrix, and the membership matrix.

6. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 5.

7. An electronic device, characterized in that, The invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the program, implements the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Robot navigation obstacle avoidance method and device based on fuzzy controller

    CN115576328A

  • Fuzzy logic full-hardware computing circuit and design method thereof

    CN115857871A