GSPA is introduced. From certainty and uncertainty, measured indicator sets of assessing samples and standard sets are as set pair, and the method to determine the connection degree is discussed, as for some indicator, if it is in this grade, then it is identical; if it is in the neighboring grade, then it is different; if it is in the separated grade, then it is the opposite. The maximum subordinate degrees judgment criterion is discussed. The smallest square sum of the weight deviation degree between samples and the safety level grade standards is as the objective function, The IDO most superior pattern recognition model is proposed, and they are applied to the safety assessment in the coal mine. The latter is more suitable for the safety assessment in the coal mine by comparing their advantages and disadvantages, which provides theory basis for the safety production.