An optimized artificial intelligence based technique for identifying motor imagery from EEGs for advanced brain computer interface technology