• Aucun résultat trouvé

Statistical Shape Analysis BIOMED

N/A
N/A
Protected

Academic year: 2022

Partager "Statistical Shape Analysis BIOMED"

Copied!
3
0
0

Texte intégral

(1)

TP BIOMED

Statistical Shape Analysis BIOMED

Pietro Gori 9 October 2019

This TP is about statistical shape analysis. You will have to answer some theoretical questions and code some parts of the algorithms using Python 3.

You will use a data-set composed of 400 configurations of 68 anatomical landmarks automatically annotated on frontal face images from both men and women aged between 19 and 40 years old. Faces have variable size, shape and orientation. You will code the Procrustes alignment and Generalized Procrustes Analysis (GPA) algorithm to estimate an average configuration and align all configurations onto it. You will then code Principal Component Analysis (PCA) to analyze the shape variability.

If you use the computers of Télécom, please use Anaconda 3. Just open a terminal and type ’export PATH=/cal/softs/anaconda/anaconda3/bin:$PATH’ and then, on the same terminal, type ’spyder’ or ’jupyter-notebook’.

If you use your own computer, I strongly suggest that you use Anaconda. You can create a new environment with the following command: ’conda create -n BIOMED python=3.7 numpy matplotlib spyder notebook’, then ’conda activate BIOMED’ and on the same terminal you should type either ’spyder’ or ’jupyter-notebook’.

Download and unzip the folder ’T P.zip’. You should find a file ’.npz’ with the data and 4 functions:

-main_exam is the main function of the exam

- P rocrustes_alignement is the function where you will implement the Procrustes alignment

-GP A is the function where you will implement the Generalized Procrustes Analysis -pca_examis the function where you will implement the Principal Component Anal- ysis

You will have to complete these functions, by changing the lines showing XXXXXXX, and answer some questions.

Do not change the inputs and outputs of the functions.

You can answer in English of French (or Italian if you prefer ...).

Remember that this TP is evaluated. Please send the code and the answers to pietro.gori@telecom-paris.fr before the 16th of October 23:59.

You should put everything (code and answers) in a jupyter notebook or in a zip file.

1 of 3

(2)

TP BIOMED

1 Data

Open main_exam. Set the parameters and theworking_f older to the absolute path of the folder where you downloaded the data and the functions. Use the first part of the code to look at the configurations. They have been automatically annotated as shown in Fig. 1.

Figure 1: Example of landmark annotation

2 Procrustes alignment of two configurations

Choose two configurations and implement the Procrustes alignment in the functionP rocrustes _alignement. This means computing the optimal scaling s, rotation/reflection R and translation t, the aligned source configuration Xpand the SSR (sum of squared of resid- uals).

1. What happens if you center the configurations before the alignment ? 2. When do you expect a perfect alignment ?

3 Generalized Procrustes Analysis (GPA)

Implement GPA in the function GP A. Test it on the data and answer the following questions:

1. Try not to project the data onto the tangent space. Do the results vary ? Do they vary in the same way for all subjects ? Why ? Hint: look at the configuration that varies the most after the projection.

2. Do the following four triangles have the same shape ? Explain why ?

2 of 3

(3)

TP BIOMED

4 Shape variations

Complete the function pca_exam. Use it to compute the first two modes of variation of the landmarks in main_exam.

Questions:

1. How many modes do you need to explain 90%of the variability ? 2. Show the first two modes at ±3√

λ with the average in the middle. Comment the results. What are the main anatomical variations ?

3. Do they show an anatomically plausible deformation ? If not, which kind of defor- mation would you use instead ?

3 of 3

Références

Documents relatifs

Authorizes the Secretary-General to accept the membership of the League in a sub-committee recommended by the Expert Committee с il Tuberculosis of the World Health Organization

Make the six digit number N by writing your three digit number twice. Try

Nevertheless, their dichotomous behaviour is clearly shown from our datasets, and at least two highly promising perspectives arise from our results: (1) synchrotron X-ray fluorescence

Today it is… Tomorrow it will be…!. Yesterday it was…

necessary to encourage the development in human beings of spiritual and moral

Cette idée est intéressante dans le contexte du travail de Velibor Božović tant littéralement – la cartographie d’un lieu étant à l’origine du projet – que dans tous

If system operators are choosing software packages and services for their sustainability footprint then there will be significant pressure on software developers to address

It can be said that opinion mining methodologies are used to recognize the opinion polarity expressed in a text, while sentiment analysis methodologies try to guess the emo-