LSTM Replaces PID Control

  Рет қаралды 10,334

APMonitor.com

APMonitor.com

Күн бұрын

Пікірлер: 32
@WWG1-WGA
@WWG1-WGA Жыл бұрын
Im an automation engineer but I haven’t work on my career for almost for 10 years, I’m coming back into the web developer, data scientists and Automation . My expertise used to be into industrial control , not coding at all , but with this PID and machine learning example now I can see how to make it in this life haha everything change a lot . And I have experience in neuronal network but so confusing to know where to go with so many online careers . Thanks for the video !
@apm
@apm 2 жыл бұрын
A couple minor corrections: Anti-Reset Windup is included with the PID control at 6:56. The features (inputs) of the LSTM are Tsp and Error=(Tsp-T), not Tsp and T at 10:15.
@johntryl8009
@johntryl8009 2 жыл бұрын
Very cool stuff, but I have a genuine question about the applicability of this: why would anyone ever want to emulate/mimic/train an AI model to behave like PID controller, when a PID controller already behaves like a PID controller? I don't see where this makes sense to use, if a simple PID controller is already performing the work needed. Can you make a video showing an example of where a PID controller can NOT perform the duties of an LSTM controller? Maybe there's an application where a PID controller can never work, but an LSTM can? Can you provide insights into that topic please? Thanks again for the video, it was cool to watch!
@apm
@apm 2 жыл бұрын
Great question! You would certainly prefer a PID controller that is already working well. Suppose there is historical data that you want to learn from and build an automation solution, such as training from open loop data from the best operator. There are subsequent videos on LSTM controllers that emulate MPC. MPC can be difficult to deploy on microchips or embedded devices with limited compute resources. There are many other cases as well. The PID case study isn't the most motivating but it does show the process of learning.
@johntryl8009
@johntryl8009 2 жыл бұрын
​@@apm Got it! Thanks for the info and ideas! I've still got a lot of content to learn when it comes to control theory. I haven't dabbled yet with 'adaptive control', or 'mpc', or 'lstm', or even MIMO yet...I'm at a firm undergraduate level so far in controls in terms of practice and understanding, so I appreciate the feedback..haha, get it? Cheers!
@techwithcomparision2941
@techwithcomparision2941 2 жыл бұрын
Thanks for sharing !!!
2 жыл бұрын
Thank you for sharing.
@JujuhTuberr
@JujuhTuberr Жыл бұрын
Awesome!
@Anyone.c
@Anyone.c 2 жыл бұрын
Thank you so much!
@destroyo5457
@destroyo5457 2 жыл бұрын
This is awesome!
@ivanoxford5796
@ivanoxford5796 2 жыл бұрын
Thanks for sharing teacher
@toothlesstbh
@toothlesstbh 8 ай бұрын
Let's I want to control some other parameters of a system such as "speed control of a motor", then where to get libraries for that?
@apm
@apm 8 ай бұрын
Same libraries, just different data with the LSTM control. If you are looking for interfaces to hardware with Python then see the Data-Driven Engineering website at apmonitor.com/dde with communication examples with Modbus & OPC and tutorials on connecting to hardware with microcontrollers and I2C.
@toothlesstbh
@toothlesstbh 8 ай бұрын
Thank you very much! Helped me a lot.
@TEC_STE
@TEC_STE 2 жыл бұрын
Could we let lstm to learn from fuzzy controller instead of pid? Maybe the results will be better. Thanks very much.
@apm
@apm 2 жыл бұрын
Yes, it can learn from any sequence.
@Frost_Byte_Tech
@Frost_Byte_Tech 2 жыл бұрын
Congratulations, I'm now a permanent subscriber.. Your content is fireeeee Sir 🔥🔥🔥🔥🔥🔥
@apm
@apm 2 жыл бұрын
Thanks for the feedback!
@jenefaravind
@jenefaravind Жыл бұрын
Can LSTM replace PID controller for Multivariable control?
@apm
@apm Жыл бұрын
Sure, see Exercise 2 here: apmonitor.com/do/index.php/Main/LSTMNetwork
@javierenriquepozzohuerta8075
@javierenriquepozzohuerta8075 2 ай бұрын
Amazing case! is there a portal where we can post questions and doubts? I`m having some issues trying to implement in Python 3.12 and moved to Python 3.9.1 as you show in the video same error. Thanks in advance for your help.
@apm
@apm 2 ай бұрын
I'd recommend StackOverflow for questions. KZbin comments are okay for simple issues.
@vahidvajihinejad3178
@vahidvajihinejad3178 2 жыл бұрын
Thanks for sharing, great stuff indeed, I enjoyed it! I was wondering if you had any thoughts to share on how that would be implemented on a controller in real plant. The controllers on DCS usually do not have the capacity to run an outsource model, may be inputting it from cloud or a interface like what's done in APC/MPC? Then any thought on the latency issue in real applications?
@apm
@apm 2 жыл бұрын
Initially it would need to be communication through MODBUS, OPC, or similar communication protocol. Some forward-thinking companies have made Python available as a calculation block in the DCS, although with limited cycle time to prevent overloading the CPU. You can likely expect more sophisticated DCS/PLC interfaces to Python in the future.
@Harikrishnan-me9dn
@Harikrishnan-me9dn 7 ай бұрын
Hi Is it possible to model the PI controller which is used for DC-DC converter control using LSTM. Can you please recommend a way to generate data to train the model if its possible. Thank you
@apm
@apm 7 ай бұрын
Sure, just follow the same example but replace the PV, OP, and SP values with that for the DC-DC converter.
@Harikrishnan-me9dn
@Harikrishnan-me9dn 7 ай бұрын
@@apm Thanks a lot. We were planning to train the model using error, change in error and change in duty ratio. Is it possible to generate the volume of data required using a boost converter with pid controller model in matlab simulink?
@ayoubtech6930
@ayoubtech6930 Жыл бұрын
can you make a vidio to optimize pv systeme with lstm
@apm
@apm Жыл бұрын
See apmonitor.com/do for similar content.
@wilfredralphgomez8325
@wilfredralphgomez8325 Жыл бұрын
could you share your code sir?
@apm
@apm Жыл бұрын
Sure, it is available here: apmonitor.com/pds/index.php/Main/LSTMAutomation (see LSTM Emulates SISO MPC section)
@avibank
@avibank 2 жыл бұрын
Big 'hmmm'
Physics-Informed Neural Network
21:58
APMonitor.com
Рет қаралды 7 М.
What is a PID Controller? | DigiKey
22:19
DigiKey
Рет қаралды 88 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 128 МЛН
LSTM Replaces SISO MPC
16:43
APMonitor.com
Рет қаралды 2,6 М.
Long Short-Term Memory (LSTM), Clearly Explained
20:45
StatQuest with Josh Starmer
Рет қаралды 583 М.
PID Control Tuning with Python GEKKO
23:42
APMonitor.com
Рет қаралды 25 М.
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Рет қаралды 128 М.
LSTM Replaces MIMO MPC
12:16
APMonitor.com
Рет қаралды 3,4 М.
PID temperature controller DIY Arduino
12:30
Electronoobs
Рет қаралды 428 М.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 1 МЛН
Introduction to PID Control
49:18
Christopher Lum
Рет қаралды 65 М.
LSTM-Based Time Series with PyTorch (10.2)
13:54
Jeff Heaton
Рет қаралды 6 М.