Multistep inference system and multistep inference device

The multi-stage inference system with asynchronous communication and queuing mechanisms addresses delays in existing architectures by enabling simultaneous processing across multiple inference stages, enhancing efficiency and reducing overall processing time.

JP2024121837AInactive Publication Date: 2024-09-09LATONA INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023029023
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing general-purpose architectures for machine learning inference processing, combining multiple inference processes can lead to delays as subsequent processes cannot start until the previous one completes, increasing overall processing time.

Method used

A multi-stage inference system using container technology and asynchronous communication units with queuing mechanisms allows data transfer between inference units without waiting for previous processes to finish, enabling simultaneous execution.

Benefits of technology

This approach significantly reduces processing time for multi-stage inference by allowing asynchronous data transfer and queuing, optimizing communication between inference units within a microservice architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To shorten a processing time in a case where processing in which a plurality of pieces of inference processing are combined in multiple steps is performed.SOLUTION: A multistep inference system 100 is formed of inference devices 1A, 1B, 1C mounted with applications by a container technique. The inference system 100 includes: a plurality of inference units 111 to 117 that are provided in the inference devices 1A, 1B, 1C and are configured to execute inference processing using a machine learning model; and a non-synchronous communication unit 44 that is provided in at least one of the inference devices 1 and is configured to execute data exchange from the inference units 111 to 117 to the subsequent inference units 111 to 117, and has a data cueing mechanism.SELECTED DRAWING: Figure 11
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a multi-stage inference system and a multi-stage inference device. [Background technology]

