Control method and device of working machine, working machine and equipment
By acquiring operating machinery data and point cloud data, the action prediction model is used to realize automatic control of operating machinery, which solves the problem of low efficiency of semi-automatic control, improves operating efficiency and effectiveness, and reduces the operator's labor intensity.
Patent Information
- Application Number
- CN202410479389.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The semi-automatic control of operating machinery in the prior art results in low operating efficiency and poor operating results, and operators need to perform multiple demonstration operations to adapt to task changes, resulting in labor intensity and fatigue problems.
By obtaining the current operation data and point cloud data of the operating machinery, the pre-trained action prediction model is used to generate a probability distribution, determine the target action and generate a target control signal, realizing automatic control of the operating machinery without operator demonstration and human participation.
It improves the efficiency and effect of automated control of operating machinery, reduces operating time, reduces operator labor intensity and fatigue, and realizes fully automatic operations.
Smart Images

Figure CN118601088A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous operation technology, and in particular to a control method and device for an operating machine, an operating machine and equipment. Background Art
[0002] The development of automation and intelligence of operating machinery is an inevitable trend in the industry. Traditional operating machinery relies on the operator to adjust the control lever to coordinate the work, realize the precise coordination of the boom, dipper and bucket, and complete the operation of the operating machinery. The traditional operation method requires the operator to have a high degree of professional skills. In addition, due to the repetitiveness and labor intensity of the operation, it is very easy to cause the operator's work fatigue. Therefore, realizing the automated control of operating machinery is of great significance to improving the work efficiency and the operator's work safety.
[0003] In order to achieve the above goals, the prior art uses a semi-automatic control method to control the working machine. For example, the operator is required to perform a demonstration operation before the operation so that the working machine can record the operation process and then perform automatic operation based on the recorded operation process.
[0004] However, the operating tasks and operating environments of operating machinery are diverse, and the operating surface of the same operating task will change as the operation is performed. Therefore, the operator is required to perform demonstration operations multiple times, resulting in low overall operating efficiency and unsatisfactory operating results. Summary of the invention
[0005] The embodiments of the present invention provide a control method, system, working machine and equipment for a working machine, so as to solve the problems of low working efficiency and poor working effect caused by the semi-automatic control of the working machine in the prior art, realize fully automatic working machine control, and improve working efficiency and working effect.
[0006] An embodiment of the present invention provides a control method for a working machine, comprising:
[0007] Acquire current operation data of the operation machine and point cloud data of the current operation environment corresponding to the operation machine;
[0008] Based on the current operation data, the point cloud data and a pre-trained action prediction model, a probability distribution of the action that the operation machine needs to perform output by the action prediction model is obtained, wherein the action prediction model is trained based on operation data samples, point cloud data samples and probability distribution samples of the action performed by the operation machine under the operation data samples and the point cloud data samples;
[0009] determining a target action based on the probability distribution;
[0010] A target control signal corresponding to the target action is generated, and the working machine is controlled to perform the target action based on the target control signal.
[0011] According to the control method of the working machine of the embodiment of the present invention, the obtaining of the probability distribution of the action that the working machine needs to perform output by the action prediction model based on the current working data, the point cloud data and the pre-trained action prediction model includes:
[0012] Based on the data requirements corresponding to the action prediction model, the current operation data and the point cloud data are processed respectively to obtain model input data;
[0013] The model input data is input into the action prediction model to obtain the probability distribution output by the action prediction model.
[0014] According to the control method of the working machine of the embodiment of the present invention, the current working data includes: a current control signal and a current working angle corresponding to the working mechanism of the working machine;
[0015] The processing of the current operation data and the point cloud data based on the data requirements corresponding to the action prediction model to obtain model input data includes:
[0016] Determining reward and punishment values based on a preset reward and punishment strategy and the current operation data;
[0017] Converting the point cloud data into raster data;
[0018] A sequence consisting of the reward and penalty value, the grid data, the current working angle and the current control signal is determined as the model input data.
[0019] According to the control method of the working machine according to the embodiment of the present invention, the determining of the target action based on the probability distribution includes:
[0020] Sampling the actions corresponding to the probability distribution to obtain the target points corresponding to the probability distribution;
[0021] The action corresponding to the target point on the probability distribution is determined as the target action.
[0022] According to the control method of the working machine according to the embodiment of the present invention, the training process of the action prediction model includes:
[0023] Acquire a sample data set, wherein the sample data set includes: the operation data sample, the point cloud data sample and the probability distribution sample;
[0024] Based on the data requirements corresponding to the action prediction model, processing the sample data set to obtain a model input data sample;
[0025] Masking the data in the model input data sample used to characterize the action of the working machine to obtain a data sample to be input;
[0026] The data sample to be input is input into the action prediction model to obtain the predicted probability distribution output by the action prediction model; based on the predicted probability distribution and the probability distribution sample, the action prediction model is optimized until the action prediction model converges to obtain the final action prediction model.
[0027] According to the control method of the working machine according to the embodiment of the present invention, the optimizing the action prediction model based on the predicted probability distribution and the probability distribution sample comprises:
[0028] Calculating the log-likelihood and entropy corresponding to the predicted probability distribution and the probability distribution sample;
[0029] Calculating an iterative loss based on the log-likelihood and the entropy;
[0030] Based on the iterative loss, back propagation is performed to update model parameters of the action prediction model.
[0031] According to the control method of the working machine according to the embodiment of the present invention, the acquiring of the sample data set includes:
[0032] Determine the task difficulty corresponding to the current working environment;
[0033] Collecting sample data of a data volume corresponding to the difficulty of the task;
[0034] The collected sampling data are combined to obtain the sample data set.
[0035] An embodiment of the present invention provides a control device for a working machine, comprising:
[0036] An acquisition module, used to acquire current operation data of the operation machine and point cloud data of the current operation environment corresponding to the operation machine;
[0037] A prediction module, configured to obtain, based on the current operation data, the point cloud data and a pre-trained action prediction model, a probability distribution of an action that the operation machine needs to perform output by the action prediction model, wherein the action prediction model is trained based on operation data samples, point cloud data samples and probability distribution samples of actions performed by the operation machine under the operation data samples and the point cloud data samples;
[0038] A determination module, configured to determine a target action based on the probability distribution;
[0039] A control module is used to generate a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0040] An embodiment of the present invention further provides a working machine, which is used to implement the steps of the control method of the working machine.
[0041] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the control method of the operating machine when executing the program.
[0042] An embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the steps of the control method of the working machine.
[0043] The control method, device, working machine and equipment of the working machine provided by the embodiments of the present invention obtain the probability distribution of the action that the working machine needs to perform output by the action prediction model through the current working data, point cloud data and the pre-trained action prediction model; determine the target action from the obtained probability distribution. It can be seen that the present invention does not require the operator to perform demonstration operations and does not need to pay attention to the working environment. It can automatically and quickly obtain the target action that the working machine needs to perform; then, generate a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal to complete the working task. It can be seen that the entire control process does not require human participation, and the working machine can complete it automatically, which can effectively improve the working efficiency and working effect, and can effectively save the working time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 This is one of the flow charts of a control method for a working machine provided by an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the installation position of the collection equipment provided by an embodiment of the present invention;
[0047] Figure 3This is a second flow chart of a control method for an operating machine provided by an embodiment of the present invention;
[0048] Figure 4 is a schematic structural diagram of a control device for a working machine provided by an embodiment of the present invention;
[0049] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] The embodiment of the present invention provides a control method for a working machine, which can be applied to working machines, such as excavators, loaders, cranes, rollers, etc., and can also be applied to servers. Below, the method is applied to an excavator as an example for explanation, but it should be noted that it is only an example and is not used to limit the protection scope of the present invention. Some other descriptions in the embodiments of the present invention are also examples and are not used to limit the protection scope of the present invention, and will not be described one by one later.
[0052] The specific implementation of this method is as follows Figure 1 As shown:
[0053] Step 101 : acquiring current operation data of an operation machine and point cloud data of a current operation environment corresponding to the operation machine.
[0054] The operation data includes: a control signal corresponding to a control handle of the operation machine, an operation angle corresponding to an operation mechanism of the operation machine, an operation amount corresponding to the operation machine, and the like.
[0055] For example, a rotation angle sensor is installed on the body of the excavator, a boom inclination sensor is installed on the boom of the excavator, a boom inclination sensor is installed on the dipper arm of the excavator, and a bucket inclination sensor is installed on the bucket of the excavator, and the installed sensors are used to collect the operating angles of each operating mechanism. A weight sensor is installed on the bucket of the excavator, and the weight of the excavated material in the bucket (corresponding to the operating volume of the operating machinery) is collected using the installed weight sensor. The present invention does not limit the number of installation positions of each sensor, and the user can set it according to his or her actual needs.
[0056] The working environment includes: working tasks corresponding to the working machinery, and the point cloud data of the working environment includes point cloud data of the working tasks.
[0057] For example, a laser radar is installed on the body of an excavator, and the installed laser radar is used to collect point cloud data of the environment information of the working machine. The present invention does not limit the installation position and number of the corresponding laser radar, and the user can set it according to his actual needs.
[0058] The present invention is achieved by Figure 2 The installation positions of various acquisition devices are shown in the figure, including a rotation angle sensor 201 , a boom inclination sensor 202 , a dipper arm inclination sensor 203 , a bucket inclination sensor 204 , a weight sensor 205 , and a laser radar 206 .
[0059] The current operation data refers to the operation data corresponding to the current time point or the operation data corresponding to the current time period, and the current operation environment refers to the operation environment corresponding to the current time point or the operation environment corresponding to the current time period.
[0060] The current operation data includes any one or more of the current control signal, the current operation angle corresponding to the operation mechanism of the operation machine, and the current operation amount corresponding to the operation machine.
[0061] Step 102, based on the current operation data, point cloud data and a pre-trained action prediction model, obtain the probability distribution of the action that the operation machine needs to perform output by the action prediction model.
[0062] Among them, the action prediction model is trained based on the operation data samples, the point cloud data samples and the probability distribution samples of the actions performed by the operation machine under the operation data samples and the point cloud data samples.
[0063] Specifically, the current operation data and point cloud data can be input into the action prediction model to obtain the probability distribution of the action that the operation machine needs to perform output by the action prediction model. The current operation data and point cloud data can also be processed (processed according to the prescribed preset requirements) to obtain processed data, and the processed data is input into the action prediction model to obtain the probability distribution of the action that the operation machine needs to perform output by the action prediction model.
[0064] The type of probability distribution may be determined by an action prediction model. For example, the probability distribution may be a normal distribution, a binomial distribution, a Poisson distribution, or the like.
[0065] Step 103: determine the target action based on the probability distribution.
[0066] Step 104 : Generate a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0067] Specifically, different control signals correspond to different actions, and a correspondence between control signals and actions is created in advance. Then, based on the correspondence, a target control signal corresponding to the target action is determined, and the corresponding target control signal is output to each solenoid valve of the excavator to control any one or more of the actions of the excavator's rotation, boom, dipper arm and bucket.
[0068] The control method of the working machinery provided by the embodiment of the present invention obtains the probability distribution of the action that the working machinery needs to perform output by the action prediction model through the current working data, point cloud data and the pre-trained action prediction model; determines the target action from the obtained probability distribution. It can be seen that the present invention does not require the operator to perform demonstration operations and does not need to pay attention to the working environment. It can automatically and quickly obtain the target action that the working machinery needs to perform; then, generates a target control signal corresponding to the target action, so as to control the working machinery to perform the target action based on the target control signal to complete the working task. It can be seen that the entire control process does not require human participation, and the working machinery can be completed automatically, which can effectively improve the working efficiency and working effect, and can effectively save the working time.
[0069] In a specific embodiment, based on the current operation data, the point cloud data and the pre-trained action prediction model, the specific implementation of obtaining the probability distribution of the action that the operation machine needs to perform output by the action prediction model includes:
[0070] Based on the data requirements corresponding to the motion prediction model, the current operation data and point cloud data are processed respectively to obtain model input data; the model input data is input into the motion prediction model to obtain the probability distribution of the motion prediction model output.
[0071] Among them, based on the data requirements corresponding to the action prediction model, the current operation data and point cloud data are processed respectively to obtain the model input data and the above-mentioned processing of the current operation data and point cloud data (processing can be carried out according to the preset requirements) to obtain the processed data correspondence.
[0072] Specifically, in order to improve the accuracy and output efficiency of the probability distribution output by the motion prediction model, the format of the input data is standardized (data requirements). Based on the data requirements of the motion prediction model for input data, the current operation data and point cloud data are processed separately to obtain the model input data.
[0073] In order to improve the accuracy and efficiency of the output results of the motion prediction model, the present invention performs a preprocessing operation on the obtained current operation data and point cloud data so that the obtained model input data meets the data requirements of the motion prediction model.
[0074] In a specific embodiment, based on the data requirements corresponding to the action prediction model, the current operation data and the point cloud data are processed respectively to obtain the model input data, and the specific implementation includes:
[0075] Based on the preset reward and punishment strategy and current operation data, the reward and punishment values are determined; the point cloud data is converted into raster data; and the sequence consisting of the reward and punishment values, raster data, current operation angle and current control signal is determined as the model input data.
[0076] Specifically, the reward and punishment values are calculated for each operation of the excavator according to the preset reward and punishment strategy. The user can set each operation step according to their actual needs. For example, for excavation operation, one excavation cycle is considered as one operation step, and one excavation action is considered as one operation step; for leveling operation, one bulldozing is considered as one operation step; etc.
[0077] Specifically, the reward and punishment values are calculated using formula (1):
[0078]
[0079] Among them, R t represents the reward or punishment value, t represents the current time point (or the value corresponding to the start time point of a job), and T represents the value corresponding to the end time point of a job; r t represents the reward corresponding to the current time point, λ t Indicates the reward weight corresponding to the current time point.
[0080] Among them, the reward r corresponding to the current time step t Through formula (2), we get:
[0081] r t =α1 r1+α2 r2+α3 r3............(2)
[0082] Among them, α1, α2, and α3 represent the weights of each reward item, r1 represents the workload reward corresponding to the current step, r2 represents the constraint penalty corresponding to the current step during the operation process (obtained by processing the current operation data according to the specifications required by the user, for example, whether the excavator has a pressure holding problem, or for example, dynamic constraints. The specific constraint conditions can be pre-set by the user according to their actual needs, etc.), and r3 represents the time penalty corresponding to the current step (the specific time penalty measures can be pre-set by the user according to their actual needs, and then the current operation data is processed based on the pre-set penalty measures).
[0083] Among them, the above-mentioned constraint penalties and time penalty measures belong to reward and punishment strategies.
[0084] Specifically, the present invention converts dynamic point cloud data into static raster data, that is, converts three-dimensional data into two-dimensional data (the specific conversion method is the prior art and the present invention does not make specific limitations), providing an effective data basis for subsequent data processing and analysis.
[0085] Specifically, the format of the model input data is determined based on the pre-trained action prediction model, or based on the input data used when training the action prediction model. For example, it can be a binary, a triple, a quadruple, etc. (the user can set it according to his actual needs).
[0086] Below, a schematic explanation is given by taking the model input data as a triple sequence (indicated by the letter X) as an example:
[0087] X=(r t , a(t), s(t))
[0088] Among them, a(t) represents the current control signal, and s(t) represents the grid data corresponding to the current time point and the current operating angle.
[0089] Of course, s(t) can also include the current workload.
[0090] The present invention obtains model input data by processing the obtained current operation data and point cloud data, thereby providing an effective data basis for the action prediction model to quickly and accurately output probability distribution.
[0091] In a specific embodiment, determining the target action based on the probability distribution specifically includes:
[0092] The actions corresponding to the probability distribution are sampled to obtain the target points corresponding to the probability distribution; the actions corresponding to the target points in the probability distribution are determined as the target actions.
[0093] The following is an example of a normal probability distribution.
[0094] Specifically, for the model input data, the mean and standard deviation corresponding to the probability distribution are calculated; based on the obtained mean and standard deviation, the normal distribution is sampled to obtain the target point (a random variable belonging to the normal distribution).
[0095] Among them, the target point obtained from the total sampling of the normal distribution, the function is constructed according to the target point, the mean and the standard deviation, and the dependent variable of the function (the action corresponding to the probability distribution) satisfies the normal distribution corresponding to the mean and the standard deviation.
[0096] In a specific embodiment, the training process of the action prediction model includes:
[0097] Acquire a sample data set; based on the data requirements corresponding to the motion prediction model, process the sample data set to obtain a model input data sample; mask the data in the model input data sample used to characterize the motion of the operating machinery to obtain a sample of the data to be input; input the sample of the data to be input into the motion prediction model to obtain a predicted probability distribution of the motion prediction model output; optimize the motion prediction model based on the predicted probability distribution and the probability distribution sample until the motion prediction model converges to obtain a final motion prediction model.
[0098] Among them, the sample data set includes: operation data samples, point cloud data samples and probability distribution samples.
[0099] Specifically, a skilled operator operates the excavator to complete the task. During the task execution, control signal samples, working angle samples, point cloud data samples, working volume samples and other data are collected at a fixed frequency as sample data and stored in the sample data set.
[0100] Specifically, based on the above-mentioned method of processing the current operation data and the point cloud data to obtain the model input data, the sample data in the sample data set is processed to obtain the model input data samples.
[0101] Since the sample data collection process is continuous data obtained within a time period, the action performed by the excavator at the next moment is known for the current moment in the sample data. In order to solve the problem that the action prediction model knows the action to be performed at the next moment based on the sample data, the present invention performs mask processing on the model input data sample, that is, the action performed by the excavator at the next moment corresponding to the current moment (for the sample data) is masked to obtain the data sample to be input.
[0102] Specifically, the feature extraction model can be pre-trained, and the job data sample and the point cloud data sample can be input into the feature extraction model to obtain the triplet sample and mask output by the feature extraction model. Of course, in the application process, the output result of the feature extraction model is limited, and the current data sample and the point cloud data are input into the feature extraction model to obtain the triplet output by the feature extraction model.
[0103] Of course, the operation data samples and raster data samples (obtained by rasterizing the point cloud data samples) can also be input into the feature extraction model to obtain the triplet samples and masks output by the feature extraction model. During the application process, the output results of the feature extraction model are limited, and the current data samples and raster data are input into the feature extraction model to obtain the triplet output by the feature extraction model.
[0104] Specifically, after obtaining the triplet, the data in the triplet is normalized.
[0105] In the process of training the action prediction model, the present invention converts the three-dimensional point cloud data into two-dimensional raster data, which reduces the difficulty of subsequent work environment feature extraction, reduces the difficulty of action prediction model convergence, and can significantly improve the final mining performance. In addition, the feature extraction of the work environment in advance greatly reduces the dimension of the terrain data, which can be consistent with the dimension of the work data, so that the input dimension of the action prediction model will not be unbalanced. In addition, the use of sequences for model training retains the basic idea of reinforcement learning, and does not place excessive requirements on the quality and quantity of sample data collection, and can efficiently train high-quality models without a large amount of sample data.
[0106] In a specific embodiment, based on the predicted probability distribution and the probability distribution sample, the specific implementation of optimizing the action prediction model includes:
[0107] Calculate the log-likelihood and entropy corresponding to the predicted probability distribution and the probability distribution sample; calculate the iterative loss based on the log-likelihood and entropy; and back-propagate based on the iterative loss to update the model parameters of the action prediction model.
[0108] Specifically, the log-likelihood and entropy calculations are performed on the predicted probability distribution and the probability distribution samples, and the entropy is weighted by the regularization term to obtain the loss value (iteration loss) corresponding to this iteration. Based on the loss value, the weight value and regularization term and other model parameters of the action prediction model are updated by back propagation. Through a large number of samples, the action prediction model is iterated multiple times until the action prediction model converges to obtain the final action prediction model.
[0109] Specifically, after the action prediction model is obtained, it is deployed in the controller of the operating machine, and the dimension of its input data is kept consistent with that during training, and the action probability distribution is output. The output probability distribution is resampled to obtain the target action, and then the target action corresponding to the distribution of each operating mechanism is obtained by back-normalization, and a target control signal consistent with it is generated. The target control signal is output to each solenoid valve to control the operation of each structure of the operating machine to complete the operation task.
[0110] The present invention introduces regularized random entropy in the process of calculating the loss value, so that the action prediction model has a certain degree of randomness. The customization of randomness makes the action prediction model more generalized and robust, and can adapt to the dynamic changes of the working environment in continuous operations. For excavators, it can cover the actions of excavator rotation, excavation, unloading, and resetting, greatly improving the excavator's autonomous excavation ability without the need to divide the excavation task.
[0111] In a specific embodiment, in order to improve the training efficiency of the action prediction model, the present invention collects sample data of different data volumes for operating environments of different task difficulties. Determine the task difficulty corresponding to the current operating environment; collect sample data of the data volume corresponding to the task difficulty; and combine the collected sample data to obtain a sample data set.
[0112] Specifically, the task difficulty is determined by the operator, and the operating machine is then controlled to collect sample data of a data volume corresponding to the task difficulty. Of course, the present invention pre-configures a matching relationship between the task difficulty and the data volume of the sample data, and collects sample data of a data volume corresponding to the task difficulty based on the matching relationship.
[0113] Next, through Figure 3 The present invention is specifically described:
[0114] Step 301, collecting sample data.
[0115] Step 302: Process the sample data to obtain a model input data sample.
[0116] Step 303: input the model data sample and the mask into the action prediction model to obtain the predicted probability distribution output by the action prediction model.
[0117] Step 304 , based on the predicted probability distribution and the probability distribution samples, the motion prediction model is optimized until the motion prediction model converges to obtain a final motion prediction model.
[0118] Step 305, deploying the final motion prediction model in the controller of the operating machine.
[0119] Step 306, obtaining current operation data and point cloud data of the current operation environment.
[0120] Step 307: Process the current operation data and point cloud data to obtain model input data.
[0121] Step 308, input the model input data into the action prediction model to obtain the probability distribution of the action prediction model output.
[0122] Step 309: determine a target action based on the probability distribution, and control the working machine to perform the target action.
[0123] The present invention uses a pre-trained action prediction model to predict the probability distribution of the actions that the working machinery needs to perform, so as to determine the target action from the probability distribution and realize autonomous control of the working machinery, which can effectively improve the working efficiency and working effect and can effectively save the working time.
[0124] The control device of the working machine provided by the embodiment of the present invention is described below. The control device of the working machine described below and the control method of the working machine described above can be referred to each other, and the repeated parts will not be repeated. Figure 4 As shown, the device comprises:
[0125] An acquisition module 401 is used to acquire current operation data of the operation machine and point cloud data of the current operation environment corresponding to the operation machine;
[0126] A prediction module 402 is used to obtain the probability distribution of the action that the working machine needs to perform output by the action prediction model based on the current working data, the point cloud data and the pre-trained action prediction model, wherein the action prediction model is trained based on the working data samples, the point cloud data samples and the probability distribution samples of the actions performed by the working machine under the working data samples and the point cloud data samples;
[0127] A determination module 403, configured to determine a target action based on a probability distribution;
[0128] The control module 404 is used to generate a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0129] In a specific embodiment, the prediction module 402 is specifically used to process the current job data and point cloud data respectively based on the data requirements corresponding to the action prediction model to obtain model input data; input the model input data into the action prediction model to obtain the probability distribution of the action prediction model output.
[0130] In a specific embodiment, the current operating data includes: the current control signal and the current operating angle corresponding to the operating mechanism of the operating machine; the prediction module 402 is specifically used to determine the reward and punishment value based on the preset reward and punishment strategy and the current operating data; convert the point cloud data into raster data; and determine the sequence consisting of the reward and punishment value, raster data, the current operating angle and the current control signal as the model input data.
[0131] In a specific embodiment, the determination module 403 is specifically used to sample the action corresponding to the probability distribution to obtain the target point corresponding to the probability distribution; and determine the action corresponding to the target point in the probability distribution as the target action.
[0132] In a specific embodiment, the device further includes a training module for training the action prediction model. The training process of the action prediction model includes:
[0133] Acquire a sample data set, wherein the sample data set includes: work data samples, point cloud data samples and probability distribution samples; based on the data requirements corresponding to the motion prediction model, process the sample data set to obtain a model input data sample; mask the data in the model input data sample used to characterize the motion of the work machine to obtain a to-be-input data sample; input the to-be-input data sample into the motion prediction model to obtain a predicted probability distribution output by the motion prediction model; optimize the motion prediction model based on the predicted probability distribution and the probability distribution samples until the motion prediction model converges to obtain a final motion prediction model.
[0134] In a specific embodiment, the training module is specifically used to calculate the log-likelihood and entropy corresponding to the predicted probability distribution and the probability distribution sample; based on the log-likelihood and entropy, calculate the iterative loss; based on the iterative loss, back-propagate to update the model parameters of the action prediction model.
[0135] In a specific embodiment, the training module includes a collection submodule for determining the task difficulty corresponding to the current working environment; collecting sample data of a data volume corresponding to the task difficulty; and combining the collected sample data to obtain a sample data set.
[0136] An embodiment of the present invention further provides a working machine, including the control method of the working machine provided by any of the above embodiments.
[0137] In a specific embodiment, the working machine includes an excavator, a loader, etc.
[0138] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 communicate with each other through the communication bus 504. The processor 501 may call the logic instructions in the memory 503 to execute a control method for a working machine, the method comprising: obtaining current working data of the working machine and point cloud data of the current working environment corresponding to the working machine; obtaining the probability distribution of the action that the working machine needs to perform output by the action prediction model based on the current working data, the point cloud data and the pre-trained action prediction model, wherein the action prediction model is trained based on the working data samples, the point cloud data samples and the probability distribution samples of the actions performed by the working machine under the working data samples and the point cloud data samples; determining the target action based on the probability distribution; generating a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0139] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0140] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the control method of the working machine provided by the above-mentioned methods, and the method includes: acquiring the current working data of the working machine and the point cloud data of the current working environment corresponding to the working machine; based on the current working data, point cloud data and a pre-trained action prediction model, obtaining the probability distribution of the action that the working machine needs to perform output by the action prediction model, wherein the action prediction model is trained based on working data samples, point cloud data samples and probability distribution samples of the actions performed by the working machine under the working data samples and point cloud data samples; determining the target action based on the probability distribution; generating a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0141] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the control method of the working machine provided in the above-mentioned embodiments, the method comprising: acquiring current working data of the working machine and point cloud data of the current working environment corresponding to the working machine; based on the current working data, point cloud data and a pre-trained action prediction model, obtaining a probability distribution of an action that the working machine needs to perform output by the action prediction model, wherein the action prediction model is trained based on working data samples, point cloud data samples and probability distribution samples of the actions performed by the working machine under the working data samples and point cloud data samples; determining a target action based on the probability distribution; and generating a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
[0142] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling a working machine, characterized in that: include: Acquire current operation data of the operation machine and point cloud data of the current operation environment corresponding to the operation machine; Based on the current operation data, the point cloud data and a pre-trained action prediction model, a probability distribution of the action that the operation machine needs to perform output by the action prediction model is obtained, wherein the action prediction model is trained based on operation data samples, point cloud data samples and probability distribution samples of the action performed by the operation machine under the operation data samples and the point cloud data samples; determining a target action based on the probability distribution; A target control signal corresponding to the target action is generated, and the working machine is controlled to perform the target action based on the target control signal.
2. The control method of the working machine according to claim 1, characterized in that: The obtaining, based on the current operation data, the point cloud data and the pre-trained action prediction model, the probability distribution of the action that the operation machine needs to perform output by the action prediction model comprises: Based on the data requirements corresponding to the action prediction model, the current operation data and the point cloud data are processed respectively to obtain model input data; The model input data is input into the action prediction model to obtain the probability distribution output by the action prediction model.
3. The control method of the working machine according to claim 2, characterized in that: The current operation data includes: a current control signal and a current operation angle corresponding to the operation mechanism of the operation machine; The processing of the current operation data and the point cloud data based on the data requirements corresponding to the action prediction model to obtain model input data includes: Determining reward and punishment values based on a preset reward and punishment strategy and the current operation data; Converting the point cloud data into raster data; A sequence consisting of the reward and penalty value, the grid data, the current working angle and the current control signal is determined as the model input data.
4. The control method for a working machine according to any one of claims 1 to 3, characterized in that: The determining the target action based on the probability distribution comprises: Sampling the actions corresponding to the probability distribution to obtain the target points corresponding to the probability distribution; The action corresponding to the target point on the probability distribution is determined as the target action.
5. The control method for a working machine according to any one of claims 1 to 3, characterized in that: The training process of the action prediction model includes: Acquire a sample data set, wherein the sample data set includes: the operation data sample, the point cloud data sample and the probability distribution sample; Based on the data requirements corresponding to the action prediction model, processing the sample data set to obtain a model input data sample; Masking the data in the model input data sample used to characterize the action of the working machine to obtain a data sample to be input; The data sample to be input is input into the action prediction model to obtain the predicted probability distribution output by the action prediction model; based on the predicted probability distribution and the probability distribution sample, the action prediction model is optimized until the action prediction model converges to obtain the final action prediction model.
6. The control method of the working machine according to claim 5, characterized in that: The optimizing the action prediction model based on the predicted probability distribution and the probability distribution sample comprises: Calculating the log-likelihood and entropy corresponding to the predicted probability distribution and the probability distribution sample; Calculating an iterative loss based on the log-likelihood and the entropy; Based on the iterative loss, back propagation is performed to update model parameters of the action prediction model.
7. The control method of the working machine according to claim 5, characterized in that: The obtaining of the sample data set comprises: Determine the task difficulty corresponding to the current working environment; Collecting sample data of a data volume corresponding to the difficulty of the task; The collected sampling data are combined to obtain the sample data set.
8. A control device for an operating machine, characterized in that: include: An acquisition module, used to acquire current operation data of the operation machine and point cloud data of the current operation environment corresponding to the operation machine; A prediction module, configured to obtain, based on the current operation data, the point cloud data and a pre-trained action prediction model, a probability distribution of an action that the operation machine needs to perform output by the action prediction model, wherein the action prediction model is trained based on operation data samples, point cloud data samples and probability distribution samples of actions performed by the operation machine under the operation data samples and the point cloud data samples; A determination module, configured to determine a target action based on the probability distribution; A control module is used to generate a target control signal corresponding to the target action, so as to control the working machine to perform the target action based on the target control signal.
9. A working machine, characterized in that: Steps for implementing the control method of the working machine as described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the control method of the working machine according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Driving equipment decision making prediction method and device
CN108944947A
Method and device for controlling working machine, medium, and working machine
CN113774985A
Construction method, device and equipment for working plane of working machinery and working machinery
CN114002690A
Point cloud semantic segmentation method and device, electronic equipment and storage medium
CN117576395A
Wheel motor structure
KR102489491B1
