GPT provides some insight into how ketones’ loss happens

Image generated with Windows Copilot

Windows Copilot shines

The reply is below


🌟 Exploring Energy Loss During Ketosis: The Role of Acetone and Acetoacetate🌟

When our bodies enter ketosis—often due to low carbohydrate intake or fasting—we begin producing ketone bodies as alternative fuel sources. The primary ketone bodies are:

  • Beta-Hydroxybutyrate (BHB)
  • Acetoacetate (AcAc)
  • Acetone

While these molecules serve as vital energy sources, not all are utilized efficiently, leading to some energy loss. Here’s how it happens:


🔹 Energy Loss Through Ketone Excretion

1. Acetone Exhalation

  • Formation: Acetone is produced from the spontaneous decarboxylation of acetoacetate.
  • Excretion: Being volatile, acetone is exhaled through the lungs and also lost via urine and sweat.
  • Energy Implications: The exhaled acetone contains caloric energy that the body doesn’t recover—this represents direct energy loss.

2. Urinary Excretion of Acetoacetate and BHB

  • Renal Handling: The kidneys filter blood ketone bodies, reabsorbing most but not all. Excess ketones are excreted in the urine.
  • Energy Implications: The energy in these excreted ketones is also lost to the body. During high ketone production, urinary losses can be significant.

🔹 Key Research Findings

• Magnitude of Energy Loss

  • Quantitative Estimates: Energy loss through ketone excretion can range from 50 to 100 kilocalories per day in individuals in ketosis.
  • Influencing Factors: Depth of ketosis, metabolic rates, and kidney function affect the extent of ketone loss.

• Metabolic Adaptations Over Time

  • Increased Efficiency: With prolonged ketosis, the body adapts—kidneys enhance ketone reabsorption, and tissues improve ketone utilization, reducing losses.
  • Reduced Acetone Production: The body produces less acetone over time, minimizing exhaled energy loss.

• Clinical Contexts

  • Diabetes Mellitus: In uncontrolled type 1 diabetes, ketone production surges, and energy loss through excretion becomes more pronounced, contributing to weight loss.
  • Ketogenic Diets: Initial ketone losses are higher but tend to decrease as the body adapts to ketosis.

🔹 Understanding the Energy Calculations

• Caloric Content of Ketone Bodies

  • Beta-Hydroxybutyrate and Acetoacetate: Approximately 4.5 kcal per gram.
  • Acetone: While not a significant energy source, its loss still represents unused potential energy.

• Estimating Daily Losses

  • Urinary Ketones: Losing 10 grams of ketones via urine equates to about 45 kcal lost per day.
  • Exhaled Acetone: Though smaller in quantity, exhaled acetone adds to the total energy deficit.

🔹 Implications of Ketone Energy Loss

• Weight Management

  • Contributing Factor: Inefficient ketone utilization and subsequent energy loss may aid in weight loss by creating a caloric deficit.
  • Dietary Adjustments: Understanding this loss can help calibrate caloric intake for those on ketogenic diets.

• Metabolic Health

  • Efficiency Over Time: As the body adapts and reduces energy loss, dietary adjustments may be necessary to maintain weight loss momentum.
  • Monitoring Ketosis Levels: Regular testing of blood or urine ketone levels can inform about the state of ketosis and metabolic efficiency.

🔹 Additional Insights

• Breath Acetone as a Marker

  • Non-Invasive Monitoring: Breath acetone levels correlate with blood ketone levels, offering a convenient way to monitor ketosis.
  • Research Utilization: Used to estimate acetone production and associated energy loss.

• Ketone Metabolism Beyond Energy

  • Signaling Molecules: Ketone bodies play roles in gene expression, inflammation, and oxidative stress.
  • Therapeutic Potential: Minimizing unnecessary energy loss can enhance the benefits of ketogenic diets, especially in medical conditions like epilepsy or metabolic disorders.

🔹 Connecting the Dots

The loss of energy through acetone exhalation and acetoacetate excretion during ketosis, while seemingly minor, has meaningful implications:

  • Metabolic Efficiency: Highlights the balance the body achieves between utilizing alternative energy sources and conserving energy.
  • Dietary Planning: Emphasizes the importance of adjusting nutritional strategies as the body’s adaptation to ketosis evolves.
  • Health Outcomes: Offers insights that could improve interventions for metabolic diseases, weight management, and overall well-being.

