# A Machine Learning-Based Model for Epidemic Forecasting and Faster Drug Discovery
## 2 Methods
The availability of data streams for training tasks is controlled through control messages so that ML users can appropriately check  
Figure 1: The emerging technologies used in our proposed system. when the aggregated data streams are ready for training. The data flow used for training must be at least larger than the batch size specified in the sent control message. Finally, the paper presents the trained model along with the training and assessment metrics in the background. This operation is performed in each function of each ML model in the configured configuration. ```
while not trained do msg \(\leftarrow\) readControlStreams(); if deployment_id == msg.deployment_id then decoder = getDecoder(msg.input_format, msg.input_config); data_stream \(\leftarrow\) readStream(msg.topic, decoder, msg.batch); if msg.validation_rate > 0 then training_stream \(\leftarrow\) take(data_stream, (1 - msg.validation_rate)); evaluation_stream \(\leftarrow\) split(data_stream, msg.validation_rate); else training_stream \(\leftarrow\) data_stream; end training_res \(\leftarrow\) trainModel(model, training_kwargs, training_stream); if msg.validation_rate > 0 then evaluation_res \(\leftarrow\) evaluateModel(model, evaluation_kwargs, evaluation_stream); end uploadTrainedModelAndMetrics(model, training_res, evaluation_res); trained \(\leftarrow\) True; end
```  
**Algorithm 1** Training algorithm. Recent developments in information and communication technologies have allowed the interconnection of a growing number of devices on the internet. A cutting-edge technology is the Internet of Things (IoT) that aspires to interconnect physical objects such as smart devices to the internet, generating a global network where humans can interact with the smart devices [18]. In medicine, such devices include medical devices and wireless sensors, such as pulse/heartbeat sensors, blood pressure sensors, noninvasive oxygen saturation (SpO\({}_{2}\)) sensors, electrocardiography (ECG) sensors, glucometer sensors, body temperature sensors, etc. for remote monitoring of patients' health. As it is obvious, these IoT-based smart devices can have artificial intelligence, since they are able to make decisions based on their measurements to provide important information about the health level of the patients, while they can also access e-health data gathered by other smart devices [19]. All of these e-health data can be transmitted to medical laboratories after patients' consent, thanks to IoT technology and wireless networking, in order to be analyzed and used for drawing vital conclusions that can lead to faster drug discovery against specific epidemic diseases. In addition, algorithms and tree protocols can be collected to track the path of an IoT network, and thus map the spread of the virus. Compression of the computer virus and biological disease in a weighted network has attracted the attention of researchers in various fields. Specifically, the global medical community studies the deceleration ways of the epidemic spread in weighted networks, such as the IoT. * Artificial Intelligence (AI) Artificial intelligence (AI) is the integration of human intelligence into machines. Machines work according to certain rules defined by appropriate algorithms to solve problems. Because of the \"intelligent\" behavior of such machines, the technology is called artificial intelligence. Thanks to artificial intelligence, machines are able to move and manipulate objects, recognize when someone raises their hand, and often solve multiple problems. Over the past ten years, artificial intelligence technology has entered an astonishing period of rapid development and widespread application due to the significant improvements in raw computing power. The methods used in conventional AI study topics, such as computer vision, natural language processing, speech recognition, and robotics, have found many innovative applications in a number of real-world applications. Public health supervision is an area that has been advanced considerably by the latest AI developments.