Upper limb amputation is a widespread problem worldwide, leading to massive loss of functionality for the victims. While a few solutions exist, these are often very expensive and involve expensive and dangerous surgical procedures. In this paper, we propose a low-cost, highly functional upper limb prosthesis controlled via Electroencephalogram (EEG) signals captured in real-time, classified into upper limb motion intention using a novel Genetic Algorithm (GA) optimized Long Short-Term Memory (LSTM) deep learning model to rehabilitate amputees. The proposed 3D-printed prosthetic arm has 3 Degrees-of-Freedom (DOF), which allows it to perform complex movements that can accurately emulate an actual human arm. The results discussed later in this paper conclude that our approach, while being low-cost, is highly accurate and functional. [ABSTRACT FROM AUTHOR]