Implementation of Level Controller using Machine Learning Algorithm of a Spherical Tank

DOI : 10.17577/IJERTV13IS120078
Download Full-Text PDF Cite this Publication

Text Only Version

 

Implementation of Level Controller using Machine Learning Algorithm of a Spherical Tank

Athappan V

Faculty

Kanagagiri D, Sudarshan R, Praveen S

Student,

Department of Electronics and Instrumentation Engineering, Kumaraguru College of Technology, Coimbatore,

Tamil Nadu, India.

AbstractThis project explores a novel approach for level control in non-linear spherical tanks by integrating machine learning with mathematical modelling. Spherical tanks exhibit complex non-linear behaviour due to their geometry, which complicates traditional control methods. We begin by developing a detailed open loop model of the spherical tank, capturing the intricate relationship between the liquid height and the tanks volume, as well as the dynamics of fluid inflow and outflow. This model forms the basis for understanding how variations in flow rates affect the liquid level within the tank. To address the non- linearity and enhance control performance, we incorporate machine learning techniques. By training a machine learning model on historical data, including inflow rates, outflow rates, and observed liquid levels, we develop a predictive tool that accurately reflects the systems behaviour. This model is integrated into a Q- learning framework, which uses it to forecast future states and optimize control actions accordingly. Simulation results show that this Q-learning based control strategy significantly improves the accuracy and stability of the liquid level control compared to traditional methods, demonstrating its effectiveness in managing the complexities of non- linear spherical tanks.

