The company has filed a patent application for software that could detect whether a passenger is in an "abnormal state."