The embodiment of the invention discloses a knowledge and data driven brain network calculation method and device, and the method comprises the steps: obtaining a brain image of a sample, constructing a brain region mask according to priori knowledge, positioning each brain region in the brain image, and obtaining an image of each brain region in the brain image; extracting topological features of each brain region image through a plurality of feature extraction modules based on space attention; the connection relation between the topological features of the brain region images is learned, a brain network is constructed based on the topological features and the connection relation, the brain network is composed of nodes and edges, the nodes represent the brain regions, and the edges represent the brain connection strength between the brain regions; according to a brain network prediction sample disease category, disease related information is obtained to constrain distribution of the brain network, so that the brain network comprises more disease features and connections, and the brain network is optimized. The problems that an existing brain network calculation method is small in application range, poor in compatibility, high in subjectivity, high in calculation cost and low in efficiency and accuracy are solved.
CN116188366A