CN116665906A - Resting state functional magnetic resonance brain age prediction method based on similarity twin network - Google Patents
Resting state functional magnetic resonance brain age prediction method based on similarity twin network Download PDFInfo
- Publication number
- CN116665906A CN116665906A CN202310601158.3A CN202310601158A CN116665906A CN 116665906 A CN116665906 A CN 116665906A CN 202310601158 A CN202310601158 A CN 202310601158A CN 116665906 A CN116665906 A CN 116665906A
- Authority
- CN
- China
- Prior art keywords
- similarity
- age
- network
- feature
- fmri
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/05—Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves
- A61B5/055—Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves involving electronic [EMR] or nuclear [NMR] magnetic resonance, e.g. magnetic resonance imaging
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/0033—Features or image-related aspects of imaging apparatus, e.g. for MRI, optical tomography or impedance tomography apparatus; Arrangements of imaging apparatus in a room
- A61B5/004—Features or image-related aspects of imaging apparatus, e.g. for MRI, optical tomography or impedance tomography apparatus; Arrangements of imaging apparatus in a room adapted for image acquisition of a particular organ or body part
- A61B5/0042—Features or image-related aspects of imaging apparatus, e.g. for MRI, optical tomography or impedance tomography apparatus; Arrangements of imaging apparatus in a room adapted for image acquisition of a particular organ or body part for the brain
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7271—Specific aspects of physiological measurement analysis
- A61B5/7275—Determining trends in physiological measurement data; Predicting development of a medical condition based on physiological measurements, e.g. determining a risk factor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/50—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for simulation or modelling of medical disorders
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B2576/00—Medical imaging apparatus involving image processing or analysis
- A61B2576/02—Medical imaging apparatus involving image processing or analysis specially adapted for a particular organ or body part
- A61B2576/026—Medical imaging apparatus involving image processing or analysis specially adapted for a particular organ or body part for the brain
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Theoretical Computer Science (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Biophysics (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- General Physics & Mathematics (AREA)
- Public Health (AREA)
- Pathology (AREA)
- Animal Behavior & Ethology (AREA)
- Veterinary Medicine (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Surgery (AREA)
- Heart & Thoracic Surgery (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Radiology & Medical Imaging (AREA)
- Databases & Information Systems (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Computational Linguistics (AREA)
- Psychiatry (AREA)
- Physiology (AREA)
- Mathematical Analysis (AREA)
- Signal Processing (AREA)
- High Energy & Nuclear Physics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
Abstract
本发明提供了一种基于相似性孪生网络的静息态功能磁共振脑龄预测方法,属于医学图像智能诊断技术领域,解决了传统脑龄预测方法中准确性和稳定性不足的技术问题。其技术方案为:包括以下步骤:S1:采集被试的功能性磁共振成像rs‑fMRI数据;S2:构建孪生神经网络;S3:设计特征相似性与标签相似性度量模块;S4:定义置信度评估脑龄预测模块;S5:将测试数据集中的脑部影像数据输入到该模型中进行分析,从而得出每个测试数据样本的预测脑龄。本发明的有益效果为:预测准确率高,对脑影像数据进行精确的预测,帮助医生更准确地评估患者的脑龄。
The invention provides a resting state functional magnetic resonance brain age prediction method based on a similarity twin network, which belongs to the technical field of medical image intelligent diagnosis, and solves the technical problem of insufficient accuracy and stability in the traditional brain age prediction method. The technical solution is as follows: S1: collect functional magnetic resonance imaging rs-fMRI data of the subjects; S2: construct twin neural network; S3: design feature similarity and label similarity measurement module; S4: define confidence Evaluate the brain age prediction module; S5: Input the brain image data in the test data set into the model for analysis, so as to obtain the predicted brain age of each test data sample. The invention has the beneficial effects of high prediction accuracy, accurate prediction of brain image data, and helping doctors to more accurately evaluate the brain age of patients.
Description
技术领域technical field
本发明涉及医学图像智能诊断技术领域,尤其涉及基于相似性孪生网络的静息态功能磁共振脑龄预测方法。The invention relates to the technical field of medical image intelligent diagnosis, in particular to a resting state functional magnetic resonance brain age prediction method based on a similarity twin network.
背景技术Background technique
随着年龄的增长,人类的认知能力也会随之下降,大脑的不同部位在衰老过程中呈现非线性关系,而受到创伤的患者的大脑衰老程度更加不确定。随着脑龄概念的出现,对脑龄的研究也呈指数级增长,除了预测大脑年龄,研究人员还探索了不同的大脑老化模式,以及与认知损伤、死亡率、心血管疾病等相关的预测应用,以应用于临床诊断。随着人类年龄的增长,发病率和死亡率的风险也逐渐增加。在宏观层面上,这会导致脑室扩大等生理变化。在微观层面上,线粒体变化等现象也会随之出现。因此,脑龄的研究对于开发适用于临床的生物模型非常重要,这些模型可以用来预测衰老或患病中的大脑健康状态。Humans also experience cognitive decline with age, with different parts of the brain showing non-linear relationships in the aging process, and the degree of brain aging in traumatized patients is more uncertain. With the emergence of the concept of brain age, research on brain age has also grown exponentially. In addition to predicting brain age, researchers have also explored different patterns of brain aging and their associations with cognitive impairment, mortality, cardiovascular disease, etc. Predictive applications for clinical diagnosis. As humans age, so does the risk of morbidity and mortality. On a macroscopic level, this leads to physiological changes such as enlarged ventricles. At the microscopic level, phenomena such as mitochondrial changes will also appear. Therefore, the study of brain age is important for the development of clinically applicable biological models that can be used to predict brain health in aging or disease.
传统的基于特征工程的脑龄预测方法存在一些技术缺陷。传统的方法通常使用基于特征工程的方法来提取输入影像的特征,这些方法需要人为选择和设计特征提取器,很难处理高维复杂数据,且易受到噪声和干扰的影响,这些限制导致传统方法的性能往往不稳定,无法在各种不同数据集上获得一致的结果。其次,传统方法忽略了神经网络结构的影响,在神经网络中,每个层的权重和偏差是网络学习的关键因素,不同的神经网络结构具有不同的学习能力和表达能力,因此选择合适的神经网络结构对于脑龄预测任务至关重要。Traditional brain age prediction methods based on feature engineering have some technical defects. Traditional methods usually use feature engineering-based methods to extract the features of the input image. These methods require artificial selection and design of feature extractors, which are difficult to deal with high-dimensional and complex data, and are susceptible to noise and interference. These limitations lead to traditional methods. The performance of is often unstable and cannot obtain consistent results on a variety of different datasets. Secondly, the traditional method ignores the influence of the neural network structure. In the neural network, the weight and bias of each layer are the key factors of network learning. Different neural network structures have different learning ability and expressive ability, so choose the appropriate neural network Network structure is crucial for brain age prediction tasks.
发明内容Contents of the invention
本发明的目的在于提供一种基于相似性孪生网络的静息态功能磁共振脑龄预测方法,旨在提高脑龄预测的准确性和泛化能力,并在脑科学研究和临床医学中有着广泛的应用前景。孪生神经网络可以自动学习输入影像的特征,并通过比较输入影像的相似性来实现脑龄预测任务。相似性孪生神经网络还可以处理多模态输入数据,并具有良好的泛化性能。The purpose of the present invention is to provide a resting state functional magnetic resonance brain age prediction method based on the similarity twin network, which aims to improve the accuracy and generalization ability of brain age prediction, and has a wide range of applications in brain science research and clinical medicine. application prospects. The Siamese neural network can automatically learn the features of the input image, and realize the brain age prediction task by comparing the similarity of the input image. The similarity siamese neural network can also handle multimodal input data and has good generalization performance.
为了实现上述发明目的,本发明采用以下技术方案:基于相似性孪生网络的静息态功能磁共振脑龄预测方法,包括以下步骤:In order to achieve the above invention, the present invention adopts the following technical solutions: a resting state fMRI brain age prediction method based on the similarity twin network, comprising the following steps:
S1:采集被试的功能性磁共振成像数据,形成原始样本集,所述原始样本集的样本包括被试的静息态功能磁共振成像及其对应的实际年龄信息,然后进行预处理,对静息态功能磁共振成像进行了切片计时和头部运动相关性等操作,将预处理后的数据转化为三维的图像数据,其次,将预处理后的图像数据和对应的被试实际年龄一一对应,形成样本集,其中,样本集包括多组图像数据及其对应的实际年龄信息,最后将样本集划分为训练样本集和测试样本集;S1: Collect the functional magnetic resonance imaging data of the subject to form an original sample set. The samples of the original sample set include the subject's resting state functional magnetic resonance imaging and its corresponding actual age information, and then perform preprocessing. Resting-state fMRI performed operations such as slice timing and head motion correlation, and converted the preprocessed data into three-dimensional image data. Secondly, the preprocessed image data was compared with the corresponding actual age of the subjects One-to-one correspondence to form a sample set, wherein the sample set includes multiple sets of image data and their corresponding actual age information, and finally divides the sample set into a training sample set and a test sample set;
S2:构建孪生神经网络,使用基于全卷积神经网络的双卷积神经网络作为分支网络,并对其修改使得两条路径的网络共享参数,该网络由两部分组成:用于从一对输入图像中提取深度特征的卷积神经网络主干提取深度特征和用于将提取的深度特征融合到相似性度量的主干 S2: Construct a twin neural network, use a double convolutional neural network based on a fully convolutional neural network as a branch network, and modify it so that the network of the two paths shares parameters. The network consists of two parts: for input from a pair A convolutional neural network backbone for extracting deep features from images and a backbone for fusing the extracted deep features into a similarity measure
S3:设计特征相似性与标签相似性度量模块,记为在第一道输入已知的rs-fMRI,经过卷积和汇集,得到特征信息集合Zx,在第二道输入未知的rs-fMRI,通过同样的操作得到这组未知的特征向量集合Zy,其中rs-fMRI表示静息态功能磁共振成像,然后将得到的特征对采用余弦距离CS()来描述相似度,通过训练数据来学习一个转换矩阵,最后使用对比损失作为损失函数来训练相似性学习,对相似性损失函数进行优化;S3: Design feature similarity and label similarity measurement module, denoted as Input the known rs-fMRI in the first channel, after convolution and aggregation, get the feature information set Z x , input the unknown rs-fMRI in the second channel, and get this set of unknown feature vectors Z y through the same operation , where rs-fMRI means resting-state functional magnetic resonance imaging, and then use the cosine distance CS() to describe the similarity of the obtained feature pairs, learn a transformation matrix through the training data, and finally use the contrastive loss as the loss function to train the similarity Sexual learning, optimize the similarity loss function;
S4:定义置信度评估脑龄预测模块,选择三组相似度最高的已知大脑年龄标签,预测的大脑年龄p=mean(p1,p2,p3)是三组相似度最高的已知大脑年龄的平均值,其中p为预测大脑年龄,p1,p2,p3为已知的三组相似度最高的大脑年龄标签,mean()为平均值;S4: Define the confidence evaluation brain age prediction module, select three groups of known brain age labels with the highest similarity, and the predicted brain age p=mean(p 1 ,p 2 ,p 3 ) is the known brain age label with the highest similarity among the three groups The average of brain age, where p is the predicted brain age, p 1 , p 2 , and p 3 are the three known brain age labels with the highest similarity, and mean() is the average value;
S5:将测试数据集中的脑部影像数据输入到该模型中进行分析,从而得出每个测试数据样本的预测脑龄。S5: Input the brain image data in the test data set into the model for analysis, so as to obtain the predicted brain age of each test data sample.
作为本发明提供的一种基于相似性孪生网络的静息态功能磁共振脑龄预测方法进一步优化方案,所述步骤S2的具体步骤如下:As a further optimization scheme of the resting-state fMRI brain age prediction method based on the similarity twin network provided by the present invention, the specific steps of the step S2 are as follows:
步骤S2.1:分别将rs-fMRI图像1和rs-fMRI图像2同时送入一个孪生卷积神经网络,分别得到第一道特征信息Zx,第二道特征信息Zy;Step S2.1: Send rs-fMRI image 1 and rs-fMRI image 2 to a twin convolutional neural network at the same time to obtain the first feature information Z x and the second feature information Z y respectively;
步骤S2.2:输入的图像将经过卷积和池化等操作,双通路卷积融合网络架构采用参数共享,并搭建两个卷积神经网络,每条卷积神经网络的通道数为C,2C,4C,8C,8C,Step S2.2: The input image will undergo operations such as convolution and pooling. The dual-channel convolution fusion network architecture adopts parameter sharing, and two convolutional neural networks are built. The number of channels of each convolutional neural network is C. 2C, 4C, 8C, 8C,
4C,其中C为初始的通道数;4C, where C is the initial number of channels;
步骤S2.3:该网络提取特征部分结构由六个模块组成,前五个模块相同,依次为卷积层,标准化层,卷积层,非线性激活函数层,第五个模块和第六个模块中加入一个dropout层,以解决过拟合问题,第六个模块包含了一个卷积核大小为1的卷积层;Step S2.3: The structure of the feature extraction network consists of six modules, the first five modules are the same, followed by the convolution layer, the normalization layer, the convolution layer, the nonlinear activation function layer, the fifth module and the sixth A dropout layer is added to the module to solve the overfitting problem, and the sixth module contains a convolution layer with a convolution kernel size of 1;
步骤S2.3:定义相似性度量的结果E(xi,yi)Step S2.3: Define the result E( xi ,y i ) of the similarity measure
其中,Φ()是特征提取网络,为相似度测量模块,b是偏置,xi为第一道特征张量,yi为第二道特征张量,i为第i个特征向量;Among them, Φ() is the feature extraction network, is the similarity measurement module, b is the bias, x i is the feature tensor of the first track, y i is the feature tensor of the second track, and i is the ith feature vector;
步骤S2.4:使用对比损失函数L(Y,xi,yi)评估孪生神经网络区分给定的多种图像的效果,如果输入成对样本之间不相似,那么它们在特征空间中的距离将会变小,这会导致损失值的增加:Step S2.4: Use the contrastive loss function L(Y, xi ,y i ) to evaluate the effect of the Siamese neural network on differentiating given multiple images. If the input pairs of samples are not similar, then their The distance will be smaller, which leads to an increase in the loss value:
其中,D为孪生神经网络输出之间的相似性距离,P为输入样本的特征维数,Y则为输入样本是否相似的标签,Y=1代表输入样本较为相似,Y=0代表输入样本不相似,m为设定的阈值,N为数据的个数。in, D is the similarity distance between the twin neural network outputs, P is the feature dimension of the input samples, Y is the label of whether the input samples are similar, Y=1 means that the input samples are relatively similar, Y=0 means that the input samples are not similar, m is the set threshold, and N is the number of data.
作为本发明提供的一种基于相似性孪生网络的静息态功能磁共振脑龄预测方法进一步优化方案,所述步骤S3的具体步骤如下:As a further optimization scheme of the resting state fMRI brain age prediction method based on the similarity twin network provided by the present invention, the specific steps of the step S3 are as follows:
步骤S3.1:给定从输入图像对中提取的4D第一道特征张量Zx和第二道特征张量Zy,其中Zx={x1,x2,...,xi,...,xn}和Zy={y1,y2,...,yi,...,yn}为训练样本中标注年龄的rs-fMRI图像集,n为训练数据集中rs-fMRI图像的个数,训练样本中rs-MRI图像的第一道年龄集为Lx={x'1,x'2,...x'n},第二道年龄集为Ly={y'1,y'2,...y'n},其中x'i,y'i分别为第一道特征张量xi所对应年龄和第二道特征张量yi所对应年龄;Step S3.1: Given the 4D first-channel feature tensor Z x and second-channel feature tensor Z y extracted from the input image pair, where Z x ={x 1 ,x 2 ,..., xi ,...,x n } and Z y ={y 1 ,y 2 ,...,y i ,...,y n } are the age-labeled rs-fMRI image sets in the training samples, and n is the training data The number of concentrated rs-fMRI images, the first age set of rs-MRI images in the training sample is L x ={x' 1 ,x' 2 ,...x' n }, the second age set is L y ={y' 1 ,y' 2 ,...y' n }, where x' i , y' i are respectively the age corresponding to the first feature tensor x i and the second feature tensor y i Corresponding age;
步骤S3.2:将得到的特征分为两组,即训练集的特征向量如下,其中(x1,y1)表示一个样本集合:Step S3.2: Divide the obtained features into two groups, that is, the feature vectors of the training set are as follows, where (x 1 ,y 1 ) represents a sample set:
步骤S3.3:用余弦距离来描述每一组图像的相似度,余弦距离CS(xi,yi,A)由下式给出:Step S3.3: Use the cosine distance to describe the similarity of each group of images, and the cosine distance CS(xi , y i ,A) is given by the following formula:
其中,上标T表示矩阵的转置,A是一个在变换后的子空间中计算余弦相似度的线性变换矩阵,同时每一组年龄的相似度余弦距离CS(x'i,y'i,A)由下式给出:Among them, the superscript T represents the transpose of the matrix, A is a linear transformation matrix that calculates the cosine similarity in the transformed subspace, and the similarity cosine distance CS(x' i ,y' i , A) is given by:
向量之间的余弦相似度f(A)定义如下:The cosine similarity f(A) between vectors is defined as follows:
其中,α和β是关于A的给定参数,α用于平衡正样本和负样本对边际的贡献,β控制了最大化阈值,A0是预定义的矩阵,||A-A0||表示A和A0之间的距离,N为数据的个数;Among them, α and β are given parameters about A, α is used to balance the contribution of positive samples and negative samples to the margin, β controls the maximization threshold, A 0 is a predefined matrix, and ||AA 0 || represents A and the distance between A 0 , N is the number of data;
步骤S3.4:将目标函数分为两项:g(A)和h(A):Step S3.4: Divide the objective function into two items: g(A) and h(A):
h(A)=β||A-A0||2 (8)h(A)=β||AA 0 || 2 (8)
g(A)是每个样本的一个简单投票方案,通过交叉验证来确定α的值,h(A)是将矩阵A正则化,使其尽可能接近于预定义的矩阵A0;g(A) is a simple voting scheme for each sample, and the value of α is determined by cross-validation, and h(A) is to regularize the matrix A so that it is as close as possible to the predefined matrix A 0 ;
步骤S3.5:将特征之间的相似性CS(xi,yi,A),以及在相似性度量的模块样本标签的相似度CS(x'i,y'i,A)融合,紧接着将输出的特征之间的相似性和样本标签之间的相似性f(A),损失函数根据相似性进行计算和反向传播从而优化网络,得到最佳的网络模型。Step S3.5: Fuse the similarity CS(xi , y i ,A) between the features and the similarity CS(x' i ,y' i ,A) of the module sample labels in the similarity measure, and then Then the similarity between the output features and the similarity f(A) between the sample labels, the loss function is calculated and backpropagated according to the similarity to optimize the network and obtain the best network model.
与现有技术相比,本发明的有益效果为:Compared with prior art, the beneficial effect of the present invention is:
1.自动学习特征:相似性孪生神经网络可以通过训练自动学习输入影像的特征,无需手动选择和设计特征提取模块,这种自动化的特征学习能够更加准确地捕捉影像中的信息,提高预测准确性;此外,相似性孪生神经网络可以处理高维度数据,捕捉到更多的细节信息,提高了神经网络对复杂数据的表达能力,更适用于需要对数据进行复杂建模的任务。1. Automatic learning features: The similarity twin neural network can automatically learn the features of the input image through training, without manual selection and design of feature extraction modules. This automatic feature learning can more accurately capture the information in the image and improve the prediction accuracy In addition, the similarity twin neural network can process high-dimensional data, capture more detailed information, improve the ability of the neural network to express complex data, and is more suitable for tasks that require complex modeling of data.
2.处理多模态数据:相似性孪生神经网络能够同时处理多模态输入数据,融合多种信息来提高预测准确性,对于脑龄预测任务而言,相似性孪生神经网络可以同时使用结构和功能磁共振成像数据,融合多种信息提高预测准确性。2. Processing multimodal data: The similarity twinning neural network can process multimodal input data at the same time, and integrate multiple information to improve prediction accuracy. For brain age prediction tasks, the similarity twinning neural network can use both structure and Functional magnetic resonance imaging data, fusion of multiple information to improve prediction accuracy.
3.提高预测准确性:相似性孪生神经网络通过比较输入影像的相似性来实现脑龄预测任务,该方法对影像数据的处理方式更加精确,能够更好地预测被试者的脑龄;相比传统方法,相似性孪生神经网络不需要人工设计特征提取器,从而避免了人工选择参数、特征提取方法带来的不确定性,预测效果更为准确。3. Improve prediction accuracy: The similarity twinning neural network realizes the brain age prediction task by comparing the similarity of the input images. This method processes the image data more accurately and can better predict the brain age of the subjects; Compared with the traditional method, the similarity twin neural network does not need to manually design a feature extractor, thereby avoiding the uncertainty caused by manual selection of parameters and feature extraction methods, and the prediction effect is more accurate.
4.泛化能力强:相似性孪生神经网络具有良好的泛化性能,能够处理高维复杂数据,并且对噪声和干扰具有较好的鲁棒性;相似性孪生神经网络能够从样本中学习到一般性规律,从而对未见过的样本具有较好的泛化能力,有效避免了过拟合现象;这使得相似性孪生神经网络可以适用于处理更广泛的数据。4. Strong generalization ability: the similarity twinning neural network has good generalization performance, can handle high-dimensional complex data, and has good robustness to noise and interference; the similarity twinning neural network can learn from samples General rules, so that it has better generalization ability for unseen samples, and effectively avoids overfitting; this makes the similarity twin neural network suitable for processing a wider range of data.
附图说明Description of drawings
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,用于解释本发明,并不构成对本发明的限制。The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used to explain the present invention, but not to limit the present invention.
图1为本发明的基于相似性孪生网络的静息态功能磁共振脑龄预测方法的整体框架图。FIG. 1 is an overall framework diagram of the resting-state fMRI brain age prediction method based on the similarity twin network of the present invention.
图2为本发明的基于相似性孪生网络的静息态功能磁共振脑龄预测方法的相似性孪生卷积神经网络模型结构图。Fig. 2 is a structural diagram of a similarity twinning convolutional neural network model of the resting-state fMRI brain age prediction method based on the similarity twinning network of the present invention.
图3为本发明的基于相似性孪生网络的静息态功能磁共振脑龄预测方法的脑龄预测模块图。Fig. 3 is a brain age prediction module diagram of the resting state fMRI brain age prediction method based on the similarity twin network of the present invention.
图4为本发明的基于相似性孪生网络的静息态功能磁共振脑龄预测方法的孪生神经网络模块图。Fig. 4 is a twin neural network module diagram of the resting state fMRI brain age prediction method based on the similarity twin network of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。当然,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
实施例1Example 1
参见图1至图4,本实施例提供其技术方案为,一种基于相似性孪生网络的静息态功能磁共振脑龄预测方法,数据集中第一对图片x1,y1为例,从载入数据到得出分类结果,其中包括以下步骤:Referring to Fig. 1 to Fig. 4, the technical solution provided in this embodiment is a method for predicting brain age in resting state fMRI based on similarity twin network, taking the first pair of pictures x 1 and y 1 in the data set as an example, starting from From loading data to obtaining classification results, it includes the following steps:
S1:采集被试的功能性磁共振成像数据,形成原始样本集,所述原始样本集的样本包括被试的功能性磁共振影像数据及其对应的实际年龄信息,然后进行预处理,对静息态磁共振影像图像进行了切片计时和头部运动相关性等操作,将预处理后的数据转化为三维的图像数据,其次,将预处理后的图像数据和对应的被试实际年龄一一对应,形成样本集,其中,样本集包括多组图像数据及其对应的实际年龄信息,最后将样本集划分为训练样本集和测试样本集;S1: Collect the functional magnetic resonance imaging data of the subject to form an original sample set. The samples of the original sample set include the functional magnetic resonance image data of the subject and its corresponding actual age information, and then perform preprocessing, and the static Slice timing and head motion correlation operations were performed on the breath-state MRI image, and the preprocessed data was converted into three-dimensional image data. Secondly, the preprocessed image data and the corresponding actual age of the subjects were Correspondingly, a sample set is formed, wherein the sample set includes multiple sets of image data and their corresponding actual age information, and finally the sample set is divided into a training sample set and a test sample set;
S2:构建孪生神经网络,使用基于全卷积神经网络的双卷积神经网络作为分支网络,并对其修改使得两条路径的网络共享参数,该网络由两部分组成:用于从一对输入图像中提取深度特征的卷积神经网络主干提取深度特征和用于将提取的深度特征融合到相似性度量的主干 S2: Construct a twin neural network, use a double convolutional neural network based on a fully convolutional neural network as a branch network, and modify it so that the network of the two paths shares parameters. The network consists of two parts: for input from a pair A convolutional neural network backbone for extracting deep features from images and a backbone for fusing the extracted deep features into a similarity measure
S3:设计特征相似性与标签相似性度量模块在第一道输入一组已知的rs-fMRI,经过卷积和汇集,得到特征信息Zx,在第二道输入一组未知的rs-fMRI,通过同样的操作得到这组未知的特征向量Zy,其中rs-fMRI表示静息态功能磁共振成像,然后将得到的特征对采用余弦距离CS()来描述相似度,通过训练数据来学习一个转换矩阵,最后使用对比损失作为损失函数来训练相似性学习,对相似性损失函数进行优化;S3: Design feature similarity and label similarity measurement module Input a set of known rs-fMRI in the first channel, after convolution and aggregation, get the feature information Z x , input a set of unknown rs-fMRI in the second channel, and get this set of unknown feature vectors through the same operation Z y , where rs-fMRI means resting-state functional magnetic resonance imaging, and then use the cosine distance CS() to describe the similarity of the obtained feature pairs, learn a transformation matrix through the training data, and finally use the contrastive loss as the loss function to Train similarity learning and optimize the similarity loss function;
S4:定义置信度评估脑龄预测模块,选择三组相似度最高的已知大脑年龄标签,预测的大脑年龄p=mean(p1,p2,p3)是三组相似度最高的已知大脑年龄的平均值其中p为预测大脑年龄,p1,p2,p3为已知的三组相似度最高的大脑年龄标签,mean()为平均值;S4: Define the confidence evaluation brain age prediction module, select three groups of known brain age labels with the highest similarity, and the predicted brain age p=mean(p 1 ,p 2 ,p 3 ) is the known brain age label with the highest similarity among the three groups The average of brain age where p is the predicted brain age, p 1 , p 2 , and p 3 are the three known brain age labels with the highest similarity, and mean() is the average value;
S5:将测试数据集中的脑部影像数据输入到该模型中进行分析,从而得出每个测试数据样本的预测脑龄。S5: Input the brain image data in the test data set into the model for analysis, so as to obtain the predicted brain age of each test data sample.
具体地,所述步骤S2的具体步骤如下:Specifically, the specific steps of the step S2 are as follows:
步骤S2.1:分别将rs-fMRI图像1和rs-fMRI图像2同时送入一个孪生卷积神经网络,分别得到第一道特征信息Zx,第二道特征信息Zy;Step S2.1: Send rs-fMRI image 1 and rs-fMRI image 2 to a twin convolutional neural network at the same time to obtain the first feature information Z x and the second feature information Z y respectively;
步骤S2.2:输入的图像将经过卷积和池化等操作,双通路卷积融合网络架构采用参数共享,并搭建两个卷积神经网络,每条卷积神经网络的通道数为16,32,64,128,128;Step S2.2: The input image will undergo operations such as convolution and pooling. The dual-channel convolution fusion network architecture adopts parameter sharing, and two convolutional neural networks are built. The number of channels of each convolutional neural network is 16. 32, 64, 128, 128;
步骤S2.3:该网络提取特征部分结构由六个模块组成,前五个模块相同,依次为卷积层,标准化层,卷积层,非线性激活函数层,第五个模块和第六个模块中加入一个dropout层,以解决过拟合问题,第六个模块包含了一个卷积核大小为1的卷积层;Step S2.3: The structure of the feature extraction network consists of six modules, the first five modules are the same, followed by the convolution layer, the normalization layer, the convolution layer, the nonlinear activation function layer, the fifth module and the sixth A dropout layer is added to the module to solve the overfitting problem, and the sixth module contains a convolution layer with a convolution kernel size of 1;
步骤S2.3:定义相似性度量的结果E(x1,y1),用于计算实例x1和y1之间的距离:Step S2.3: Define the result E(x 1 ,y 1 ) of the similarity measure for computing the distance between instances x 1 and y 1 :
其中,Φ()是特征提取网络,为相似度测量模块,b是偏置,x1为第一道特征张量的第1个特征向量,y1为第二道特征张量的第1个特征向量,x1和y1的中间部分如下:Among them, Φ() is the feature extraction network, is the similarity measurement module, b is the bias, x 1 is the first feature vector of the first feature tensor, y 1 is the first feature vector of the second feature tensor, the middle of x 1 and y 1 The sections are as follows:
步骤S2.4:使用对比损失函数L(Y,x1,y1)评估孪生神经网络区分给定的多种图像的效果,如果输入成对样本之间不相似,那么它们在特征空间中的距离将会变小,这会导致损失值的增加:Step S2.4: Use the contrastive loss function L(Y,x 1 ,y 1 ) to evaluate the effect of the Siamese neural network on differentiating given multiple images. If the input pairs of samples are not similar, then their The distance will be smaller, which leads to an increase in the loss value:
其中,D为孪生神经网络输出之间的相似性距离,P为输入样本的特征维数,这里P=4,Y则为输入样本是否相似的标签,这里的输入样本较为相似,故Y=1,即得到:in, D is the similarity distance between the twin neural network outputs, P is the feature dimension of the input sample, where P=4, Y is the label of whether the input samples are similar, the input samples here are relatively similar, so Y=1, that is get:
其中,m为设定的阈值,这里设置为0.5D,N为数据的个数。Among them, m is the set threshold, which is set to 0.5D here, and N is the number of data.
作为本实施例提供的基于相似性孪生网络的静息态功能磁共振脑龄预测方法,所述步骤S3的具体步骤如下:As the resting-state fMRI brain age prediction method based on the similarity twin network provided in this embodiment, the specific steps of the step S3 are as follows:
步骤S3.1:给定从输入图像对中提取的4D第一道特征张量Zx和第二道特征张量Zy,其中Zx={x1,x2,...,xi,...,xn}和Zy={y1,y2,...,yi,...,yn}为训练样本中标注年龄的rs-fMRI图像集,n为训练数据集中rs-fMRI图像的个数,训练样本中rs-MRI图像的第一道年龄集为Lx={x'1,x'2,...x'n},第二道年龄集为Ly={y'1,y'2,...y'n},其中x'1,y'1分别为第一道年龄和第二道年龄,这里分别为45和48;Step S3.1: Given the 4D first-channel feature tensor Z x and second-channel feature tensor Z y extracted from the input image pair, where Z x ={x 1 ,x 2 ,..., xi ,...,x n } and Z y ={y 1 ,y 2 ,...,y i ,...,y n } are the age-labeled rs-fMRI image sets in the training samples, and n is the training data The number of concentrated rs-fMRI images, the first age set of rs-MRI images in the training sample is L x ={x' 1 ,x' 2 ,...x' n }, the second age set is L y ={y' 1 ,y' 2 ,...y' n }, where x' 1 , y' 1 are the age of the first track and the age of the second track respectively, here are 45 and 48 respectively;
步骤S3.2:将得到的特征分为两组,即训练集的特征向量如下:Step S3.2: Divide the obtained features into two groups, that is, the feature vectors of the training set are as follows:
步骤S3.3:用余弦距离来描述每一组图像的相似度,余弦距离CS(x1,y1,A)由下式给出:Step S3.3: Use the cosine distance to describe the similarity of each group of images, and the cosine distance CS(x 1 ,y 1 ,A) is given by the following formula:
其中,上标T表示矩阵的转置,A是一个在变换后的子空间中计算余弦相似度的线性变换矩阵,将矩阵带入并经过矩阵运算得出结果:Among them, the superscript T represents the transpose of the matrix, and A is a linear transformation matrix that calculates the cosine similarity in the transformed subspace. The matrix is brought in and the result is obtained through matrix operations:
同时每一组年龄的相似度余弦距离CS(x'i,y'i,A)由下式给出:At the same time, the similarity cosine distance CS(x' i ,y' i ,A) of each age group is given by the following formula:
得到最终结果CS(x'1,y'1,A)=0.786,向量之间的余弦相似度f(A)定义如下:The final result CS(x' 1 ,y' 1 ,A)=0.786 is obtained, and the cosine similarity f(A) between vectors is defined as follows:
其中,α和β是关于A的给定参数,α用于平衡正样本和负样本对边际的贡献,β控制了最大化阈值,设置为0.1,A0是预定义的矩阵,||A-A0||表示A和A0之间的距离,该函数会经过多轮的矩阵求和计算,最终得到相似性f(A)=0.805;Among them, α and β are given parameters about A, α is used to balance the contribution of positive samples and negative samples to the margin, β controls the maximization threshold and is set to 0.1, A 0 is a predefined matrix, ||AA 0 || indicates the distance between A and A 0 , this function will go through multiple rounds of matrix summation calculations, and finally get the similarity f(A)=0.805;
步骤S3.4:将目标函数分为两项:g(A)和h(A):Step S3.4: Divide the objective function into two items: g(A) and h(A):
h(A)=β||A-A0||2 (20)h(A)=β||AA 0 || 2 (20)
g(A)是每个样本的一个简单投票方案,通过交叉验证来确定α的值,经过第一轮的计算,得到α的值为0.2,h(A)是将矩阵A正则化,使其尽可能接近于预定义的矩阵A0;g(A) is a simple voting scheme for each sample. The value of α is determined by cross-validation. After the first round of calculation, the value of α is 0.2. h(A) is to regularize the matrix A so that as close as possible to the predefined matrix A 0 ;
步骤S3.5:将特征之间的相似性CS(x1,y1,A),以及在相似性度量的模块样本标签的相似度CS(x'1,y'1,A)融合,紧接着将输出的特征之间的相似性和样本标签之间的相似性f(A),损失函数根据相似性进行计算和反向传播从而优化网络,得到最佳的网络模型。Step S3.5: Fuse the similarity CS(x 1 ,y 1 ,A) between the features and the similarity CS(x' 1 ,y' 1 ,A) of the module sample labels in the similarity measure, and tightly Then the similarity between the output features and the similarity f(A) between the sample labels, the loss function is calculated and backpropagated according to the similarity to optimize the network and obtain the best network model.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310601158.3A CN116665906B (en) | 2023-05-25 | 2023-05-25 | Resting state functional magnetic resonance brain age prediction method based on similarity twin network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310601158.3A CN116665906B (en) | 2023-05-25 | 2023-05-25 | Resting state functional magnetic resonance brain age prediction method based on similarity twin network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116665906A true CN116665906A (en) | 2023-08-29 |
| CN116665906B CN116665906B (en) | 2023-12-26 |
Family
ID=87714680
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310601158.3A Active CN116665906B (en) | 2023-05-25 | 2023-05-25 | Resting state functional magnetic resonance brain age prediction method based on similarity twin network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116665906B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119970061A (en) * | 2025-01-16 | 2025-05-13 | 中山大学 | Brain age prediction method based on EEG-fMRI knowledge graph enhancement |
| CN120727295A (en) * | 2025-08-20 | 2025-09-30 | 北京大学人民医院 | A method and system for constructing a fetal heart monitoring auxiliary interpretation model based on similarity learning |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112784130A (en) * | 2021-01-27 | 2021-05-11 | 杭州网易云音乐科技有限公司 | Twin network model training and measuring method, device, medium and equipment |
| CN114944229A (en) * | 2022-05-23 | 2022-08-26 | 中国科学院自动化研究所 | Brain Age Prediction Method Based on Deep Learning and MRI Structural Brain Imaging |
| CN115861716A (en) * | 2023-02-16 | 2023-03-28 | 之江实验室 | Glioma classification method and device based on Siamese neural network and radiomics |
-
2023
- 2023-05-25 CN CN202310601158.3A patent/CN116665906B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112784130A (en) * | 2021-01-27 | 2021-05-11 | 杭州网易云音乐科技有限公司 | Twin network model training and measuring method, device, medium and equipment |
| CN114944229A (en) * | 2022-05-23 | 2022-08-26 | 中国科学院自动化研究所 | Brain Age Prediction Method Based on Deep Learning and MRI Structural Brain Imaging |
| CN115861716A (en) * | 2023-02-16 | 2023-03-28 | 之江实验室 | Glioma classification method and device based on Siamese neural network and radiomics |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119970061A (en) * | 2025-01-16 | 2025-05-13 | 中山大学 | Brain age prediction method based on EEG-fMRI knowledge graph enhancement |
| CN120727295A (en) * | 2025-08-20 | 2025-09-30 | 北京大学人民医院 | A method and system for constructing a fetal heart monitoring auxiliary interpretation model based on similarity learning |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116665906B (en) | 2023-12-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Zheng et al. | Time series classification using multi-channels deep convolutional neural networks | |
| Ahmad et al. | Autism spectrum disorder detection using facial images: A performance comparison of pretrained convolutional neural networks | |
| CN107273925B (en) | Lung parenchyma CT image processing device based on local receptive field and semi-supervised depth auto-encoding | |
| WO2016192612A1 (en) | Method for analysing medical treatment data based on deep learning, and intelligent analyser thereof | |
| CN110598793A (en) | Brain function network feature classification method | |
| CN111738363A (en) | Alzheimer's disease classification method based on improved 3D CNN network | |
| CN114708637B (en) | A meta-learning-based facial action unit detection method | |
| CN112489769A (en) | Intelligent traditional Chinese medicine diagnosis and medicine recommendation system for chronic diseases based on deep neural network | |
| CN113673434A (en) | Electroencephalogram emotion recognition method based on efficient convolutional neural network and contrast learning | |
| Feng et al. | A review of methods for classification and recognition of ASD using fMRI data | |
| CN116226629B (en) | Multi-model feature selection method and system based on feature contribution | |
| CN116665906A (en) | Resting state functional magnetic resonance brain age prediction method based on similarity twin network | |
| CN116503680A (en) | Brain image structural analysis and brain disease classification system based on brain atlas | |
| CN114757911A (en) | Magnetic resonance image auxiliary processing system based on graph neural network and contrast learning | |
| CN113842151A (en) | A cross-subject EEG cognitive state detection method based on efficient multi-source capsule network | |
| CN115458044B (en) | Drug-drug interaction prediction method based on the global structure of biological networks | |
| CN116976392A (en) | Unsupervised large-scale brain function connection network estimation method | |
| CN111798980A (en) | Complex medical biological signal processing method and device based on deep learning network | |
| CN116403702A (en) | A diagnostic approach for autism spectrum disorder based on fuzzy modeling and multi-label learning | |
| CN113762082A (en) | Unsupervised Skeletal Action Recognition Method Based on Recurrent Graph Convolutional Autoencoder | |
| CN117132809B (en) | Semi-supervised medical image classification method based on class prototype matching soft pseudo labels | |
| Pardede et al. | The Advantage of Transfer Learning with Pre-Trained Model in CNN Towards Ct-Scan Classification | |
| Charulatha et al. | Computer-Aided design for skin disease identification and categorization using image processing | |
| Li et al. | Facial emotion recognition via stationary wavelet entropy and Biogeography-based optimization. | |
| CN117496270A (en) | Dynamic functional connectivity classification method based on convolutional bidirectional gated recurrent units |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |