| layout | page |
|---|---|
| title | SocioPatterns |
| permalink | / |
SocioPatterns is an interdisciplinary, international research collaboration that measures and studies human and animal proximity networks using wearable devices and wireless sensor networks. We apply methods from data science, network science, and machine learning to investigate problems in the epidemiology of infectious diseases, computational epidemiology, social network analysis, computational social science, and beyond. From schools and hospitals to museums, social gatherings, and households, we collect data across a wide range of real-world environments. Over the last 15+ years, our open data has enabled thousands of studies.
Gallery loading...
'; } } // Replace one random image every 2 seconds function startImageRotation() { setInterval(() => { if (allImages.length <= numImagesToShow) { // Not enough images to rotate return; } const galleryImages = galleryContainer.querySelectorAll('.gallery-image'); if (galleryImages.length === 0) return; // Pick a random image element to replace const randomIndex = Math.floor(Math.random() * galleryImages.length); const imageToReplace = galleryImages[randomIndex]; const oldFilename = imageToReplace.dataset.filename; // Pick a new image that's not currently displayed const availableImages = allImages.filter(img => !currentImages.includes(img)); if (availableImages.length === 0) return; const newFilename = availableImages[Math.floor(Math.random() * availableImages.length)]; // Update the image imageToReplace.src = imagePoolPath + newFilename; imageToReplace.dataset.filename = newFilename; // Update currentImages array const currentIndex = currentImages.indexOf(oldFilename); if (currentIndex !== -1) { currentImages[currentIndex] = newFilename; } }, 2000); // Replace one image every 2 seconds } // Load gallery on page load loadGallery(); })(); </script>