Understanding the nuances of ketone metabolism and energy loss showcases the body’s remarkable adaptability! Whether for personal health goals or academic interest, delving into this area uncovers the intricate interplay between diet, metabolism, and energy utilization. 🌟


Ketosis with exogenous ketones cocktail

https://ketonutrition.org/the-many-faces-of-beta-hydroxybutyrate-bhb/?form=MG0AV3

Ketosis is just fifteen minutes away

Is there intermittent fasting approach to social media apps?

Photo by Igor Omilaev on Unsplash

Eat more, move less you’ll get a real progress!

Photo by Noah Buscher on Unsplash

So, what’s the proper way to lose weight?
Well, check Carbohydrate-Insulin Model (CIM) of obesity. The hypothesis that actually explains weight gain better than EBM and it states that lowering carbohydrates consumption as much as possible is the way to lose weight for good.


For more details, read the paper by prof. David Ludwig below

Ludwig DS. Carbohydrate-insulin model: does the conventional view of obesity reverse cause and effect? Philos Trans R Soc Lond B Biol Sci. 2023 Oct 23;378(1888):20220211. doi: 10.1098/rstb.2022.0211. Epub 2023 Sep 4. PMID: 37661740; PMCID: PMC10475871.

Abstract

Conventional obesity treatment, based on the First Law of Thermodynamics, assumes that excess body fat gain is driven by overeating, and that all calories are metabolically alike in this regard. Hence, to lose weight one must ultimately eat less and move more. However, this prescription rarely succeeds over the long term, in part because calorie restriction elicits predictable biological responses that oppose ongoing weight loss. The carbohydrate-insulin model posits the opposite causal direction: overeating doesn’t drive body fat increase; instead, the process of storing excess fat drives overeating. A diet high in rapidly digestible carbohydrates raises the insulin-to-glucagon ratio, shifting energy partitioning towards storage in adipose, leaving fewer calories for metabolically active and fuel sensing tissues. Consequently, hunger increases, and metabolic rate slows in the body’s attempt to conserve energy. A small shift in substrate partitioning through this mechanism could account for the slow but progressive weight gain characteristic of common forms of obesity. From this perspective, the conventional calorie-restricted, low-fat diet amounts to symptomatic treatment, failing to target the underlying predisposition towards excess fat deposition. A dietary strategy to lower insulin secretion may increase the effectiveness of long-term weight management and chronic disease prevention. This article is part of a discussion meeting issue ‘Causes of obesity: theories, conjectures and evidence (Part II)’.

Weight loss as an engineering

  1. Continue Intermittent Fasting regimen by having 16 hours fast, 8 hours eating window.
  2. Continue eating mostly low carb diet, and restraining from eating food that contains any sugar.
  3. Continue walking outside just for fun, since it’s free and affordable to almost everyone, unlike a gym membership.

Why would anyone take exogenous ketones?

Photo by Mary West on Unsplash

Note: consult with your physician before trying this.

Magical formula

How does it feel like?

An athlete

An older person

Overweight or obese

Overall healthy and curious person

Ketones of Potassium BHB salt to induce exogenous ketosis

Exogenous ketones

16/8 fast won’t help you to go into ketosis

Experiment of N = 1

References

Potassium BHB ketone salt I’ve used.

How to integrate with Canada Post AddressComplete API  

Canada Post AddressComplete API allows a user to search for an address within Canada and other countries. Within Canada results can be in both English and French languages. There are two ways to invoke Canada Post API: 

  • To embed css and JavaScript flies that can be copy and pasted from the Canada Post website 
  • To directly call Canada Post API 

API setup prerequisites 

This API Key is for all intents and purposes public, since it can be easily discovered by looking at the API calls in the Network tab in a browser’s developer tools. What prevents this API Key from being used by 3rd parties is assigning it to particular URLs that it can be called from and adding rate limiting and other options as discussed here

Embedded css and JavaScript files 

<head> 

