Purity is an important factor of maize seed quality that affects yield, and traditional seed purity identification methods are costly or time-consuming. To achieve rapid and accurate detection of the purity of maize seeds, a method for identifying maize seed varieties, using random subspace integrated learning and hyperspectral imaging technology, was proposed. A hyperspectral image of the maize seed endosperm was collected to obtain a spectral image cube with a wavelength range of 400∼1,000 nm. Methods, including Standard Normal Variate (SNV), multiplicative Scatter Correction (MSC), and Savitzky–Golay First Derivative (SG1) were used to preprocess raw spectral data. Iteratively retains informative variables (IRIV) and competitive adaptive reweighted sampling (CARS) were used to reduce the dimensions of the spectral data. A recognition model of maize seed varieties was established using k-nearest neighbor (KNN), support vector machine (SVM), line discrimination analysis (LDA) and decision tree (DT). Among the preprocessing methods, MSC has the best effect. Among the dimensionality reduction methods, IRIV has the best performance. Among the base classifiers, LDA had the highest precision. To improve the precision in identifying maize seed varieties, LDA was used as the base classifier to establish a random subspace ensemble learning (RSEL) model. Using MSC-IRIV-RSEL, precision increased from 0.9333 to 0.9556, and the Kappa coefficient increased from 0.9174 to 0.9457. This study shows that the method based on hyperspectral imaging technology combined with subspace ensemble learning algorithm is a new method for maize seed purity recognition.