A biologically inspired model for analyzing behaviours in social network community and cultural heritage scenario