An approach for predicting disordered breathing involves detecting one or more conditions associated with disordered breathing. The programming instructions are operable to receive a tool error output determined by a code inspection tool and select at least one defect classification mapping profile based on the code inspection tool. The transmitted terahertz wave may be variously modified according to the degree of crystallization of an organic material deposited on the semiconductor substrate and according to the intensity of incident light so as to maximize modulation efficiency using the modified terahertz wave.