Inference device, inference method, and learning device
The use of reinforcement learning-based inference and learning devices to optimize drive current control in electric motors addresses the inefficiencies of conventional methods, significantly reducing compressor vibration and noise by leveraging vibration-related data for improved motor control.
Patent Information
- Application Number
- PCT/JP2023/012959
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-03
AI Technical Summary
Conventional methods for controlling the drive current of electric motors in compressors fail to accurately minimize vibration and noise, leading to inefficiencies and errors due to reliance on predetermined calculation formulas and sensorless control, which can't accurately grasp the motor's rotation angle.
An inference device and learning device that use reinforcement learning to infer control data for the drive current based on state data, including vibration-related criteria, to optimize the drive current supplied to the electric motor, thereby reducing compressor vibration and noise.
The proposed solution effectively reduces compressor vibration and noise by generating control data that optimizes the drive current, improving the operational efficiency and accuracy of compressor control.
Smart Images

Figure JP2023012959_03102024_PF_FP_ABST
Abstract
Description
Inference device, inference method, and learning device
[0001] The present disclosure relates to an inference device that infers control data for controlling a drive current supplied to an electric motor of a compressor, an inference method that infers control data for controlling a drive current supplied to an electric motor of a compressor by a computer, and a learning device for performing reinforcement learning.
[0002] Conventionally, electric motors driven by a supplied current have been known. For example, Japanese Patent No. 7038931 (Patent Document 1) discloses a synchronous machine driven by a drive current supplied from a rotating machine control device. Such a rotating machine control device is configured to control the drive current in order to minimize the generation of excessive torque, the generation of pulsation, and the rise in DC bus voltage in the electric motor.
[0003] Patent No. 7038931
[0004] The synchronous machine disclosed in Japanese Patent No. 7038931 (Patent Document 1) is configured to minimize the generation of excessive torque, the generation of pulsation, and the rise in DC bus voltage. When a compressor equipped with such a synchronous machine is actually operated, there is a risk that the compressor will vibrate and make noise.
[0005] Conventionally, a control device is configured to control a motor using a drive current calculated based on a predetermined calculation formula (theoretical formula) to reduce compressor vibration and noise. However, even if the control device attempts to control the motor so as to minimize compressor vibration and noise using the drive current calculated based on the predetermined calculation formula (theoretical formula), the drive current calculated by the control device does not necessarily match the drive current that minimizes compressor vibration and noise. Furthermore, in the case of a control device that performs sensorless control without using a sensor to detect the rotation angle of the motor, the rotation angle of the motor cannot be accurately determined, so an error occurs between the drive current targeted by the control device and the drive current actually supplied to the motor. This error may result in ineffective reduction of compressor vibration and noise.
[0006] The present disclosure has been made to solve the above-mentioned problems, and aims to provide a technique for reducing vibration and noise of a compressor by controlling the drive current supplied to an electric motor.
[0007] An inference device according to the present disclosure infers control data for controlling a drive current supplied to an electric motor of a compressor. The inference device includes a data acquisition unit that acquires status data indicating the status of the electric motor, and an inference unit that infers the control data based on the status data acquired by the data acquisition unit using a trained model for inferring the control data based on the status data. The trained model is generated using a reward calculated based on a reward criterion. The reward criterion includes vibration-related data related to the vibration and noise of the compressor.
[0008] An inference method according to the present disclosure is an inference method for inferring control data for controlling a drive current supplied to an electric motor of a compressor by a computer. The inference method includes, as processing executed by the computer, a step of acquiring status data indicating a status of the electric motor, and a step of inferring the control data based on the status data acquired in the acquiring step, using a trained model for inferring the control data based on the status data. The trained model is generated using a reward calculated based on a reward criterion. The reward criterion includes vibration-related data related to the vibration and noise of the compressor.
[0009] A learning device according to the present disclosure is a learning device for performing reinforcement learning. The learning device includes a data acquisition unit that acquires control data for controlling a drive current supplied to an electric motor of a compressor and status data indicating the status of the electric motor, and a model generation unit that generates a trained model for inferring the control data based on the status data using learning data including the control data and the status data. The model generation unit includes a reward calculation unit that calculates a reward based on a reward criterion, and a function update unit that updates a function for inferring the control data based on the reward. The reward criterion includes vibration-related data related to the vibration and noise of the compressor.
[0010] According to the present disclosure, it is possible to infer control data for controlling the drive current supplied to the electric motor based on status data indicating the status of the electric motor using a trained model that has undergone reinforcement learning based on a reward criterion including vibration-related data related to compressor vibration and noise, and therefore it is possible to reduce compressor vibration and noise by controlling the drive current using the inferred control data.
[0011] 1 is a diagram illustrating the configuration of a compressor according to an embodiment; FIG. 2 is a diagram illustrating a cross section of an electric motor according to an embodiment; FIG. 3 is a diagram illustrating the configuration of an air conditioning system according to an embodiment; FIG. 4 is a diagram illustrating vibration of an electric motor in case 1 where the difference between the output torque of the electric motor and the load torque of the compressor is relatively large; FIG. 5 is a diagram illustrating vibration of an electric motor in case 2 where the difference between the output torque of the electric motor and the load torque of the compressor is relatively small; FIG. 6 is a diagram illustrating the difference between the vibration of the electric motor and the compressor in case 1 and the vibration of the electric motor and the compressor in case 2; FIG. 7 is a diagram illustrating an example where the rotation speed of the electric motor is 0; FIG. 8 is a diagram illustrating an example where the rotation speed of the electric motor follows the target rotation speed of the compressor; FIG. 9 is a diagram illustrating an overview of reinforcement learning; FIG. 10 is a diagram illustrating B1 (action), B2 (state), C (output), and D (reward criterion) in reinforcement learning according to an embodiment; FIG. 11 is a diagram illustrating the configuration of a learning device in a learning phase; FIG. 12 is a flowchart relating to processing executed by a learning device (control unit) in the learning phase; FIG. 13 is a diagram illustrating the configuration of an inference device in a utilization phase; FIG. 14 is a flowchart relating to processing executed by an inference device (control unit) in the utilization phase.
[0012] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. While multiple embodiments will be described below, it is anticipated from the beginning that the configurations described in each embodiment will be appropriately combined. Note that identical or corresponding parts in the drawings will be designated by the same reference numerals, and their description will not be repeated.
[0013] [Configuration of Compressor] A compressor 6 according to an embodiment will be described with reference to Figures 1 and 2. Figure 1 is a diagram showing the configuration of the compressor 6 according to an embodiment. In Figure 1, when the compressor 6 is viewed from the side, the direction transverse to the compressor 6 is defined as the X-axis direction, the direction longitudinal to the compressor 6 that is perpendicular to the X-axis is defined as the Y-axis direction, and the direction perpendicular to the X-axis and Y-axis is defined as the Z-axis direction. Figure 1 shows a longitudinal cross section of the compressor 6 when the compressor 6 is cut along the X-Y plane.
[0014] Various types of compressor 6 can be employed, and for example, a scroll type, a rotary type, a screw type, etc. can be employed as the compressor 6. The compressor 6 includes a housing 60, a compression mechanism 62 for compressing a refrigerant (for example, a refrigerant gas), an electric motor 61 for supplying power to the compression mechanism 62 for compressing the refrigerant, a glass terminal 67 for supplying power to the electric motor 61, a discharge pipe 66 for discharging the refrigerant compressed by the compressor 6 from inside the housing 60, and an accumulator 63 for drawing the refrigerant into the compressor 6.
[0015] The housing 60 accommodates the electric motor 61 and the compression mechanism 62. The electric motor 61 is fixed in the housing 60 by press fitting or shrink fitting. Note that the stator 611 (described later) of the electric motor 61 may be directly attached to the housing 60 by welding. The compression mechanism 62 is disposed below the electric motor 61 within the housing 60. Refrigerant oil is stored at the bottom of the housing 60 to lubricate sliding parts such as a rolling piston 622 (described later). The compression mechanism 62 is connected to a shaft 613 of the electric motor 61. A glass terminal 67 is fixed to the housing 60. The discharge pipe 66 is joined to the housing 60 by welding.
[0016] The accumulator 63 includes a container 68, a suction pipe 64 through which refrigerant is drawn into the container 68, and a supply pipe 65 through which refrigerant is supplied to the compression mechanism 62. The suction pipe 64 and the supply pipe 65 are joined by welding to the container 68. Furthermore, the container 68 of the accumulator 63 is joined by welding to the outer peripheral surface of the housing 60 that houses the electric motor 61 and the compression mechanism 62.
[0017] Fig. 2 is a cross-sectional view of an electric motor 61 according to an embodiment of the present invention, showing a cross section of the electric motor 61 taken along the XZ plane at line AA' shown in Fig. 1.
[0018] As shown in FIG. 2 , the electric motor 61 includes a stator 611 , a rotor 612 , and a shaft 613 .
[0019] The stator 611 is formed of an iron core or a coil, and has a circular or nearly circular cross section. The stator 611 is configured by fastening electromagnetic steel plates having a predetermined thickness stacked in the Y-axis direction using caulking or the like. The stator 611 is formed in an annular shape centered in the axial direction, and a central hole 619 having a circular cross section for disposing the rotor 612 is formed in the center of the stator 611. The rotor 612, which rotates around the Y-axis direction, is disposed in the central hole 619 of the stator 611. The rotor 612 is rotatable in the central hole 619 formed in the stator 611 in a direction along the X-Z plane, around the Y-axis direction.
[0020] Furthermore, a plurality of slots 614 are formed in the stator 611 along the circumferential direction. A winding 615 is attached to each of the plurality of slots 614. Driving power for driving the electric motor 61 is supplied to the winding 615 via glass terminals 67. The winding 615 is attached to the stator 611 by a well-known winding method such as a distributed winding method or a concentrated winding method, and the method of attaching the winding 615 is not particularly limited.
[0021] The rotor 612 has a circular or nearly circular cross section. The rotor 612 is formed by laminating electromagnetic steel sheets of a predetermined thickness in the Y-axis direction and fastening them together using caulking, rivets, or the like. The rotor 612 is disposed inside the stator 611 so as to fit into the central hole 619 without contacting the stator 611. A shaft hole 616 having a circular cross section is formed in the center of the rotor 612 along the Y-axis direction, through which the shaft 613 passes. The rotor 612 also has a plurality of air holes 617 formed surrounding the shaft hole 616. A plurality of permanent magnets 618 are provided outside the plurality of air holes 617. In the electric motor 61 shown in FIG. 2 , six permanent magnets 618 are disposed at equal intervals of 60 degrees around the circumferential direction of the rotor 612.
[0022] The electric motor 61 is not limited to an interior permanent magnet (IPM) motor in which the permanent magnet 618 is embedded inside the rotor 612, but may be a surface permanent magnet (SPM) motor in which the permanent magnet 618 is attached to the outer surface of the rotor 612, or a motor having another configuration.
[0023] [Operation of the Compressor] In the compressor 6 configured as described above, when a current flows through the windings 615 of the stator 611 of the electric motor 61 due to the driving power supplied from the glass terminal 67, a rotating magnetic field is generated in the stator 611. The permanent magnets 618 are attracted to the rotating magnetic field generated in the stator 611, causing the rotor 612 to rotate. As the rotor 612 rotates, the shaft 613 inserted in the rotor 612 rotates. The number of rotations, rotational speed (rotation angle per unit time), and output torque of the rotor 612 change depending on the driving power (driving current) supplied to the electric motor 61. The rotational force of the shaft 613 is transmitted to the rolling piston 622, causing the rolling piston 622 to rotate eccentrically along the inner circumferential surface of the cylinder 621.
[0024] The refrigerant sucked by the accumulator 63 is supplied to the compression mechanism 62 via a supply pipe 65. In the compression mechanism 62, the refrigerant is compressed by the rotation of the rolling piston 622. Specifically, in the compression mechanism 62, the suction side and compression side regions are formed by the outer circumferential surface of the rolling piston 622 contacting the inner circumferential surface of the cylinder 621 and the tips of the vanes, respectively. The compressed refrigerant is discharged from the compression side region and passes through the upper muffler 624A to rise inside the housing 60. Refrigerating machine oil is mixed into the compressed refrigerant.
[0025] The mixture of compressed refrigerant and refrigerating machine oil is separated into the compressed refrigerant and the refrigerating machine oil when passing through air holes 617 formed in rotor 612. This prevents the refrigerating machine oil from flowing into discharge pipe 66. The compressed refrigerant separated from the refrigerating machine oil is supplied through discharge pipe 66 to the high-pressure side of the refrigerant circuit in which the refrigerant circulates.
[0026] [Configuration of Air Conditioning System] The configuration of an air conditioning system 1000 according to an embodiment will be described with reference to Fig. 3. Fig. 3 is a diagram showing the configuration of the air conditioning system 1000 according to an embodiment. As shown in Fig. 3, the air conditioning system 1000 includes an air conditioner 1 and an inference device 10.
[0027] The air conditioner 1 includes a compressor 6, a drive circuit 601, a power supply circuit 602, a control device 100, a temperature sensor 83, and a humidity sensor 84. The compressor 6 includes an electric motor 61 illustrated in FIG.
[0028] The drive circuit 601 supplies drive power (drive current) to the glass terminal 67 of the electric motor 61 using power supply power supplied from the power supply circuit 602 based on control data (control command values) from the control device 100. The power supply circuit 602 transforms power supplied from a battery (not shown) and supplies the power supply power to the drive circuit 601.
[0029] The temperature sensor 83 measures the temperature of the target space that is the target of air conditioning (hereinafter also referred to as the "indoor temperature"). Data indicating the indoor temperature measured by the temperature sensor 83 is acquired by the control device 100. The humidity sensor 84 measures the humidity of the target space (hereinafter also referred to as the "indoor humidity"). Data indicating the indoor humidity measured by the humidity sensor 84 is acquired by the control device 100.
[0030] The control device 100 is a computing entity that executes various programs to control the drive current supplied from the drive circuit 601 to the electric motor 61. The control device 100 may be provided in the outdoor unit, the indoor unit, or a location other than the outdoor unit or the indoor unit.
[0031] The control device 100 is configured with a computer such as a processor. The processor may be, for example, a microcontroller, a central processing unit (CPU), or a microprocessing unit (MPU). The processor has the function of executing various processes by executing programs, but some or all of these functions may be implemented using dedicated hardware circuits such as an application-specific integrated circuit (ASIC), a graphics processing unit (GPU), or a field-programmable gate array (FPGA). The term "processor" is not limited to a processor in the narrow sense that executes processes using stored programs, such as a CPU or MPU, but may also include hardwired circuits such as an ASIC, GPU, or FPGA. Therefore, the term "processor" can also be interpreted as processing circuitry whose processes are predefined by computer-readable code and / or hardwired circuits. The processor may be configured on a single chip or multiple chips. Furthermore, the processor and associated processing circuits may be configured on multiple computers interconnected by wire or wirelessly via a local area network or a wireless network. The processor and associated processing circuitry may be configured as a cloud computer that performs computations remotely based on input data and outputs the results of the computations to other devices at remote locations.
[0032] Furthermore, the control device 100 may include a storage unit for storing program code, work memory, etc., when the processor executes various programs. The storage unit may be one or more non-transitory computer-readable media. Examples of the storage unit include volatile memory such as dynamic random access memory (DRAM) and static random access memory (SRAM), or non-volatile memory such as read-only memory (ROM) and flash memory. The storage unit may also be one or more computer-readable storage media. Examples of the storage unit include storage devices such as hard disk drives (HDDs) and solid-state drives (SSDs).
[0033] [Control of Drive Current by Control Device] Here, the control of drive current by control device 100 will be described. The output torque of electric motor 61 can be calculated by converting the input drive current, for example, a three-phase AC current having u-axis, v-axis, and w-axis, into a coordinate system of d-axis and q-axis. A predetermined calculation formula (theoretical formula) that defines the relationship between the output torque of the electric motor, the d-axis current, and the q-axis current is shown in the following formula (1).
[0034]
[0035] In equation (1), T is the output torque of the motor 61, p is the number of pole pairs of the permanent magnet 618, Φ is the induced voltage constant, i d is the d-axis current supplied to the motor 61, i q is the q-axis current supplied to the motor 61, L d is the d-axis inductance, and L q and q-axis inductance, respectively.
[0036] d-axis current i d is expressed by the following equation (2). Also, the d-axis current i q is expressed by the following equation (3).
[0037]
[0038]
[0039] In formula (2) and formula (3), I a indicates the amplitude of the drive current, and β indicates the phase of the drive current.
[0040] As shown in equation (1), the output torque T of the electric motor 61 is determined by the amplitude I of the drive current supplied to the electric motor 61. a and phase β. The amplitude I a is an index value indicating the magnitude of the drive current supplied to the motor 61. The phase β of the drive current is a value indicating the phase relationship of the current waveform with respect to the rotation angle of the rotor 612.
[0041] When the output torque T is determined, the control device 100 uses the formula (1) to calculate the amplitude I of the drive current for calculating the output torque T. a and phase β are determined as control data. However, the motor 61 will not drive unless the sum of the induced voltage generated in the motor 61 and the voltage consumed in the drive circuit 601 falls below the bus voltage of the drive power supplied to the motor 61 from the drive circuit 601. For this reason, the control device 100 determines the control data (amplitude I a and phase β, etc.) must be determined.
[0042]
[0043] In equation (4), R is the winding resistance of the winding 615, Φ is the induced voltage constant, i d is the d-axis current supplied to the motor 61, i q is the q-axis current supplied to the motor 61, L d is the d-axis inductance, L q is the q-axis inductance, ω is the rotation speed of the rotor 612, and V om and ωΦ correspond to the induced voltage.
[0044] In this way, the control device 100 calculates the amplitude I of the drive current in accordance with a specific output torque T based on the predetermined calculation formulas (theoretical formulas) (1) to (4). a The control circuit 100 determines the amplitude I of the drive current, which is determined by the control device 100, and the frequency of the drive current that affects the rotation speed of the rotor 612. The control circuit 100 outputs these determined control parameters to the drive circuit 601 as control data, thereby controlling the drive current supplied to the motor 61. As a result, the rotation speed and output torque of the motor 61 are controlled by the amplitude I of the drive current, which is determined by the control device 100. a , the phase β of the drive current, and the frequency of the drive current.
[0045] As described above, the compressor 6 is configured to compress the refrigerant by rotating the rolling piston 622 of the compression mechanism 62 in accordance with the rotor 612 of the electric motor 61. The refrigerant compression capacity of the compressor 6 is determined by the amount of refrigerant discharged per rotation of the rolling piston 622 in the compression mechanism 62 and the rotation speed. The operating state of the compressor 6 can be expressed by the target rotation speed of the rolling piston 622 and the actual rotation speed (hereinafter also referred to as the "actual rotation speed") when the rolling piston 622 is actually rotating. In other words, the operating state of the electric motor 61 can be expressed by the target rotation speed of the rotor 612 and the actual rotation speed (actual rotation speed) when the rotor 612 is actually rotating.
[0046] For example, if it is desired to operate the compressor 6 at 60 rps, and the electric motor 61 rotates at 30 rps, the actual rotation speed of the compressor 6 will not reach the target rotation speed, and the compressor 6 will not be able to perform its role sufficiently. a By controlling the drive current supplied to the motor 61 using control data such as the phase β of the drive current and the frequency of the drive current, the rotation of the motor 61 is controlled so that the actual rotation speed of the compressor 6 reaches the target rotation speed.
[0047] [Vibration and Noise of Compressor (Electric Motor)] Vibration and noise of the compressor 6 (electric motor 61) will be described with reference to FIGS. 4 to 8. The compressor 6 compresses and discharges the refrigerant in the compression mechanism 62, so the load torque applied to the compressor 6 is not constant. For example, the required load torque increases as the refrigerant is compressed, and decreases as soon as the refrigerant is discharged from the compression mechanism 62. Furthermore, the difference between the load torque of the compressor 6 and the output torque of the electric motor 61 causes pulsation in the rotation speed of the electric motor 61 (hereinafter also referred to as "rotation speed pulsation"). The rotation speed pulsation caused by the difference between the load torque of the compressor 6 and the output torque of the electric motor 61 will be described below with reference to the drawings.
[0048] FIG. 4 is a diagram illustrating vibration of the electric motor 61 in Case 1, in which the difference between the output torque of the electric motor 61 and the load torque of the compressor 6 is relatively large. As shown in FIG. 4 , when the output torque of the electric motor 61 is constant, a difference occurs between the load torque of the compressor 6 and the output torque of the electric motor 61. When the load torque of the compressor 6 is greater than the output torque of the electric motor 61, the rotation speed of the electric motor 61 decreases, causing the electric motor 61 to decelerate. When the load torque of the compressor 6 is smaller than the output torque of the electric motor 61, the rotation speed of the electric motor 61 increases, causing the electric motor 61 to accelerate. Such acceleration and deceleration of the electric motor 61 (i.e., fluctuations in the rotation speed of the electric motor 61) is rotation speed pulsation. The rotation speed pulsation of the electric motor 61 leads to vibration and noise of the electric motor 61, and ultimately to vibration and noise of the compressor 6.
[0049] In order to minimize the occurrence of rotation speed pulsation as described above and reduce vibration and noise of the compressor, the control device 100 is configured to control the electric motor 61 using a drive current calculated based on predetermined calculation formulas (theoretical formulas) (1) to (4). Figure 5 is a diagram for explaining the vibration of the electric motor 61 in Case 2, in which the difference between the output torque of the electric motor 61 and the load torque of the compressor 6 is relatively small. As shown in Figure 5, the output torque of the electric motor 61 changes in accordance with the load torque of the compressor 6, thereby making it possible to reduce the difference between the load torque of the compressor 6 and the output torque of the electric motor 61.
[0050] However, even when the difference between the load torque of the compressor 6 and the output torque of the electric motor 61 is minimum, that is, when the rotation speed pulsation is minimum, the vibration and noise of the compressor 6 are not necessarily minimum. This is because even when the rotation speed pulsation is minimum, if the pulsation period matches the natural frequency of the compressor 6, the vibration and noise of the compressor 6 will increase.
[0051] For example, FIG. 6 is a diagram illustrating the difference between the vibration of the electric motor 61 and the compressor 6 in Case 1 and the vibration of the electric motor 61 and the compressor 6 in Case 2. As shown in FIG. 6 , assume that the electric motor 61 vibrates at a frequency f1 in Case 1, the electric motor 61 vibrates at a frequency f2 in Case 2, and the compressor 6 vibrates at a natural frequency f0 in both Cases 1 and 2. Furthermore, assume that the frequency f1 in Case 1 does not match the frequency f0 of the compressor 6, while the frequency f2 in Case 2 matches the frequency f0 of the compressor 6. In such a case, the vibration of the electric motor 61 in Case 2 is smaller than the vibration of the electric motor 61 in Case 1. However, due to the addition of the natural vibration of the compressor 6, the combined vibration of the electric motor 61 and the compressor 6 in Case 2 is greater than the combined vibration of the electric motor 61 and the compressor 6 in Case 1. As a result, the vibration and noise of the compressor 6 in Case 2 are greater than the vibration and noise of the compressor 6 in Case 1.
[0052] It should be noted that the vibration caused by the rotation speed pulsation is not limited to vibration in the circumferential direction of the compressor 6, but also vibration in the radial direction of the compressor 6. If the drive current is changed slightly in an attempt to make the output torque of the motor 61 completely follow the load torque of the compressor 6, it is conceivable that the vibration in the radial direction of the compressor 6 will increase.
[0053] Furthermore, as the drive current calculated based on the predetermined calculation formulas (theoretical formulas) of formulas (1) to (4), a value calculated under limited operating conditions before shipping the air conditioner 1 is used, but in this case, an estimated value is used under conditions other than the operating conditions. Such an estimated value may deviate slightly from the optimum point of the drive current. One factor that causes the estimated value to deviate from the optimum point is that when the air conditioner 1 is installed after shipping, the inductance (d-axis inductance L d , q-axis inductance L q ) may change. The inductance of the motor 61 depends nonlinearly on the drive current input to the motor 61. Furthermore, the tendency of the inductance dependency of the motor 61 changes depending on the shape of the motor 61, so it is difficult to accurately estimate the inductance of the motor 61 before shipping. Furthermore, the control data determined by operation before shipping may deviate from the optimal value due to differences between the ambient environment during operation adjustment performed after shipping and the ambient environment during product use. For example, if the ambient temperature changes during product use, the resistance of circuit elements mounted on the drive circuit 601, power supply circuit 602, etc. will also change.
[0054] Furthermore, if the rotation speed of the electric motor 61 is set to zero, rotation speed pulsation of the electric motor 61, which leads to vibration and noise of the compressor 6, can be eliminated. For example, FIG. 7 is a diagram illustrating an example in which the rotation speed of the electric motor 61 is zero. As shown in FIG. 7, rotation speed pulsation occurs while the electric motor 61 is rotating in accordance with the target rotation speed of the compressor 6, but no rotation speed pulsation occurs while the rotation speed of the electric motor 61 is zero. In other words, if the rotation speed of the electric motor 61 is set to zero, vibration and noise of the compressor 6 do not occur, but the rotation speed of the electric motor 61 does not follow the target rotation speed of the compressor 6, so the compressor 6 does not function optimally. On the other hand, FIG. 8 is a diagram illustrating an example in which the rotation speed of the electric motor 61 follows the target rotation speed of the compressor 6. As shown in FIG. 8, optimal function of the compressor 6 is premised on the target rotation speed of the compressor 6 being close to the rotation speed of the electric motor 61.
[0055] In this way, even if the control device 100 attempts to control the electric motor 61 so as to minimize the vibration and noise of the compressor 6 using the drive current calculated based on the predetermined calculation formulas (theoretical formulas) of formulas (1) to (4), the drive current calculated by the control device 100 does not necessarily match the drive current that minimizes the vibration and noise of the compressor 6.
[0056] Furthermore, the control device 100 does not include a sensor for detecting the rotation angle of the rotor 612 of the electric motor 61. Instead, the control device 100 estimates the rotation angle of the rotor 612 using sensorless control based on a predetermined calculation formula (theoretical formula) (not shown). Examples of the predetermined calculation formula (theoretical formula) for estimating the rotation angle of the rotor 612 include an induced voltage utilization method that estimates the rotation angle based on observed values of induced voltage, and a saliency utilization method that estimates the rotation angle based on data on the magnetic saliency of the electric motor 61. When the rotation angle of the rotor 612 is estimated using sensorless control, errors are likely to occur in the rotation angle estimation, making it difficult for the control device 100 to accurately calculate the rotation angle. For example, in the induced voltage utilization method, the accuracy of the rotation angle estimation is known to deteriorate in the low rotation speed range where induced voltage is hardly generated. In addition, in the saliency utilization method, the accuracy of the rotation angle estimation is known to deteriorate in the medium rotation speed range or higher because it becomes difficult to observe saliency.
[0057] Therefore, in the case of a control device 100 that performs sensorless control, the rotation angle of the electric motor 61 cannot be accurately grasped, and an error occurs between the drive current targeted by the control device 100 and the drive current actually supplied to the electric motor 61, and there is a risk that the vibration and noise of the compressor 6 will not be reduced due to this error.
[0058] Therefore, the present disclosure provides an inference device 10 that uses AI (Artificial Intelligence) to infer control data for controlling a drive current that effectively reduces vibration and noise of the compressor 6 while allowing the compressor 6 to function optimally.
[0059] [Inference Device] An inference device 10 according to an embodiment will be described with reference to Fig. 3. As shown in Fig. 3, the inference device 10 is communicatively connected to the control device 100 of the air conditioner 1, and together with the air conditioner 1, constitutes an air conditioning system 1000. The inference device 10 has, as its main functional components, a control unit 11, a storage unit 12, and an input / output unit 13.
[0060] The control unit 11 is a computing entity that executes various programs to infer control data for controlling the drive power. The control unit 11 is composed of a computer such as a processor. The processor may be, for example, a microcontroller, a CPU, or an MPU. The processor has the function of executing various processes by executing programs, but some or all of these functions may be implemented using dedicated hardware circuits such as an ASIC, a GPU, or an FPGA. The term "processor" is not limited to a processor in the narrow sense that executes processes using stored programs, such as a CPU or an MPU, but may also include hardwired circuits such as an ASIC, a GPU, or an FPGA. Therefore, the term "processor" can also be interpreted as a processing circuitry in which processes are predefined by computer-readable code and / or hardwired circuits. The processor may be composed of a single chip or multiple chips. Furthermore, the processor and related processing circuits may be composed of multiple computers interconnected by wire or wirelessly via a local area network or a wireless network. The processor and associated processing circuitry may be configured as a cloud computer that performs computations remotely based on input data and outputs the results of the computations to other devices at remote locations.
[0061] The memory unit 12 provides a storage area for storing program code, work memory, etc. when the control unit 11 executes various programs. The memory unit 12 may be one or more non-transitory computer readable media. Examples of the memory unit 12 include volatile memories such as DRAM and SRAM, and non-volatile memories such as ROM and flash memory. The memory unit 12 may also be one or more computer readable storage media. Examples of the memory unit 12 include storage devices such as HDDs and SSDs.
[0062] The input / output unit 13 is an output interface that outputs the control data inferred by the control unit 11 to the control device 100 of the air conditioner 1. The input / output unit 13 is also an input interface that acquires, from the control device 100 of the air conditioner 1, status data that indicates the status of the electric motor 61, which is necessary for the control unit 11 to infer the control data.
[0063] The control unit 11 includes a data acquisition unit 111 , a model generation unit 112 , an inference unit 113 , and a presentation unit 114 .
[0064] The data acquisition unit 111 acquires status data indicating the status of the electric motor 61 from the control device 100 via the input / output unit 13. The model generation unit 112 generates a trained model 20 (described later) for inferring the control data based on the status data, using learning data 30 (described later) including the control data and status data acquired from the electric motor 61 driven based on the control data. The inference unit 113 uses the trained model 20 to infer the control data based on the status data.
[0065] The presentation unit 114 presents to the user information relating to the driving of the electric motor 61 based on the control data inferred by the inference unit 113. For example, the presentation unit 114 outputs presentation data to the display device 500 via the input / output unit 13 to present information indicating that the electric motor 61, the compressor 6, or the air conditioner 1 is being controlled based on the control data inferred by the inference device 10, or to present the effect of controlling the electric motor 61, the compressor 6, or the air conditioner 1 based on the control data inferred by the inference device 10. The display device 500 may display the effect obtained by using the inference device 10, for example, by displaying estimated values of vibration and noise that have been reduced by using the inference device 10, as the effect of controlling the electric motor 61, the compressor 6, or the air conditioner 1, based on the presentation data.
[0066] In this way, the inference device 10 can encourage users to use the inference device 10 by informing them that the electric motor 61, the compressor 6, or the air conditioner 1 is being controlled based on the control data inferred by the inference device 10, or by informing them of the effect of controlling the electric motor 61, the compressor 6, or the air conditioner 1 based on the control data inferred by the inference device 10. The process by which the inference device 10 determines the control data for the electric motor 61 is likely to become a black box, but by notifying the user as described above, the user can determine the effect of the inference device 10 based on the operating results of the electric motor 61 or the air conditioner 1, and it is possible to ensure that the inference device 10 is being operated appropriately.
[0067] The display device 500 is configured to be able to communicate with the inference device 10 via a network. The display device 500 is an information terminal used by a user of the air conditioner 1. The display device 500 may be implemented as a general-purpose computer, or as a dedicated computer for controlling the air conditioner 1. For example, the display device 500 may be an information terminal that executes predetermined information processing, such as a desktop personal computer (PC), a laptop PC, a smartphone, a smartwatch, a wearable device, a tablet PC, or a remote controller installed in a building. The display device 500 may be mounted on the same device as the inference device 10 or the control device 100.
[0068] 9 to 13, an example of application of the inference device 10 in the learning phase will be described. As described above, the inference device 10 is configured to infer, based on status data indicating the status of the electric motor 61, control data for controlling the drive current so as to effectively reduce vibration and noise of the compressor 6 while optimally functioning the compressor 6. To achieve this inference, the inference device 10 performs reinforcement learning using AI.
[0069] 9 and 10 are diagrams for explaining an overview of reinforcement learning. As shown in FIG. 9, in reinforcement learning, an agent (acting subject) in a certain environment observes the current state (environmental parameters) and determines the action to be taken based on a policy. A policy is a rule for determining an action, and optimizing the policy optimizes the selection of an action. The environment dynamically changes depending on the agent's actions, and the agent is given a reward based on a reward criterion in response to the environmental changes. The agent repeats such actions and learns the action that will obtain the most reward through a series of actions. In FIG. 9, the current state is represented by B2 (state), the agent's action is represented by B1 (action), and the reward criterion is represented by D (reward criterion).
[0070] Q-learning and TD-learning are well-known as representative reinforcement learning methods. For example, in the case of Q-learning, the general update formula for the action value function Q(s, a) is expressed as the following formula (5):
[0071]
[0072] In formula (5), s t is the state of the environment at time t, and a t indicates the action at time t. t Therefore, the state is s t+1 It changes to r t+1 indicates the reward that the agent can receive depending on the change in state, γ indicates the discount rate, and α indicates the learning coefficient. Note that γ is in the range of 0<γ≦1, and α is in the range of 0<α≦1. B1 (action) is action a t and B2 (state) is state s t and the state s at time t t Best action in a t is learned.
[0073] In equation (5), if the action value function Q of the action a with the highest Q value at time t+1 is larger than the action value function Q of the action a executed at time t, the action value function Q is increased; conversely, the action value function Q is decreased. In other words, the action value function Q(s, a) is updated so that the action value function Q of the action a at time t approaches the best action value at time t+1. This allows the best action value in a certain environment to be propagated sequentially to the action value in the previous environment.
[0074] As shown in FIG. 10 , in the learning phase, the inference device 10 executes the learning program 40 to generate (update) a trained model 20 based on training data 30 including B1 (behavior) and B2 (state) and D (reward criterion). The inference device 10 may be communicatively connected to each of multiple air conditioners 1 and configured to infer control data for the motors 61 of the compressors 6 included in each of the multiple air conditioners 1. In this case, the inference device 10 may generate a single trained model 20 commonly used by the multiple motors 61. In this case, the inference device 10 can infer control data for controlling the multiple motors 61 using the single trained model 20, thereby optimizing cooperative operation among the multiple motors 61. The air conditioner 1 may include multiple trained models 20 corresponding to the multiple motors 61, respectively. In this case, the inference device 10 can infer control data for controlling each of the multiple motors 61 using the multiple trained models 20 corresponding to the multiple motors 61, respectively.
[0075] In the utilization phase, the inference device 10 uses the trained model 20 to obtain C (output) based on B2 (state).
[0076] FIG. 11 is a diagram for explaining B1 (action), B2 (state), C (output), and D (reward criterion) in reinforcement learning according to the embodiment.
[0077] As shown in FIG. 11, in the inference device 10, control data for controlling the drive current supplied from the drive circuit 601 to the electric motor 61 is used as B1 (action).
[0078] As described above, a useful method for reducing the vibration and noise of the compressor 6 is to change the output torque of the electric motor 61 so as to follow the load torque of the compressor 6. For this reason, it is preferable to use at least one of control data relating to the amplitude of the drive current supplied to the electric motor 61, control data relating to the phase of the drive current, and control data relating to the frequency of the drive current as a control parameter correlated with the vibration and noise of the compressor 6. For example, the control data relating to the amplitude of the drive current is the amplitude of the d-axis current (I in Equation (2)). a ) and the amplitude of the q-axis current (I in Equation (3) a The control parameters related to the phase of the drive current include at least one of a command value for the phase of the d-axis current (β in equation (2)) and a command value for the phase of the q-axis current (β in equation (3)).
[0079] Furthermore, while the drive circuit 601 attempts to provide optimal inputs (d-axis current, q-axis current) to the electric motor 61, it is difficult to always output the desired values. If the values actually input from the drive circuit 601 to the electric motor 61 deviate from the target values, correction is required. The parameters used for such correction are also referred to as control gains. Since such correction is necessary not only for the drive current, various control gains in the drive circuit 601 may be included as control parameters correlated with the vibration and noise of the compressor 6. For example, the control gains that correct the amplitude or phase of the d-axis current or the amplitude or phase of the q-axis current include an angle compensation amount and a phase compensation amount.
[0080] From the above, the control data used as B1 (action) is the amplitude of the driving current (I in Equations (2) and (3)). a ), control data regarding the phase of the drive current (β in equations (2) and (3)), control data regarding the frequency of the drive current, a control gain for correcting the amplitude of the drive current, a control gain for correcting the phase of the drive current, and a control gain for correcting the frequency of the drive current.
[0081] In the inference device 10, B2 (state) uses state data indicating the current operating state of the electric motor 61. The state data includes both the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61.
[0082] In the inference device 10, control data for controlling the drive power supplied to the electric motor 61 is used as C (output). The control data, like B1 (action), is the amplitude of the drive current (I a ), control data regarding the phase of the drive current (β in equations (2) and (3)), control data regarding the frequency of the drive current, a control gain for correcting the amplitude of the drive current, a control gain for correcting the phase of the drive current, and a control gain for correcting the frequency of the drive current.
[0083] In the inference device 10, drive-related data relating to the drive of the electric motor 61 and vibration-related data relating to the vibration and noise of the compressor 6 are used as D (reward standard).
[0084] The drive-related data is a reward standard for optimally functioning the compressor 6 and includes the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 .
[0085] The vibration-related data is a reward standard for effectively reducing the vibration and noise of the compressor 6, and includes at least one of vibration data related to the vibration of the compressor 6, noise data related to the noise of the compressor, data related to the amplitude of the drive current, data related to the phase of the drive current, data related to the frequency of the drive current, and data related to the frequency analysis results of the drive current using FFT (Fast Fourier Transform).
[0086] As the vibration data of the compressor 6, for example, the vibration level of the compressor 6 measured using a vibration measuring device (not shown) while the compressor 6 is in operation is used. The vibration measuring device may be provided in the air conditioning system 1000. For example, the air conditioner 1 may be provided with a vibration measuring device, and may output the vibration level of the compressor 6 measured using the vibration measuring device while the compressor 6 is in operation to the inference device 10. Alternatively, the inference device 10 may be provided with a vibration measuring device, and may measure the vibration level of the compressor 6 using the vibration measuring device while the compressor 6 is in operation.
[0087] As the noise data of the compressor 6, for example, the noise level of the compressor 6 measured using a microphone (not shown) while the compressor 6 is in operation is used. The microphone may be provided in the air conditioning system 1000. For example, the air conditioner 1 may be provided with a microphone and output the noise level of the compressor 6 measured using the microphone while the compressor 6 is in operation to the inference device 10. Alternatively, the inference device 10 may be provided with a microphone and measure the noise level of the compressor 6 using the microphone while the compressor 6 is in operation.
[0088] The data relating to the amplitude of the drive current is the amplitude of the d-axis current and the amplitude of the q-axis current. The data relating to the phase of the drive current is the phase of the d-axis current and the phase of the q-axis current. The data relating to the frequency of the drive current is the frequency of the drive current. The data relating to the frequency analysis results of the drive current is the result of frequency analysis of the frequency of the drive current by FFT. The inference device 10 may perform the frequency analysis itself, or may obtain the results of frequency analysis performed by the control device 100 of the air conditioner 1.
[0089] 12 is a diagram showing the configuration of the learning device 110 in the learning phase. The learning device 110 is realized by the control unit 11 of the inference device 10. The learning device 110 can exchange data with each of the learning program storage unit 121 and the learned model storage unit 122. The learning program storage unit 121 and the learned model storage unit 122 are realized by the storage unit 12 of the inference device 10.
[0090] 12 , the learning device 110 includes a data acquisition unit 111 and a model generation unit 112. The learning device 110 executes a learning program 40 stored in a learning program storage unit 121 to generate a trained model 20 based on training data 30 including B1 (action) and B2 (state) and D (reward criterion).
[0091] The data acquisition unit 111 acquires learning data 30 including B1 (action) and B2 (state). Specifically, the data acquisition unit 111 acquires the control data shown in Fig. 11 as B1 (action). The data acquisition unit 111 acquires the state data shown in Fig. 11 as B2 (state).
[0092] The model generation unit 112 generates a trained model 20 that infers C (output) from B2 (state) using training data 30 including B1 (action) and B2 (state) acquired by the data acquisition unit 111. The model generation unit 112 stores the generated trained model 20 in the trained model storage unit 122.
[0093] The model generation unit 112 includes a reward calculation unit 1121 and a function update unit 1122. The reward calculation unit 1121 calculates a reward based on D (reward standard).
[0094] Specifically, the remuneration calculation unit 1121 calculates the remuneration as D (remuneration standard) based on the operating performance data of the air conditioner 1 shown in Fig. 11. For example, the remuneration calculation unit 1121 recognizes the target rotation speed and actual rotation speed of the motor 61 based on the state data of B2 (state).
[0095] In this state, the reward calculation unit 1121 calculates drive-related data for the electric motor when the drive current is controlled in accordance with the control data for B1 (action). That is, the reward calculation unit 1121 calculates the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61. The reward calculation unit 1121 calculates a reward based on the calculated difference. For example, the smaller the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61, the more optimally the compressor 6 functions, and the reward is increased. Conversely, the larger the difference, the less optimally the compressor 6 functions, and the reward is decreased.
[0096] Furthermore, the reward calculation unit 1121 acquires vibration-related data of the compressor 6 when the drive current is controlled in accordance with the control data of B1 (action).
[0097] Specifically, the reward calculation unit 1121 acquires the vibration level of the compressor 6 as the vibration data of the compressor 6. The reward calculation unit 1121 calculates the reward based on the acquired vibration level. For example, the reward calculation unit 1121 increases the reward as the vibration level of the compressor 6 is smaller, since it is determined that the vibration and noise of the compressor 6 are more effectively reduced, and decreases the reward as the vibration level is larger, since it is determined that the vibration and noise of the compressor 6 are not effectively reduced.
[0098] The reward calculation unit 1121 acquires the noise level of the compressor 6 as noise data of the compressor 6. The reward calculation unit 1121 calculates a reward based on the acquired noise level. For example, the reward calculation unit 1121 increases the reward as the noise level of the compressor 6 is smaller, since it is determined that the vibration and noise of the compressor 6 are more effectively reduced, and decreases the reward as the noise level is larger, since it is determined that the vibration and noise of the compressor 6 are not effectively reduced.
[0099] Generally, when an abnormality occurs in the vibration and noise of the compressor 6, a change also appears in the drive current. For example, if the vibration and noise of the compressor 6 increase momentarily, the drive current may increase. For this reason, the reward calculation unit 1121 may calculate the reward based on data related to the amplitude of the drive current, data related to the phase of the drive current, data related to the frequency of the drive current, and data related to the frequency analysis results of the drive current.
[0100] For example, the reward calculation unit 1121 acquires the amplitude of the d-axis current and the amplitude of the q-axis current as data related to the amplitude of the drive current. The reward calculation unit 1121 calculates a reward based on the acquired amplitudes of the d-axis current and the q-axis current. For example, the reward calculation unit 1121 increases the reward as the amplitudes of the d-axis current and the q-axis current are smaller, since it is determined that the vibration and noise of the compressor 6 are more effectively reduced, and decreases the reward as the amplitudes of the d-axis current and the q-axis current are larger, since it is determined that the vibration and noise of the compressor 6 are not effectively reduced.
[0101] In addition, the reward calculation unit 1121 may use a predetermined threshold value for each of the data relating to the phase of the drive current, the data relating to the frequency of the drive current, and the data relating to the frequency analysis results of the drive current, and may increase the reward if the vibration and noise of the compressor 6 are effectively reduced, or decrease the reward if the vibration and noise of the compressor 6 are not effectively reduced.
[0102] The reward calculation unit 1121 may calculate the reward based on at least one of the noise data of the compressor 6, the vibration data of the compressor 6, the data related to the amplitude of the drive current, the data related to the phase of the drive current, the data related to the frequency of the drive current, and the data related to the frequency analysis results of the drive current, or may calculate the reward based on all reward criteria included in this vibration-related data. Furthermore, with regard to the purpose of effectively reducing the vibration and noise of the compressor 6, the reward calculation unit 1121 may calculate the reward using only the vibration-related data without using the drive-related data. However, with regard to the purpose of effectively reducing the vibration and noise of the compressor 6 while ensuring optimal functioning of the compressor 6, it is preferable that the reward calculation unit 1121 calculates the reward based on the drive-related data in addition to the vibration-related data.
[0103] This allows the learning device 110 to train the estimation model so that it can infer appropriate control data for effectively reducing the vibration and noise of the compressor 6 depending on the state of the electric motor 61, and generate a learned model 20.
[0104] The function update unit 1122 updates the function for inferring control data based on the reward calculated by the reward calculation unit 1121. For example, in the case of Q-learning, the function update unit 1122 updates the action value function Q(S t , a t ) is used as a function to infer the control data.
[0105] The learned model storage unit 122 stores the action value function Q(S t , a t ) is stored as the trained model 20.
[0106] Fig. 13 is a flowchart of the processing executed by the learning device 110 (control unit 11) in the learning phase. Fig. 13 shows the processing executed by the inference device 10 corresponding to the learning device 110 in accordance with the learning program 40. In Fig. 13, "S" is used as an abbreviation for "STEP."
[0107] 13, the learning device 110 uses the control data to control the electric motor 61 and start driving the electric motor 61 (S11). The learning device 110 acquires the control data shown in FIG. 11 as B1 (action) by the data acquisition unit 111 (S12). The learning device 110 acquires the state data shown in FIG. 11 as B2 (state) by the data acquisition unit 111 (S13). Note that the learning device 110 is not limited to acquiring B1 (action) and B2 (state) at different times, and may also acquire B1 (action) and B2 (state) at the same time.
[0108] The learning device 110 acquires the drive-related data shown in Fig. 11 as D (reward standard) by the data acquisition unit 111 (S14). The learning device 110 acquires the vibration-related data shown in Fig. 11 as D (reward standard) by the data acquisition unit 111 (S15). Note that the learning device 110 is not limited to acquiring the drive-related data and the vibration-related data at different times, and may also acquire the drive-related data and the vibration-related data at the same time.
[0109] The learning device 110 calculates a reward based on the drive-related data and the vibration-related data, which are D (reward standard), using the reward calculation unit 1121 (S16). Note that the learning device 110 may calculate a reward based on only the vibration-related data, or may calculate a reward based on both the drive-related data and the vibration-related data using the reward calculation unit 1121.
[0110] If the reward calculation unit 1121 of the learning device 110 determines that the reward should be increased based on the reward criterion, it increases the reward (S17), and if it determines that the reward should be decreased based on the reward criterion, it decreases the reward (S18).
[0111] For example, the reward calculation unit 1121 increases the reward when the vibration level of the compressor 6 is minimized while maintaining the difference between the target rotation speed of the motor 61 and the actual rotation speed of the motor 61 at or below a threshold, and decreases the reward when the vibration level of the compressor 6 is not minimized. Alternatively, the reward calculation unit 1121 increases the reward when the vibration level of the compressor 6 is below the threshold while maintaining the difference between the target rotation speed of the motor 61 and the actual rotation speed of the motor 61 at or below a threshold, and decreases the reward when the vibration level of the compressor 6 is above the threshold. Note that the threshold serving as the reference for the vibration level may be a predetermined value, or may be a value specified by the user if learning is performed while the air conditioner 1 is operating. Furthermore, if the user inputs a command to the inference device 10, such as to reduce the current vibration, the threshold serving as the reference for the vibration level may be a value calculated based on the command. In this case, the threshold value used as the reference for the vibration level may be the vibration level at the time the user inputs the command, or the average or maximum value of the vibration level for a predetermined time period that has elapsed since the user input the command, or the average or maximum value of the vibration level for a predetermined time period before the user inputs the command, or the average or maximum value of the vibration level for a predetermined time period before and after the time the user inputs the command.
[0112] Furthermore, the reward calculation unit 1121 increases the reward when the noise level of the compressor 6 is minimized while maintaining the difference between the target rotation speed of the motor 61 and the actual rotation speed of the motor 61 at or below a threshold, and decreases the reward when the noise level of the compressor 6 is not minimized. Alternatively, the reward calculation unit 1121 increases the reward when the noise level of the compressor 6 is below the threshold while maintaining the difference between the target rotation speed of the motor 61 and the actual rotation speed of the motor 61 at or below a threshold, and decreases the reward when the noise level of the compressor 6 is above the threshold. The threshold serving as the reference for the noise level may be a predetermined value, or, if learning is performed while the air conditioner 1 is operating, may be a value specified by the user. For example, the threshold serving as the reference for the noise level may be 40 to 50 dB, which is generally considered to be audible but allows normal conversation. Furthermore, if the user inputs a command to the inference device 10 to reduce the current noise level, the threshold serving as the reference for the noise level may be a value calculated based on the command. In this case, the threshold value serving as the reference for the noise level may be the noise level at the time the user inputs the command, or the average or maximum noise level for a predetermined time period that has elapsed since the user input the command, or the average or maximum noise level for a predetermined time period before the user inputs the command, or the average or maximum noise level for a predetermined time period before and after the time the user inputs the command.
[0113] Furthermore, the reward calculation unit 1121 increases the reward when the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 is minimized, and decreases the reward when the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 is not minimized. Alternatively, the reward calculation unit 1121 increases the reward when the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 is equal to or smaller than a threshold, and decreases the reward when the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 exceeds the threshold.
[0114] The learning device 110 uses the function update unit 1122 to update the action value function Q(s) of the formula (5) stored in the trained model storage unit 122 based on the reward calculated by the reward calculation unit 1121. t , a t ) is updated (S19).
[0115] The learning device 110 repeatedly executes the above-described processes from S12 to S19, and generates the action-value function Q(s t , a t ) as the trained model 20. After that, the training device 110 ends this process.
[0116] As described above, the learning device 110 according to the embodiment generates a trained model 20 for inferring control data based on the state data, using learning data 30 including control data for controlling the drive current supplied to the electric motor 61 and state data indicating the state of the electric motor 61. This allows the learning device 110 to generate a trained model 20 that can infer control data for controlling the drive current so as to effectively reduce vibration and noise of the compressor 6.
[0117] [Utilization Phase] An application example of the inference device 10 in the utilization phase will be described with reference to Figures 14 and 15. Figure 14 is a diagram showing the configuration of the inference device 10 in the utilization phase. The inference device 10 is capable of exchanging data with the trained model storage unit 122.
[0118] 14, the inference device 10 includes a data acquisition unit 111 and an inference unit 113. The inference device 10 uses the trained model 20 to obtain C (output) based on B2 (state).
[0119] The data acquisition unit 111 acquires the status data shown in FIG. 11 as B2 (status) from the control device 100 of the air conditioner 1.
[0120] The inference unit 113 reads the learned model 20 from the learned model storage unit 122, and uses the learned model 20 to infer the control data shown in Fig. 11 as C (output) based on the state data of B2 (state). The inference unit 113 outputs the inferred control data to the control device 100 of the air conditioner 1.
[0121] 15 is a flowchart showing the processing executed by the inference device 10 (control unit 11) in the utilization phase. In FIG. 15, "S" is used as an abbreviation for "STEP."
[0122] 15, the inference device 10 uses the control data to control the electric motor 61 and start driving the electric motor 61 (S21). The inference device 10 acquires the status data shown in FIG. 11 as B2 (status) by the data acquisition unit 111 (S22).
[0123] The inference device 10 inputs the state data into the trained model 20 by the inference unit 113 (S23), infers control data, and outputs it to the control device 100 of the air conditioner 1 (S24). Thereafter, the inference device 10 ends this processing.
[0124] As described above, the inference device 10 according to the embodiment uses the learned model 20 to infer control data for controlling the driving power supplied to the electric motor 61 based on status data indicating the status of the electric motor 61.
[0125] For example, by using a trained model 20 that has undergone reinforcement learning based on a reward criterion that takes into account the vibration level of the compressor 6, the inference device 10 can infer control data based on status data indicating the state of the electric motor 61 to satisfy at least one of minimizing the vibration of the compressor 6 and keeping the vibration of the compressor 6 below a threshold value.
[0126] Furthermore, by using a trained model 20 that has undergone reinforcement learning based on a reward criterion that takes into account the noise level of the compressor 6, the inference device 10 can infer control data for achieving at least one of minimizing the noise of the compressor 6 and keeping the noise of the compressor 6 below a threshold based on status data indicating the status of the motor 61.
[0127] Furthermore, by using the learned model 20 that has been reinforced learned based on a reward criterion that takes into account the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61, the inference device 10 can infer control data based on state data indicating the state of the electric motor 61 to satisfy at least one of minimizing the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61, and keeping the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 below a threshold value.
[0128] This allows the inference device 10 to infer control data for controlling the drive current so as to effectively reduce vibration and noise of the compressor 6 while allowing the compressor 6 to function optimally.
[0129] Furthermore, even if the control data cannot be optimized by operating the air conditioner 1 before shipment, by training the learned model 20 by reinforcement learning while the air conditioner 1 is in operation after shipment, it is possible to collect data in an actual operating environment, and the inference device 10 can infer control data that is more appropriate than before shipment. However, the initial values of the air conditioner 1 after shipment must at least satisfy the capabilities of the air conditioner 1, and when determining these initial values, the initial values of the control data may be determined by performing actual operation under all conditions (for example, rotation speed under an expected environment) before shipment, or the initial values of the control data may be determined by performing actual operation under only a certain number of conditions, and trial values may be used as the initial values of the control data under other conditions.
[0130] [Modification] A modification of the above-described embodiment will be described below. Note that only the differences from the above-described embodiment will be described below.
[0131] The inference device 10 may generate the trained model 20 using the model generation unit 112 before shipping the trained model 20, and then retrain the trained model 20 using the training data 30 obtained after shipping the trained model 20 to generate a new trained model 20.
[0132] Specifically, the reinforcement learning shown in FIG. 13 performed before the trained model 20 was shipped was used to calculate the action value function Q(s t , at ) is determined, and after the trained model 20 is shipped, the action value function Q(s) of the formula (5) is calculated again by the reinforcement learning shown in FIG. 13 in the actual usage environment of the air conditioner 1. t , a t ) may be generated.
[0133] In this way, the inference device 10 may generate a new trained model 20 that can more accurately infer appropriate control data by performing reinforcement learning (transfer learning) in a post-shipment environment using the trained model 20, which is the outcome of reinforcement learning performed in a pre-shipment environment. This allows the inference device 10 to shorten the learning time in the actual usage environment for generating the trained model 20.
[0134] The control device 100 may control the driving power of the electric motor 61 by using both the control data calculated using the theoretical formulas (1) to (3) and the control data inferred by the inference device 10.
[0135] Specifically, the control device 100 drives the electric motor 61 based on control data calculated using the theoretical formulas (1) to (4) during a predetermined period. Meanwhile, the inference device 10 generates a trained model 20 using state data acquired from the electric motor 61, which is driven based on the control data calculated using the theoretical formulas (1) to (4) during the predetermined period. After the predetermined period has elapsed, the control device 100 drives the electric motor 61 based on the control data inferred by the trained model 20. The predetermined period may be any period that allows the inference device 10 to accumulate training data 30 for generating a trained model 20 capable of inferring appropriate control data.
[0136] In this way, the control device 100 calculates the control data using the theoretical formulas (1) to (4) until sufficient training data 30 for generating the trained model 20 is accumulated, and after sufficient training data 30 for generating the trained model 20 is accumulated, the control device 100 generates the trained model 20 using the training data 30 and infers the control data using the generated trained model 20. This allows the control device 100 to control the electric motor 61 using appropriate control data.
[0137] The control device 100 may compare the control data calculated using the theoretical formulas (1) to (4) with the control data inferred by the trained model 20, and if the difference between the two exceeds a threshold, control the electric motor 61 based on the control data calculated using the theoretical formulas (1) to (4).
[0138] Here, if the inference device 10 acquires status data under conditions different from those during learning, it may infer inappropriate control data. If the control device 100 controls the electric motor 61 based on inappropriate control data, the electric motor 61 may enter an unexpected operating state. For example, the inference device 10 may infer control data that significantly reduces the performance of the compressor 6, such as the rotation speed of the electric motor 61 becoming zero, as shown in FIG. 7. Furthermore, if there is a large difference between the control data calculated using the theoretical formulas (1) to (4) and the control data inferred by the trained model 20, the vibration and noise of the compressor 6 may be small, but the drive current may be significantly large. In such a case, the efficiency of the compressor 6 may be significantly reduced. Therefore, when the control data inferred by the trained model 20 significantly deviates from the control data calculated using the theoretical formulas (1) to (4), the control device 100 drives the electric motor 61 by prioritizing the control data calculated using the theoretical formulas (1) to (4), thereby preventing the electric motor 61 from entering an unexpected operating state. This allows the electric motor 61 to be configured to reduce vibration and noise while preventing an excessive decrease in efficiency.
[0139] The inference device 10 may generate the trained model 20 using a predetermined amount or more of training data by the model generation unit 112. Specifically, after the inference device 10 has accumulated a predetermined amount or more of training data 30 for generating the trained model 20 capable of inferring appropriate control data, the inference device 10 generates the trained model 20 using the predetermined amount or more of training data 30. This allows the inference device 10 to infer appropriate control data using the trained model 20 that has been sufficiently trained by reinforcement learning.
[0140] The model generation unit 112 of the inference device 10 may include fewer types of data as state data in the learning data 30 than the types of data obtainable from the electric motor 61. The state data obtainable by the inference device 10 from the control device 100 of the air conditioner 1 include the actual temperature and target temperature in the target space, the actual humidity and target humidity in the target space, the bus voltage of the driving power, the output torque of the electric motor 61, the target rotation speed and actual rotation speed of the electric motor 61, motor constants such as an induced voltage constant or a torque constant required for drive control of the electric motor 61, the moment of inertia, various control gains, the suction pressure and discharge pressure of the compressor 6, etc., and the inference device 10 generates the trained model 20 using the target rotation speed and actual rotation speed of the electric motor 61 by the model generation unit 112.
[0141] Furthermore, when selecting some of the status data from the status data obtainable from the air conditioner 1, the inference device 10 may perform dimensionality reduction on the status data obtainable from the air conditioner 1, thereby selecting fewer types of data than the types of data obtainable from the air conditioner 1 as status data to include in the learning data 30. When performing dimensionality reduction, the inference device 10 may use a known dimensionality reduction algorithm such as principal component analysis. It is preferable that the inference device 10 preferentially selects status data that is particularly closely related to the control data from the status data obtainable from the air conditioner 1.
[0142] In this way, the inference device 10 generates the trained model 20 using only some of the state data rather than using all of the state data that can be obtained from the air conditioner 1, thereby reducing the computational load required for learning and shortening the calculation time.
[0143] The learning algorithm used in the model generation unit 112 of the inference device 10 may be deep learning, which learns to extract feature quantities themselves, or other known methods. For example, the model generation unit 112 may perform machine learning according to genetic programming, functional logic programming, support vector machines, or the like.
[0144] The inference device 10 described above uses reinforcement learning, but it may also use known learning methods such as unsupervised learning, supervised learning, or semi-supervised learning.
[0145] [Summary] The inference device 10 of the present disclosure includes a data acquisition unit 111 that acquires status data indicating the status of the electric motor 61, and an inference unit 113 that uses a trained model 20 for inferring control data based on the status data to infer control data based on the status data acquired by the data acquisition unit 111. The trained model 20 is generated using a reward calculated based on a reward criterion. The reward criterion includes vibration-related data related to vibration and noise of the compressor 6.
[0146] With this configuration, the inference device 10 can use the learned model 20 that has undergone reinforcement learning based on a reward criterion including vibration-related data regarding the vibration and noise of the compressor 6 to infer control data for controlling the drive current supplied to the motor 61 based on status data indicating the state of the motor 61, thereby making it possible to reduce the vibration and noise of the compressor 6 by controlling the drive current using the inferred control data.
[0147] The inference device 10 further includes a model generation unit 112 that generates a trained model 20 using training data 30 including control data and state data. The model generation unit 112 includes a reward calculation unit 1121 that calculates a reward based on a reward criterion, and a function update unit 1122 that updates a function for inferring the control data based on the reward.
[0148] With this configuration, the inference device 10 can generate a trained model 20 that can infer optimal control data for reducing vibration and noise of the compressor 6 through reinforcement learning using rewards.
[0149] As shown in FIG. 11, the status data includes the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 .
[0150] With this configuration, the inference device 10 can use the learned model 20 to infer optimal control data for reducing vibration and noise of the compressor 6 based on the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61.
[0151] As shown in FIG. 11, the control data includes at least one of control data regarding the amplitude of the drive current, control data regarding the phase of the drive current, control data regarding the frequency of the drive current, a control gain for the amplitude of the drive current, a control gain for the phase of the drive current, and a control gain for the frequency of the drive current.
[0152] With this configuration, the inference device 10 can use the learned model 20 to infer at least one of control data regarding the amplitude of the drive current, control data regarding the phase of the drive current, control data regarding the frequency of the drive current, a control gain for the amplitude of the drive current, a control gain for the phase of the drive current, and a control gain for the frequency of the drive current.
[0153] 11 , the vibration-related data includes data related to the vibration of the compressor 6. The inference unit 113 uses the trained model 20 to infer control data for satisfying at least one of minimizing the vibration of the compressor 6 and keeping the vibration of the compressor 6 below a threshold value.
[0154] With this configuration, the inference device 10 can use the trained model 20 to infer control data for satisfying at least one of minimizing the vibration of the compressor 6 and keeping the vibration of the compressor 6 below a threshold value.
[0155] 11 , the vibration-related data includes data related to the noise of the compressor 6. The inference unit 113 uses the trained model 20 to infer control data for satisfying at least one of minimizing the noise of the compressor 6 and keeping the noise of the compressor 6 below a threshold value.
[0156] With this configuration, the inference device 10 can use the trained model 20 to infer control data to satisfy at least one of minimizing the noise of the compressor 6 and keeping the noise of the compressor 6 below a threshold value.
[0157] As shown in FIG. 11, the vibration-related data includes at least one of data regarding the amplitude of the drive current, data regarding the phase of the drive current, data regarding the frequency of the drive current, and data regarding the results of frequency analysis of the drive current.
[0158] With this configuration, the inference device 10 can use the trained model 20 to infer control data for reducing vibration and noise of the compressor 6.
[0159] 11 , the reward criterion includes data on the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61. The inference unit 113 uses the trained model 20 to infer control data for satisfying at least one of minimizing the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 and keeping the difference between the target rotation speed of the electric motor 61 and the actual rotation speed of the electric motor 61 equal to or less than a threshold value.
[0160] With this configuration, the inference device 10 can use the learned model 20 to infer control data for controlling the drive current so as to effectively reduce the vibration and noise of the compressor 6 while allowing the compressor 6 to function optimally.
[0161] The model generation unit 112 generates the trained model 20 before shipping the trained model 20, and then retrains the trained model 20 using the training data 30 obtained after shipping the trained model 20 to generate a new trained model 20.
[0162] With this configuration, the inference device 10 can shorten the learning time in an actual usage environment to generate the trained model 20.
[0163] The electric motor 61 is driven for a predetermined period based on control data calculated using the theoretical formulas (1) to (4). The model generation unit 112 generates the trained model 20 using state data acquired from the electric motor 61, which is driven for a predetermined period based on the control data calculated using the theoretical formulas (1) to (4). After the predetermined period has elapsed, the electric motor 61 is driven based on the control data inferred by the trained model 20.
[0164] With this configuration, the control device 100 controls the electric motor 61 based on control data calculated using the theoretical formulas (1) to (4) until sufficient learning data 30 for generating the trained model 20 is accumulated, and after sufficient learning data 30 for generating the trained model 20 is accumulated, the control device 100 can control the electric motor 61 based on control data inferred by the trained model 20, and therefore can control the electric motor 61 using appropriate control data.
[0165] When the difference between the control data calculated using the theoretical formulas (1) to (4) and the control data inferred by the trained model 20 exceeds a threshold, the electric motor 61 is driven based on the control data calculated using the theoretical formulas (1) to (4).
[0166] According to this configuration, when the control data inferred by the learned model 20 significantly deviates from the control data calculated using the theoretical formulas (1) to (4), the control device 100 drives the electric motor 61 by prioritizing the control data calculated using the theoretical formulas (1) to (4), thereby preventing the electric motor 61 from entering an unexpected operating state.
[0167] The model generating unit 112 includes, as state data in the learning data 30, fewer types of data than the types of data that can be acquired regarding the state of the electric motor 61.
[0168] According to this configuration, the inference device 10 generates the trained model 20 using only some of the state data rather than using all of the state data that can be obtained from the control device 100, thereby reducing the computational load required for learning and shortening the computation time.
[0169] The model generation unit 112 performs dimensionality reduction on the data that can be obtained regarding the state of the electric motor 61, and includes fewer types of data as state data in the learning data 30 than the types of data that can be obtained regarding the state of the electric motor 61.
[0170] According to this configuration, the inference device 10 generates the trained model 20 using only some of the state data rather than using all of the state data that can be obtained from the electric motor 61, thereby reducing the computational load required for learning and shortening the calculation time.
[0171] The inference device 10 further includes a presentation unit 114 that presents information relating to the driving of the electric motor 61 based on the control data inferred by the inference unit 113 .
[0172] With this configuration, the inference device 10 can encourage the user to use the inference device 10 .
[0173] The inference method disclosed herein includes, as processing executed by the inference device 10, a step (S22) of acquiring status data indicating the status of the electric motor 61, and a step (S24) of inferring control data based on the status data acquired in the acquiring step, using a trained model 20 for inferring control data based on the status data. The trained model 20 is generated using a reward calculated based on a reward criterion. The reward criterion includes vibration-related data related to vibration and noise of the compressor 6.
[0174] With this configuration, the inference device 10 can use the learned model 20 that has undergone reinforcement learning based on a reward criterion including vibration-related data regarding the vibration and noise of the compressor 6 to infer control data for controlling the drive current supplied to the motor 61 based on status data indicating the state of the motor 61, thereby making it possible to reduce the vibration and noise of the compressor 6 by controlling the drive current using the inferred control data.
[0175] The learning device 110 of the present disclosure includes a data acquisition unit 111 that acquires control data for controlling the drive current supplied to the electric motor 61 of the compressor 6 and status data indicating the status of the electric motor 61, and a model generation unit 112 that uses learning data 30 including the control data and the status data to generate a trained model 20 for inferring the control data based on the status data. The model generation unit 112 includes a reward calculation unit 1121 that calculates a reward based on a reward criterion, and a function update unit 1122 that updates a function for inferring the control data based on the reward. The reward criterion includes vibration-related data regarding vibration and noise of the compressor 6.
[0176] With this configuration, the learning device 110 can generate a trained model 20 that can infer control data for controlling the drive current so as to effectively reduce the vibration and noise of the compressor 6.
[0177] The embodiments disclosed herein should be considered to be illustrative in all respects and not restrictive. The scope of the present disclosure is defined by the claims, not by the description of the above embodiments, and is intended to include all modifications within the meaning and scope of the claims.
[0178] 1 Air conditioner, 6 Compressor, 10 Inference device, 11 Control unit, 12 Memory unit, 13 Input / output unit, 20 Trained model, 30 Training data, 40 Training program, 60 Housing, 61 Motor, 62 Compression mechanism unit, 63 Accumulator, 64 Suction pipe, 65 Supply pipe, 66 Discharge pipe, 67 Glass terminal, 68 Container, 83 Temperature sensor, 84 Humidity sensor, 100 Control device, 110 Learning device, 111 Data acquisition unit, 112 Model generation unit, 113 Inference unit, 114 Presentation unit, 121 Training program storage unit, 122 Trained model storage unit, 500 Display device, 601 Drive circuit, 602 Power supply circuit, 611 Stator, 612 Rotor, 613 Shaft, 614 Slot, 615 Winding, 616 Shaft hole portion, 617 Air hole portion, 618 permanent magnet, 619 central hole portion, 621 cylinder, 622 rolling piston, 624A upper muffler, 1000 air conditioning system, 1121 reward calculation portion, 1122 function update portion.
Claims
1. An inference device that infers control data for controlling a drive current supplied to a compressor motor, comprising: a data acquisition unit that acquires status data indicating a status of the motor; and an inference unit that infers the control data based on the status data acquired by the data acquisition unit using a trained model for inferring the control data based on the status data, wherein the trained model is generated using a reward calculated based on a reward criterion, and the reward criterion includes vibration-related data regarding vibration and noise of the compressor.
2. An inference device as described in claim 1, further comprising a model generation unit that generates the trained model using learning data including the control data and the state data, wherein the model generation unit comprises: a reward calculation unit that calculates the reward based on the reward standard; and a function update unit that updates a function for inferring the control data based on the reward.
3. An inference device according to claim 1 or 2, wherein the state data includes a target rotation speed of the motor and an actual rotation speed of the motor.
4. An inference device as described in any one of claims 1 to 3, wherein the control data includes at least one of control data regarding the amplitude of the drive current, control data regarding the phase of the drive current, control data regarding the frequency of the drive current, a control gain for the amplitude of the drive current, a control gain for the phase of the drive current, and a control gain for the frequency of the drive current.
5. An inference device as described in any one of claims 1 to 4, wherein the vibration-related data includes data regarding vibration of the compressor, and the inference unit uses the trained model to infer the control data for satisfying at least one of minimizing the vibration of the compressor and keeping the vibration of the compressor below a threshold value.
6. An inference device as described in any one of claims 1 to 5, wherein the vibration-related data includes data regarding noise of the compressor, and the inference unit uses the trained model to infer the control data for satisfying at least one of minimizing the noise of the compressor and keeping the noise of the compressor below a threshold value.
7. An inference device as described in any one of claims 1 to 6, wherein the vibration-related data includes at least one of data regarding the amplitude of the drive current, data regarding the phase of the drive current, data regarding the frequency of the drive current, and data regarding the results of frequency analysis of the drive current.
8. An inference device as described in any one of claims 1 to 7, wherein the reward standard includes data regarding a difference between a target rotation speed of the motor and an actual rotation speed of the motor, and the inference unit uses the learned model to infer the control data for satisfying at least one of minimizing the difference between the target rotation speed of the motor and the actual rotation speed of the motor and keeping the difference between the target rotation speed of the motor and the actual rotation speed of the motor below a threshold value.
9. The inference device described in claim 2, wherein the model generation unit generates the trained model before shipment of the trained model, and then retrains the trained model using the learning data obtained after shipment of the trained model to generate a new trained model.
10. The inference device described in claim 2, wherein the electric motor is driven based on the control data calculated using a predetermined calculation formula during a predetermined period of time, the model generation unit generates the trained model using the status data acquired from the electric motor driven based on the control data calculated using the predetermined calculation formula during the predetermined period of time, and the electric motor is driven based on the control data inferred by the trained model after the predetermined period has elapsed.
11. An inference device as described in any one of claims 1 to 10, wherein the electric motor is driven based on the control data calculated using a predetermined formula when a difference between the control data calculated using the predetermined formula and the control data inferred by the trained model exceeds a threshold value.
12. The inference device according to claim 2, wherein the model generation section includes in the learning data as the state data fewer types of data than the types of data that can be obtained regarding the state of the electric motor.
13. An inference device as described in claim 12, wherein the model generation unit performs dimensionality reduction on data obtainable regarding the state of the motor, thereby including in the learning data as state data fewer types of data than the types of data obtainable regarding the state of the motor.
14. An inference device according to any one of claims 1 to 13, further comprising a presentation unit that presents information regarding the driving of the electric motor based on the control data inferred by the inference unit.
15. An inference method for inferring control data for controlling a drive current supplied to a compressor motor by a computer, the inference method including, as processing executed by the computer, a step of acquiring status data indicating a status of the motor, and a step of inferring the control data based on the status data acquired by the acquiring step using a trained model for inferring the control data based on the status data, wherein the trained model is generated using a reward calculated based on a reward criterion, and the reward criterion includes vibration-related data regarding vibration and noise of the compressor.
16. A learning device for performing reinforcement learning, comprising: a data acquisition unit that acquires control data for controlling a drive current supplied to a compressor motor and status data indicating a status of the motor; and a model generation unit that uses learning data including the control data and the status data to generate a learned model for inferring the control data based on the status data, wherein the model generation unit comprises: a reward calculation unit that calculates a reward based on a reward criterion; and a function update unit that updates a function for inferring the control data based on the reward, wherein the reward criterion includes vibration-related data regarding vibration and noise of the compressor.
Citation Information
Patent Citations
Wind power generation device, learning device, and inference device
JP2022037393A
Air conditioning control system
WO2022201322A1
Cited By
Machine learning device, inference device, machine learning method, recording medium, and method for generating trained model
WO2026140530A1
Machine learning device, inference device, machine learning method, recording medium, and method for generating trained model
WO2026140531A1
