Pulmonary nodule detection using distance metric learning