The environmental and biological factors that affect the food security during the food storage,such as the food temperature,environment humidity,moisture,gas,mildew,pests and others pose a threat to the food storage security,among which the pest is an important factor threatening food storage security.Therefore,a fast and effective detection method is needed to detect stored grain pests.Some of the existing methods are time consuming,using expensive equipment,potentially harmful to health and inefficient.A non-contact,fast and low-cost detection method for stored grain pests based on the amplitude of the channel state information (CSI) was proposed,namely,wireless-pest (Wi-Pest).The feasibility of the pest detection in the stored grain was verified by using CSI amplitude data.On this basis,a Wi-Pest detection method was designed.Firstly,the amplitude data of CSI was preprocessed by outliers removal,data normalization and noise elimination.Then the principal component analysis (PCA) was used to compress the data and extract the main feature components.Finally,random forest (RF) classification method was used to detect stored grain pests.Experiments show that the abnormal density of live pests in grain heaps can be detected under the line of sight (LOS) scenario,and the detection accuracy of the proposed method can reach 97% on average.