long short-term memory (lstm) is a type of machine learning that is specifically designed to…