Model creation device, model creation method, and model creation program

The model creation device uses Legendre polynomials to generate and process input signals, enabling precise parameter determination in linear system models.

JP2024115480AActive Publication Date: 2024-08-26NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023021208
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-14
Publication Date
2024-08-26
Estimated Expiration
2043-02-14

AI Technical Summary

Technical Problem

Conventional techniques face challenges in determining the parameters of a linear system model with high accuracy.

Method used

A model creation device that generates an input signal based on Legendre polynomials, calculates an output signal, and updates model parameters based on the relationship between the input and output signals using a calculating and updating section.

Benefits of technology

Enables accurate determination of linear system model parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115480000001
    Figure 2024115480000001
Patent Text Reader

Abstract

To obtain parameters of a model of a linear system with high accuracy.SOLUTION: A model creation device 10 includes a generating section 151, a calculation section 152, and an updating section 153. The generating section 151 generates input signals based on a LeJandre polynomial. The calculation section 152 inputs the input signals to a model of a linear system and calculates output signals. The updating section 153 updates parameters of the model based on a relationship between the input and output signals.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a model creating device, a model creating method, and a model creating program. [Background technology]

[0002] When controlling a motor or the like, a model of a linear system that the controlled object follows is created in advance. In addition, in creating the model, system identification is performed to find the parameters of the model (for example, see Non-Patent Document 1).

[0003] For example, the first-order lag system, which is a type of linear system, is widely used in motors, etc. Also, by determining the parameters of the first-order lag system, many types of control become possible.

[0004] System identification requires an algorithm to design input signals and find parameters. On the other hand, shifted and scaled Legendre polynomials have been proposed as Legendre polynomials suitable for expanding inputs to deep learning models (see, for example, Non-Patent Document 2). [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Lennart, Ljung. "System identification: theory for the user." Second edition, PTR Prentice Hall, Upper Saddle River (1999), p. 1 [Non-Patent Document 2] Gu, Albert, et al. "Hippo: Recurrent memory with optimal polynomial projections." Advances in Neural Information Processing Systems 33 (2020): 1474-1487. Summary of the Invention [Problem to be solved by the invention]

[0006] However, the conventional techniques have a problem in that the parameters of a linear system model may not be obtained with high accuracy. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems and achieve the object, the model creation device is characterized by having a generation unit that generates an input signal based on Legendre polynomials, a calculation unit that inputs the input signal to a linear system model to calculate an output signal, and an update unit that updates parameters of the model based on the relationship between the input signal and the output signal. Effect of the Invention

[0008] According to the present invention, the parameters of a linear system model can be determined with high accuracy. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a model creating device according to the first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a response of a first-order lag system. [Diagram 3] FIG. 3 is a diagram showing an example of a response of a first-order lag system. [Figure 4] FIG. 4 is a flowchart showing the flow of processing by the model generating device. [Diagram 5] FIG. 5 is a diagram illustrating an example of a computer that executes a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a model creating device, a model creating method, and a model creating program according to the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the following embodiments.

[0011] [Configuration of the first embodiment] The configuration of the model creation device according to the first embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of the configuration of the model creation device according to the first embodiment. The model creation device 10 creates a model of a linear system. In addition, since the model creation device 10 learns the model, it may be called a learning device.

[0012] The model creation device 10 obtains an output by inputting a specific signal into a model in a given initial state. Then, based on the relationship between the input and the output, a process of determining model parameters, i.e., system identification, is performed. The model creation device 10 can also output the determined parameters as parameters for constructing a created model.

[0013] As shown in FIG. 1, the model creating device 10 includes a communication unit 11, an input unit 12, an output unit 13, a storage unit 14, and a control unit 15.

[0014] The communication unit 11 performs data communication with other devices via a network. For example, the communication unit 11 is a network interface card (NIC).

[0015] The input unit 12 receives input of data. For example, the input unit 12 is an interface connected to input devices such as a mouse and a keyboard.

[0016] The output unit 13 outputs data. The output unit 13 is an interface connected to output devices such as a display and a speaker.

[0017] The storage unit 14 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc. The storage unit 14 may be a semiconductor memory in which data can be rewritten, such as a random access memory (RAM), a flash memory, or a non-volatile static random access memory (NVSRAM). The storage unit 14 stores an operating system (OS) and various programs executed by the model creating device 10.

[0018] The storage unit 14 stores model information 141. The model information 141 is parameters for constructing a model. For example, before system identification is performed, the model information 141 is parameters (initial values) of a model in an initial state. In system identification, the model information 141 is updated.

[0019] The control unit 15 controls the entire model creating device 10. The control unit 15 is, for example, an electronic circuit such as a central processing unit (CPU), a micro processing unit (MPU), or a graphics processing unit (GPU), or an integrated circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0020] The control unit 15 also has an internal memory for storing programs and control data that define various processing procedures, and executes each process using the internal memory. The control unit 15 also functions as various processing units by the operation of various programs. For example, the control unit 15 functions as a generating unit 151, a calculating unit 152, and an updating unit 153.

