Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni...

16
Short-Term Effects of Animated versus Static Short-Term Effects of Animated versus Static Visualisation of Operations on Program Visualisation of Operations on Program Perception Perception Seppo Nevalainen and Jorma Sajaniemi ([email protected]) University of Joensuu, Finland University of Joensuu University of Joensuu

Transcript of Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni...

Page 1: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Short-Term Effects of Animated versus StaticShort-Term Effects of Animated versus StaticVisualisation of Operations on ProgramVisualisation of Operations on Program

PerceptionPerceptionSeppo Nevalainen and Jorma Sajaniemi

([email protected])University of Joensuu, Finland

University of JoensuuUniversity of Joensuu

Page 2: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

• Background

• Visualization and Cognition

• Previous work

• Experiment

• Discussion

• Conclusion

Outline

University of Joensuu

Page 3: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Background

• Numerous visualization and animation tools toassist teaching of computer programming

• Empirical evaluation of visualization tools basedmostly on long-term effects, ignoring immediateeffects of visualizations

• A series of experiments studying immediate andshort-term effects and their relation to long-termeffects based on our model of cognitivephenomena that take place during viewing

University of Joensuu

Page 4: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Cognitive Phenomena behind Visualizations

University of Joensuu

• Locations of participant's gaze (visual attention)• Gathered with eye-tracking equipment

Page 5: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Cognitive Phenomena behind Visualizations

University of Joensuu

• Locations of participant's gaze (visual attention)• Gathered with eye-tracking equipment

• Knowledge of variable roles (programming knowledge)• Measured with post-tests (Stützle and Sajaniemi 2005)

• Summaries of studied programs (program knowledge)• Analyzed with Good's scheme (Good 1999)

Page 6: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Cognitive Phenomena behind Visualizations

University of Joensuu

• Locations of participant's gaze (visual attention)• Gathered with eye-tracking equipment

• Knowledge of variable roles (programming knowledge)• Measured with post-tests (Stützle and Sajaniemi 2005)

• Summaries of studied programs (program knowledge)• Analyzed with Good's scheme (Good 1999)

Page 7: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

PlanAni Visualization Tool (Sajaniemi and Kuittinen 2005)

• Visualizes variable roles• Role of a variable = behavior of a

variable, e.g.,– Stepper = a variable stepping

through a systematic, predictablesuccession of values

– Gatherer = a variable accumulatingthe effect of individual values

• Facilitates learning introductoryprogramming

• Eleven roles cover 99% of allvariables in novice-level programs

• Role image represents the salientstereotypical features ofvariable´s behavior

• Role image also used for theanimation of operations on avariable

University of Joensuu

Page 8: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Previous Work on Roles of Variables

• Beneficial long-term effects on programming skills(Byckling and Sajaniemi 2006, Sajaniemi andKuittinen 2005)

• Use of original role images enhanced learning ofroles when compared to neutral control images(Stützle and Sajaniemi 2005)

• PlanAni compared to Turbo Pascal debugger(Nevalainen and Sajaniemi 2005):

• Use of PlanAni → increase in targeting of visualattention on variable visualizations

• Increase of visual attention to variables →increase of high-level information,and decrease of low-level code-related

information in program summaries

University of Joensuu

Page 9: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Experiment: Design

• Between-subject design

• Independent variable: version of PlanAni(smoothly animated (“animation group”) orimmediate update (“static group”))

• Dependent variables:

• Locations of participant's gaze• Participant's post-test score on role

knowledge• Program summary provided by the participant

• Participants:

• Eleven male and five female (n=16)• Had taken a first-year programming course in

last eighteen months and continued theirstudies thereafter

• Received a fee of 15 euros

University of Joensuu

Page 10: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Experiment: Procedure

• A video presentation introducing roles

• Pre-test on role knowledge

• A practice program with PlanAni

• An actual program with PlanAni

• Post-test on role knowledge

• Tool evaluation form

University of Joensuu

Page 11: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Static group

Code

Variables

I/O

Other

Results: Role Knowledge and Visual Attention

Animation group

Code

Variables

Notifications

I/OOther

University of Joensuu• Post-test scores on role knowledge (max score13)

• Animation group: 12.00• Static group: 11.25 Difference N.S.

• Mean proportions of viewing times on different areasof the screen (difference between the groups significant inviewing code and I/O areas):

Page 12: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Results: Program Summaries

• Good´s program summary analysis scheme(Good 1999) was applied to participants' programsummaries

University of Joensuu

• Information types divided into high-level and low-level types:

• Object description categories:

Differences N.S.

DifferencesN.S.

Page 13: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Discussion: Visual Attention

• Variation in the graphics, location and size ofvariable visualizations → clear influence on thedistribution of visual attention (Nevalainen andSajaniemi 2005)

• Presence or absence of a smooth animation →only subtle differences on the distribution of visualattention

• Even participants provided with rich pictorialinformation resorted heavily to the textual cues

University of Joensuu

Page 14: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Discussion: Role Knowledge

• Variation in the images of PlanAni → significantdifferences in development of role knowledgefound in (Stützle and Sajaniemi 2005)

• Presence or absence of a smooth animation →differences non-significant

• One explanation: the role images, not the roleanimation, play central role in the development ofrole knowledge when PlanAni is used

University of Joensuu

Page 15: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Discussion: Program Summaries

• PlanAni has been found to have long-term effectson programming knowledge, that results indifferences in program summaries (Sajaniemi andKuittinen 2005)

• The effects do not seem to manifest themselvesin program summaries collected after viewingvisualization (Nevalainen and Sajaniemi 2005,this experiment)

University of Joensuu

Page 16: Short-Term Effects of Animated versus Static Visualisation of … · 2006. 10. 6. · •PlanAni compared to Turbo Pascal debugger (Nevalainen and Sajaniemi 2005): •Use of PlanAni

Conclusions

• Research focus: how a person viewing visualizationstargets her visual attention and what kind of a mentalmodel she constructs concerning a computer program

• Research based on a model of cognitive phenomenathat take place during viewing

University of Joensuu

• Future experiments: use of style of engagement as avaried factor

Nosignificantdifferences

Nosignificantdifferences

Nosignificantdifferences

Animation styleused in visualization(Nevalainen & Sajaniemi 2006)

NosignificantdifferencesNot measured

Significantdifferences

Graphics, location,and size of visualization(Nevalainen & Sajaniemi 2005)

Not measuredSignificantdifferencesNot measured

Content of imagesused in visualization(Stützle & Sajaniemi 2005)

Variedfactors:

Programknowledge

Programmingknowledge

Visual attentionon visualization

DependentVariables:

Experiments on visualizingvariable roles