Guinea pigs express happiness or contentment through various behaviors such as popcorning, where they jump and twist in the air, making soft purring sounds, relaxing their body posture, and showing curiosity by exploring their surroundings. Additionally, guinea pigs may also display comfort by gently grinding their teeth, known as bruxing, or by forming close bonds with their human caregivers through gentle interactions and seeking attention.