[0021] The generation unit 151 generates an input signal to be input to the model. The calculation unit 152 inputs the input signal to the model and obtains an output signal to be output by the model. The update unit 153 updates the parameters of the model based on the relationship between the input signal and the output signal.

[0022] Hereinafter, a detailed description will be given of the system identification performed by the generating unit 151, the calculating unit 152, and the updating unit 153. Note that in the notations in the following equations and drawings, capital bold letters represent matrices, lowercase bold letters represent column vectors, and row vectors are represented using transpose.

[0023] (Legendre polynomials) First, the Legendre polynomial used to generate the input signal will be described. The n-th order Legendre polynomial is expressed by equation (1).

[0024]

number

[0025] The Legendre polynomial shown in equation (1) is orthogonal in the interval [-1, 1] as shown in equation (2).

[0026]

number

[0027] The polynomial obtained by performing a variable transformation on equation (2) so that it is orthogonal on [0,T] is called a shifted and scaled Legendre polynomial. Equation (3) is a shifted and scaled Legendre polynomial.

[0028]

number

[0029] Specifically, formula (3) is calculated as formulas (4) and (5), where n, k, and r are integers.

[0030]

number

[0031]

number

[0032] However, α n,k , β k,r and γ n,k are expressed using binomial coefficients as equations (6), (7), and (8), respectively.

[0033]

number

[0034]

number

[0035]

number

[0036] Here, a continuous function f(t) can be expanded into an infinite sum of coefficients of Legendre polynomials, as shown in equation (9).

[0037]

number

[0038] Coefficient x in Eq. (9) n is calculated using equation (10).

[0039]

number

[0040] (Linear Systems) In this embodiment, system identification is performed for a continuous-time linear system with one input and one output. Such a linear system is expressed by the following equation (11) using an input signal u(t), an output signal y(t), and an impulse response g(t) at time t.

[0041]

number

[0042] (System identification of first-order lag systems using inputs consisting of Legendre polynomials) In the system identification of this embodiment, the above-mentioned Legendre polynomials are used. First, consider a case where the linear system is a first-order lag system as shown in equation (12). However, the subject of system identification according to the present invention is not limited to a first-order lag system.

[0043]

number

[0044] In this case, equation (11) becomes equation (13). That is, equation (13) represents a first-order lag system.

[0045]

number

[0046] By substituting equation (14) into the right hand side of equation (13), we obtain the recurrence formulas shown in equations (15) and (16).

[0047]

number

[0048]

number

[0049]

number

[0050] Here, from equation (17), equations (18) and (19) are obtained.

[0051]

number

[0052]

number

[0053]

number

[0054] When the input signal u(t) is an n-th order shifted and scaled Legendre polynomial expressed by equation (5), the output signal y(t) is expressed by equations (20) and (21) due to the linearity of the system.

[0055]

number

[0056]

number

[0057] where η and ζ are expressed as equations (22) and (23), respectively.

[0058]

number

[0059]

number

[0060] In this case, if the polynomial part on the right side of equation (21) is expanded using shifted and scaled Legendre polynomials, it is expressed as equation (24).

[0061]

number

[0062] Here, the coefficient ξn,r(a,p) in equation (24) is as shown in equation (25), where a and p are parameters of the model that is the target of system identification.

[0063]

number

[0064] As an example, the response of a first-order lag system when a single shifted and scaled Legendre polynomial from 0th to 2nd order is input is shown in Figure 2. Figure 2 shows an example of the response of a first-order lag system.

[0065] In this embodiment, as shown in equation (26), the input signal u(t) is converted into the coefficients c n The linear sum is multiplied by

[0066]

number

[0067] Moreover, from equation (24), the output signal y(t) of the system is as shown in equations (27) and (28).

[0068]

number

[0069]

number

[0070] Furthermore, let t be sufficiently large (t→∞), and e -pt = 0, the output signal y(t) is obtained as shown in equation (29).

[0071]

number

[0072] As an example, the response of a first-order lag system after a sufficient amount of time t has passed after inputting a single shifted and scaled Legendre polynomial from 0th order to 2nd order is shown in Figure 3. Figure 3 shows an example of the response of a first-order lag system.

[0073] The flow of processing for system identification of a first-order lag system will be described with reference to Fig. 4. Fig. 4 is a flowchart showing the flow of processing by the model creating device.

[0074] First, as shown in FIG. 4, the generating unit 151 generates an input signal u(t) from the sum of shifted and scaled Legendre polynomials (step S101). At this time, the generating unit 151 generates C n By setting an appropriate value for , it is possible to generate the input signal u(t). In this way, the generation unit 151 generates the input signal based on the Legendre polynomial.