<link rel="stylesheet" type="text/css" href="https://ws1.postescanada-canadapost.ca/css/addresscomplete-2.30.min.css?key=<Your API key comes here>" /> 

<script type="text/javascript" src="https://ws1.postescanada-canadapost.ca/js/addresscomplete-2.30.min.js?key=<Your API key comes here>"></script> 

<script type="text/javascript"> 

var fields = [ 

{ element: "street", field: "Line1" }, 

{ element: "city", field: "City", mode: pca.fieldMode.POPULATE }, 

{ element: "province", field: "ProvinceName", mode: pca.fieldMode.POPULATE }, 

{ element: "postcode", field: "PostalCode" }, 

{ element: "country", field: "CountryName", mode: pca.fieldMode.COUNTRY } 

], 

options = { 

key: "YD42-FH68-UZ69-CY67" 

}, 

control = new pca.Address(fields, options); 

</script>  

... 

</head>

Where the css link provides the styling for the Canada Post API script added in the script tag and the second script provides the mapping from the form fields in which you want to use Address Search to the existing fields in the Canada Post API script. More details about how the mapping is done can be found here

Direct call to Canada Post API 

It is also possible to integrate directly with the Canada Post API using their official documentation by using two Find and Retrieve endpoints they expose. More details about each endpoint will be provide below. 

Address Lookup Flow 

Possible search flow scenarios 

 Scenario First endpoint call Next Action (call)  Result Notes 
Look up of a single existing address Find Retrieve Detailed address returned by the Retrieve request  
Look up of a street or an apartment building address Find Find with LastId value from the first call List of houses/apartments In this case there is a need to issue additional Retrieve request to get a detailed address. 
Look up of a specific address by ID from Find request result Retrieve N/A Detailed address returned by the Retrieve request  

Find request 

https://ws1.postescanada-canadapost.ca/addresscomplete/interactive/find/v2.10/json3.ws

Find request endpoint is described in this official page. Its purpose is to look up addresses similar to the search term provided by the user. This endpoint has the following parameters 

NAME Mandatory TYPE DEFAULT DESCRIPTION Notes 
Key Yes String  API Key  
SearchTerm Yes String  The search term to find. If the LastId is provided, the SearchTerm searches within the results from the LastId. URL encoded 
LastId No String  The Id from a previous Find or FindByPosition. URL encoded 
Country No String CAN The name or ISO 2 or 3 character code for the country to search in. Most country names will be recognised but the use of the ISO country code is recommended for clarity.  
LanguagePreference No String en The 2 or 4 character language preference identifier e.g. (en, en-gb, en-us etc).  
MaxSuggestions No Integer The maximum number of autocomplete suggestions to return.  

It is possible to submit request to this endpoint for free using Canada Post website

Example request: 

https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/Find/v2.10/json3.ws?Key=<your< API Key comes here>&SearchTerm=390&Country=CAN

Response body 

https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/Find/2.1/json.ws?key=zz99-jd77-nf54-xw26&SearchTerm=234%20Drinkwater%20St

Response

{
    "Items": [
        {
            "Id": "CA|CP|ENG|ON-SUDBURY-DRINKWATER_ST-234",
            "Text": "234 Drinkwater St",
            "Highlight": "0-3,4-17",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5 - 7 Addresses",
            "Next": "Find"
        },
        {
            "Id": "CA|CP|A|802566926",
            "Text": "234 Drinkwater St",
            "Highlight": "0-3,4-17",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        }
    ]
}
https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/Find/2.1/json.ws?key=zz99-jd77-nf54-xw26&SearchTerm=234%20Drinkwater%20St&LastId=CA%7CCP%7CENG%7CON-SUDBURY-DRINKWATER_ST-234

Response

