Infrared Classification of Young Stellar Objects