[0002] According to artificial intelligence technology that has been attracting attention in recent years, a trained model is constructed by machine learning using past data, and inference processing is performed using the trained model. Inference processing generally needs to be performed by a computer with high computing power, and for example, a server configured based on a general-purpose architecture in which each function is connected by a clear and simple API (Application Programming Interface) such as REST (Representational State Transfer) is used (for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2021-196730 A Summary of the Invention [Problem to be solved by the invention]

[0004] Machine learning has become more complex in recent years, and multiple inference processes are combined depending on the situation, and further inference processes are performed using the combined inference results. However, in a general-purpose architecture such as REST, functions are linked by a simple API, so if the processing load is high, when the next inference section performs processing using the processing results of one inference section, the next inference section cannot accept new processing while the processing is in progress, so it may take some time before the next processing can begin. Therefore, when combining multiple inference processes in a computer with a general-purpose architecture, it may take a long time to obtain the final inference result.

[0005] The present invention has been made to solve such problems, and aims to provide a multi-stage inference system and a multi-stage inference device that reduce processing time when multiple inference processes are combined in multiple stages for processing. [Means for solving the problem]

[0006] A multi-stage inference system according to one aspect of the present invention is composed of a plurality of inference devices in which applications are implemented using container technology. The multi-stage inference system includes a plurality of inference units provided in the inference devices and executing inference processing using a machine learning model, and an asynchronous communication unit provided in at least one of the inference devices, asynchronously transmitting and receiving data from an inference unit to a subsequent inference unit, and including a data queuing mechanism.

[0007] The multi-stage inference device of the present invention has applications implemented using container technology. The multi-stage inference device includes a plurality of inference units that execute inference processing using a machine learning model, and an asynchronous communication unit that asynchronously transmits and receives data from an inference unit to a subsequent inference unit, and the asynchronous communication unit includes a data queuing mechanism. Effect of the Invention

[0008] According to the multi-stage inference system and multi-stage inference device of the present invention, an asynchronous communication unit is provided that asynchronously transmits and receives data from an inference unit implemented using container technology to a subsequent inference unit, and the asynchronous communication unit is provided with a data queuing mechanism.

[0009] Applications implemented using container technology can communicate with each other using container engine technology. However, particularly when adopting a microservices architecture, the number of inference units increases, which can result in significant delays in data transmission and reception and reduced processing speed.

[0010] Therefore, by providing a separate asynchronous communication unit with a queuing mechanism to transmit data from the inference unit to the subsequent inference unit, the inference unit can transmit the processing results without waiting for the subsequent inference unit to complete its processing, even if the subsequent inference unit is currently processing, thereby making it possible to speed up the multi-stage inference processing as a whole. [Brief description of the drawings]

[0011] [Figure 1] 1 is a schematic configuration diagram of a multi-stage inference device according to a first embodiment. [Diagram 2] FIG. 2 is a hardware configuration diagram of the inference device. [Diagram 3] FIG. 2 is a software configuration diagram of the inference device. [Figure 4A] FIG. 4 is an explanatory diagram of the operation of an asynchronous communication unit. [Figure 4B] FIG. 4 is an explanatory diagram of a queuing mechanism of an asynchronous communication unit. [Diagram 5] 13 is a flowchart showing a process of an asynchronous communication unit. [Figure 6] FIG. 2 is a diagram illustrating an example of a schematic software configuration of a multi-stage inference device. [Figure 7] 1 is a table illustrating a specific embodiment of a multi-stage inference system. [Figure 8] FIG. 1 illustrates machine learning and inference processing. [Figure 9] FIG. 13 illustrates a modified example of the inference system. [Figure 10] FIG. 11 is a schematic configuration diagram of a multi-stage inference system according to a second embodiment. [Figure 11] FIG. 1 is a system configuration diagram of a multi-stage inference system. [Figure 12] FIG. 13 is a system configuration diagram of a modified multi-stage inference system. [Figure 13A] FIG. 13 is an explanatory diagram of a queuing mechanism of an asynchronous communication unit provided in the multi-stage inference device of the third embodiment. [Figure 13B] FIG. 13 is an explanatory diagram of a queuing mechanism on the write side of an asynchronous communication unit. [Figure 13C]FIG. 13 is an explanatory diagram of a queuing mechanism on the read side of the asynchronous communication unit. [Figure 14] 13 is a flowchart showing a process of an asynchronous communication. [Figure 15] FIG. 2 is a diagram illustrating an example of a schematic software configuration of a multi-stage inference device. [Figure 16] FIG. 13 is a diagram showing a schematic software configuration of a multi-stage inference device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. In the description of the embodiments, the scope of the present invention is not necessarily limited to the number or amount, unless the number or amount is mentioned or otherwise specified. In the drawings showing the embodiments, the same names indicate the same or corresponding parts. In addition, in the description of the embodiments, duplicated descriptions of parts with the same names will be omitted without repeating them.

[0013] FIG. 1 is a schematic diagram of an inference device that executes a multi-stage inference process according to this embodiment.

[0014] This figure shows an inference device 1, a plurality of sensors 2A, 2B, and a control target device 3, all of which are provided in a local environment 10, as well as a learning system 5 and a data storage 6, which are connected to the devices provided in the local environment 10 via a network 4. Although two sensors 2A, 2B are shown in this figure, three or more sensors 2 may be provided. When the inference device 1 is mounted on a vehicle, the inference device 1 performs multiple multi-stage inference processes using data acquired by an illuminance sensor 2 and a speed sensor 2, and obtains a final inference result. Then, the inference device 1 controls the control target device 3 (steering, accelerator, brake, etc.) based on the obtained final inference result.

[0015] The inference device 1 is communicatively connected to a learning system 5 and a data storage 6 via a network 4. The learning system 5 generates a plurality of trained models by executing machine learning using sensor information acquired by a sensor 2 in a local environment 10. The data storage 6 is configured to be capable of storing any data such as the sensor information acquired by the sensor 2 and trained models. The trained models stored in the data storage 6 are downloaded to the inference device 1 and used in the inference process.

[0016] FIG. 2 is a diagram showing the hardware configuration of the inference device 1.

[0017] The inference device 1 comprises a control unit 11 consisting of a CPU (Central Processing Unit) and / or GPU (Graphics Processing Unit) that controls the entire device, a memory unit 12 consisting of a ROM (Read Only Memory), RAM (Random Access Memory), and / or a hard disk, etc., and storing programs and various data, a communication unit 13 that communicates via a network 4, etc., a display unit 14 that displays data on an information display device such as a touch panel, and an input unit 15 that accepts input from a device such as a touch panel.

[0018] The control unit 11, memory unit 12, communication unit 13, display unit 14, and input unit 15 are configured to be able to communicate with each other through interconnection. The inference device 1 is configured to be able to execute a predetermined process by executing a program recorded in the memory unit 12. The hardware configuration of the inference device 1 shown in this figure is one example, and it is sufficient that the inference device 1 is configured to be able to execute a predetermined process by operating according to the stored program. The software configuration of the inference device 1 will be described below.

[0019] Fig. 3 is a software configuration diagram of the inference device 1. In the software configuration of this embodiment, applications are virtualized and containerized using container technology, and the execution environment of the container is managed by an orchestration engine. Note that the containerization in the example of Fig. 3 does not use virtualization software or a guest OS (OS: Operating System), but is performed using the kernel functions in the host OS of the inference device 1.

[0020] In detail, the inference device 1 is provided with a container engine 32 together with a host OS 31. An application that performs a predetermined process is virtualized so as to be executable in the environment of the container engine 32, and such an application is referred to as a container 33.

[0021] In detail, the container 33 includes commands and libraries in addition to processes that execute predetermined processing. The container 33 can execute processes in mutually isolated virtual environments (container environments) by using the kernel of the host OS 31 via commands. In this way, a container environment is provided for each container 33, and physical hardware resources such as memory are isolated, thereby reducing dependency on the execution environment.

[0022] Furthermore, the inference device 1 is provided with an orchestration engine 34 that manages resources of the container environment. The orchestration engine 34 manages (orchestrates) the container environment virtualized by the container engine 32. Specifically, the orchestration engine 34 constructs a logical area called a cluster 35, and manages the execution environment of the application with a pod 36 consisting of a plurality of containers 33 in the cluster 35 as an execution unit of the application. In this embodiment, the first to third inference units using a machine learning model are implemented in the form of the pod 36.

[0023] Here, the containers 33 can communicate with each other by the function provided by the container engine 32. In detail, virtual NICs (Network Interface Cards) are provided in the execution environment of the containers 33, and a virtual switch is provided to connect these virtual NICs and the physical NIC of the inference device 1, thereby enabling the containers 33 to communicate with each other.

[0024] Furthermore, by using the function provided by the orchestration engine 34, a virtual network connected to the physical NIC is constructed in the cluster 35, a virtual IP address is set for the pod 36, and communication between the pods 36 can be performed using the IP address. In this way, the container 33 and the pod 36 can communicate with each other using the communication function provided by the container engine 32 and the orchestration engine 34.

[0025] 4A and 4B are diagrams showing a method of data exchange between the inference units of this embodiment. The first inference unit 41, the second inference unit 42, the third inference unit 43, and the asynchronous communication unit 44 shown in Fig. 4A are each implemented as a pod 36, and are executed in a cluster 35 (not shown in Fig. 4A) constructed by an orchestration engine 34.

[0026] The first inference unit 41 to the third inference unit 43 perform inference processing using a trained model. In the inference device 1, a microservice architecture is adopted, and the first inference unit 41 to the third inference unit 43 are subdivided into minimum processing units, so that many other inference units may be provided within the inference device 1.

[0027] 4A, data can be transferred from the first inference unit 41 to at least one of the second inference unit 42 and the third inference unit 43 via the asynchronous communication unit 44. In this example, the first inference unit 41 transfers data of the inference result to the second inference unit 42 via the asynchronous communication unit 44. Note that data of the processing result by the first inference unit 41 can also be transferred to the third inference unit 43 via the asynchronous communication unit 44.

[0028] The asynchronous communication unit 44 is provided with a first queue 45 into which writing is performed from the first inference unit 41, a second queue 46 into which reading is performed from the second inference unit 42, and a third queue 47 into which reading is performed from the third inference unit 43. The asynchronous communication unit 44 records the correspondence between the first inference unit 41, the second queue 42, and the third inference unit 43 and the first queue 45, the second queue 46, and the third queue 47. Note that the asynchronous communication unit 44 is provided with not only the first queue 45, the second queue 46, and the third queue 47, but also a read queue for the first inference unit 41 and a write queue (not shown) for the second inference unit 42 and the third inference unit 43.

[0029] As shown in FIG. 4B, the first queue 45, the second queue 46, and the third queue 47 each include a storage area for a plurality of queue data (n queues: queue #0 to queue #n-1).

[0030] The first inference unit 41 to the third inference unit 43 are capable of communicating with the asynchronous communication unit 44, and the first inference unit 41 can write queue data to a first queue 45 within the asynchronous communication unit 44, the second inference unit 42 can read queue data from a second queue 46 within the asynchronous communication unit 44, and the third inference unit 43 can read queue data from a third queue 47 within the asynchronous communication unit 44.

[0031] Queue data is recorded in queues #0 to #n-1 in a predetermined format. The queue data in the predetermined format includes a source, a destination, and a data section. The queues are managed based on the principle of first in, first out (FIFO). That is, when the first inference unit 41 performs a process of writing queue data to the first queue 45, it writes new queue data next to the queues that have already been queued. For example, when queue data exists in queues #0 to #2 in the first queue 45, new queue data is written to queue #3.

[0032] Thereafter, the asynchronous communication unit 44 accesses the first queue 45, and upon acquiring destination information in the queue data present in queue #0, copies the queue data to the queue corresponding to the destination information (for example, the second queue 46 when the destination is the second inference unit 42). Thereafter, in the first queue 45, the queue data in queues #1 to #n-1 are moved to queues #0 to #n-2, respectively. Then, in the second queue 46, the queue data that was present in queue #0 of the first queue 45 is copied to the queue next to the queue in which the queue data exists. For example, if queue data exists in queues #0 to #2, it is copied to queue #3.

[0033] When the asynchronous communication unit 44 informs the second inference unit 42 that writing has been performed in the second queue 46, the second inference unit 42 accesses the second queue 46 in the asynchronous communication unit 44 and acquires the queue data of queue #0. After that, in the second queue 46, the acquired queue data of queue #0 is deleted, and the queue data of queues #1 to #n-1 is moved to queues #0 to #n-2, respectively.

[0034] Through such a series of processes, asynchronous communication between the first inference section 41 and the second and third inference sections 42 and 43 becomes possible.

[0035] 5 is a flowchart for explaining the process related to asynchronous communication. In this diagram, the processes of the first inference unit 41, the asynchronous communication unit 44, and the second inference unit 42 are shown.

[0036] First, there will be described the processing of the first inference unit 41. It is assumed that the first inference unit 41 is in a standby state before the start of these processing operations.

[0037] In step S511, the first inference unit 41 transitions to a running state based on some kind of start request, and then starts a predetermined inference process. The start request may be received not only from another microservice, but also from the system side such as the orchestration engine 34.

[0038] In step S512, the first inference unit 41 executes an inference process to generate an inference result.

[0039] In step S513, the first inference unit 41 generates cue data in a predetermined format using the inference result generated in step S512. As described with reference to Fig. 4B, the cue data includes the first inference unit 41 as a source, the second inference unit 42 that performs subsequent processing as a destination, and the inference result by the first inference unit 41 as a data portion.

[0040] The first inference unit 41 records the transmission data thus generated in the first queue 45 in the asynchronous communication unit 44. As described with reference to Fig. 4B, the queue data is recorded in the first queue 45 on a FIFO basis.

[0041] In step S514, the first inference unit 41 ends the process and transitions to a standby state.

[0042] Next, the process of the asynchronous communication unit 44 shown in steps S521 to S525 will be described. The asynchronous communication unit 44 periodically monitors a writing queue. In this example, the asynchronous communication unit 44 monitors a first queue 45 to which data is written from the first inference unit 41.

[0043] In step S521 , the asynchronous communication unit 44 detects writing to the first queue 45 from the first inference unit 41 .

[0044] In step S522, when the asynchronous communication unit 44 detects writing to the first queue 45, the asynchronous communication unit 44 saves the queue data newly added to the first queue 45 as a log.

[0045] In step S523, the asynchronous communication unit 44 acquires the queue data recorded in the queue #0 of the first queue 45, and checks the destination information thereof. Here, it is assumed that the destination is the second inference unit 42.

[0046] In step S524, the asynchronous communication unit 44 performs a process of acquiring queue data from the first queue 45, and moves the extracted queue data to the second queue 46 corresponding to the second inference unit 42. The processes for the first queue 45 and the second queue 46 are performed according to FIFO, as described with reference to FIG.

[0047] In step S525 , the asynchronous communication unit 44 transmits a queue notification to the second inference unit 42 associated with the second queue 46 .

[0048] Next, the processing of the second inference unit 42 shown in steps S531 to S535 will be described. The second inference unit 42 is in a standby state before these processing, goes into an activated state by a queue notification from the asynchronous communication unit 44, and goes into a standby state again when a series of processing is completed.

[0049] In step S531, the second inference unit 42 receives a queue notification from the asynchronous communication unit 44.

[0050] In step S532, the second inference unit 42 enters an activated state in response to receiving the queue notification in step S531, and starts a series of processes.

[0051] In step S533, the second inference unit 42 accesses the second queue 46 in the asynchronous communication unit 44 to obtain data from queue #0. After that, in the second queue 46, the obtained data of queue #0 is deleted, and the data of queues #1 to #n-1 is moved to queues #0 to #n-2, respectively.

[0052] In step S534, the second inference unit 42 uses the information in the data portion of the cue data acquired in step S532, that is, the inference result of the first inference unit 41, to execute a predetermined second process.

[0053] In step S535, when the second inference section 42 finishes the series of processes, it transitions to a standby state.

[0054] In these processes, the queue processing, i.e., the addition of queue data to the first queue 45 in step S513, the removal of queue data from the first queue 45 in step S524, the addition of queue data to the second queue 46, and the acquisition of queue data from the second queue 46 in step S533, are performed based on the FIFO principle.

[0055] 6 is a diagram showing an example of a schematic software configuration of the multi-stage inference device 1 of this embodiment. According to this diagram, the inference device 1 receives sensor information acquired by the first sensor 21 to the fifth sensor 25, and combines the inference results of the front-stage inference unit 62 and the rear-stage inference unit 65, so that the final inference unit 68 obtains a final inference result. Then, the control unit 69 controls the controlled device 3 using the final inference result.

[0056] A first sensor calculation unit 611 to a fifth sensor calculation unit 615 are provided corresponding to the first sensor 21 to the fifth sensor 25. An asynchronous communication unit 44 for transmitting and receiving data is interposed between the first sensor calculation unit 611 to the fifth sensor calculation unit 615, the first front-stage inference unit 621 to the third front-stage inference unit 623 in the first front-stage inference unit 62, and the first rear-stage inference unit 651 to the fifth rear-stage inference unit 655 in the rear-stage inference unit 65, but is omitted in the figure. A detailed configuration of the inference device 1 will be described below.

[0057] The inference device 1 is provided with a first sensor calculation unit 611 to a fifth sensor calculation unit 615 corresponding to the first sensor 21 to the fifth sensor 25, respectively. Then, the front-stage first inference unit 621 to the front-stage third inference unit 623 use a part or all of the outputs from the first sensor calculation unit 611 to the fifth sensor calculation unit 615 to execute predetermined processing.

[0058] In the illustrated example, the front-stage first inference unit 621 accepts inputs from the first sensor calculation unit 611 to the third sensor calculation unit 613, the front-stage second inference unit 622 accepts inputs from the second sensor calculation unit 612 to the fourth sensor calculation unit 614, and the front-stage third inference unit 623 accepts inputs from the third sensor calculation unit 613 to the fifth sensor calculation unit 615.

[0059] Thereafter, the latter stage first inference unit 651 to the latter stage fifth inference unit 655 perform predetermined processing using some or all of the outputs from the former stage first inference unit 621 to the former stage third inference unit 623. In the illustrated example, the latter stage first inference unit 651 to the latter stage fifth inference unit 655 perform predetermined inference processing using all of the outputs from the former stage first inference unit 621 to the former stage third inference unit 623.

[0060] The results obtained by the rear-stage first inference unit 651 to the rear-stage fifth inference unit 655 are input to a final inference unit 68 and used to obtain a final inference result. Thereafter, a control unit 69 generates control signals based on the output from the final inference unit 68, and the controlled device 3 is controlled using these control signals.

[0061] The front-stage first inference unit 621 to the front-stage third inference unit 623 and the rear-stage first inference unit 651 to the rear-stage fifth inference unit 655 internally include inference processing units 631 to 633 and 661 to 665, and conversion units 641 to 643 and 671 to 675. The processing of the inference processing units 631 to 633, 661 to 665, and the conversion units 641 to 643, 671 to 675 will be described using the front-stage first inference unit 621.

[0062] The first sensor calculation unit 611 to the fifth sensor calculation unit 615 provided in the stage before the first inference unit 621 generate a plurality of calculation results that can be processed in the subsequent inference process based on the sensor information acquired from the first sensor 21 to the fifth sensor 25. For example, the first sensor 21 is a GPS (Global Positioning System) device, and the first sensor calculation unit 611 generates predetermined position information. In another example, the second sensor 22 is millimeter wave data provided in front of the vehicle, and the second sensor calculation unit 612 generates information indicating the position and size of an obstacle ahead.

[0063] The first inference unit 621 at the front stage receives input of sensor information from the first sensor calculation unit 611 to the third sensor calculation unit 613. The first inference unit 621 at the front stage includes an inference processing unit 631 and a conversion unit 641. The trained model used in the inference processing unit 631 is distributed generically by a supplier, and the data format output therefrom is specified by the distributor, and may contain unnecessary formats. Therefore, the conversion unit 641 converts the format of the data output from the inference processing unit 631 and deletes unnecessary information, thereby shortening the time required for writing data to the queue of the asynchronous communication unit 44.

[0064] Since multiple parameters may be included in the data format after conversion by the conversion unit 641, it is preferable that the data be described in a descriptive format such as XML or a dictionary format such as JSON. If the data is in JSON format, further conversion is not required when inputting the data to the trained model in the subsequent processing by the subsequent first rear-stage inference unit 651 to fifth rear-stage inference unit 655, and therefore the overall processing speed of the inference device 1 can be increased.

[0065] Similar processing is performed in the front-stage second inference unit 622 and the front-stage third inference unit 623, and using the inference results of the front-stage first inference unit 621 to the front-stage third inference unit 623, the rear-stage first inference unit 651 to the rear-stage fifth inference unit 655 perform further inference processing, and then the final inference result can be obtained by the final inference unit 68.

[0066] 7 is a table showing specific processing of the inference device 1. As shown in this table, possible sensors 2 include LiDAR, radar, vision camera, in-car camera, anemometer, GPS, thermometer / hygrometer, luminance meter, and inertial memory device (IMU). A sensor calculation unit 61 is provided corresponding to each of these sensors 2, and converts sensor data output from the sensor 2 into a predetermined format. For example, data output from LiDAR is converted into image data showing an obstacle ahead.

[0067] The front-stage inference unit 62 has a plurality of inference units, and these inference units use machine learning to perform person detection outside the vehicle, person detection inside the vehicle, obstacle detection, weather judgment, temperature and humidity judgment, self-location estimation, vehicle-to-vehicle distance estimation, route judgment, direction judgment, and the like. The inference unit uses a learned model that is a general-purpose learning model trained by machine learning, and accepts input of sensor information required for a predetermined inference process. For example, some inference units use sensor information from LiDAR and a vision camera to perform person detection, person detection outside the vehicle, and obstacle detection. Others use sensor information from a GPS and a thermometer and hygrometer to perform weather judgment.

[0068] The subsequent inference unit 65 has a plurality of inference units, and these inference units use machine learning to perform various processes according to the situation, such as inferring theoretical acceleration and braking force.

[0069] When inferring theoretical acceleration, for example, calculation processing that takes into account inertial acceleration, calculation processing based on the propulsion vector to the destination, calculation processing that takes into account torque output, calculation processing that takes into account wind vectors, correction processing for controlling acceleration above a certain level when starting, calculation processing that takes into account when driving around a curve, correction processing for controlling acceleration above a certain level when decelerating, inference processing that takes into account the propulsion vector due to steering, inference processing when parking, inference processing when backing up, inference processing that takes into account the front hypotenuse angle, calculation of tire friction, calculation processing that takes into account tire friction in weather (rain), calculation processing that takes into account regenerative braking force, and calculation processing that takes into account hydraulic braking force are performed.

[0070] When inferring braking force, calculation processing is performed based on the speed and inertial acceleration for the propulsion vector to the destination, calculation processing using the motor rotational torque, calculation processing for the hydraulic brakes based on the required braking force and regenerative braking force, correction processing for the applied braking force, and calculation processing based on the speed and inertial acceleration before steering occurs when turning a curve, etc.

[0071] These inference processes are provided by various suppliers, and therefore output formats are not unified. In particular, since the format may be unique to each supplier, in such cases, the conversion units 671 to 675 provided in the first to fifth subsequent stage inference units 651 to 655 convert the format into a format that can be input to the subsequent inference process, such as XML or JSON.

[0072] The final inference unit 68 calculates final inference results of inverter control signals (DC / AC conversion, current / voltage), motor control (torque command value, transmission control), brake control (regeneration / friction braking), etc., so that the control unit 69 can perform control. Finally, the control unit 69 generates control signals for the controlled device 3 based on these final inference results.

[0073] FIG. 8 is a diagram showing the learning process of the learning model used in the inference unit.

[0074] In the inference processing shown in Figures 4A and 6, etc., learned models are used in the first inference unit 41 to the third inference unit 43, the inference processing units 631 to 633 in the front-stage first inference unit 621 to the front-stage third inference unit 623, and the inference processing units 661 to 665 in the rear-stage first inference unit 651 to the rear-stage fifth inference unit 655.

[0075] The inference device 1 receives sensor information from the first sensor 21 to the fifth sensor 25, and generates a control signal for the controlled device 3 through a multi-stage inference process as shown in Fig. 6. In addition, the exchange of data between the inference units in the inference device 1 is recorded as a log, as shown in step S522 of Fig. 5. The sensor information, control signal, and log information are recorded in the data storage 6.

[0076] The learning system 5 performs machine learning using these data recorded in the data storage 6, and constructs a trained machine learning model. The constructed trained model is downloaded to the inference device 1 at a predetermined cycle. In this way, the inference accuracy of the inference device 1 can be improved.

[0077] 1, the inference device 1 is described as being directly connected to the sensor 2 and the controlled device 3, but this is not limiting. The inference device 1 may be provided on the cloud side.

[0078] 5, the asynchronous communication unit 44 copies the queue data to the second queue 46 and then issues a queue notification to the second inference unit 42, which is the destination of the queue data. As an alternative to this process, the second inference unit 42 can omit the queue notification by periodically monitoring the second queue 46. Note that by using the queue notification as in the example of FIG. 5, the timing at which the second inference unit 42 reads the queue data can be accelerated, thereby increasing the processing speed of the inference device 1. On the other hand, by omitting the queue notification, the processing load on the second inference unit 42 can be reduced.

[0079] In addition, the inference device 1 shown in FIG. 6 performs inference in three stages, the first inference unit 621 to the third inference unit 623, the first inference unit 651 to the fifth inference unit 655, and the final inference unit 68, but the inference may be performed in any manner including inference in a greater number of stages. For example, as shown in FIG. 9, in addition to the first inference unit 41 to the third inference unit 43 and the final inference unit 68, a fourth inference unit 48 and a fifth inference unit 49 may be provided and configured to be able to exchange data with each other via the asynchronous communication unit 44. The first inference unit 41 to the fifth inference unit 49 repeatedly execute recursive inference processing, and the final inference unit 68 uses these inference results to calculate a final inference result as appropriate. In such complicated multi-stage processing, by providing the asynchronous communication unit 44, the inference unit can transmit the inference result to the asynchronous communication unit 44 and end its own processing without waiting for the completion of the subsequent inference processing, so that the processing time of the multi-stage inference processing can be shortened.

[0080] The inference device 1 of this embodiment is implemented using container technology and includes an asynchronous communication unit 44 that asynchronously executes data communication from the front-stage first inference unit 621, which is a first inference unit, to the rear-stage first inference unit 651, which is a second inference unit. The asynchronous communication unit 44 includes a data queuing mechanism.

[0081] Applications implemented using container technology can communicate with each other using container engine technology. However, particularly when adopting a microservices architecture, the number of inference units increases, which can result in significant delays in sending and receiving data and reduced processing speed.

[0082] Therefore, in order to exchange data from the front-stage first inference unit 621 to the rear-stage first inference unit 651, the asynchronous communication unit 44 queues the data to be exchanged. This allows the processing results to be transmitted without waiting for the processing of the subsequent rear-stage first inference unit 651 to be completed, even if the subsequent rear-stage first inference unit 651 is currently processing, thereby making it possible to speed up the multi-stage inference processing as a whole.

[0083] According to the inference device 1 of this embodiment, the asynchronous communication unit 44 includes both a first queue 45 written from the first inference unit 41 on the transmitting side, and a second queue 46 read from the second inference unit 42 on the receiving side. By providing a queuing mechanism on both the transmitting and receiving sides in this way, the operation of the multi-stage inference device 1 can be further stabilized.

[0084] According to the inference device 1 of this embodiment, the asynchronous communication unit 44 moves data written from the first inference unit 41 and queued in the first queue 45 to a second queue 46 read from the second inference unit 42. By including such processing, it is possible to implement multiple queues in the asynchronous communication unit 44, and it is possible to further stabilize the operation of the multi-stage inference device 1.

[0085] According to the inference device 1 of this embodiment, the format of data sent from each inference unit is the format input to the machine learning model of the subsequent inference unit, specifically, the JSON format. The trained model obtained by machine learning used in the inference unit is distributed generically, and the output data format is specified by the distributor and may contain unnecessary formats. By making the data exchanged in JSON format, unnecessary formats are deleted, thereby improving the communication speed, and the data is input to the machine learning model of the subsequent inference unit, thereby improving the processing speed of the subsequent inference unit.

[0086] According to the inference device 1 of this embodiment, the inference units, ie, the front-stage first inference unit 621 to the front-stage third inference unit 623 and the rear-stage first inference unit 651 to the rear-stage fifth inference unit 655, each have inference processing units 631 to 633, 661 to 665 equipped with a machine learning model, and conversion units 641 to 643, 671 to 675. By providing such conversion units 641 to 643, 671 to 675, even if the format of data transmitted from each inference unit is not a format for input to the machine learning model of the subsequent inference unit, the data can be changed to an appropriate format by processing in the conversion unit.

[0087] Second embodiment In the first embodiment, an example in which one inference device 1 performs multi-stage inference is described, but the present invention is not limited to this. In the second embodiment, an example in which a plurality of inference devices 1 constitute an inference system, and the inference system performs multi-stage inference processing is described.

[0088] Fig. 10 is a schematic diagram of an inference system according to this embodiment. Compared to the configuration of the first embodiment shown in Fig. 1, in the local environment 10, three inference devices 1A, 1B, and 1C are provided instead of one inference device 1, and these inference devices 1A, 1B, and 1C constitute an inference system 100.

[0089] Sensors 2A and 2B are connected to inference device 1A, sensor 2C is connected to inference device 1B, and sensor 2D is connected to inference device 1C. Sensor information acquired by sensors 2A and 2B is accepted by inference device 1A and then processed by inference system 100 consisting of inference devices 1A to 1C. Similarly, sensor information acquired by sensor 2C is accepted by inference device 1B and then processed by inference system 100. Sensor information acquired by sensor 2D is accepted by inference device 1C and then processed by inference system 100.

[0090] 11 is a diagram showing the software configuration of the inference system 100. Each of the inference devices 1A to 1C is provided with an orchestration engine 34, and these orchestration engines 34 work together to form a cluster 35 spanning multiple inference devices 1. In such a case, within the cluster 35, pods 36 (an inference unit and an asynchronous communication unit) can communicate with each other over a virtual IP network. Such mutual communication between the pods 36 is performed within the cluster 35 without being affected by the physical configuration of the inference devices 1A to 1C.

[0091] A master 351 and a node 352 are provided in the cluster 35, and the master 351 manages the entire cluster 35, and a pod 36 is placed (deployed) and operates in the node 352. Note that the pods 36 placed in different nodes 352 can also communicate with each other in a virtual network configured by the orchestration engine 34. Note that the master 351 and the node 352 in the cluster 35 are omitted from FIG. 3.

[0092] Therefore, one asynchronous communication unit 44 is provided in cluster 35. Inference units 111, 112 provided in first inference device 1A, inference units 113, 114 provided in second inference device 1B, and inference units 115-117 provided in third inference device 1C can exchange data with one another via asynchronous communication unit 44.

[0093] In this way, when an orchestration engine 34 is provided in each of the multiple inference devices 1A to 1C and a cluster 35 is formed spanning the multiple inference devices 1, by providing one asynchronous communication unit 44 in the cluster 35, the inference units 111 to 117 provided in the inference devices 1A to 1C can communicate with each other using queuing.

[0094] Furthermore, by providing the orchestration engine 34 in a plurality of inference devices 1A to 1C, it is possible to configure a cluster 35 that serves as an execution environment for a pod 36 using the hardware resources of the plurality of inference devices 1A to 1C. The orchestration engine 34 manages the placement and execution within a node 352 of the pod 36 according to the description of a configuration file called a manifest, and therefore has the advantage that even when a plurality of inference devices 1A to 1C are used, the operation as a whole is stabilized and the hardware configuration is made easier.

[0095] (Modification) 11, a cluster 35 spanning the inference devices 1A to 1C is configured by an orchestration engine 34 provided in each of the inference devices 1A to 1C. In contrast, in this modified example, an example will be described in which a cluster 35 spanning the inference devices 1A to 1C is not configured.

[0096] 12 is a diagram showing the configuration of an inference system 100 in a modified example. For example, in this diagram, a cluster 35 is configured for each of the inference devices 1A to 1C. Therefore, the pods 36 provided in the inference devices 1A to 1C cannot transmit and receive data between the inference devices 1A to 1C.

[0097] Therefore, an asynchronous communication unit 44 is provided in each of the inference devices 1A-1C, and the multiple asynchronous communication units 44 work together to copy data from a write queue provided therein to a read queue. In this way, even if the multiple inference devices 1A-1C do not belong to the same cluster 35, by providing an asynchronous communication unit 44 in each of the inference devices 1A-1C and enabling the copying of queue data from an arbitrary write queue to an arbitrary read queue, it becomes possible to exchange data between the inference units 111-116 of the different inference devices 1A-1C.

[0098] Third embodiment Next, in the third embodiment, another aspect of the asynchronous communication unit will be described.

[0099] 13A to 13C show a first inference unit 131, a second inference unit 132, a third inference unit 133, and an asynchronous communication unit 134 in an aspect different from that of the first embodiment. In the inference device 1, the first inference unit 131, the second inference unit 132, the third inference unit 133, and the asynchronous communication unit 134 are implemented as a pod 36.

[0100] The first inference unit 131 on the writing side includes an inference processing unit 1311, a division and conversion unit 1312, and a tag setting unit 1313. The second inference unit 132 on the reading side includes a tag selection unit 1321, a combination unit 1322, and an inference processing unit 1323, and the third inference unit 133 includes a tag selection unit 1331, a combination unit 1332, and an inference processing unit 1333. The asynchronous communication unit 134 includes a first queue 1341 written from the first inference unit 131, and a second queue 1342 and a third queue 1343 read from the second inference unit 132 and the third inference unit 133.

[0101] In the first inference unit 131 on the writing side, the division conversion unit 1312 divides the inference result output from the inference processing unit 1311 into a predetermined functional unit and converts it into JSON format. For example, when the output of the inference processing unit 1311 includes a parameter related to position information and a parameter related to speed information, cue data divided into position information and speed information is generated. Then, the tag setting unit 1313 attaches tags (for example, two tags indicating position information and speed information) to each of the divided cue data. The divided data with the tags attached is written to the first queue 1341.

[0102] The asynchronous communication unit 134 checks the destination of the queue data recorded in the first queue 1341, and moves it to a queue (e.g., the second queue 1342) corresponding to the destination inference unit (e.g., the second inference unit 132).

[0103] In the second inference unit 132 on the reading side, the tag selection unit 1321 first searches the second queue 1342 and acquires data with a tag necessary for its own processing from among the divided data with tags set in the second queue 1342. The acquired data may be multiple, and if there is multiple data, the acquired data is combined by the combining unit 1322. Then, the inference processing unit 1323 executes the inference processing using the combined data. In this way, the second inference unit 132 uses only the divided data necessary for its own processing, and therefore can omit the acquisition of unnecessary data. In the third inference unit 133, the same processing as that of the second inference unit 132 is executed.

[0104] Fig. 13B is a diagram showing the structure of a first queue 1341 for writing. As shown in Fig. 13B, the first queue 1341 includes a plurality of queue data storage areas (n queues, queue #0 to queue #n-1, in the figure). Queue information is recorded in a predetermined format in queues #0 to #n-1. The predetermined format includes a source, a tag, and transmission information. The queues are managed on a first in, first out (FIFO) basis.

[0105] 13C is a diagram showing the structure of second queue 1342 for reading. Second queue 1342 has a plurality of queue data storage areas (n queues, queue #0 to queue #n-1, in the figure). Queue information is recorded in a predetermined format in queue #0 to queue #n-1, and a transmission source, tag, and transmission information are recorded in each queue.

[0106] The tag selection unit 1321 of the second inference unit 132 on the reading side and the tag selection unit 1331 of the third inference unit 133 search the second queue 1342 for reading using the tag, detect data to be processed, and acquire the detected data. Note that there may be a plurality of pieces of data to be detected, and the acquired plurality of pieces of data are combined in the combining unit 1322. Then, the inference processing unit 1323 performs inference processing on the data generated by the combination in the combining unit 1322. Note that the queue data stored in the second queue 1342 and the third queue 1343 on the reading side is deleted after a predetermined time has elapsed.

[0107] In this manner, in the first inference unit 131, the division conversion unit 1312 divides the inference result by the inference processing unit 1311 into functions, and the tag setting unit 1313 sets tags for the divided inference results. Then, for the divided data with tags written from the first inference unit 131, the second inference unit 132 selects data necessary for its own processing using the tags, and uses the data for inference processing by the inference processing unit 1323. Similarly, the third inference unit 133 can use necessary data from the data written by the first inference unit 131 for processing by the inference processing unit 1333.

[0108] 14 is a flowchart illustrating the process related to asynchronous communication. In this diagram, the processes of the first inference unit 131, the asynchronous communication unit 134, and the second inference unit 132 are shown.

[0109] First, there will be described the processing of the first inference unit 131. Compared to the processing of the first inference unit 41 shown in Fig. 5, the first inference unit 131 executes the processing of steps S1411 to S1413 instead of step S513.

[0110] In step S1411, the division conversion unit 1312 converts the inference result generated by the inference processing unit 1311 into a predetermined format, and divides it into functional units.

[0111] In step S1412, the tag setting unit 1313 assigns tags according to functions to the divided data generated by division in step S1411. The divided data and the corresponding tags are both stored in the queue data.

[0112] In step S1413, tag setting unit 1313 writes the tagged divided data generated in step S1412 to first queue 1341 of asynchronous communication unit 134. Since multiple divided data are generated in step S1411, queue data including these divided data and corresponding tags is recorded in multiple queues of first queue 1341.

[0113] Next, the process of the asynchronous communication unit 134 will be described. Compared to the process shown in Fig. 5, the asynchronous communication unit 134 executes the processes of steps S1421 to S1423 instead of steps S523 to S525. Also, in the process of this figure, the process of step S525 is omitted, that is, after the queue data is written, a queue notification is not performed to the subsequent second inference unit 132 that is the destination. Therefore, the second inference unit 132 periodically monitors the second queue 1342 of the asynchronous communication unit 134.

[0114] In step S1421, the asynchronous communication unit 134 modifies and adds tags as necessary for the divided data written to the first queue 1341. In the tag setting process by the tag setting unit 1313 of the first inference unit 131, tags necessary for the subsequent tag selection process by the second inference unit 132 and the third inference unit 133 may not be set sufficiently. Therefore, the asynchronous communication unit 134 changes the tags set in the divided data or adds further tags to the divided data, for example, based on conditions set in advance by the user.

[0115] In step S1422, the asynchronous communication unit 134 copies the queue data in which the tag changes and additions made by the process of step S1421 are stored for the divided data written to the first queue 1341 to the second queue 1342 and the third queue 1343 on the reading side. Note that the writing side queue is copied to all the reading side queues. The copied queue data is then acquired by the subsequent second inference unit 132 and the third inference unit 133 and used for the inference process.

[0116] In step S1423, the asynchronous communication section 134 deletes queue data for which a predetermined time has elapsed since writing, from the first queue 1341 on the writing side, and the second queue 1342 and the third queue 1343 on the reading side.

[0117] Next, a description will be given of the processing of the second inference unit 132. Compared to the processing shown in Fig. 5, the second inference unit 132 omits step S531 and executes the processing of steps S1431 to S1432 instead of step S533. As described above, since the asynchronous communication unit 134 does not perform queue notification, the second inference unit 132 periodically monitors the second queue 1342 of the asynchronous communication unit 134.

[0118] In step S1431, after the second inference unit 132 enters an execution state, the tag selection unit 1321 refers to the second queue 1342 of the asynchronous communication unit 134 and searches for a tag corresponding to a function required for the inference processing of the inference processing unit 1323.

[0119] In step S1432, the combining unit 1322 of the second inference unit 132 acquires the cue data including the tag selected in step S1431, and combines the cue data according to a predetermined rule. The order of the cue data when combining is determined so as to be in a format suitable for the inference processing of the inference processing unit 1323.

[0120] In this manner, in the second inference unit 132, the tag selection unit 1321 collects split data having tags corresponding to functions required for its own inference processing from the queue data recorded in the second queue 1342 to be read, the combination unit 1322 combines these split data, and finally, the inference processing is executed by the inference processing unit 1323.

[0121] (Fourth embodiment)

[0122] 15 is a schematic diagram of an example of the overall configuration of the inference device 1 of the fourth embodiment. In this inference device 1, as shown in the third embodiment, the inference unit includes a division / conversion unit, a tag setting unit, a combination unit, and a tag selection unit.

[0123] In this process, a first sensor calculation unit 1511 that receives sensor information from a first sensor 21, a second sensor calculation unit 1512 that receives sensor information from a second sensor 22, a first stage inference unit 152, a second stage inference unit 153, and a final stage inference unit 154 are connected via an asynchronous communication unit 155. The first stage inference unit 152 includes a first stage first inference unit 1521 and a first stage second inference unit 1522, and the second stage inference unit 153 includes a second stage first inference unit 1531 and a second stage second inference unit 1532.

[0124] The asynchronous communication unit 155 has a write queue 15511 and a read queue 15512 of the first sensor calculation unit 1511, a write queue 15521 and a read queue 15522 of the second sensor calculation unit 1512, a write queue 15531 and a read queue 15532 of the front-stage first inference unit 1521, a write queue 15541 and a read queue 15542 of the front-stage second inference unit 1522, a write queue 15551 and a read queue 15552 of the rear-stage first inference unit 1531, a write queue 15561 and a read queue 15562 of the rear-stage second inference unit 1532, and a write queue 15571 and a read queue 15572 of the final inference unit 154. These queues are internally connected to each other, and it is possible to copy queue data from any write queue to any read queue.

[0125] The first sensor calculation unit 1511 includes an inference processing unit, a division and conversion unit, a tag setting unit, and a combination unit, all of which are not shown, and is configured to be able to write queue data to a write queue 15511 and read queue data from a read queue 15512. Similarly, the second sensor calculation unit 1512 is configured to be able to write queue data to a write queue 15521 and read queue data from a read queue 15522.

[0126] The front-stage first inference unit 1521 has an inference processing unit 15211, a division conversion unit 15212, a tag setting unit 15213, a combination unit 15214, and a tag selection unit 15215. Then, the tag setting unit 15213 writes the divided queue data with the tag to the write queue 15531 in the asynchronous communication unit 155, and the tag selection unit 15215 acquires the divided queue data with the desired tag from the read queue 15532 in the asynchronous communication unit 155. As a result, the inference processing unit 15211 acquires the input from the first sensor calculation unit 1511 and the second sensor calculation unit 1512 via the tag selection unit 15215 and the combination unit 15214, and passes the inference result to the subsequent rear-stage inference unit 153 via the division conversion unit 15212 and the tag setting unit 15213.

[0127] The front-stage second inference unit 1522, the rear-stage first inference unit 1531, and the rear-stage second inference unit 1532 have the same configuration as the front-stage first inference unit 1521, and data is exchanged via write queues 15541, 15551, and 15561 and read queues 15542, 15552, and 15562. The final inference unit 154 may also have the same configuration as the other inference units.

[0128] In this way, the inference processing units 15211, 15221, 15311, and 15321 are able to select and acquire information required for their own processing by using tags, without being limited to the format of the processing results from the previous stages of these processes.

[0129] Fifth embodiment In the fourth embodiment, an example has been described in which a write queue and a read queue are provided in correspondence with each of the inference units (pods 36) in the asynchronous communication unit 155. In the fifth embodiment, an example has been described in which a pair of a write queue and a read queue are provided in the asynchronous communication unit 155 for a plurality of inference units (pods 36).

[0130] Fig. 16 is a schematic configuration diagram of the inference device 1 of the fourth embodiment, and corresponds to Fig. 15 of the third embodiment. According to this diagram, a pair of a write queue 161 and a read queue 162 are provided corresponding to the first sensor calculation unit 1511, the second sensor calculation unit 1512, the front-stage first inference unit 1521, the front-stage second inference unit 1522, the rear-stage first inference unit 1531, the rear-stage second inference unit 1532, and the final inference unit 154.

[0131] When sending data from an inference unit to a subsequent inference unit, the inference unit divides the inference result to generate divided data, and writes the generated divided data with a label attached to it in the write queue 161. Then, the asynchronous communication unit 155 moves the data from the write queue 161 to the read queue 162, and corrects and adds tags as necessary (step S1421).

[0132] Then, in order to receive the divided data, the subsequent inference unit accesses the read queue 162 of the asynchronous communication unit 155, and selects, acquires, and combines the divided data to which the labels required for its own processing are attached. The combined divided data is used for inference processing by the subsequent inference unit.

[0133] With this configuration, it is not necessary to provide a different queue for each pod 36 on the sending side and the receiving side, and therefore the processing in the asynchronous communication unit 155 can be simplified. Furthermore, since the subsequent inference unit obtains the divided data required for its own processing, it is also possible to omit the destination in the queue data format. On the other hand, as shown in step S525 of FIG. 5 in the first embodiment, the asynchronous communication unit 44 may transmit a queue notification to the subsequent inference unit according to the destination, and in such a case, the start of processing by the subsequent inference unit can be accelerated.

[0134] The present invention allows various embodiments and modifications without departing from the broad spirit and scope of the present invention. The above-described embodiments are for explaining the present invention and do not limit the scope of the present invention. That is, the scope of the present invention is indicated by the claims, not the embodiments. Various modifications made within the scope of the claims and the scope of the invention equivalent thereto are considered to be within the scope of the present invention. [Explanation of symbols]

[0135] 1, 1A, 1B, 1C Reasoning device 2, 2A~2D, 21~25 Sensors 3. Controlled Devices 4. Network 5. Learning System 6. Data Storage 10 Local Environment 34 Orchestration Engine 35 Clusters 351 Master 352 nodes 41~43, 48, 49 Reasoning section 44 Asynchronous Communication Department 45~47 1st queue~3rd queue 61 Sensor Calculation Unit 62 First stage inference part 65 Post-inference section 67 Conversion unit 68 Final reasoning part 69 Control section 100 Inference Systems 111~117 Reasoning part 131~133 1st reasoning part ~ 3rd reasoning part 134 Asynchronous Communication Department 151 First stage 1st inference part 153 Post-inference section 154 Final Reasoning Part 155 Asynchronous Communication Department 161 Write Queue 162 Reading Queue 611~615 Sensor Calculation Section 621~623 First stage 1st inference part ~ First stage 3rd inference part 631~633, 661~655, 1311, 1323, 1333, 15211, 15221, 15311, 15321 Inference processing unit 641~643 conversion unit 651~655 1st inference part of the latter stage to 5th inference part of the latter stage 1312, 15212, 15212, 15222, 15312, 15322 Split conversion section 1313, 15213, 15223, 15313, 15323 Tag setting section 1321, 1331, 15215, 15225, 15315, 15325 Tag selection section 1322, 1332, 15214, 15224, 15314, 15324 Joint 1341~1343 1st queue~3rd queue 1511, 1512: First sensor calculation unit, second sensor calculation unit 1521, 1522 First stage inference section, first stage second inference section 1531, 1532: First inference section, second inference section 15511, 15521, 15531, 15541, 15551, 15571, 15561 Write Queue 15512, 15522, 15532, 15542, 15552, 15562, 15572 Read Queue

Claims

1. A multi-stage inference system including a plurality of inference devices in which applications are implemented using container technology, The multi-stage inference system comprises: A plurality of inference units provided in the inference device and executing an inference process using a machine learning model; asynchronous communication unit provided in at least one of the inference devices, for asynchronously transmitting and receiving data from the inference unit to a subsequent inference unit, and having a data queuing mechanism.

2. each of the inference devices includes an orchestration engine that configures an execution environment of the application across a plurality of the inference devices; 2. The multi-stage inference system according to claim 1, wherein one of the inference devices includes an asynchronous communication unit capable of asynchronously transmitting and receiving data from the inference unit to the subsequent inference unit between different inference devices.

3. The multi-stage inference system of claim 1 , wherein each of the inference devices is provided with an asynchronous communication unit that operates in cooperation with each other to enable asynchronous transmission and reception of data from the inference unit to a subsequent inference unit between different inference devices.

4. 2. The multi-stage inference system according to claim 1, wherein the asynchronous communication unit is configured to be capable of queuing the data written from the inference unit and the data read from the subsequent inference unit.

5. 5. The multi-stage inference system according to claim 4, wherein the asynchronous communication unit moves the data written and queued from the inference unit to a queue from which the data is read by the subsequent inference unit, and then notifies the subsequent inference unit that there is data to be read.

6. The inference unit includes an inference processing unit using the machine learning model and a conversion unit, The multi-stage inference system according to claim 1 , wherein the conversion unit converts data output from the inference processing unit into an input format for the inference processing unit of the subsequent inference unit.

7. The multi-stage inference system according to claim 6 , wherein the conversion unit converts the data into a JSON format.

8. the inference unit assigns one or more tags to the data according to characteristics, and records the tagged data in the queuing mechanism of the asynchronous communication unit; 2. The multi-stage inference system according to claim 1, wherein the subsequent inference unit refers to the tag attached to the data recorded in the queuing mechanism and obtains data tagged with the feature to be used for processing by the inference unit itself.

9. the inference unit divides the data to generate a plurality of divided data, assigns tags to the divided data according to characteristics, and records the plurality of divided data with the tags in the queuing mechanism of the asynchronous communication unit; The multi-stage inference system according to claim 1 , wherein the subsequent inference unit refers to the tag attached to the divided data recorded in the queuing mechanism of the asynchronous communication unit, and obtains the divided data tagged with the feature to be used for its own processing.

10. The multi-stage inference system according to claim 9 , wherein the subsequent inference unit combines the acquired multiple pieces of divided data and performs inference processing using the combined pieces of divided data.

11. 10. The multi-stage inference system of claim 9, wherein the queuing mechanism of the asynchronous communication unit comprises a queue from which the data can be read by a plurality of the subsequent inference units.

12. The multi-stage inference system according to claim 11 , wherein the queuing mechanism of the asynchronous communication unit includes a queue to which the data from a plurality of the inference units can be written.

13. A multi-stage inference device in which an application is implemented using container technology, The multi-stage inference device includes a plurality of inference units that execute inference processing using a machine learning model, and an asynchronous communication unit that executes asynchronous transmission and reception of data from the inference unit to the subsequent inference unit, The asynchronous communication unit is provided with a data queuing mechanism.

14. The multi-stage inference apparatus according to claim 13 , further comprising an orchestration engine that manages an execution environment of an application implemented by the container technology.

Citation Information

Patent Citations

  • Cause inferring system, cause inferring device, and cause inferring method

    JP2021196730A