[0075] Next, the calculation unit 152 inputs u(t) to the system, and obtains the output signal y(t) as shown in equation (29) (step S102). In this manner, the calculation unit 152 inputs the input signal to the linear system model and calculates the output signal.

[0076] Next, the update unit 153 calculates the Legendre polynomials ∼P of the output signal y(t) by using the equation (10). n (t) (directly above P) coefficient x n is calculated (step S103).

[0077] Here, the update unit 153 updates the coefficients x nand the system parameters (the coefficients in the parentheses of equation (29)) are used to obtain simultaneous equations (step S104). The update unit 153 can obtain, as the model parameters, solutions to the simultaneous equations obtained from the coefficients (equation (10)) of a continuous function expressed as the sum of an infinite number of integer multiples of the Legendre polynomial used in generating the input signal by the generating unit 151, and the coefficients (coefficients of equation (29)) included in the output signal.

[0078] This allows the model creating device 10 to realize system identification by solving simultaneous equations using the coefficients of the Legendre polynomials used for the input signals and the coefficients of the output signals.

[0079] Then, the update unit 153 solves the simultaneous equations and calculates the parameters (a, p) of the system (step S105). The update unit 153 may update the model information 141 with the calculated parameters (a, p), or may output the calculated parameters (a, p). The update unit 153 can update the parameters of the model based on the relationship between the input signal and the output signal.

[0080] The update unit 153 can use the Newton method as a method for solving the simultaneous equations. The update unit 153 may also solve the simultaneous equations using a method other than the Newton method.

[0081] (Identification of m-th order systems using inputs consisting of Legendre polynomials) More generally, consider a system whose impulse response is expressed by equation (30).

[0082]

number

[0083] This system is an m-th order system represented by the transfer function of equation (31). 1 ,…,p m are all positive real numbers, and m is an integer equal to or greater than 2.

[0084]

number

[0085] When the input of equation (26) is applied to this system, the output is as shown in equation (32), just like the first-order lag system.

[0086]

number

[0087] Furthermore, let t be sufficiently large (t→∞), and e -pt = 0, the output signal y(t) is obtained as shown in equation (33).

[0088]

number

[0089] Consider the identification of a system represented by the impulse response of Equation (30). Now, the calculation unit 152 applies the input signal of Equation (26) generated by the generation unit 151 to the system, and calculates the input / output data D={u(0), y(0), u(T s ),y(T s ),…,u((N d -1)Ts),y((N d -1),Ts)} is obtained, where T s is the sampling period, and N d is the data. Furthermore, equation (34) holds.

[0090]

number

[0091] The update unit 153 updates the system parameters a 1 ,p 1 ,…,a m ,p m Estimate.

[0092] The output signal y(t) of equation (33) is expanded in shifted and scaled Legendre polynomials to give N (t),…,~P 0 The coefficients of (t) are x N ,…,x 0 In this case, the update unit 153 updates the coefficient x N ,…,x 0 By comparing with each coefficient of equation (33), we obtain the simultaneous equations of equation (35).

[0093]

number

[0094] The unknowns in the simultaneous equations in Eq. (35) (a i ,p i ) is 2m, and the number of equations is N. If the input signal u(t) is designed so that equation (36) holds, the update unit 153 solves equation (35) to obtain the parameter a 1 ,p 1 ,…,a m ,p m can be obtained (estimated).

[0095]

number

[0096] Designing the input signal u(t) so that equation (36) holds may mean that generating unit 151 generates the input signal u(t) so as to satisfy equation (36).

[0097] (Identification of first-order lag systems using shifted and scaled Legendre polynomials up to second order) As a further example, the generating unit 151 generates, as the input signal u(t), the sum of shifted and scaled Legendre polynomials from the 0th order to the 2nd order, as shown in equations (37) and (38).

[0098]

number

[0099]

number

[0100] The calculation unit 152 calculates the output signal y(t), which is a response to input of the input signal u(t) shown in the equations (37) and (38) to a first-order lag system, as shown in the equation (28).

[0101] For example, the calculation unit 152 calculates c n =1, ∀ n The input u(t)=~P 2 (t)+~P 1 (t)+~P 0 (t) is applied to the system to obtain an output signal y(t).

[0102] The update unit 153 updates the coefficients x of the shifted scaled Legendre polynomial using the equation (10) for the obtained output signal y(t). n Request.

[0103] Each Legendre polynomial ~P 2 (t), ~P 1 (t), ~P 0 The coefficient of (t) is x 2 ,x 1 ,x 0 Then, the update unit 153 obtains the simultaneous equations of equation (39) from the relationship between the parameters of the first-order lag system in FIG. 3 and the coefficients of each Legendre polynomial.