{
    "Items": [
        {
            "Id": "CA|CP|A|9494373",
            "Text": "1-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        },
        {
            "Id": "CA|CP|A|17427664",
            "Text": "2-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        },
        {
            "Id": "CA|CP|A|17427672",
            "Text": "6-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        },
        {
            "Id": "CA|CP|A|22742122",
            "Text": "9-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        }
    ]
}
NAME TYPE DESCRIPTION VALUES EXAMPLE 
Id String The Id to be used as the LastId with the Find method.  CAN|PR|X247361852|E|0|0 
Text String The found item.  2701 Riverside Dr, Ottawa, ON 
Highlight String A list of number ranges identifying the characters to highlight in the Text response (zero-based start position and end).  0-2,6-4 
Cursor Integer A zero-based position in the Text response indicating the suggested position of the cursor if this item is selected. A -1 response indicates no suggestion is available.  
Description String Descriptive information about the found item, typically if it’s a container.  102 Streets 
Next String The next step of the search process. Find or Retrieve Retrieve 

Example of response 

{
      "Items": [
         {
            "Id": "CA|CP|A|17427672",
            "Text": "6-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        },
        {
            "Id": "CA|CP|A|22742122",
            "Text": "9-234 Drinkwater St",
            "Highlight": "",
            "Cursor": "0",
            "Description": "Sudbury, ON, P3E 3E5",
            "Next": "Retrieve"
        }   
    ] 
}

Since we are talking about web service here the errors that it returns are returned with 200 response while the error itself is contained in the body of the response. Details about all possible errors can be found on Canda Post website

{
    "Items": [
                {
                        "Error": "5",
                        "Description": "Request not allowed from this URL",
                        "Cause": "The request was disallowed from the URL.",
                        "Resolution": "Check the security settings on the key first. If they look fine, please contact 
                        support as it may be from a URL on our blacklist."        
        }    
    ] 
}

Retrieve endpoint

https://ws1.postescanada-canadapost.ca/addresscomplete/interactive/retrieve/v2.11/json3.ws

Retrieve endpoint returns the full address details based on the Id, which is returned as a result of the Find request. 

As was mentioned in the possible flows section above, initial Find request returns a list of addresses that closely match the search term used by the user. Each address contains an Id field. This Id should be used to issue Retrieve request. You can try the request for free on Canada Post website

Parameters 

Each request to the web service requires the following parameters. You can create any number of keys, each of which can be reported on individually and have specific security settings. 

NAME TYPE Mandatory DESCRIPTION DEFAULT EXAMPLE Notes 
Key String Yes The key to use to authenticate to the service.  AA11-AA11-AA11-AA11  
Id String Yes The Id from a Find method to retrieve the details for.  CAN|1520704 Should be URL encoded 

Example of the request 

https://ws1.postescanada-canadapost.ca/AddressComplete/Interactive/Retrieve/2.11/json.ws?key=tf36-ku97-ab94-zc85&Id=CA%7CCP%7CA%7C9494373

NAME TYPE DESCRIPTION VALUES EXAMPLE 
Id String    
DomesticId String    
Language String    
LanguageAlternatives String    
Department String    
Company String    
SubBuilding String    
BuildingNumber String    
BuildingName String    
SecondaryStreet String    
Street String    
Block String    
Neighbourhood String    
District String    
City String    
Line1 String    
Line2 String    
Line3 String    
Line4 String    
Line5 String    
AdminAreaName String    
AdminAreaCode String    
Province String    
ProvinceName String    
ProvinceCode String    
PostalCode String    
CountryName String    
CountryIso2 String    
CountryIso3 String    
CountryIsoNumber Integer    
SortingNumber1 String    
SortingNumber2 String    
Barcode String    
POBoxNumber String    
Label String    
DataLevel String  Unknown
Premise
RangedPremise
Street
City 
 

Example of a response 

{
    "Items": [
        {
            "Id": "CA|CP|A|9494373",
            "DomesticId": "9494373",
            "Language": "ENG",
            "LanguageAlternatives": "ENG,FRE",
            "Department": "",
            "Company": "",
            "SubBuilding": "1",
            "BuildingNumber": "234",
            "BuildingName": "",
            "SecondaryStreet": "",
            "Street": "Drinkwater St",
            "Block": "",
            "Neighbourhood": "",
            "District": "",
            "City": "Sudbury",
            "Line1": "1-234 Drinkwater St",
            "Line2": "",
            "Line3": "",
            "Line4": "",
            "Line5": "",
            "AdminAreaName": "",
            "AdminAreaCode": "",
            "Province": "ON",
            "ProvinceName": "Ontario",
            "ProvinceCode": "ON",
            "PostalCode": "P3E 3E5",
            "CountryName": "Canada",
            "CountryIso2": "CA",
            "CountryIso3": "CAN",
            "CountryIsoNumber": "124",
            "SortingNumber1": "",
            "SortingNumber2": "",
            "Barcode": "",
            "POBoxNumber": "",
            "Label": "1-234 Drinkwater St\nSUDBURY ON P3E 3E5\nCANADA",
            "Type": "Residential",
            "DataLevel": "Premise",
            "AcIlrc": "R",
            "AcUm": "1"
        },
        {
            "Id": "CA|CP|A|9494373",
            "DomesticId": "9494373",
            "Language": "FRE",
            "LanguageAlternatives": "ENG,FRE",
            "Department": "",
            "Company": "",
            "SubBuilding": "1",
            "BuildingNumber": "234",
            "BuildingName": "",
            "SecondaryStreet": "",
            "Street": "Rue Drinkwater",
            "Block": "",
            "Neighbourhood": "",
            "District": "",
            "City": "Sudbury",
            "Line1": "1-234 Rue Drinkwater",
            "Line2": "",
            "Line3": "",
            "Line4": "",
            "Line5": "",
            "AdminAreaName": "",
            "AdminAreaCode": "",
            "Province": "ON",
            "ProvinceName": "Ontario",
            "ProvinceCode": "ON",
            "PostalCode": "P3E 3E5",
            "CountryName": "Canada",
            "CountryIso2": "CA",
            "CountryIso3": "CAN",
            "CountryIsoNumber": "124",
            "SortingNumber1": "",
            "SortingNumber2": "",
            "Barcode": "",
            "POBoxNumber": "",
            "Label": "1-234 Rue Drinkwater\nSUDBURY ON P3E 3E5\nCANADA",
            "Type": "Residential",
            "DataLevel": "Premise",
            "AcIlrc": "R",
            "AcUm": "1"
        }
    ]
}
ERROR DESCRIPTION CAUSE RESOLUTION 
1001 Id Invalid The Id parameter supplied was invalid. Try again, using only IDs from the Find services. 
1002 Not Available This record contains data that is not available on your account. Please contact support to upgrade your account. 

Example of an error response 

{
        "Items": [
                {
                        "Error": "3",
                        "Description": "Account out of credit",
                        "Cause": "Your account is either out of credit or has insufficient credit to service this request.",
                        "Resolution": "Please check your account balance and top it up if necessary."        
        }    
    ] 
}

References 

This is a github repository containing React with classes implementation of two possible ways to integrate with Canada Post AddressComplete API as was explained before. Pay attention that to install the dependencies there is a need to use yarn

Pull-Push and why brain prefers ketones as energy

Photo by isens usa on Unsplash

Ketones are the natural fuel for the brain

Takeaway

Cunnane SC. 2018. Ketones, omega-3 fatty acids and the Yin-Yang balance in the brain: insights from infant development and Alzheimer’s disease, and implications for human brain evolution. OCL 25(4): D409.

The use of both glucose and ketones as the brain’s two main fuels is governed by five principles: First, two distinctly different strategies regulate the use of glucose and ketones by the brain, a concept we call ’Push-Pull’ (Cunnane et al., 2016a, b). Brain glucose uptake is controlled by brain cell activity. Glucose is transported into the brain via glucose transporters in response to brain cell activation (Pull), so it is largely independent of blood glucose concentration. In contrast, ketones are transported into the brain via monocarboxylic acid transporters directly in response to plasma ketone concentration (Push), not brain activity. Hence, when ketones rise in the blood, they are immediately transported into the brain, an effect not seen with glucose.

  1. Cunnane SC, Courchesne-Loyer A, Vandenberghe C, St-Pierre V, Fortier M, Hennebelle M, Croteau E, Bocti C, Fulop T and Castellano C-A (2016) Can Ketones Help Rescue Brain Fuel Supply in Later Life? Implications for Cognitive Health during Aging and the Treatment of Alzheimer’s Disease. Front. Mol. Neurosci. 9:53. doi: 10.3389/fnmol.2016.00053 ↩︎