Processing device, processing program, and processing method
By distributing tasks across multiple server devices through a load balancer, the processing device efficiently handles medical image data analysis, addressing the inefficiencies in existing systems and enhancing resource utilization for disease prediction tasks.
Patent Information
- Application Number
- PCT/JP2023/015676
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-24
AI Technical Summary
Existing systems for processing medical image data to determine disease predictions are inefficient due to heavy processing loads on server devices, which can lead to delays and suboptimal resource utilization.
A processing device and method that distribute tasks across multiple server devices by instructing a load balancer to process parallelizable tasks independently, allowing for efficient load balancing and resource utilization.
This approach enables faster processing times and more efficient use of server resources, improving the overall efficiency of medical image data analysis and disease prediction tasks.
Smart Images

Figure JP2023015676_24102024_PF_FP_ABST
Abstract
Description
Processing device, processing program, and processing method
[0001] The present invention relates to a processing device, a processing program, and a processing method for distributing the load on a plurality of server devices.
[0002]
[0003] Conventionally, systems have been known in which, for example, a captured image is transmitted to a server device and the server device processes the image using a trained analysis model to obtain a diagnosis result for a predetermined disease. Patent Document 1 (JP-A-2005-102626) describes an example of such a system: "In a diagnosis prediction system, a control unit of a support server divides an original image to generate multiple segmented images, generates a segmented prediction model that predicts a diagnosis result from the segmented images using first teacher information that associates and records diagnosis results for the original image with the multiple segmented images, and records the generated segmented prediction model in a learning result storage unit. Second teacher information is generated by inputting feature information generated by each segmented image of the first teacher information into the segmented prediction model, based on the position of the segmented image, and generates an integrated prediction model that predicts a diagnosis result using the second teacher information. When an image to be evaluated is acquired, the control unit predicts a diagnosis result using the segmented prediction model and the integrated prediction model recorded in the learning result storage unit."
[0003] Japanese Patent Application Laid-Open No. 2022-50089
[0004] In light of the above-described techniques, the present disclosure aims to provide a processing device, a processing program, and a processing method that are capable of more efficient processing through various embodiments.
[0005] According to one aspect of the present disclosure, there is provided a processing device having at least one processor for processing a first request including multiple tasks, at least a first task and a second task, via a load balancer for distributing the load of multiple server devices communicatively connected via a communication network, wherein the at least one processor is configured to execute processing to acquire the first request from a terminal device communicatively connected via the communication network, and if the first task and the second task are tasks that can be processed in parallel, to instruct the load balancer to process each of the first task and the second task as a single request, in order to process each of the first task and the second task on at least two different server devices among the multiple server devices.
[0006] According to one aspect of the present disclosure, there is provided a processing program that causes "at least one processor to function so as to acquire a first request including multiple tasks, at least a first task and a second task, from a terminal device that is communicatively connected via a communication network via a load balancer for distributing the load of multiple server devices that are communicatively connected via the communication network, and, if the first task and the second task are tasks that can be processed in parallel, to instruct the load balancer to process each of the first task and the second task as a single request, so as to process each of the first task and the second task on at least two different server devices among the multiple server devices."
[0007] According to one aspect of the present disclosure, there is provided a processing method executed by at least one processor to process a first request including multiple tasks, at least a first task and a second task, via a load balancer for distributing the load of multiple server devices communicatively connected via a communication network, the processing method including: acquiring the first request from a terminal device communicatively connected via the communication network; and, if the first task and the second task are tasks that can be processed in parallel, instructing the load balancer to process each of the first task and the second task as a single request, in order to process each of the first task and the second task on at least two different server devices among the multiple server devices.
[0008] According to the present disclosure, it is possible to provide a processing device, a processing program, and a processing method that enable more efficient processing.
[0009] It should be noted that the above effects are merely illustrative for the sake of convenience and are not limiting. In addition to or instead of the above effects, any effect described in this disclosure or an effect obvious to a person skilled in the art may be achieved.
[0010] FIG. 1 is a block diagram showing a configuration of a processing system 1 according to an embodiment of the present disclosure. FIG. 2A is a HW block diagram showing a HW configuration of a processing device 100 according to an embodiment of the present disclosure. FIG. 2B is a functional block diagram showing a functional configuration of the processing device 100 according to an embodiment of the present disclosure. FIG. 3 is a diagram conceptually showing a configuration of a request processed by the processing device 100 according to an embodiment of the present disclosure. FIG. 4A is a diagram showing a processing flow executed in the processing system 1 to obtain an analysis result according to an embodiment of the present disclosure. FIG. 4B is a diagram showing a specific example of the configuration of a request processed by the processing device 100 according to an embodiment of the present disclosure. FIG. 5A is a diagram showing a processing sequence executed in the processing system 1 according to an embodiment of the present disclosure. FIG. 5B is a diagram showing a processing sequence executed in the processing system 1 according to an embodiment of the present disclosure. FIG. 5C is a diagram showing a processing sequence executed in the processing system 1 according to an embodiment of the present disclosure. FIG. 6 is a diagram conceptually showing a process related to load balancing executed in the processing system 1 according to an embodiment of the present disclosure. FIG. 7 is a diagram showing a processing flow executed in the processing device 100 according to an embodiment of the present disclosure. FIG. 8 is a diagram conceptually showing an example of load adjustment of a group of server devices according to an embodiment of the present disclosure.
[0011] 1. Overview of Processing System 1 The processing system 1 according to the present disclosure is used to distribute the processing load of a server device with respect to requests sent from a client terminal device 300. Such a processing system 1 can be used for various processing requests. One example of such a request is so-called machine learning processing, such as inputting information into a trained model and obtaining the results as output. Such requests include various tasks, such as preprocessing of information to be input into a trained model, inputting the preprocessed information into multiple trained models rather than a single trained model to obtain multiple outputs from each trained model, and postprocessing of ensembling the multiple outputs to obtain an analysis result. Therefore, the load (e.g., time required for processing, processor processing volume, processing load) on the server device 200 that executes these tasks is heavy. The processing system 1 distributes requests from the terminal device 300 to multiple server devices 200 for processing, thereby making effective use of the resources of the server devices 200.
[0012] Such a processing system 1 is preferably used to input image data into multiple trained analysis models and obtain analysis results as output from the trained analysis models. The image data may be any data acquired by various imaging devices or various sensors, regardless of the data format, purpose, or color representation method. Examples of image data include, among others, medical image data such as oral imaging device image data, CT image data, MRI image data, X-ray image data, endoscopic image data, or angiography image data, and more preferably, intraoral imaging device image data. Furthermore, the analysis results may be any data obtained by processing by the server device 200, and it is not necessary to use trained analysis models. Among these, examples of analysis results preferably include results indicating the possibility of contracting a disease whose findings appear in the subject image acquired as image data, and more preferably include infectious diseases such as influenza, coronavirus infection, streptococcal infection, adenovirus infection, EB virus infection, mycoplasma infection, hand, foot, and mouth disease, herpangina, candidiasis, etc., diseases presenting with vascular disorders or mucosal disorders such as arteriosclerosis, diabetes, and hypertension, tumors such as tongue cancer, pharyngeal cancer, etc. In the following example, a case will be described in which medical image data is mainly used to obtain information indicating the possibility of contracting a predetermined disease, but the present invention is not limited to these.
[0013] FIG. 1 is a schematic diagram of a processing system 1 according to an embodiment of the present disclosure. According to FIG. 1, the processing system 1 includes a processing device 100, a server device group including a plurality of server devices 200 communicatively connected to the processing device 100 via a communication network, a terminal device 300, and, if necessary, a database device 400. The processing device 100 receives a request including a plurality of tasks from the terminal device 300 via the communication network. The processing device 100 then processes the request and transmits the request to one of the plurality of server devices 200. Upon receiving the request, one of the server devices 200 processes the request, obtains data necessary for processing the request from the database device 400, and transmits the processing results to the processing device 100. Upon receiving the results, the processing device 100 transmits them to the terminal device 300 that transmitted the request.
[0014] 1, the server device group includes at least two server devices 200. These server devices 200 only need to be connected to at least the processing device 100 via a communication network, and the server devices 200 do not need to be connected to each other so that they can communicate with each other.
[0015] In addition, in this disclosure, the server device group is described as including four server devices 200, but at least two server devices capable of distributed processing are sufficient, and the number is not limited to a specific number. Similarly, although only one terminal device 300 and one database device 400 are described, the number is not limited to a specific number as long as they are communicably connected to the processing device 100 via a communication network.
[0016] In the present disclosure, the communication network may be wired, wireless, or a combination of wired and wireless, as long as the devices are connected to each other so that they can communicate with each other. Furthermore, the devices do not need to be able to communicate with each other at all times.
[0017] Furthermore, in this disclosure, although there are descriptions such as "first" and "second", these are merely used to distinguish between common terms that follow these descriptions, and are not used to indicate a specific order or a specific superiority or inferiority. Furthermore, even if there are only two numbers, "first" and "second", this does not mean that the number is two, and naturally there may be "third", "fourth", "fifth", etc., and it is not limited to a specific number.
[0018] 2. Configuration of the Processing Device 100, etc. FIG. 2A is a HW block diagram showing the HW configuration of the processing device 100 according to an embodiment of the present disclosure. According to FIG. 2A, the processing device 100 includes a memory 111, a processor 112, and a communication interface 113. These components are electrically connected to each other via control lines and data lines. It should be noted that the processing device 100 does not need to include all of the components shown in FIG. 2A; some components may be omitted, or other components may be added. For example, the processing device 100 may be configured as an integrated unit by connecting it to another processing device. Furthermore, the processing device 100 may be configured as an integrated unit by connecting it to another database device or server device.
[0019] The memory 111 is composed of RAM, ROM, non-volatile memory, HDD, SSD, etc., and functions as a storage unit (particularly, a request storage unit). The memory 111 stores instructions and commands for various controls of the processing system 1 according to this embodiment as a program. Specifically, the memory 111 performs the following operations: "a process of acquiring a request including a plurality of tasks, at least a first task and a second task, from the terminal device 300 communicably connected via a communication network," "a process of queuing the acquired requests and reading out the requests in a predetermined order," "a process of instructing a load balancer to process the first task and the second task as one request each, in order to process the first task and the second task in at least two different server devices out of the plurality of server devices 200, if the first task and the second task are tasks that can be processed in parallel," and "a process of instructing a load balancer to process the first task and the second task as one request, in order to process the first task and the second task in at least two different server devices out of the plurality of server devices 200, in the case where the request includes a pre-processing task." The memory 111 stores programs to be executed by the processor 112, such as "processing for instructing the load balancer to process a pre-processing task as a single request to have one of the multiple server devices 200 process the pre-processing task before the second task," "processing for instructing the load balancer to process a post-processing task as a single request to have one of the multiple server devices 200 process the pre-processing task before the second task, if the request includes a post-processing task," and "processing for interrupting the first task and the second task to process the priority task when a request including a predetermined priority task different from the acquired request is acquired." The memory 111 also stores received requests from the terminal devices 300 in order to queue the requests.
[0020] The processor 112 functions as a processing unit (particularly, a control unit, a task broker unit including a request determination unit and a task determination unit, and a load balancer unit) that controls other components of the processing device 100 based on a program stored in the memory 111. Specifically, the processor 112 performs the following functions: "acquiring a request including multiple tasks, at least a first task and a second task, from the terminal device 300 communicably connected via a communication network," "queuing the request if the acquired request includes a predetermined task, and dequeuing the request in a predetermined order," "instructing the load balancer to process the first task and the second task as one request, respectively, in order to process each of the first task and the second task on at least two different server devices out of the plurality of server devices 200, if the first task and the second task are tasks that can be processed in parallel," and "instructing the load balancer to process a request including a preprocessing task if the request includes a preprocessing task." The processor 112 executes, based on a program stored in the memory 111, the following operations: "if the request includes a pre-processing task, a process of instructing the load balancer to process the pre-processing task as a single request to have one of the multiple server devices 200 process the pre-processing task before the first task and the second task," "if the request includes a post-processing task, a process of instructing the load balancer to process the post-processing task as a single request to have one of the multiple server devices 200 process the post-processing task after the first task and the second task," and "if another request including a predetermined priority task is received, different from the received request, a process of interrupting the first task and the second task to process the priority task." The processor 112 is mainly composed of one or more CPUs, but may also be combined with a GPU, FPGA, etc. as appropriate.
[0021] The communication interface 113 functions as a communication unit for transmitting and receiving various information, such as requests and responses, to the server device 200, the terminal device 300, and / or other devices via a communication processing circuit and an antenna. Examples of the communication interface 113 include wired communication connectors such as USB and SCSI, wireless communication transmission / reception devices such as wireless LAN, Bluetooth (registered trademark), and infrared, and various connection terminals for printed circuit boards and flexible circuit boards. The communication processing circuit processes based on a wideband wireless communication method such as the LTE method, but it can also process based on a narrowband wireless communication method such as wireless LAN or Bluetooth (registered trademark) such as IEEE 802.11, or a contactless wireless communication method. Furthermore, wired communication can be used instead of or in addition to wireless communication.
[0022] FIG. 2B is a functional block diagram illustrating the functional configuration of a processing device 100 according to an embodiment of the present disclosure. Specifically, the diagram illustrates functions achieved by the components of the processing device 100 having the HW configuration illustrated in FIG. 2A executing processes. According to FIG. 2B, the processing device 100 includes a communication unit 101, a task broker unit 102, and a load balancer unit 103, and the functional components are functionally related to each other via control lines and data lines. It should be noted that the processing device 100 does not need to include all of the functional components illustrated in FIG. 2B ; it is possible to omit some of the functional components or add other functional components.
[0023] The communication unit 101 is a function that is mainly executed by the communication interface 113. Under the control of the control unit 104, the communication unit 101 mainly executes the function of transmitting and receiving various types of information between the terminal device 300 and the server device 200. In particular, the communication unit 101 receives requests from the terminal device 300 that include tasks to be processed by the server device 200, and transmits to the terminal device 300 the results of each task processed by the server device 200. Furthermore, the communication unit 101 transmits requests received from the terminal device 300 to the server device 200, and receives from the server device 200 the results of each task processed by the server device 200.
[0024] The task broker unit 102 is a function that is mainly executed by the processor 112 and the memory 111. The task broker unit 102 includes a request storage unit 102a, a request determination unit 102b, and a task determination unit 102c. The request storage unit 102a is a function that is mainly executed by the memory 111. Under the control of the control unit 104, when the request storage unit 102a acquires a request that the communication unit 101 has received from the terminal device 300, the request storage unit 102a stores the request next to other previously received requests in order to queue the request.
[0025] The request determination unit 102b is a function executed mainly by the processor 112. The request determination unit 102b determines whether or not it is permissible to read the requests stored in the request storage unit 102a in a predetermined order, based on load information indicating the load on each server device 200 constituting the server device group. If the request determination unit 102b determines that it is permissible to read the requests, it reads the requests from the request storage unit 102a. As an example, the request determination unit 102b reads the requests in order starting from the request stored in the request storage unit 102a. However, this reading order is merely an example, and it is of course also possible to read requests in order from highest priority to lowest priority, or requests stored in order from latest priority to lowest priority.
[0026] In this way, the request determination unit 102b adjusts the readout of requests based on the load information, thereby preventing excessive load on the server devices. This makes it possible to prevent delays in the server devices' response processing for interrupted requests, such as screening processing requests (described below). Furthermore, using the load information enables flexible adjustments, such as dynamically increasing the number of server devices, before requests to be processed accumulate in each server device 200 and create long queues, i.e., before the load on the server devices becomes a problem. This makes it possible to prevent delays in the server devices' response processing. Specific examples of load adjustments for the task broker unit 102 and the server devices, including the readout of requests by the request determination unit 102b, will be described later.
[0027] Examples of load information used in such processing include the number of processing requests of the server device group, the usage amount of the server device group (e.g., GPU or CPU usage rate), or latency, and preferably the number of processing tasks. Each of these pieces of load information may be used alone, or multiple pieces may be used in combination.
[0028] The task determination unit 102c is a function that is mainly executed by the processor 112. The task determination unit 102c analyzes each request read from the request storage unit 102a by the request determination unit 102b, and identifies the task included in each request.
[0029] FIG. 3 is a diagram conceptually illustrating the configuration of a request processed by the processing device 100 according to an embodiment of the present disclosure. Specifically, FIG. 3 is a diagram conceptually illustrating the configuration of a request 10a processed by the task broker unit 102 of FIG. 2A. According to FIG. 2B, the request 10a includes a pre-processing task 11a, n normal tasks 12a including a first task and a second task, and a post-processing task 13a. In other words, the processing order of each task is predefined for the request 10a. The normal task 12a is processed by the server device 200 via the load balancer unit 103 after the pre-processing task 11a is processed and a response is received. The post-processing task 13a is processed by the server device 200 via the load balancer unit 103 after the normal task 12a is processed and a response is received.
[0030] Note that the terms "pre-processing," "normal," and "post-processing" are used here to distinguish the processing order of each task. However, these terms are not intended to limit each process to a specific pre-processing or post-processing; they are merely used to distinguish the processing order compared to normal tasks. Also, while FIG. 3 illustrates an example of a request 10a including a pre-processing task 11a, a normal task 12a, and a post-processing task 13a, this is not limiting. For example, each request may be composed of only the normal task 12a, or may be composed of only the pre-processing task 11a and the normal task 12a, the pre-processing task 11a and the post-processing task 13a, or the normal task 12a and the post-processing task 13a, or may include other tasks. Furthermore, while the pre-processing task 11a and the post-processing task 13a constituting the request 10a are shown as single tasks, they may also include multiple pre-processing or post-processing tasks. Furthermore, while the normal tasks constituting the request 10a are illustrated as being composed of n normal tasks 12a, including a first task and a second task, they may be composed of any number of normal tasks, including a single task.
[0031] 2, the task determination unit 102c analyzes the configuration of a request shown in Fig. 3 as an example and determines the processing order of each of the constituent tasks. In the example of Fig. 3, the task determination unit 102c determines that, according to the processing order previously defined in the request, the pre-processing task 11a should be processed first, then the first to nth tasks included in the normal tasks 12a should be processed, and then the post-processing task 13a should be processed. Based on this determination, the task determination unit 102c arranges the normal tasks in the processing order and instructs the load balancer unit 103 to process them in that order.
[0032] As shown in FIG. 3 , the normal task 12a is composed of n normal tasks, including a first task and a second task. According to a predefined processing order, the normal tasks do not need to be processed in a specific order and can be processed in parallel. In this case, the task determination unit 102c parallelizes the normal tasks rather than sequentially executing them, such as completing the first task before executing the second task, and then completing the second task before executing the third task. Specifically, as shown in request 10b in FIG. 3 , the task determination unit 102c first requests the load balancer unit 103 to process the preprocessing task 11b according to the predefined processing order. Upon receiving the results of the processing of the preprocessing task 11b, the task determination unit 102c then instructs the load balancer unit 103 to process each of the n normal tasks 12b, including the parallelized first and second tasks, as independent requests. Furthermore, when the task determination unit 102c independently receives the results of the processing of each normal task 12b, it instructs the load balancer unit 103 to request the processing of the post-processing task 13b.
[0033] That is, when a request includes tasks that can be processed in parallel, the task determination unit 102c distributes these tasks as independent requests and instructs the load balancer unit 103 to process them simultaneously. Therefore, compared to performing each task sequentially, it is possible to effectively utilize multiple server devices and perform processing efficiently.
[0034] Returning to FIG. 2B , the load balancer unit 103 is a function mainly executed by the processor 112. The load balancer unit 103 functions as a load balancer that determines which server device 200 should process a received request based on load information indicating the load of each server device 200 constituting the server device group. In the example of FIG. 3 , when the load balancer unit 103 receives a request to process the pre-processing task 11b from the task determination unit 102c, it determines from the server device group a server device 200 that can execute the pre-processing task 11b. Furthermore, when the load balancer unit 103 receives from the task determination unit 102c independent requests for processing n normal tasks 12b including a first task and a second task, it determines from the server device group a server device 200 that can execute each normal task for each normal task. Furthermore, when the load balancer unit 103 receives a request to process the post-processing task 13b from the task determination unit 102c, it determines from the group of server devices a server device 200 that can execute the post-processing task 13b. Each task for which a server device 200 is determined to be processed is transmitted to each server device 200 via the communication unit 101 under the control of the control unit 104.
[0035] 3 does not treat all of the requests 10a as a single request and have one server device 200 process them. The load balancer unit 103 can simultaneously process each task in parallel, as instructed by the task determination unit 102c, on multiple server devices 200. Therefore, compared to performing each task sequentially, it is possible to effectively utilize multiple server devices and perform processing efficiently.
[0036] 2B and 3, it has been explained that multiple normal tasks can be processed in parallel within a single request. In addition, parallel processing is also possible between multiple requests. For example, in FIG. 3, the load balancer unit 103 instructs one of the server devices 200 to process the post-processing task 13b of request 10b, but can also instruct other server devices 200 to process pre-processing tasks, normal tasks, and post-processing tasks for other requests in parallel. This makes it possible to effectively utilize the resources of the server devices and efficiently process multiple requests.
[0037] Although the configurations of the server device 200, terminal device 300, and database device 400 are not specifically illustrated here, they may include various components such as a processor, memory, a communication interface, an input interface, and an output interface as necessary. The terminal device 300 may be any device capable of communicating with the processing device 100 via a communication network, and examples of the terminal device 300 include a smartphone, tablet device, laptop PC device, desktop PC device, and imaging device. The database device 400 stores data acquired by the terminal device 300 or other devices (e.g., an imaging device, an interview device, etc.), data processed by the server device 200, and the like, as needed. The stored data is read out as needed in response to an instruction from the processing device 100, the server device 200, or the terminal device 300.
[0038] 3. Specific Example of Request As described above, the processing system 1 according to the present disclosure is preferably used to acquire information indicating the possibility of a patient having a predetermined disease (e.g., an infectious disease that manifests in the oral cavity, such as influenza, coronavirus infection, streptococcal infection, adenovirus infection, Epstein-Barr virus infection, mycoplasma infection, hand, foot, and mouth disease, herpangina, or candidiasis; a disease that presents with vascular or mucosal disorders, such as arteriosclerosis, diabetes, or hypertension; or a tumor, such as tongue cancer or pharyngeal cancer), preferably using medical image data (e.g., image data acquired by capturing an image of at least a portion of a patient's oral cavity). FIG. 4A is a diagram showing a processing flow executed by the processing system 1 to acquire an analysis result according to an embodiment of the present disclosure. Specifically, FIG. 4A shows a series of processing flows for acquiring information regarding the possibility of a patient having a predetermined infectious disease using the medical image data. This processing flow is mainly performed by a processor of any one of the server devices 200 constituting the server device group reading and executing a program stored in memory. Note that this does not mean that a single server device 200 performs all of the processing related to the processing flow shown in Figure 4A, but rather that each server device 200 instructed by the load balancer unit 103 distributes and executes one of the processes.
[0039] According to Figure 4A, the processor obtains the first positive rate, the second positive rate, and the third positive rate, which indicate the possibility of contracting the above-mentioned specified disease, using different processes, and obtains a judgment result by ensemble processing them.
[0040] <Medical Image Data Screening Process> First, the medical image data screening process will be described. The process flow begins when the processor receives a request from the terminal device 300 or another device (e.g., an imaging device) to screen medical image data to be used to obtain a determination result from among multiple acquired medical image data. First, the processor accesses the database device 400, which stores multiple medical image data acquired by the terminal device 300 or another device (imaging device), and acquires multiple medical image data associated with the subject ID information of the subject to be determined. The processor then executes a process to screen the acquired multiple medical image data to be used to obtain the determination result (S111). This screening process is performed using a trained image data selection model obtained by labeling training image data in advance based on whether the training image data can be used effectively for determination, and learning based on the training image data and the label information. Specifically, the processor inputs the received multiple medical image data into the trained image data selection model and obtains the medical image data to be used to obtain the determination result as an output. The processor then stores the medical image data used to obtain the determination result in the database device 400 .
[0041] <Preprocessing of Medical Image Data> Next, the preprocessing performed on the medical image data will be described. The processor receives a request for processing to obtain a diagnosis result for a predetermined disease using medical image data selected by the screening processing from the terminal device 300. The processor then accesses the database device 400, obtains the medical image data to be used to obtain the diagnosis result, and performs predetermined preprocessing on the obtained medical image data (S111). The processor stores the preprocessed medical image data in the database device 400. Examples of such preprocessing include filtering using bandpass filters including high-pass filters and low-pass filters, averaging filters, Gaussian filters, Gabor filters, Canny filters, Sobel filters, Laplacian filters, median filters, bilateral filters, and the like, blood vessel extraction processing using Hessian matrices, segmentation processing of specific regions (e.g., follicles) using machine learning, trimming of the segmented region, dehazing processing, super-resolution processing, and combinations thereof, such as high definition, region extraction, noise removal, edge enhancement, image correction, image conversion, and the like, which are appropriately selected depending on the purpose. In this way, by performing preprocessing, regions of interest that are important in diagnosing a specific disease can be extracted or emphasized in advance, thereby improving the accuracy of diagnosis.
[0042] Examples of such preprocessing, including haze removal, super-resolution, and segmentation, are described below in detail. First, the haze removal process, for example, uses a trained haze-removed image model obtained by machine learning, by providing a learner with a set of training image data and training degraded image data in which haze has been added to the training image data by applying a haze-adding filter or the like. The processor inputs medical image data into the trained haze-removed image model and obtains, as output, medical image data from which haze has been removed. Furthermore, the super-resolution process uses a trained super-resolution image model obtained by machine learning, by providing, as training image data, a set of high-resolution image data of a subject and low-resolution image data obtained by performing degradation processes such as scaling down and blurring on the high-resolution image. The processor inputs the medical image data that has been subjected to the haze removal process into the trained super-resolution image model and obtains, as output, medical image data that has been subjected to super-resolution processing. The segmentation process uses a trained segmentation image model obtained by machine learning, which is obtained by providing a set of training image data and position information of the labels obtained by labeling regions of interest (e.g., follicles) based on operational input from doctors to the training image data. The processor inputs medical image data that has undergone super-resolution processing into the trained segmentation image model and obtains medical image data in which regions of interest (e.g., follicles) have been segmented. Note that, while the order of the defogging process, super-resolution process, and segmentation process is described here, these processes may be performed in any order, or at least one of these processes may be performed. Furthermore, while the examples of all processes use trained models, other processes such as a defogging filter, a scale-up process, and a sharpening process may also be used.
[0043] <Process for Obtaining the Determination Result of the First Positive Rate> Next, the process for obtaining the determination result of the first positive rate will be described. The processor accesses the database device 400 and obtains preprocessed medical image data. The processor then provides the obtained preprocessed medical image data as input to a feature extractor (S113), obtains image features of the medical image data as output, and stores the output in the database device 400 (S114). The processor then provides the features of the medical image data as input to a first trained analysis model (S115), and obtains a first positive rate indicating a first possibility of affliction with a predetermined disease as output (S116). The processor stores the obtained first positive rate in the database device 400. The first trained analysis model is generated by machine learning by providing a learner with a set of features of the medical image data and label information labeled with the presence or absence of affliction with a predetermined disease based on the medical image data.
[0044] <Process for Acquiring the Determination Result of the Second Positive Rate> Next, the process for acquiring the determination result of the second positive rate will be described. The processor accesses the database device 400 and acquires at least one of the medical interview information and attribute information associated with the subject ID information of the subject to be determined (S117). The processor also accesses the database device 400 and acquires the feature amounts of the medical image data calculated in S114 and stored in memory in association with the subject ID information (S114). The processor then provides at least one of the acquired medical interview information and attribute information and the feature amounts of the medical image data as inputs to a second trained analysis model (S118), and acquires as output a second positive rate indicating a second possibility of contracting a predetermined disease (S119). The processor stores the acquired second positive rate in the database device 400. The second trained analysis model is generated by machine learning by providing a learner with a set of at least one of the feature amounts of the medical image data, the medical interview information, and the attribute information, and label information labeled with the presence or absence of the predetermined disease based on this information.
[0045] <Process for Acquiring the Determination Result of the Third Positive Rate> Next, the process for acquiring the determination result of the third positive rate will be described. The processor accesses the database device 400 and acquires at least one of the medical interview information and attribute information associated with the subject ID information of the subject to be determined (S117). The processor then provides at least one of the read medical interview information and attribute information as input to the third trained analytical model (S120), and acquires as output a third positive rate indicating a third possibility of suffering from a predetermined disease (S121). The processor stores the acquired third positive rate in the database device 400. The third trained analytical model is generated by machine learning by providing a learner with a set of at least one of the medical interview information and attribute information, and label information labeled with the presence or absence of the predetermined disease based on this information.
[0046] <Post-processing (ensemble)> Next, post-processing (ensemble) will be described. As described above, once the first positive rate, second positive rate, and third positive rate have been calculated, the processor accesses the database device 400 and acquires each positive rate. The processor then performs ensemble processing using each acquired positive rate (S122). As an example of this ensemble processing, the acquired first positive rate, second positive rate, and third positive rate are input to a ridge regression model, and a result in which each positive rate is ensembled is acquired as a determination result of the possibility of contracting a predetermined disease (S123).
[0047] The ridge regression model used in S122 is generated by machine learning using the processor of the processing device 100 or a processor of another processing device. Specifically, the processor acquires the first positive rate, the second positive rate, and the third positive rate from the training image data. The processor also assigns correct labels to the subjects who are the subjects of the training image data based on the diagnosis results of doctors in advance. The processor then provides the ridge regression model with a set of each positive rate and the corresponding correct label, and repeats learning while adjusting the parameters assigned to each positive rate so that the output is the same as the correct label information of the ridge regression model. This results in a ridge regression model to be used in ensemble processing.
[0048] Furthermore, although the use of a ridge regression model has been described as an example of ensemble processing, any method may be used, such as a process for obtaining the average value of each positive rate, a process for obtaining the maximum value, a process for obtaining the minimum value, a weighted addition process, or a process using other machine learning methods such as bagging, boosting, stacking, lasso regression, or linear regression.
[0049] The processor stores the determination result thus obtained in the database device 400 in association with the user ID information (S124), thereby terminating the processing flow.
[0050] 4A , at least two requests are received from the terminal device 300: Screening process request: a request for screening process of medical image data used to obtain a determination result from among the multiple acquired medical image data; and Determination result acquisition process request: a request for process of obtaining a determination result for a predetermined disease using medical image data selected by the screening process. The determination result acquisition process request includes at least the following tasks: Pre-processing of medical image data (access to the database device 400 and the pre-processing itself); Acquisition process of the determination result of the first positive rate (access to the database device 400 and the process of obtaining the determination result of the first positive rate); Acquisition process of the determination result of the second positive rate (access to the database device 400 and the process of obtaining the determination result of the second positive rate); Acquisition process of the determination result of the third positive rate (access to the database device 400 and the process of obtaining the determination result of the third positive rate); Post-processing (ensemble: access to the database device 400 and the post-processing itself).
[0051] Fig. 4B is a diagram showing a specific example of the configuration of a request processed by the processing device 100 according to an embodiment of the present disclosure. As described above, in the example shown in Fig. 4A, at least two requests, a "screening processing request" and a "determination result acquisition processing request," are received from the terminal device 300, and the "determination result acquisition processing request" includes tasks such as preprocessing of medical image data. Fig. 4B is a diagram showing how each task of the "determination result acquisition processing request" is defined in the request 20a.
[0052] According to Figure 4B, the request 20a, which is a judgment result acquisition processing request, specifies the processing order as follows: first, process the pre-processing AI task 21a, which is "pre-processing of medical image data," and after obtaining the result, first process the normal tasks 22a and 23a, which are the first data acquisition task and first judgment AI task related to "acquisition processing for judgment processing of the first positive rate," the second data acquisition task and second judgment AI task related to "acquisition processing for judgment processing of the second positive rate," and the third data acquisition task and third judgment AI task related to "acquisition processing for judgment processing of the third positive rate," and after obtaining the result, process the post-processing AI task 24a, which is "post-processing (ensemble)."
[0053] Therefore, in accordance with the processing procedure, the task determination unit 102c of the processing device 100 first instructs the load balancer unit 103 to process the preprocessing AI task 21b (access to the database device 400 and the preprocessing itself) as a single request. Then, the task determination unit 102c obtains the processing result generated by the processing flow shown in Fig. 4A from any one of the server devices 200 selected by the load balancer unit from among a group of multiple server devices.
[0054] Next, the task determination unit 102c parallelizes the normal tasks 22a and 23a, i.e., the first data acquisition task and the first judgment AI task, the second data acquisition task and the second judgment AI task, and the third data acquisition task and the third judgment AI task, and instructs the load balancer unit 103 to process the normal tasks 22b and 23b as independent requests. Then, the task determination unit 102c obtains the processing results of the normal tasks 22b and 23b generated by the processing flow shown in FIG. 4A from each server device 200 selected for each of the normal tasks 22b and 23b by the load balancer unit 103 from among a group of multiple server devices.
[0055] Next, the task determination unit 102c instructs the load balancer unit 103 to process the post-processing AI task 24b (access to the database device 400 and the post-processing itself) as one request. Then, the task determination unit 102c acquires the processing result generated by the processing flow shown in Fig. 4A from one of the server devices 200 selected by the load balancer unit from among the group of multiple server devices.
[0056] As such, the processing related to each judgment AI task executed as normal task 22a places a heavy load on the server device group. In such a case, if each judgment AI task were processed by the load balancer unit 103 on a single server device 200 as a single request without the task being broken down into tasks for the request via the task broker unit 102, not only would it take time to obtain all processing results, but the resources of the other server devices 200 would not be utilized effectively, resulting in poor efficiency for the server device group as a whole. In the present disclosure, as described above, each judgment AI task is processed in advance by the task broker unit 102 as an independent request, and then individually processed by the load balancer unit 103 on a different server device 200. This enables effective utilization of resources across the server device group and more efficient processing.
[0057] In the example of Figure 4B, as it is clear from the fact that the normal tasks 22a include the third judgment AI task and up to the nth judgment AI task, the number of normal tasks 22a processed in parallel is not limited to three, but may be less than that or more than that.
[0058] 5A to 5C are diagrams showing processing sequences executed by the processing system 1 according to an embodiment of the present disclosure. Specifically, Fig. 5A and Fig. 5B show processing sequences executed after a "determination result acquisition processing request" is received from the terminal device 300, and Fig. 5C shows a "screening processing request."
[0059] 5A, the processor of the terminal device 300 receives an instruction input from a user or the like and generates a "determination result acquisition processing request" using the acquired medical image data (S11). Then, the processor of the terminal device 300 transmits the generated determination result acquisition processing request (T11) to the processing device 100 via the communication interface.
[0060] When the control unit 104 of the processing device 100 receives a judgment result acquisition processing request via the communication unit 101, it stores the received judgment result acquisition processing request in the request storage unit 102a for queuing (S12). The request determination unit 102b (task broker unit 102) of the processing device 100 determines whether the judgment result acquisition processing request can be read from the request storage unit 102a based on load information indicating the load of each server device 200 constituting the server device group, and if so, reads the request (S13). A specific example of this process will be described later. Next, the task determination unit 102c (task broker unit 102) analyzes the configuration of the read judgment result acquisition processing request, as defined in advance in the request (S14). The task determination unit 102c then determines that the judgment result acquisition processing request includes the following processing tasks, as shown in FIG. 4B . Pre-processing AI task: Pre-processing of medical image data (access to the database device 400 and the pre-processing itself) Normal task (first determination AI task): Processing to obtain the determination result of the first positive rate (access to the database device 400 and the processing to obtain the determination result of the first positive rate) Normal task (second determination AI task): Processing to obtain the determination result of the second positive rate (access to the database device 400 and the processing to obtain the determination result of the second positive rate) Normal task (third determination AI task): Processing to obtain the determination result of the third positive rate (access to the database device 400 and the processing to obtain the determination result of the third positive rate) Post-processing AI task: Post-processing (ensemble: access to the database device 400 and the post-processing itself)
[0061] <Pre-processing task processing> Next, the processing system 1 executes processing related to the pre-processing AI task according to the analysis by the task determination unit 102c. The task determination unit 102c of the processing device 100 extracts the pre-processing AI task from the determination result acquisition processing request (S21) and transmits the pre-processing AI task to the load balancer unit 103 as one request (T21).
[0062] The load balancer unit 103 determines one server device 200 that can process the pre-processing AI task according to load information indicating the load of each server device 200 that constitutes the server device group (S22).The load balancer unit 103 then transmits a request for the pre-processing AI task (T22) to the server device 200 via the communication unit 101.
[0063] Upon receiving the request, the server device 200 accesses the database device 400 and acquires the medical image data to be used for the assessment. Upon acquiring the medical image data, the server device 200 executes the process according to the process flow (S112) shown in FIG. 4A and generates preprocessed medical image data as a result of the process. The server device 200 then transmits the medical image data to the processing device 100 via the communication interface as the processing result of the preprocessing AI task (T23).
[0064] The processing device 100 receives the result via the communication unit 101 under the control of the control unit 104. Then, the load balancer unit 103 of the processing device 100 transmits the received result (T24) to the task determination unit 102c (task broker unit 102). This completes the processing related to the pre-processing AI task.
[0065] <Normal Task Processing> Next, in the processing system 1, when the task determination unit 102c (task broker unit 102) receives the processing result of the pre-processing AI task, it executes processing related to the normal task. The task determination unit 102c extracts normal tasks including a first determination AI task, a second determination AI task, and a third determination AI task from the determination result acquisition processing request (S31). Then, the task determination unit 102c parallelizes each normal task (S32) and sends each request (T31) to the load balancer unit 103, with each normal task acting as an independent request.
[0066] The load balancer unit 103 determines a server device 200 that can process each of the normal tasks, including the first determination AI task, the second determination AI task, and the third determination AI task, based on the load information indicating the load of each server device 200 that constitutes the server device group (S33).The load balancer unit 103 then transmits a request for each task (T32) to each server device 200 determined for each task via the communication unit 101.
[0067] The server device 200 that receives each of these requests executes processing according to the processing flow shown in FIG. 4A and generates each determination result as a result of the processing. Specifically, the server device 200 that receives a request for the first determination AI task, which is processing for obtaining the determination result of the first positive rate, executes processing according to the processing flow (S113 to S116) shown in FIG. 4A and generates a determination result of the first positive rate as a result of the processing. Meanwhile, another server device 200 that receives a request for the second determination AI task, which is processing for obtaining the determination result of the second positive rate, executes processing according to the processing flow (S117 to S119) shown in FIG. 4A and generates a determination result of the second positive rate as a result of the processing. Meanwhile, yet another server device 200 that receives a request for the third determination AI task, which is processing for obtaining the determination result of the third positive rate, executes processing according to the processing flow (S117, S120, and S121) shown in FIG. 4A and generates a determination result of the third positive rate as a result of the processing. Then, each server device 200 transmits the determination results of the first to third positive rates as the processing results of each task (T33) to the processing device 100 via the communication interface.
[0068] The processing device 100 receives each result via the communication unit 101 under the control of the control unit 104. Then, the load balancer unit 103 of the processing device 100 transmits each received result (T24) to the task determination unit 102c (task broker unit 102). In this way, in a normal task, multiple server devices 200 each execute processing related to each task in parallel, so it is possible to efficiently obtain the processing results of each task. This completes the processing related to the normal task.
[0069] 6 is a diagram conceptually illustrating a process related to load balancing executed in the processing system 1 according to an embodiment of the present disclosure. Specifically, it is a diagram illustrating an example of a process related to load balancing performed in the process related to the normal task shown in FIG. 5A. As shown in FIG. 5A, the task broker unit 102 (particularly the task determination unit 102c) simultaneously instructs the load balancer unit 103 to perform processing related to each of a plurality of normal tasks, including the first determination AI task, the second determination AI task, and the third determination AI task, as independent individual requests.
[0070] The load balancer unit 103 determines a server device 200 from the group of server devices that will execute processing related to each judgment AI task based on the load information. The load balancer unit 103 then requests each determined server device 200 to execute processing related to each judgment AI. Upon receiving each request, each server device 200 accesses the database device 400, obtains data necessary for processing each request, and executes each processing. As a result, when each server device 200 generates a judgment result, the load balancer unit 103 obtains each judgment result, including a first judgment result, a second judgment result, and a third judgment result, from each server device. Upon obtaining each judgment result, the load balancer unit 103 transmits the obtained judgment result to the task broker unit 102.
[0071] In this way, before a request for obtaining a judgment result is sent to the load balancer unit 103, the task broker unit 102 parallelizes the normal tasks and causes each normal task to be processed in parallel on each server device 200. This makes it possible to efficiently obtain each judgment result.
[0072] Furthermore, by subdividing the judgment result acquisition processing request by task using the task broker unit 102, it becomes possible to manage the resources of the server device group more flexibly. For example, if the judgment result acquisition processing request were processed as a single request, it would be impossible to add more server devices 200 later to process the request. However, if the request is subdivided by task, it is possible to add more server devices 200 as needed, depending on the load on the server device group, such as when processing of some tasks has finished or the number of tasks to be executed in parallel.
[0073] 5B , in the processing system 1, when the task determination unit 102c (task broker unit 102) receives the processing results of each determination AI task, the processing system 1 executes processing related to the post-processing task. The task determination unit 102c of the processing device 100 extracts the post-processing AI task from the determination result acquisition processing request (S41) and transmits the post-processing AI task to the load balancer unit 103 as a single request (T41).
[0074] The load balancer unit 103 determines one server device 200 that can process the post-processing AI task according to load information indicating the load of each server device 200 that constitutes the server device group (S42).The load balancer unit 103 then transmits a request for the post-processing AI task (T42) to the server device 200 via the communication unit 101.
[0075] Upon receiving the request, the server device 200 accesses the database device 400 and acquires the information on the first positive rate, the second positive rate, and the third positive rate. Upon acquiring the information on the first positive rate, the second positive rate, and the third positive rate, the server device 200 executes the processing related to the processing flow (S122 and S123) shown in FIG. 4A and generates a post-processed determination result (information indicating the possibility of contracting a predetermined disease) as a result of the processing. The server device 200 then transmits the determination result to the processing device 100 via the communication interface as the processing result (T43) of the post-processing AI task.
[0076] The processing device 100 receives the determination result via the communication unit 101 under the control of the control unit 104. Then, the load balancer unit 103 of the processing device 100 transmits the received determination result (T44) to the task determination unit 102c (task broker unit 102). This completes the processing related to the post-processing AI task.
[0077] When the task broker unit 102 receives the judgment result through the post-processing AI task, it transmits the received judgment result (T51) to the terminal device 300 that sent the judgment result acquisition processing request via the communication unit 101 (S51). When the terminal device 300 receives the judgment result, it stores the received judgment result in memory and outputs the judgment result via a display or the like (S52).
[0078] 5A and 5B, a request for a judgment result acquisition process is queued by the task broker unit 102, and the task broker unit 102 then processes each task included in the request as an individual request, instructing the load balancer unit 103. However, among the requests sent from the terminal device 300, there are requests with a higher priority than the requests being processed as described above.
[0079] For example, in the processing flow shown in FIG. 4A, a "screening processing request" corresponds to this request. The screening processing request includes a task for screening medical image data to be used for the assessment from multiple acquired medical image data. If the medical image data to be used for the assessment cannot be acquired as a result of the screening processing, the user of the terminal device 300 needs to take images of the medical image data again. Therefore, it is preferable for the user of the terminal device 300 to perform the screening processing as quickly as possible.
[0080] In the present disclosure, it is desirable that each request transmitted from the terminal device 300 includes flag information indicating the priority of the task included in the request. A request that stores a flag indicating a high task priority can be processed with priority over normal requests.
[0081] 5C, the processor of the terminal device 300 receives an instruction input from a user or the like and generates a "screening processing request" including a task for screening medical image data to be used in the determination result acquisition process from the acquired medical image data (S61). At this time, the processor of the terminal device 300 stores a flag indicating that the request has high priority. The processor of the terminal device 300 then transmits the generated screening processing request (T61) to the processing device 100 via the communication interface.
[0082] When the control unit 104 of the processing device 100 receives a screening processing request via the communication unit 101, it references a flag included in the request. If a flag indicating high priority is stored, the control unit 104 instructs the load balancer unit 103 directly to process the request without sending the request to the task broker unit 102. The load balancer unit 103 determines one server device 200 that can process the screening processing request based on load information indicating the load of each server device 200 constituting the server device group (S62). The load balancer unit 103 then transmits the screening processing request (T62) to the server device 200 via the communication unit 101. Although not specifically illustrated, the load balancer unit 103 may prioritize processing of requests including high-priority tasks over other requests being processed by the load balancer unit 103.
[0083] Upon receiving the request, the server device 200 accesses the database device 400 and acquires multiple medical image data associated with the subject ID information of the subject to be assessed. Upon acquiring the multiple medical image data, the server device 200 executes the process according to the process flow (S111) shown in FIG. 4A and generates a result of the screening process for the medical image data as a result of the process (S63). The server device 200 then transmits the result of the screening process (T63) to the processing device 100 via the communication interface.
[0084] The processing device 100 receives the result of the cleaning process via the communication unit 101 under the control of the control unit 104. Then, the load balancer unit 103 of the processing device 100 transmits the received result of the cleaning process (T64) to the terminal device 300 without going through the task determination unit 102c (task broker unit 102). Upon receiving the result of the cleaning process, the terminal device 300 stores the received result of the cleaning process in memory and outputs the determination result via a display or the like (S64).
[0085] If a screening process request and a judgment result acquisition process request, which places a relatively large load on the server device group, were treated on the same level, depending on the queueing order, the screening process might not be executed until the judgment result acquisition process request is completed. However, a screening process request including a high-priority task like this is processed by the load balancer unit 103 without going through the task broker unit 102. In other words, the request is processed by the load balancer unit 103 without being queued by the task broker unit 102. This makes it possible to interrupt queued normal requests and execute the process.
[0086] Furthermore, the load balancer unit 103 can also process requests including high-priority tasks with higher priority than normal requests processed by the load balancer unit 103. This allows requests including high-priority tasks to be processed with even higher priority.
[0087] It is also possible to prepare a separate server device for screening processing requests that include high-priority tasks. However, in such a case, multiple additional server devices are required to ensure redundancy of the server devices for screening processing, thereby increasing the minimum configuration of the server device group. On the other hand, as described above, screening processing requests that include high-priority tasks can be processed using the same server device group as normal requests, thereby reducing the minimum configuration of the server device group. Furthermore, the request determination unit 102b adjusts the load on the server device group based on load information indicating the load on the server device group. Therefore, even if such a screening processing request is interrupted, it can be processed quickly. In other words, it is possible to quickly process interrupts of screening processing requests while keeping the minimum configuration of the server device group small.
[0088] 5. Specific Examples of Task Broker Unit 102 Functions and Load Adjustment on Server Device Groups As described above, in this embodiment, the task broker unit 102 can adjust the load on the server device group due to judgment result acquisition process requests through queuing. On the other hand, as described above, interrupts such as screening process requests may occur, and resources of the server device group must be secured to process these interrupt requests. In other words, the number of requests processed by the task broker unit 102 and the load on the server device group must be adjusted while taking into account interrupt requests.
[0089] 7 is a diagram showing a processing flow executed by the processing device 100 according to an embodiment of the present disclosure. Specifically, FIG. 7 shows a processing flow executed by the control unit of the processing device 100 to adjust the number of processes of the task broker unit 102 and the number of operating server devices. This processing flow is performed by the processor 112 of the processing device 100 reading and executing a program stored in the memory 111 at a predetermined cycle.
[0090] 7, the control unit 104 of the processing device 100 acquires the actual usage of the server device group (value 1) as load information via the communication unit 101. The control unit 104 also acquires from the task broker unit 102 the number of judgment result acquisition processing requests being processed by the task broker unit 102 (value 2: the number of tasks processed by the task broker unit). The control unit 104 then calculates the current usage of the server device group due to screening processing requests, which are interrupt requests, (value 3) based on the acquired actual usage of the server device group (value 1) and the number of tasks being processed by the task broker unit 102 (value 2) (S211).
[0091] FIG. 8 is a conceptual diagram illustrating an example of load adjustment for a server device group according to an embodiment of the present disclosure. Specifically, FIG. 8 illustrates the relationship between the usage of the server device group and the number of requests processed in each of states (a) to (d). FIG. 8(a) shows that the current usage of the server device group (value 1: entire horizontal axis) is the sum of the number of requests processed by the screening process request (value 3) and the number of requests processed by the task broker unit (value 2). As is clear from this, the number of requests processed by the screening process request (value 3) can be obtained by subtracting the number of requests processed by the task broker unit (value 2) from the current usage of the server device group (value 1).
[0092] 7 , the control unit 104 acquires the currently operating number (value 4) of the server device group via the communication unit 101. The control unit 104 then compares the number of processes (value 3) based on the screening process request calculated in S211 with the acquired currently operating number (value 4) of the server device group, and adjusts the number of processes (value 2) of the task broker unit 102 (S212). As an example, if the currently operating number (value 4) of the server device group is sufficiently larger than the number of processes (value 3) based on the screening process request and surplus resources are secured, the control unit 104 increases the number of processes (value 2) of the task broker unit 102. On the other hand, if the currently operating number (value 4) of the server device group is not sufficiently larger than the number of processes (value 3) based on the screening process request and surplus resources are not secured, the control unit 104 decreases the number of processes (value 2) of the task broker unit 102.
[0093] 8(b) shows a case where the number of currently operating server devices (value 4) is not large enough compared to the number of screening processing requests (value 3) and new screening processing requests cannot be processed. In such a case, resources for processing new screening processing requests can be secured by reducing the number of processing requests (value 2) by the task broker unit 102 without increasing the number of currently operating server devices (value 4).
[0094] Generally, starting up a new server device and increasing the number of active servers takes a relatively long time compared to simply decreasing the number of processes being performed by the task broker unit 102. Conversely, adjusting the number of processes being performed by the task broker unit 102 can be done in a shorter time than increasing the number of active servers. Therefore, adjustments based on the current number of active servers are made by adjusting the number of processes being performed by the task broker unit 102. This makes it possible to quickly process the requests without delay, even if there is a sudden increase in screening process requests, which are interrupt requests.
[0095] 7 , the control unit 104 acquires the number of requests (value 5) stored in the request storage unit 102a of the task broker unit 102, i.e., the number of requests that have accumulated due to queuing. The control unit 104 then calculates a target processing count (value 6) for the task broker unit 102 based on the acquired number of requests (value 5) stored in the request storage unit 102a and the number of tasks being processed by the task broker unit 102 (value 2) (S213). Furthermore, the control unit 104 calculates a target operating count (value 7) for the group of server devices based on the calculated target processing count (value 6) for the task broker unit 102 and the number of tasks being processed by the screening processing requests calculated in S211 (value 3) (S214).
[0096] Next, the control unit 104 compares the calculated target operating number (value 7) of the server device group with the current operating number (value 4) of the server device group, and adjusts the operating number (value 2) of the server device group (S215). As an example, if the current operating number (value 4) of the server device group is sufficiently larger than the target operating number (value 7) of the server device group and surplus resources are secured, the control unit 104 decreases the operating number of the server device group. On the other hand, if the current operating number (value 4) of the server device group is not sufficiently larger than the calculated target operating number (value 7) of the server device group and surplus resources are not secured sufficiently, the control unit 104 increases the operating number of the server device group.
[0097] Figure 8(c) shows a state in which the number of processes (value 2) by the task broker unit 102 has been reduced, and judgment result acquisition process requests have accumulated in the request storage unit 102a. In such a case, as shown in Figure 8(d), as a result of the adjustment performed in S215 of Figure 7, the number of operating server devices is increased, and the increased number is secured as surplus resources or resources for processing by the task broker unit 102. Then, as shown in Figure 8(e), the increased number of operating server devices can be used to increase the number of processes by the task broker unit 102 (value 2) and the number of screening process requests (value 3).
[0098] As described above, starting up a new server device and increasing the number of operating servers takes a relatively long time compared to simply reducing the number of processes by the task broker unit 102. Therefore, by using the target number of processes (value 6) of the task broker unit 102, it is possible to adjust the number of operating servers from a longer-term perspective.
[0099] Note that the methods of adjusting the number of operating server devices and the number of processes by the task broker unit 102 (the number of requests read from the task broker unit 102) shown in Figures 7 and 8 are merely examples. As described above, various indicators can be used as load information, such as the number of processing requests by the server devices, the usage of the server devices (e.g., GPU or CPU usage), or latency. Similarly, various adjustment methods can be used. Furthermore, although values 1 to 7 are used in the examples of Figures 7 and 8, these are not limited to specific values (numerical values). In other words, any indicator that indicates the degree or level of each indicator is acceptable.
[0100] As described above, the present disclosure enables more efficient processing. Specifically, for requests that include tasks that can be processed in parallel, the task broker unit 102 distributes each task to multiple server devices 200 for processing. This enables requests to be processed more quickly and the resources of the server devices to be used more effectively. Furthermore, for requests that include high-priority tasks, the task broker unit 102 interrupts and processes the request without processing, allowing the request to be processed preferentially. Furthermore, by having the task broker unit 102 subdivide the judgment result acquisition processing request by task, more flexible management of the resources of the server devices can be achieved.
[0101] 6. Other Modifications Although the above embodiment does not provide a detailed description of the learner, methods that use neural networks such as neural networks, convolutional neural networks, multi-layer Herceptron (MLP), long short term memory (LSTM), gated recurrent unit (GRU), graph neural network (GNN), and transformer, methods that use gradient boosting decision trees (GBDT) such as Light Gradient Boosting Machine (LightGBM), XGBoost, and CatBoost, ridge regression, logistic regression, support vector regression (SVR), nearest neighbor algorithm, decision tree, regression tree, random forest, etc. may be used.
[0102] In addition, in the above embodiment, the pre-processing task and the post-processing task are described as single tasks, but multiple tasks may be included, as shown in Figure 4A, where the pre-processing task includes defogging processing, super-resolution processing, and segmentation processing.
[0103] In the above embodiment, the task broker unit 102 and the load balancer unit 103 are described as being included in the same processing device 100. However, these functional units only need to be able to virtually cooperate with each other, and do not need to physically exist in the same processing device 100. That is, for example, the task broker unit 102 may be included in the processing device 100, and the load balancer unit 103 may be included in a different device (or vice versa).
[0104] In the above embodiment, the server device 200 accesses the database device 400 each time it receives a request for each task from the processing device 100 to obtain data necessary for the processing. In such a case, access to the database device 400 for each task can also be parallelized, thereby improving processing efficiency. However, this is not limiting. For example, the processing device 100 can access the database device 400 before sending a request for each task that can be processed in parallel to obtain data necessary for processing the task. The processing device 100 can then transmit the data necessary for processing the task together with the request for each task to each server device 200. This makes it possible to consolidate access to the database device 400.
[0105] The processes and procedures described herein can be realized not only by those explicitly described in the embodiments, but also by software, hardware, or a combination thereof. Specifically, the processes and procedures described herein can be realized by implementing logic corresponding to the processes in a medium such as an integrated circuit, volatile memory, non-volatile memory, magnetic disk, or optical storage. Furthermore, the processes and procedures described herein can be implemented as computer programs and executed by various computers, including processing devices and server devices.
[0106] Although processes and procedures described herein are described as being performed by a single device, software, component, or module, such processes or procedures may be performed by multiple devices, multiple software, multiple components, and / or multiple modules. Furthermore, although various information described herein is described as being stored in a single memory or storage unit, such information may be stored in multiple memories within a single device or multiple memories distributed across multiple devices. Furthermore, software and hardware elements described herein may be realized by integrating them into fewer components or by decomposing them into more components.
[0107] 1 Processing system 100 Processing device 200 Server device 300 Terminal device 400 Database device
Claims
1. A processing device having at least one processor for processing a first request including multiple tasks, at least a first task and a second task, via a load balancer for distributing the load of multiple server devices communicatively connected via a communication network, wherein the at least one processor is configured to execute a process to: acquire the first request from a terminal device communicatively connected via the communication network; and, if the first task and the second task are tasks that can be processed in parallel, instruct the load balancer to process each of the first task and the second task as a single request in order to process each of the first task and the second task on at least two different server devices among the multiple server devices.
2. The processing device according to claim 1, wherein the at least one processor is configured to execute processing for instructing the load balancer to process the pre-processing task as a single request in a case where the first request includes a pre-processing task, so as to have the pre-processing task processed in one of the plurality of server devices prior to the first task and the second task.
3. The processing device according to claim 1, wherein the at least one processor is configured to execute processing for instructing the load balancer to process the post-processing task as a single request to have it processed on one of the plurality of server devices after the first task and the second task when the first request includes a post-processing task.
4. The processing device according to claim 1, wherein the first task and the second task are each processed as one request simultaneously in two different server devices.
5. The processing device according to claim 1, wherein said at least one processor is configured to execute a process for queuing the acquired first requests and retrieving the first requests according to a predetermined order.
6. The processing device according to claim 1, wherein said at least one processor includes a predetermined priority task, and when said at least one processor receives a second request different from said first request, said processing device interrupts said first task and said second task to process said priority task.
7. The processing device according to claim 6, wherein the second request is processed by interrupting the first task and the second task without being queued.
8. The processing device according to claim 1, wherein the first request is a request to input image data acquired in the terminal device into a trained analysis model to acquire an analysis result.
9. The processing device described in claim 8, wherein the first task is a task for inputting the image data into a first trained analysis model to obtain a first analysis result, and the second task is a task for inputting the image data into a second trained analysis model different from the first trained analysis model to obtain a second analysis result.
10. The processing device according to claim 8, wherein the image data is image data obtained by photographing at least a portion of the subject's oral cavity as a subject, and the analysis results indicate the possibility of the subject being afflicted with a specified disease that manifests itself in the oral cavity.
11. The processing device according to claim 1, wherein the at least one processor is configured to execute processing for adjusting the processing amount of requests, including the first request, to the plurality of server devices based on loads of the plurality of server devices.
12. The processing device according to claim 11, wherein said at least one processor adjusts by reducing the processing volume of requests including said first requests when the operation of said plurality of server devices is insufficient for the volume of interrupt requests, including a predetermined priority task, that are processed by interrupting said first task and said second task.
13. The processing device according to claim 1, wherein said at least one processor increases the number of server devices capable of processing said request in addition to said plurality of server devices according to an amount of queued requests including said first request.
14. A processing program that causes at least one processor to function as follows: in order to process a first request including multiple tasks, at least a first task and a second task, via a load balancer for distributing the load of multiple server devices communicatively connected via a communication network, the processing program acquires the first request from a terminal device communicatively connected via the communication network; and, if the first task and the second task are tasks that can be processed in parallel, instructs the load balancer to process each of the first task and the second task as a single request in order to process each of the first task and the second task on at least two different server devices among the multiple server devices.
15. A processing method executed by at least one processor for processing a first request including multiple tasks, at least a first task and a second task, via a load balancer for distributing the load of multiple server devices communicatively connected via a communication network, the processing method comprising: a step of acquiring the first request from a terminal device communicatively connected via the communication network; and, if the first task and the second task are tasks that can be processed in parallel, a step of instructing the load balancer to process each of the first task and the second task as one request, in order to process each of the first task and the second task on at least two different server devices among the multiple server devices.
Citation Information
Patent Citations
Medical image pickup device
JP2003135451A
Reception processing management method, request processing method, reception processing management program and request processing program
JP2005107581A
Information processor, server selection method, and program
JP2013015991A
Image processing server and method of controlling image processing server
JP2021071799A
Systems and methods for automated medical image annotation
US20210073977A1