Keywordsnon-linear; spherical tank; Q-learning; open loop; machine learning

  1. INTRODUCTION

    Level control in non-linear systems, such as spherical tanks, presents a unique set of challenges due to the complex interplay between fluid dynamics and tank geometry. Unlike cylindrical tanks, where the relationship between liquid height and volume is linear, spherical tanks exhibit a non-linear relationship that complicates traditional control strategies. As such, maintaining a desired liquid level in these systems requires advanced methods that can accommodate their inherent non-linearity. we propose a novel approach to tackle this challenge by integrating the system with machine learning techniques. To solve this a Multi -model design is created so that the spherical tank is split up into 3 parts and the controller action is done. Initially conventional controller is used to determine the dimension and volume of the spherical tank.

    Performance measure is done by time domain specifications (ISE, IAE, ITAE) to determine the performance and efficiency of conventional controllers. Then the Q-learning algorithm is incorporated to train the system with the disturbances and uncertainties and to obtain the level of the spherical tank. Through the rewards of the learning model the error can be reduced.

  2. MATERIALS
    1. MATLAB

      This study makes considerable use of MATLAB, a proprietary programming environment created by MathWorks. A whole range of tools for numerical computing, developing algorithms, analysing data, and visualising it are provided by MATLAB. Because of its adaptability, it is ideal for a variety of scientific and engineering uses, including as machine learning, signal processing, and control system design. The development, simulation, and analysis of algorithms pertaining to the design and implementation of a control system for a nonlinear spherical tank were carried out in this study using MATLAB. The study process was made more productive and efficient using MATLAB, which allowed for quick prototyping and iterative control algorithm improvement.

    2. DAQ

      An ATmega2560 microcontroller-based Data Acquisition (DAQ) system was incorporated into the experimental configuration to facilitate communication with tangible sensors and actuators. The ATmega2560, when used in conjunction with MATLAB, enabled real-time data acquisition and control activities. It was equipped with several Analog-to-Digital converter (ADC) channels, digital I/O ports, and communication interfaces like UART and I2C. The DAQ system made it possible to collect sensor data from the actual system, which was then used as input for MATLAB’s control algorithms and to actuate the actuators in the system using control signals. Validation and optimisation of control techniques for the nonlinear spherical tank system were made easier by the smooth transition from simulation to real-world

      S. No. Parts/Field instruments Specifications/Description
      1 Spherical Tank Material: Stainless Steel, Diameter: 43 cm, (LRV= 436 mmH2O, URV=866, mmH2O,

      Volume: 42 liters

      2 Pump and VFD VFD: ABB-ACS350, 3

      4- 20 mA to 0 to 50 Hz.

      Pump: Grundfos-JP5 centrifugal pump, 3 Phase.

      3 DPT for level measurement (LT) 6200T Series, Range: 0 to 6500 mmH2O, Output: 4 to 20mA+HART
      4 DPT for Flow measurement

      (FT)

      6200T Series, Range: 0 to 6500 mmH2O, Output: 4 to

      20mA+HART

      5 Control valves Linear, Air to open, Body: 1, Trim1/2
      6 Rotameter 150 to 1500 LPH
      7 I/P converter Input: 4 – 20 mA, 20 psi

      Output: 3 to 15 psi

       

      experimentation made possible by the integration of MATLAB with the DAQ system contained with the ATmega2560 microcontroller.

    3. DPT (Level Transmitter)

      This study’s differential pressure transmitter is an Allen Bradley precision instrument made especially for process control and monitoring applications. With a 24 V DC input voltage, this type can be used with conventional industrial power sources and control systems. The transmitter output provides a linear signal in relation to the observed pressure differential across its input ports and is arranged in the industry-standard 4-20 mA current loop format. Strong, noise- resistant transmission of measurement data over extended distances is made possible by the 420 mA signal range, which makes it ideal for the harsh conditions frequently found in industrial applications. Modern sensor technology is used into the design of this transmitter to provide high differential pressure measuring accuracy, stability, and repeatability

    4. CONTROL VALVE

      The control valve we describe in our study has an input current range of 420 mA and is designed for precise flow regulation. The electrical signal is modulated by this input signal, which then transforms it into a pneumatic output actuation with a pressure range of 3 to 15 psi. With this conversion, a wide range of industrial applications can benefit from precise control over fluid or gas flow rates via the valve. Maintaining ideal process conditions depends critically on how well the device responds to electrical commands and converts them into mechanical movement.

    5. SYSTEM DESCRIPTION
    1. BLOCK DIAGRAM

      a. Component specifications of spherical tank process

  3. METHODS

    Fig. 1. P&I diagram of spherical tank waterlevel process

    Fig. 2. Block diagram of the system

    Taking into consideration elements like the nonlinear relationship between liquid level and volume and the curvature of the tank walls, the non-linear system depicts the dynamic behaviour of the spherical tank. The Proportional- Integral-Derivative controller is selected because it can control the dynamics of the system by modifying the controllers output in response to the accumulation of past errors as well as current errors. While Ki provides steady-state control by integrating prior errors over time, the Kp reacts to the current error and Kd reacts to reduce the current error. Machine learning method is essential to optimize the performance of the PID controller. It uses iterative optimization techniques, like Q-learning algorithms to continuously modify the values of Kp, Kd and Ki. The algorithm aims to optimize the objective function by iteratively fine-tuning these parameters in response to system feedback, guiding the controller towards optimal performance. The objective function is a statistic used

    to assess how well the PID controller is performing. It measures the difference between the level that the level sensor actually measures and the desired level setpoint. By optimization oscillations and overshoot, this function can be optimized to ensure that the controller maintains the required level as efficiently as possible.

    1. Q-LEARNING

      This section includes the introductory part of Q-learning which could be implemented in the future to obtain optimal and robust control for level in the spherical tank. Q-learning algorithm includes the 5 key components they are given as follows: State includes the liquid level, rate of change, and inflow rate. Action includes controlling the inflow to maintain inlet flow. Reward function could be designed to minimize the large deviations from the set point and long settling times. Q- values are the combinations of states and actions (e.g., Q (s, a)). Q-table is the combination of Q-values. Q-table is a matrix where row represents states and column represents actions. Each cell in the table holds the Q-value for particular state action pair. Bellman equation is used for updating the Q-values in the Q-table.

      Simulink model receives signal from DAQ (AT Mega 2560).The conversion involves translating the voltage values from a binary representation (0-1023 bits), where each volt corresponds to approximately 204.6 bits. With the bit representation the value of level is determined and with the help of digital output block the output bit is represented. The Simulink model includes a display component that visualizes the systems performance through graphs or other visual representations. This allows users to monitor and analyze the systems behavior in real-time.

      Time (in sec) Setpoint(bit) Output(bit) Level (in cm)
      0 800 226 8.82
      10 800 225 8.00
      20 800 427 16.67
      50 800 604 23.19
      70 800 725 28.32
      80 800 751 29.33
      90 800 828 32.39

       

      Q(s, a)Q(s, a)+[r+ max Q(s, a)Q(s, a)]

      • : Learning rate (how much new information overrides

        old).

      • r: Immediate reward after taking action a.
      • : Discount factor (how much future rewards are taken into

        consideration).

      • s: The next state after taking action a.
    2. OPEN LOOP RESPONSE

    b. Openloop response of the spherical tank

    Fig. 3. Block representation of open loop system

    A 24-volt power supply is provided to the system, serving as the primary source of electrical energy for the components. Differential Pressure Transmitter converts the supplied power into a 4-20 milliampere (mA) signal, which is proportional to the measured pressure difference across the tank. The 4-20 mA signal is transmitted to a data acquisition card (AT Mega 2560), which interfaces with a computer for data processing and analysis purposes. The data acquisition card is connected to a computer running MATLAB Simulink, facilitating real- time monitoring and control of the systems performance. The

    Fig. 4. Graphical representation of open loop response

  4. RESULT AND CONCLUSION
  1. RESULT

    By using Arduino input and output tools in MATLAB, the open loop response in a nonlinear spherical tank system was obtained, successfully achieving the desired outcome. This study showcased the simplicity and efficiency of the method, demonstrating its usefulness in industrial applications. The study confirmed that machine learning may improve control accuracy and stability by using advanced optimization techniques such as Q-learning. Taken as a whole, these results demonstrate the influence of sophisticated optimization techniques on industrial operations, offering increased control performance and productivity.

  2. CONCLUSION

In conclusion, the utilization of Arduino input and output tools in MATLAB presents several advantages in finding the open loop response of spherical tank level control. Furthermore, the study of Q-learning algorithm ensures the importance of employing advanced techniques to achieve optimal control strategies. These findings suggest that leveraging Q-learning model can lead to more robust and accurate control systems, ultimately improving overall performance and efficiency in industrial processes.

REFERENCES

  1. S Nithya et al: model based controller, “Model based controller design for a spherical tank process in real time “,IJSSST vol. 9 no. 4, November 2008
  2. R. Praveena, R. Abhinaya, S. P. Abinaya, G. Aishwarya and A. Kumar, “Level control of a spherical tank system using conventional & intelligent controllers,” 2014 International Conference on Green Computing Communication and Electrical Engineering (ICGCCEE),

    Coimbatore, India, 2014

  3. K.K. Tan, S. Huang, R. Ferdous, Robust self-tuning PID controller for nonlinear systems, Journal of Process Control, Volume 12, Issue 7, 2002, Pages 753-761, ISSN 0959-1524
  4. Sakthivel, G., T. S. Anandhi, and S. P. Natarajan. “Design of fuzzy logic controller for a spherical tank system and its real time implementation.” International journal of engineering research and applications 1.3 (2011): 934-940.
  5. Ashwini, A., and S. R. Sriram. “Quadruple spherical tank systems with automatic level control applications using fuzzy deep neural sliding mode FOPID controller.” Journal of Engineering Research (2023).
  6. Kumar, D. Dinesh, and B. Meenakshipriya. “Design and implementation of non -linear system using gain scheduled PI controller.” Procedia engineering 38(2012):3105-3112.
  7. Bharathi, M., C. Selvakumar, and A. Kalpana. “Model based controller design for a spherical tank.” IOSR Journal of Electrical and Electronics Engineering 9.2 (2014): 74-79.
  8. Gowtham T .”Control of Non Linear Spherical Tank process with PI- PID controllers” Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 8, Issue 9 (Part III) Sep 2018,

    pp 28-34

  9. Mahesh, Batta. “Machine learning algorithms-a review.” International Journal of Science and Research (IJSR). [Internet] 9.1 (2020): 381-386.
  10. H. Dahrouj et al., “An Overview of Machine Learning-Based Techniques for Solving Optimization Problems in Communications and Signal Processing,” in IEEE Access, vol. 9, pp. 74908-74938, 2021
  11. Prakash, V. S., et al. “Revolutionizing Agriculture: Artificial Intelligence Assisted Plant Leaf Disease Detection using Deep Learning Principles.” 2024 10th International Conference on Communication and Signal Processing (ICCSP). IEEE, 2024.
  12. Singh, Ajith B. “Investigation of Intelligent Controller for non-linear spherical tank system.” Information Technology in Industry 9.2 (2021): 1053-1061.
  13. G.Sivagurunathan, and Dr.K.Saravanan , Evolutionary Algorithms based Controller Optimization for a Real Time Spherical Tank System, Australian Journal of Basic and Applied Sciences, vol.8, no.3, pp 244- 254,2019.
  14. Dogru, Oguzhan, et al. “Reinforcement Learning in Process Industries: Review and Perspective.” IEEE/CAA Journal of Automatica Sinica 11.2 (2024): 283-300.
  15. Roh, Bong-Soo, Myoung-Hun Han, Jae-Hyun Ham, and Ki-Il Kim. “Q- LBR: Q-learning based load balancing routing for UAV-assisted VANET.” Sensors 20, no. 19 (2020): 5685.
  16. D.Dinesh kumar, B.Meenakshipriya, Design and Implementation of Non-Linear System Using Gain Scheduled PI Controller, Procedia Engineering, vol. 38, pp. 3105 3112, 2020.
  17. D. Sabapathi and R.Anitha, Fuzzy Logic Based Fault Diagnosis for Two Area Multimachine System, international Review on Modeling Simulations, vol.5, no.6, pp. 2518-2525, 2021.
  18. Ben Joe Raj, P. Subha Hency Jose (2018),Fuzzy Logic Based PID Controller for a Non-Linear Spherical Tank System, International journal of engineering research and technology,vol.3 issue February 2018
  19. Rane, N. L., S. K. Mallick, O. Kaya, and J. Rane. “Techniques and optimization algorithms in machine learning: A review.” Applied Machine Learning and Deep Learning: Architectures and Techniques (2024): 39-58.
  20. S. Gu et al., “A Review of Safe Reinforcement Learning: Methods, Theories, and Applications,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46, no. 12, pp. 11216-11235, Dec. 2024, doi: 10.1109/TPAMI.2024.3457538.