This collapsible silk hat, also known as a chapeau bras, belonged to Surgeon William Swift. Naval officers in the early 1800s typically wore hats like this to mark their rank among the crew.
More details on usscm.org