The fundamental idea behind few-shot learning is to employ sparse labeled data to effectively handle novel tasks, whereas most existing mainstream approaches mostly rely on prior experience gained from previous situations. Nonetheless, effective knowledge transfer is sometimes hampered by constraints on new samples and barriers between classes. To address these issues, this research presents a novel background-filtering feature-enhanced graph network (BFFE-GNN) that attempts to generate relationships between graphs in order to explicitly describe and transmit inter-class relationships. To specifically address the issue of inadequate information utilization brought on by sample background interference, which is frequent in classification tasks, we employ a novel background-filtering feature-enhanced graph network. Effective data information extraction from complicated datasets is challenging due to the original module’s relatively simple network structure during the feature extraction stage and the interference of the image background. The background-filtering module was specifically introduced, which enhances spatial attention. This not only improves the quality of feature extraction but also effectively lessens the influence of picture background on classification results. In addition, we have improved the background-filtering-based feature gap calculation by implementing a feature-enhanced module. To demonstrate the adaptability of the BFFE-GNN model, we not only ran experiments on two publicly available datasets, MiniImagenet and TiredImagenet, but we also created our own Tool dataset. The method’s exceptional performance and universal applicability in the field of few-shot picture classification are clearly demonstrated by the experimental findings, which indicate that it greatly outperforms the majority of existing similar methods. This discovery establishes a strong basis for further research in the field of few-shot learning in addition to offering fresh insights into the subject.