Skip to main content
QUICK REVIEW

[Paper Review] Virtual Piano using Computer Vision

Seongjae Kang, Jaeyoon Kim|arXiv (Cornell University)|Oct 28, 2019
Music and Audio ProcessingComputer Science13 references7 citations
TL;DR

This paper proposes a computer vision-based virtual piano system that detects key press status and velocity solely from visual input using Hough transform, binary thresholding, and a novel spatiotemporal CNN architecture. It achieves 53.2% and 57.8% accuracy in classifying white and black key intensity levels using stacked difference image features, outperforming optical flow-based methods due to small-motion sensitivity.

ABSTRACT

In this research, Piano performances have been analyzed only based on visual information. Computer vision algorithms, e.g., Hough transform and binary thresholding, have been applied to find where the keyboard and specific keys are located. At the same time, Convolutional Neural Networks(CNNs) has been also utilized to find whether specific keys are pressed or not, and how much intensity the keys are pressed only based on visual information. Especially for detecting intensity, a new method of utilizing spatial, temporal CNNs model is devised. Early fusion technique is especially applied in temporal CNNs architecture to analyze hand movement. We also make a new dataset for training each model. Especially when finding an intensity of a pressed key, both of video frames and their optical flow images are used to train models to find effectiveness.

Motivation & Objective

  • To enable full piano performance analysis using only visual data, without acoustic input.
  • To detect not only which keys are pressed but also the intensity of each key press.
  • To develop a new dataset and model architecture capable of handling subtle hand movements and key pressure variations.
  • To evaluate the effectiveness of optical flow versus stacked image features for intensity estimation.

Proposed method

  • Detect piano keyboard and individual keys using Hough transform and binary thresholding on input video frames.
  • Extract feature vectors from difference images between current frames and a background image to capture key press changes.
  • Apply early fusion in a 3D CNN architecture that combines spatial and temporal features from stacked image sequences.
  • Utilize optical flow maps as input to a separate 3D CNN variant to compare motion-based intensity detection.
  • Train models using distribution labeling with Kullback–Leibler divergence loss to account for label continuity in intensity levels.
  • Employ Adam optimizer with a fixed learning rate of 0.001 over 15 epochs for both intensity and press detection tasks.

Experimental results

Research questions

  • RQ1Can key press intensity in piano performance be accurately estimated using only visual data and no audio signals?
  • RQ2How effective is optical flow in detecting subtle key pressure variations compared to stacked difference images?
  • RQ3Does early fusion of spatial and temporal features in 3D CNNs improve intensity classification over standard 2D CNNs?
  • RQ4How does label distribution modeling with Kullback–Leibler divergence loss affect performance on continuous intensity labels?
  • RQ5What is the impact of input resolution and motion scale on optical flow-based intensity estimation?

Key findings

  • The system successfully detects which keys are pressed and for how long using only visual cues from silent video.
  • The model achieves 53.2% accuracy in classifying white key intensity and 57.8% for black keys when using stacked difference image features.
  • Optical flow-based input yields lower accuracy—50.2% for white keys and 51.3% for black keys—indicating it is less effective for small, precise key movements.
  • The performance gap suggests optical flow is less suitable for detecting subtle hand motions typical in piano playing compared to larger gestures.
  • The use of distribution labeling with Kullback–Leibler divergence loss improves model generalization on continuous intensity labels.
  • The proposed method demonstrates that high-precision visual analysis of piano performance is feasible without audio, enabling new applications in music technology and performance analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.