## 3 Proposed Intelligent Control System  
The nonlinear behavior of the process, long-time delays, and large input disturbances make the control of rotary dryer difficult [10]. Due to the complex process dynamics, human-sourced mistakes are usually made in the operation process of rotary dryer. Therefore, an intelligent controller is designed to overcome these problems.  
The main role of our proposed controller is to replace the operator and achieve intelligent control. Indeed, the proposed control system aims to keep the content of moisture at the dryer outlet as close as possible to the optimal value and improve the homogeneity of the product without operator interventions. Consequently, it is possible to obtain an efficient operation of the rotary dryer, and prevent human mistakes.  
The proposed controller was developed using the Simulink from MATLAB [27]. This piece of software includes a library of components from which the model can be developed.Simulink is widely used in automatic control for multidomain simulation and model-based design. Furthermore, the software has an interface that allows the industrial internet of things (IIoTs) to communicate. For this research, Thingworx [28] from PTC was mainly used. The data template for an intelligent controller, devices and regulatory control in the IIoT are: Remote thing, plant thing, and regulatory thing.  
A schematic representation of the advanced control system is depicted in Figure 3. The intelligent control system uses data from IIoTs to evaluate the operating condition of the dryer and monitor the outlet moisture content of the cut tobacco. KEPServerEX leverages OPC (OLE for Process Control which is the automation industry's standard for interoperability) and IT-centric communication protocols (such as SNMP, ODBC, and web services) to provide Thingworx with a single source for industrial data.  
The regulatory control system has two modes, an automatic mode and a manual mode. In automatic mode, the dryer is completely controlled by the intelligent controller without manual intervention. In the manual mode, on the other hand, the dryer is completely controlled by the operator without any intelligent control system support. It should be emphasized here that in manual mode, the intelligent control system continues working, it still outputs a setpoint to the regulatory control system which will not be sent to the dryer. The two modes can be easily interchanged at any time. In other words, if the automatic mode, for whatever reason, is not satisfactory it is always possible to switch to the control operator.  
The intelligent control system includes three main modules:  
1. The mathematical model, which a mathematical model for the control of the dryer, and this is the basis for creating a predictive simulation model of the dryer;
2. The predictive simulation mainly simulates the control state of the dryer and predicts the outlet moisture content of cut tobacco at the moment T + 1;
3. The decisive control handles the process variable: set point of the dryer temperature. In the flowing sections, the mathematical model, predictive simulation and decisive control of the intelligent controller are described.  
Figure 2: Regulatory control system in the plant.