[0104]

number

[0105] As shown in equation (39), there are three equations for two variables (a, p), so the update unit 153 can calculate the parameters (a, p) by solving the simultaneous equations in equation (39).

[0106] The update unit 153 can use the Newton method as a method for solving the simultaneous equations. The update unit 153 may also solve the simultaneous equations using a method other than the Newton method.

[0107] In this way, the calculation unit 152 can input an input signal to a linear system, or a model of a delay system of order 1 or higher (m-th order), and calculate an output signal. Then, the generation unit 151 generates an input signal based on a Legendre polynomial of order 1 or higher. At this time, the calculation unit 152 obtains a solution to a simultaneous equation including an equation of order plus 1 (m+1) as a parameter of the model.

[0108] In this way, the model creating device 10 can realize system identification of a first-order or second- or higher-order delay system by solving simultaneous equations.

[0109] [Advantages of the first embodiment] As described above, the generation unit 151 generates an input signal based on the Legendre polynomial. The calculation unit 152 inputs the input signal to a model of a linear system and calculates an output signal. The update unit 153 updates the parameters of the model based on the relationship between the input signal and the output signal. This allows the model creation device 10 to generate the input signal from the Legendre polynomial and obtain the parameters of the model of the linear system with high accuracy.

[0110] For example, the input signal and the output signal in a linear system are the current applied to a motor and the torque or rotation speed of the motor, respectively. In this case, the model can express the characteristics of the motor with respect to the current.

[0111] [System configuration, etc.] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of them can be functionally or physically distributed or integrated in any unit depending on various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.

[0112] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.

[0113] [program] As an embodiment, the model creating device 10 can be implemented by installing a program that executes the above learning process as package software or online software on a desired computer. For example, the above program can be executed by an information processing device, causing the information processing device to function as the model creating device 10. The information processing device here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), and even slate terminals such as PDA (Personal Digital Assistant), etc.

[0114] The model creation device 10 may also be implemented as a server device that provides services related to the above-mentioned processing to a client terminal device used by a user. For example, the server device is implemented as a server device that provides a service in which the parameters of the model before the update and the input signal are input, and the parameters of the model after the update are output. In this case, the server device may be implemented as a Web server, or may be implemented as a cloud that provides services related to the above-mentioned processing by outsourcing.

[0115] 5 is a diagram showing an example of a computer that executes a program. The computer 1000 includes, for example, a memory 1010 and a CPU 1020. The computer 1000 also includes a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0116] The memory 1010 includes a read only memory (ROM) 1011 and a random access memory (RAM) 1012. The ROM 1011 stores a boot program such as a basic input output system (BIOS). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.

[0117] The hard disk drive 1090 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process of the model creating device 10 is implemented as a program module 1093 in which computer-executable code is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for executing the same process as the functional configuration of the model creating device 10 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

[0118] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes the processing of the above-described embodiment.

[0119] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070. [Explanation of symbols]

[0120] 10 Model making equipment 11 Communications Department 12 Input section 13 Output section 14 Storage section 15 Control section 141 Model Information 151 Generation part 152 Calculation section 153 Update Department

Claims

1. A generator for generating an input signal based on the Legendre polynomial; A calculation unit for inputting the input signal into a model of a linear system to calculate an output signal; an update unit that updates parameters of the model based on a relationship between the input signal and the output signal; A model creating device comprising:

2. 2. The model creating device according to claim 1, wherein the calculation unit inputs the input signal into a model of a linear system, which is a first-order or second- or higher-order delay system, and calculates an output signal.

3. 2. The model creation device according to claim 1, wherein the update unit obtains, as parameters of the model, solutions of simultaneous equations obtained from coefficients of a continuous function expressed as a sum of an infinite number of integer multiples of the Legendre polynomial used in generating the input signal by the generation unit and coefficients included in the output signal.

4. The generating unit generates the input signal based on a Legendre polynomial of degree 1 or more; 4. The model creating device according to claim 3, wherein the update unit obtains a solution of the simultaneous equations including equations whose number is one greater than the degree as a parameter of the model.

5. A model creation method executed by a model creation device, comprising: A generation step of generating an input signal based on the Legendre polynomial; a calculation step of inputting the input signals to a model of a linear system to calculate an output signal; an updating step of updating parameters of the model based on a relationship between the input signal and the output signal; A model creation method comprising:

6. A generating step of generating an input signal based on the Legendre polynomial; a calculation step of inputting the input signals to a model of a linear system to calculate an output signal; an updating step of updating parameters of the model based on a relationship between the input signal and the output signal; A model creation program that causes a computer to execute the above steps.

Citation Information

Patent Citations

  • Control method and its device

    JP1993197401A

  • Control device

    JP2010019105A

  • Apparatus and method for optimizing control parameters of power plant

    US20210223749A1