As one of the essential information, passenger Origin-destination (OD) matrix is crucial for transit system planning. Automated fare collection (AFC) system is widely used in big cities all around the world, OD data not only can be collected in dynamic way but also through citywide. It is only a byproduct of AFC and have the imperfection. This paper proposes a novel method to infer trip chain information of each commuter's OD matrix based on travel pattern identify, and then the relationship between lines which have the character of the geographical proximity is used to calibrate the result of inferring. A serious of experiment results based on the real data show that the method has relatively high accuracy and can be use to practical application.