People can be confusing and unpredictable at times. Understanding them comes from experience and observation. Pay attention to contradictions between what a person says and what they actually do. Most people lie about their feelings at some point - a person might claim to be fine when they're actually hurt, sick or upset, for example. An untrustworthy person's actions will contradict what they say much more often than a normal person's.
[Video]