Docsity

Cambridge In Motion Poster, Study Guides, Projects, Research of Mathematics

Toggle sidebar
bg1
Objectives:
•Learn how to handle and manipulate large data sets
•Predict the next week of data given a month
•Find out which factors affect people activity in Grand
Arcade
Cambridge in motion
Mariia, Indi, Sedona, and Ivan
Cambridge Maths School
In summer 2025 as part of the Grand Discoveries
Event a radar was set up in the Grand arcade to
record the flow of movement of people without
gathering any sensitive information. The data[1] was
collected via a signal being reflected off nearby
objects and people passing the radar. The “power”
recorded by the RADAR is dependent on multiple
variables, such that both R1 (single person close to
the radar) and R2 (crowd of people far away from the
radar) on Fig 1 will cause the radar to record the same
quantity. Due to this the data cannot be easily
quantised into the number of people passing by but
gives us an idea of activity in the grand arcade at a
given time.
We first received a dataset recording the sum of power received at regular
intervals of every 200 milliseconds[3]. It also included the sum of the power
expressed in decibels, taken from the log of the linear power, – this was for
graph plotting[4] to make graphs easier to understand
This dataset is extremely ambiguous due to the number of factors affecting the
power reading. In our efforts to circumvent this we noticed that there was a
consistent minimum each day. We can calculate this minimum and then create a
threshold to use for sorting values into qualifying as activity or not activity (1s and
0s). This removes much of the ambiguity and allows to see times of activity rather
than values of power.
87.00
88.00
89.00
90.00
91.00
92.00
93.00
0:00
1:00
2:00
3:00
4:00
5:00
6:00
7:00
8:00
9:00
10:00
11:00
12:00
13:00
14:00
15:00
16:00
17:00
18:00
19:00
20:00
21:00
22:00
23:00
Tuesday
2025-07-29 2025-08-05 2025-08-12 2025-08-19
To smooth the data, we used the exponential moving average as it puts
more weight into more recent entries and doesn’t have a time lag like
simple moving average.
To test our assumption about
correlation between the same days
of the week we plotted them
overlayed across consecutive
weeks (e.g., the Tuesday profile in
Fig 4) and observed near-identical
daily curves. This minimal inter-
week variance confirms a highly
stable, repeating pattern, which
serves as the foundation for our
predictive averaging model.
For any given 10-second interval, if the chance of activity was above 5%, we
classified it as active (1), and if it was below 5%, we
classified it as inactive(0). This calculated chance of activity which was then
later used as the foundation to make our predictions for the upcoming weeks
The Radar
Fig 2: a line graph of power (dB) against time (days)
Fig 1: A diagram of the RADAR
Recording and analysing data such as this is important as it allows us to find
patterns in movements of people which helps in planning and developing
infrastructure. Our final goal in this project was to predict unknown data and
compare prediction methods, ending up with an algorithm[2] that allows us to
predict activity levels based on time and date.
The Data
References
[1] All data was provided by Supersense Technologies (2025)
[2] McKinney, W. (2022). Python for Data Analysis
[3] Owens, M. (2006). The Definitive Guide to SQLite
[4] Matplotlib Development Team, 2026. Matplotlib: Release 3.10.8
[Software documentation]
Seasonal and Weekly Stability Analysis
Analysis of correlation data (see
Fig 5) confirmed that the
strongest patterns are highly
day-of-the-week dependent.
Our team decided that this
stability had the greatest
potential to predict the data.
Fig 5: Inter-day correlation matrix
Results & Discussion
Evaluating Advanced Predictive Models
We initially hypothesised that applying temporal weights and probabilistic masking would yield
the highest predictive accuracy. To test this, we developed a composite algorithm incorporating a
time-decay weighted average to capture recent popularity trends (prioritising recent weeks using
the formula . Furthermore, to prevent the algorithm from
hallucinating peaks during inactive hours (e.g., 2:00 AM), we applied our binary correlation table
as a probability mask. The final predicted activity was calculated as an Expected Value:
Where E is the predicted output, P is the hourly probability of activity, is the weighted active intensity,
and is the sensor's baseline noise floor.
Comparison to the Naive Baseline
To test our "advanced" algorithm, we compared it against a very basic "naive baseline." This
baseline simply predicted that the activity at any given hour would exactly match the historical
average for that same hour from previous weeks. Surprisingly, even with our added weights and
trend calculations, the complex model didn't perform much better than this simple approach.
Rather than a failure of the algorithm, this gave us our most important discovery: pedestrian
behaviour in the Grand Arcade is heavily driven by strict, repeating daily routines. The weekly
patterns are so stable that adding complex predictive adjustments just isn't necessary.
Final Conclusions
To understand the certainty of our prediction, we calculated the standard deviation for each
hour, represented as a shaded region around our prediction lines. A narrow band indicates
hours of high stability (predictable routines), while a wider band highlights chaotic, random
activity. This confirms that while it's difficult to predict the exact activity spikes, the daily rhythm
of the Grand Arcade itself is very consistent. Furthermore, as Fig 6 demonstrates, the simple
historical average often aligns more closely with the actual data than the complex prediction
during these stable periods. This shows that the main signal in the data is the standard weekly
routine, making advanced prediction techniques less effective than a simple arithmetic mean.
Fig 6: Prediction vs Actual data vs Naive prediction
Acknowledgments
Special thanks to our mentor, James Brown (CEO of Supersense
Technologies), for his invaluable guidance and for providing the dataset
that made this project possible
Fig 4: Tuesday profile
Analysis
Because weekdays and
weekends showed the highest
internal correlation, we created
two separate
tables, representing an
"average" weekday and an
"average" weekend to track
activity using a binary system
(1s and 0s).
By using a table of binary for each day in our data set and assuming that days of
the week correlate with themselves we calculated the probability of activity for an
average week. The heat map produced shows a rough pattern in daily activity in
the grand arcade and can let us deduce closing and opening times of the mall.
Fig 3: Probability of Activity during each day
-The current exponential moving value (at time t)
-The current price or data point
-The previous period's EMA value
-The smoothing factor

Partial preview of the text

Download Cambridge In Motion Poster and more Study Guides, Projects, Research Mathematics in PDF only on Docsity!

Objectives:

  • Learn how to handle and manipulate large data sets
  • Predict the next week of data given a month
  • Find out which factors affect people activity in Grand Arcade

Cambridge in motion

Mariia, Indi, Sedona, and Ivan

Cambridge Maths School In summer 2025 as part of the Grand Discoveries Event a radar was set up in the Grand arcade to record the flow of movement of people without gathering any sensitive information. The data[ 1 ] was collected via a signal being reflected off nearby objects and people passing the radar. The “power” recorded by the RADAR is dependent on multiple variables, such that both R 1 (single person close to the radar) and R 2 (crowd of people far away from the radar) on Fig 1 will cause the radar to record the same quantity. Due to this the data cannot be easily quantised into the number of people passing by but gives us an idea of activity in the grand arcade at a given time. We first received a dataset recording the sum of power received at regular intervals of every 200 milliseconds[ 3 ]. It also included the sum of the power expressed in decibels, taken from the log of the linear power, – this was for graph plotting[ 4 ] to make graphs easier to understand This dataset is extremely ambiguous due to the number of factors affecting the power reading. In our efforts to circumvent this we noticed that there was a consistent minimum each day. We can calculate this minimum and then create a threshold to use for sorting values into qualifying as activity or not activity ( 1 s and 0 s). This removes much of the ambiguity and allows to see times of activity rather than values of power.

0:00 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 23: Tuesday 2025-07-29 2025-08-05 2025-08-12 2025-08- To smooth the data, we used the exponential moving average as it puts more weight into more recent entries and doesn’t have a time lag like simple moving average. To test our assumption about correlation between the same days of the week we plotted them overlayed across consecutive weeks (e.g., the Tuesday profile in Fig 4 ) and observed near-identical daily curves. This minimal inter- week variance confirms a highly stable, repeating pattern, which serves as the foundation for our predictive averaging model. For any given 10 - second interval, if the chance of activity was above 5 %, we classified it as active ( 1 ), and if it was below 5 %, we classified it as inactive( 0 ). This calculated chance of activity which was then later used as the foundation to make our predictions for the upcoming weeks

The Radar

Fig 2: a line graph of power (dB) against time (days) Fig 1: A diagram of the RADAR Recording and analysing data such as this is important as it allows us to find patterns in movements of people which helps in planning and developing infrastructure. Our final goal in this project was to predict unknown data and compare prediction methods, ending up with an algorithm[ 2 ] that allows us to predict activity levels based on time and date.

The Data

References

[1] All data was provided by Supersense Technologies (2025) [2] McKinney, W. (2022). Python for Data Analysis [3] Owens, M. (2006). The Definitive Guide to SQLite [4] Matplotlib Development Team, 2026. Matplotlib: Release 3.10. [Software documentation]

Seasonal and Weekly Stability Analysis

Analysis of correlation data (see Fig 5 ) confirmed that the strongest patterns are highly day-of-the-week dependent. Our team decided that this stability had the greatest potential to predict the data. Fig 5 : Inter-day correlation matrix Results & Discussion

Evaluating Advanced Predictive Models

We initially hypothesised that applying temporal weights and probabilistic masking would yield the highest predictive accuracy. To test this, we developed a composite algorithm incorporating a time-decay weighted average to capture recent popularity trends (prioritising recent weeks using the formula. Furthermore, to prevent the algorithm from hallucinating peaks during inactive hours (e.g., 2 : 00 AM), we applied our binary correlation table as a probability mask. The final predicted activity was calculated as an Expected Value: Where E is the predicted output, P is the hourly probability of activity, is the weighted active intensity, and is the sensor's baseline noise floor.

Comparison to the Naive Baseline

To test our "advanced" algorithm, we compared it against a very basic "naive baseline." This baseline simply predicted that the activity at any given hour would exactly match the historical average for that same hour from previous weeks. Surprisingly, even with our added weights and trend calculations, the complex model didn't perform much better than this simple approach. Rather than a failure of the algorithm, this gave us our most important discovery: pedestrian behaviour in the Grand Arcade is heavily driven by strict, repeating daily routines. The weekly patterns are so stable that adding complex predictive adjustments just isn't necessary.

Final Conclusions

To understand the certainty of our prediction, we calculated the standard deviation for each hour, represented as a shaded region around our prediction lines. A narrow band indicates hours of high stability (predictable routines), while a wider band highlights chaotic, random activity. This confirms that while it's difficult to predict the exact activity spikes, the daily rhythm of the Grand Arcade itself is very consistent. Furthermore, as Fig 6 demonstrates, the simple historical average often aligns more closely with the actual data than the complex prediction during these stable periods. This shows that the main signal in the data is the standard weekly routine, making advanced prediction techniques less effective than a simple arithmetic mean. Fig 6 : Prediction vs Actual data vs Naive prediction

Acknowledgments

Special thanks to our mentor, James Brown (CEO of Supersense Technologies), for his invaluable guidance and for providing the dataset that made this project possible Fig 4: Tuesday profile

Analysis

Because weekdays and weekends showed the highest internal correlation, we created two separate tables, representing an "average" weekday and an "average" weekend to track activity using a binary system ( 1 s and 0 s). By using a table of binary for each day in our data set and assuming that days of the week correlate with themselves we calculated the probability of activity for an average week. The heat map produced shows a rough pattern in daily activity in the grand arcade and can let us deduce closing and opening times of the mall. Fig 3 : Probability of Activity during each day

  • The current exponential moving value (at time t)
  • The current price or data point
  • The previous period's EMA value
  • The smoothing factor