# US 2019/0227502 A1 · Machine learning device, servo motor controller, servo motor control system, and machine learning method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0227502 A1
- Document ID: US20190227502A1
- Status: Published application
- Kind: A1
- Application number: 16/243,657
- Filed: 2019-01-09
- Published: 2019-07-25
- Earliest claimed: 2018-01-25
- Assignees: Fanuc Corporation
- Applicants: Fanuc Corporation
- Inventors: Tsutomu NAKAMURA; Satoshi IKAI
- Web page: https://patentgrep.com/patent/US20190227502A1

## CPC

- G05B 13/0265: {the criterion being a learning criterion}
- G06N 20/00: Machine learning
- G05B 2219/42151: Learn dynamics of servomotor system by ann
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A machine learning device that performs machine learning with respect to a changing unit configured to change a parameter of a control unit configured to control a servo motor and a compensation value of at least one of a position command and a torque command includes: a state information acquisition unit configured to acquire state information including the position command, a positional error, a combination of the parameter and the compensation value; an action information output unit configured to output action information including adjustment information of the combination of the parameter and the compensation value included in the state information; a reward output unit configured to output a reward value of reinforcement learning based on the positional error included in the state information; and a value function updating unit configured to update a value function based on the value of the reward, the state information, and the action information.

## Claims

### Claim 1

A machine learning device that performs machine learning with respect to a servo motor controller including a changing unit configured to change a parameter of a control unit configured to control a servo motor on the basis of a position command and a compensation value of at least one of the position command and a torque command, the machine learning device comprising:
a state information acquisition unit configured to acquire, from the servo motor controller, state information including the position command, a servo state including at least a positional error, a combination of the parameter of the control unit and the compensation value by causing the servo motor controller to execute a predetermined program;
an action information output unit configured to output action information including adjustment information of the combination of the parameter and the compensation value which are included in the state information, to the servo motor controller;
a reward output unit configured to output a value of a reward of reinforcement learning based on the positional error included in the state information; and
a value function updating unit configured to update a value function on the basis of the value of the reward output by the reward output unit, the state information, and the action information.

### Claim 2 (depends on 1)

The machine learning device according to claim 1, wherein the reward output unit outputs the value of the reward on the basis of an absolute value of the positional error.

### Claim 3 (depends on 1)

The machine learning device according to claim 1, further comprising:
an optimization action information output unit configured to generate a combination of the parameter of the control unit and the compensation value of at least one of the position command and the torque command on the basis of the value function updated by the value function updating unit, and configured to output the combination to the changing unit.

### Claim 4 (depends on 1)

A servo motor control system comprising:
the machine learning device according to claim 1; a servo motor controller including a changing unit configured to change a parameter of a control unit configured to control a servo motor on the basis of a position command and a compensation value of at least one of the position command and a torque command; and a control target controlled by the servo motor controller.

### Claim 5 (depends on 4)

The servo motor control system according to claim 4, wherein
the control target includes a servo motor and a driver of which the rotation angle is controlled by the servo motor, and a load that a rotation shaft of the driver receives varies depending on the rotation angle.

### Claim 6 (depends on 4)

The servo motor control system according to claim 4, wherein
the control target includes a servo motor and a driver of which the position is controlled by the servo motor, and a load that the control target receives varies depending on the position.

### Claim 7 (depends on 5)

The servo motor control system according to claim 5, wherein the load changes with time.

### Claim 8 (depends on 6)

The servo motor control system according to claim 6, wherein the load changes with time.

### Claim 9 (depends on 4)

The servo motor control system according to claim 4, wherein
the control unit of the servo motor controller includes: a position control unit configured to generate a velocity command on the basis of the position command; a velocity control unit configured to generate the torque command on the basis of the velocity command output from the position control unit; and a filter configured to attenuate signals of frequencies in a predetermined frequency range of the torque command output from the velocity control unit, and
the changing unit changes a gain of at least one of the position control unit and the velocity control unit, a filter coefficient of the filter, and at least one of a torque offset value and a friction compensation value applied to the position command or the torque command, on the basis of the action information.

### Claim 10 (depends on 1)

A servo motor controller comprising:
the machine learning device according to claim 1; and a changing unit configured to change a parameter of a control unit configured to control a servo motor on the basis of a position command and a compensation value of at least one of the position command and a torque command, on the basis of the action information from the machine learning device.

### Claim 11

A machine learning method of a machine learning device that performs machine learning with respect to a servo motor controller including a changing unit configured to change a parameter of a control unit configured to control a servo motor on the basis of a position command and a compensation value of at least one of the position command and a torque command, the machine learning method comprising:
acquiring, from the servo motor controller, state information including the position command, a servo state including at least a positional error, a combination of the parameter of the control unit and the compensation value, by causing the servo motor controller to execute a predetermined program;
outputting, to the servo motor controller, action information including adjustment information of the combination of the parameter and the compensation value which are included in the state information; and
updating a value function on the basis of a value of a reward of reinforcement learning based on the positional error included in the state information, the state information, and the action information.
