openworm / behavioral_syntax

behavioral syntax analysis based on the paper of Andre Brown
Other
5 stars 1 forks source link

find method for calculating difference between two heatmaps #34

Closed ghost closed 7 years ago

ghost commented 8 years ago

http://mathoverflow.net/questions/25037/a-metric-for-comparing-two-heatmaps

ghost commented 8 years ago

One method would be to use the structural similarity index

more information here: https://en.wikipedia.org/wiki/Structural_similarity

ghost commented 8 years ago

Here's a better solution: 1) The heat map is a good method for visualizing the response of a worm to a given stimulus. 2) In that sense, it might be a much better idea to use dynamic time warping on random subsets of the sequences. 3) If the average within-group distance between sequences is small for either/both of the sequences, show the heatmap for that response. 4) If the average within-group distance between sequences is small for both sequences, and the average between-group response for that sequence is important then look for the principal differences.