I need a system that identifies a person (exactly a person) through rules (in this case, habits of such a person) but my AI knowledge is very shallow. Is there any appropriate technique for this? Preferably, it is applicable in languages such as Java and Python.