Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.uplift.ai/llms.txt

Use this file to discover all available pages before exploring further.

Break down the precise timing and sequencing of movements from the pelvis, trunk, and arms, to identify inefficiencies in swing mechanics, improve consistency, and maximize energy transfer from the lower body through the core to the bat. Uplift offers dozens of events and metrics to track baseball hitting for little league to professional athletes. Example image of a man doing a mid-swing, side view

Dimensions

Required Inputs for processing:
  • handedness: the handedness of the batter [‘left’, ‘right’]

Variables

Output variables from hitting analysis.

Events

Identify specific time points during the hit.
EventShort DescriptionColumn Name
InitiationLead foot begins to move prior to max knee raise.initiation_frame
Max Foot RaiseMaximum height of the lead foot.max_foot_raise_frame
Foot ContactFront foot contacts the ground.foot_contact_frame
Pelvis Velocity Initiation (Launch)Start of pelvis rotation (launch event).pelvis_initiation_frame
Max X FactorMaximum hip-shoulder separation before the twisting motion.max_x_factor_frame
X Factor Zero CrossingShoulder-hip separation crosses zero after Max X Factor.x_factor_zero_crossing_frame
Wrist InitiationStart of wrist movement during the swing.wrist_movement_initiation_frame
TwistAverage timing of peak pelvis, trunk, and arm angular velocities.twist_frame
Peak Pelvis Ang VelInstant of pelvis peak angular velocity.peak_pelvis_velocity_frame
Peak Trunk Ang VelInstant of trunk peak angular velocity.peak_trunk_velocity_frame
Peak Arm Ang VelInstant of lead arm peak angular velocity.peak_arm_velocity_frame
Peak Wrist Angular VelocityInstant of maximum wrist angular velocity.peak_wrist_angular_velocity_frame
Ball ContactEstimated timing of ball contact (audio signal primary, swing through secondary).ball_contact_frame
Swing ThroughRear wrist passes in front of the lead wrist — batter commits to swing.swing_through_frame
Pelvis Velocity TerminationFirst local minimum after peak pelvis velocity.pelvis_velocity_termination_frame
End TwistEnd of twisting motion — X Factor velocity returns to 0 deg/s.end_twist_frame

Movement Flags

Find inefficiencies during the hitting motion.
MetricUnitsShort DescriptionColumn Name
Leads With WristbooleanWrist initiation occurs before pelvis initiation.leads_with_wrist
SwaybooleanPelvis drifts backward more than 8 cm (~3 in) around max knee raise.sway
Sway LegbooleanRear knee passes behind the ankle (away from pitcher).sway_leg
Knee DominantbooleanRear hip and ankle angles differ >25° at launch with <15° ankle dorsiflexion.knee_dominant_swing
Vertical Pelvis HikebooleanPelvis finishes higher at ball contact than at launch.vertical_pelvis_hike
Lateral Pelvis TiltbooleanPelvis tilts upward more than 10 deg during the swing.excessive_lateral_pelvis_tilt
Drifting ForwardbooleanPelvis drifts forward more than 15 cm (~6 in) from launch to ball contact.drifting_forward

Kinematic Sequence

Order and magnitude of pelvis, trunk, and upper arm peak rotational velocity (deg/s) during the swing.
MetricUnitsShort DescriptionColumn Name
Kinematic SequenceN/AOrder of peak segment angular velocities. Correct sequence is pelvis-trunk-arm.kinematic_sequence_order
Peak Pelvis Angular Velocitydeg/sMax rotational speed of the pelvis.peak_pelvis_angular_velocity
Peak Trunk Angular Velocitydeg/sMax rotational speed of the trunk.peak_trunk_angular_velocity
Peak Arm Angular Velocitydeg/sMax rotational speed of the lead upper arm.peak_arm_angular_velocity
Trunk to Arm Speed UpratioSpeed increase ratio from trunk to arm.trunk_to_arm_velocity_speedup
Pelvis to Trunk Speed UpratioSpeed increase ratio from pelvis to trunk.pelvis_to_trunk_velocity_speedup

Timing & General Metrics

Durations, sequencing info, and general session metadata.
MetricUnitsShort DescriptionColumn Name
Time to Ball ContactsDuration from initiation to ball contact.time_to_ball_contact
Time to LaunchsDuration from initiation to launch (pelvis velocity initiation).time_to_launch
Pelvis Acceleration TimesTime from pelvis rotation start to peak pelvis angular velocity.pelvis_acceleration_time
Pelvis Deceleration TimesTime from peak pelvis angular velocity to end of rotation.pelvis_decceleration_time
HandednessN/ABatter handedness [‘right’ or ‘left’].handedness
Ball Contact MethodN/ADetection method: both audio, single audio, or swing through.ball_contact_method

Lower Body & Stride

