Developing theory through integrating human and machine pattern recognition