1 min readfrom Machine Learning

[P] I trained an AI to play Resident Evil 4 Remake using Behavioral Cloning + LSTM

Our take

In this project, I trained an AI to navigate the challenges of Resident Evil 4 Remake using Behavioral Cloning and LSTM techniques. By recording gameplay trajectories—such as running, shooting, and reloading—I developed a model that imitates my decision-making. The integration of LSTM allowed the AI to retain memory across time steps, enhancing its performance in single encounters. However, it struggled with complex scenarios, particularly when faced with multiple enemies.
[P] I trained an AI to play Resident Evil 4 Remake using Behavioral Cloning + LSTM
[P] I trained an AI to play Resident Evil 4 Remake using Behavioral Cloning + LSTM

I recorded gameplay trajectories in RE4's village — running, shooting, reloading, dodging — and used Behavioral Cloning to train a model to imitate my decisions. Added LSTM so the AI could carry memory across time steps, not just react to the current frame.

The most interesting result: the AI handled single enemies reasonably well, but struggled with the fight-or-flee decision when multiple enemies were on screen simultaneously. That nuance was hard to imitate without more data.

Full video breakdown on YouTube. Source code and notebooks here: https://github.com/paulo101977/notebooks-rl/tree/main/re4

Happy to answer questions about the approach.

submitted by /u/AgeOfEmpires4AOE4
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#rows.com#real-time data collaboration#big data management in spreadsheets#generative AI for data analysis#conversational data analysis#Excel alternatives for data analysis#financial modeling with spreadsheets#intelligent data visualization#no-code spreadsheet solutions#real-time collaboration#data visualization tools#enterprise data management#big data performance#data analysis tools#data cleaning solutions#AI#Resident Evil 4#Behavioral Cloning#LSTM#fight-or-flee decision