Lower body positions, stride mechanics, and forward movement during the swing.
MetricUnitsShort DescriptionColumn Name
Stride LengthinLead ankle at foot contact to rear ankle at max foot raise.stride_length
Hip HingedegMax rear hip flexion between max foot raise and foot contact.hip_hinge
Lead Knee Angle at Ball ContactdegLead knee flexion at ball contact.lead_knee_angle_at_ball_contact
Drifting Forward MagnitudeinPelvis forward drift from launch to ball contact — see Drifting Forward flag.drifting_forward_magnitude

Trunk & X-Factor

Trunk and pelvis rotation angles, coil, and swing plane metrics.
MetricUnitsShort DescriptionColumn Name
Max X FactordegMax hip-shoulder separation angle.max_x_factor
Trunk CoildegMax trunk rotation away from the pitcher (0 = facing pitcher).trunk_coil
Trunk Tilt at LaunchdegSide-to-side trunk tilt at launch (+ = towards pitcher).trunk_tilt_at_launch
Shoulder Rotation Plane FlexiondegTrunk flexion to align with the average shoulder rotation plane.shoulder_rotation_plane_flexion
Shoulder Rotation Plane TiltdegTrunk tilt to align with the average shoulder rotation plane (+ = towards pitcher).shoulder_rotation_plane_tilt

Arm, Hand & Connection

Upper extremity angles, distances, and hand positions relative to the body.
MetricUnitsShort DescriptionColumn Name
Scap Load at LaunchdegRear shoulder flexion (+) or extension (-) at launch.rear_scap_load_at_launch
Elbow Flexion at LaunchdegRear elbow flexion at launch.rear_elbow_flexion_at_launch
Elbow Flexion at Ball ContactdegRear elbow flexion at ball contact.rear_elbow_flexion_at_ball_contact
Rear Arm ConnectioninAvg distance from rear elbow to mid-torso between launch and ball contact.rear_arm_connection
Inter Elbow Distance at Elbow SlotmElbow-to-elbow distance at elbow slot.inter_elbow_distance_at_elbow_slot
Inter Elbow Distance at Trunk PeakmElbow-to-elbow distance at peak trunk angular velocity.inter_elbow_distance_at_trunk_peak
Inter Elbow Distance at Ball ContactmElbow-to-elbow distance at ball contact.inter_elbow_distance_at_ball_contact
Relative Hand Position - Towards PitcherinWrist position relative to mid-shoulders along pitcher axis at foot contact.relative_hand_position_towards_pitcher
Relative Hand Position - UpinWrist height relative to mid-shoulders at foot contact.relative_hand_position_up
Relative Hand Position - Away from BodyinWrist distance away from mid-shoulders (lateral) at foot contact.relative_hand_position_away_from_body
Linear StretchinLead ankle to wrist center distance along pitch direction at foot contact.linear_stretch

Time Series Metrics

Metrics describing motion over the duration of the capture, changing values with every frame. Use in combination with the keypoints and kinematics from Generic Outputs.
MetricUnitsShort DescriptionColumn Name
Trunk Center of Mass Position XmTrunk COM X position.trunk_center_of_mass_x
Trunk Center of Mass Position YmTrunk COM Y position (vertical).trunk_center_of_mass_y
Trunk Center of Mass Position ZmTrunk COM Z position.trunk_center_of_mass_z
Body Center of Mass Position XmWhole-body COM X position.whole_body_center_of_mass_x
Body Center of Mass Position YmWhole-body COM Y position (vertical).whole_body_center_of_mass_y
Body Center of Mass Position ZmWhole-body COM Z position.whole_body_center_of_mass_z
Trunk Global FlexiondegTrunk sagittal plane flexion relative to global frame.trunk_global_flexion
Trunk Global TiltdegTrunk frontal plane tilt relative to global frame.trunk_global_tilt
Trunk Global RotationdegTrunk transverse plane rotation relative to global frame.trunk_global_rotation
Pelvis Global TiltdegPelvis frontal plane tilt relative to global frame.pelvis_global_tilt
Pelvis Global RotationdegPelvis transverse plane rotation relative to global frame.pelvis_global_rotation

Bat Metrics

Descriptors of bat positions, speeds, and more during the swing.
MetricUnitsShort DescriptionColumn Name
Attack AngledegBat path angle relative to horizontal at contact.attack_angle
On Plane Efficiency%% of swing path within 10 deg of optimal plane (foot contact to ball contact).on_plane_efficiency
Launch PositiondegBat angle relative to spine in the sagittal plane at launch.launch_position
Sweet Spot Fore Aft Position At ContactmFore/aft position of bat sweet spot relative to pelvis at contact.sweet_spot_fore_aft_position_at_contact
Attack DirectiondegHorizontal bat angle relative to home plate (indicates hit direction).attack_direction
Swing PathdegVertical bat path angle in the 0.04 s leading up to ball contact.swing_path_angle

Notes

  • Kinematic data typically captured at 240Hz for Baseball Hitting
  • All boolean variables (true/false = 1/0) return -1 if metric unable to be calculated.