What would a Stoic do? AI Based Decision Making Model | by Pol Marin | January, 2025
Deep Learning
Using AI to create a reincarnation of Marcus Aurelius

I have been reading, learning about, and practicing stoicism for some years now. Ever since I started posting on Medium, it's been a goal to combine data science and philosophy into one project.
Combining both worlds is difficult, however, but here I finally try.
What you will learn today is a decision-making model based on stoicism. The goal is to use deep learning to build a stoic brain (sort of) and, when there are difficult decisions, it should help us lean towards what a stoic would do.
In other words, create an AI-based reincarnation of Marcus Aurelius, Seneca, Epictetus…
That is a big challenge though. I am not even an NLP developer or anything related. Can it really be done? Spoiler alert: yes. At the end of this post you will know how to develop a model like this and, more importantly, learn to do it with your data in a completely different context. The result will be a web-based chatbot built with the very simple Flask program.
You will find the complete code in the resources section at the bottom of this article.