Final ELEC 111 2
Final ELEC 111 2
The way in which they are operated. Mobile Software frequently serve to provide
users with similar services to those accessed on
these added functionalities are the reason for
PCs.
separately characterizing mobile computing
systems.
THE CONCEPTS OF MOBILE COMPUTING
The main concept of mobile computing involves
Mobile communication Network
Mobile hardware
WEEK 15 AND 16 ELEC112
LECTURE 1: INTRODUCTION TO AI, DEEP
LEARNING AND MACHINE LEARNING
What is artificial intelligence?
Artificial intelligence is the ability of a computer to
perform tasks commonly associated with
intelligent beings.
What is machine learning?
Machine learning is the study of algorithms that
learn from examples and experience instead of
relying on hard-coded rules and make predictions
on new data.
What is deep learning?
Deep learning is a subfield of machine learning • Many different kinds exist
focusing on learning data representations as
• densely connected
successive layers of increasingly meaningful
representations. • convolutional
Main types of machine learning • recurrent
• Supervised learning • pooling, flattening, merging, normalization,
• Unsupervised learning etc.
• Self-supervised learning • Input: one or more tensors
• Reinforcement learning output: one or more tensors
Fundamentals of machine learning • Usually have a state, encoded as weights
Data • learned, initially random
• Humans learn by observation and unsupervised • When combined, form a network or a model
learning
Input data and targets
• model of the world / common sense reasoning
• The network maps the input data X to predictions
• Machine learning needs lots of (labeled) data to Y′
compensate
• During training, the predictions Y′ are compared
• Tensors: generalization of matrices to n to true targets Y using the loss function
dimensions (or rank, order, degree)
• The quantity to be minimized (optimized) during
• 1D tensor: vector training
• 2D tensor: matrix • the only thing the network cares about
• 3D, 4D, 5D tensors • there might also be other metrics you care about
• numpy.ndarray(shape, dtype) • Common tasks have “standard” loss functions:
• Training – validation – test split (+ adversarial • mean squared error for regression
test)
• binary cross-entropy for two-class classification
• Minibatches
• categorical cross-entropy for multi-class
• small sets of input data used at a time classification
• usually processed independently • etc
Deep learning Optimizer
Anatomy of a deep neural network • How to update the weights based on the loss
function
• Layers
• Learning rate (+scheduling)
• Input data and targets
• Stochastic gradient descent, momentum, and their
• Loss function
variants
• Optimizer
• RMSProp is usually a good first choice
Layers
• more info
• Data processing modules
Deep learning frameworks
• Actually tools for defining static or dynamic
general-purpose computational graphs
• Automatic differentiation
• Seamless CPU / GPU usage
• multi-GPU, distributed
• Python/numpy or R interfaces
• instead of C, C++, CUDA or HIP
• Open source
• Keras is a high-level neural networks API
• we will use TensorFlow as the compute backend
• included in TensorFlow 2 as tf.keras
•https://keras.io/ ,
https://www.tensorflow.org/guide/keras
• PyTorch is:
• a GPU-based tensor library
• an efficient library for dynamic neural networks
• https://pytorch.org/
Outline
Mixed Reality
– Brooks (1999) defines it as: “[an] experience .. in • Workbenches: flat, rear-projection screens that
which the user is effectively immersed in a display images in stereo, and can be set up in a
responsive virtual world” … horizontal or tilted position, create partially
immersion and high object presence.
– Sherman and Craig (2003) defines it as a medium
composed of interactive computer simulations that • Hot Open Challenges:
sense the participant’s position and actions and
replace or augment the feedback to one or more – Interactive more effectively with virtual worlds:
senses, giving the feeling of being mentally
immersed or present in the simulation (a virtual • Manipulation
world)
• Wayfinding
– Immersive, Semi-immersive, Non-immersive
– Measuring the illusion of presence
• Four Key Elements in Experiencing Virtual
Video for Virtual Reality
Reality
• Video: Collaborative Immersive Networked
– A virtual world an imaginary space, often (but not
Environments (CINE)
necessarily) realized through a medium (rendering
pipeline, display, etc.) – http://www.youtube.com/watch?v=mVQrhsjOl
wU
– Immersion (physical and mental) having a sense
of “presence” within an environment; this can be Augmented Reality
purely a mental state, or can be accomplished
through physical means. • Augmented Reality (AR) is a technology or an
environment where the additional information
• Mental Immersion: a state of being deeply generated by a computer is inserted into the user’s
engaged, with suspension of disbelief. view of real world scene.
• Physical Immersion: bodily/physically entering • The augmenting information may consist of
into a projected area virtual geometric objects placed into the
environment, or a display of non-geometric
– Sensory feedback: visual/aural/haptic feedback
information about existing real objects such as
to a participant
distribution of room temperature.
– Interactivity: in a virtual reality experience,
• Optical see-through: Partly transmissive optical
participants are able to move around and change
combiners are placed in front of the user’s eyes,
their viewpoint, generally through movements of
allowing the user to see in them the reflection of
their head.
virtual images portrayed on miniature displays in
• VR Technology: Displays their line of sight.
– Head Mounted Displays: Tiny displays, mounted • Uses miniature cameras to capture the view of the
on the head, fully immersive, needs tracker to track world that would be seen by each eye. The video
the position and orientation of user’s head images of the real world are then combined with
the computer- generated images of the virtual • AV describes all the cases where the real object is
world, to create augmented-reality images that can inserted into a computer-generated environment.
be displayed on a traditional (non see-through)
HMD • A system in which real multi-sensory input is
provided, which supplements the visually
AR Applications presented virtual environment.
Augmented Reality in Cooperative Design • Directing the smell of coffee grounds to a user
when s/he passes near a virtual coffee maker in the
• Collaborative Virtual Environment virtual environment
MRCVE collaboration scenario • Turning on a heat lamp over the user when s/he
approaches a spot in the virtual environment that is
• AR-based Videoconferencing exposed to full sun
• Turning on a fan in front of the user when s/he
Video for Augmented Reality
approaches a spot in the virtual environment that is
• Video: Magicbook exposed to wind
–http://www.hitlabnz.org/wiki/Video_-
AR_Urban_Design
–
http://www.youtube.com/watch?v=kS_G4WLhw
ZU
Augmented Virtuality