Ramblings of a Researcher

Home/Ramblings of a Researcher

Postcard from Mars – a SIMOC update: August 01, 2017

ECLSS by Wikipedia commons

ECLSS
An Environmental Control and Life Support System (ECLSS) enables humans to survive in a semi-open (Fig 1) completely closed (BioSphere II, Lunar Palace) ecosystem. In a traditional model, all components vital to sustaining life are tracked by a network of system monitors. Careful estimations are made for the quantity of humans in the given environment for a particular period of time, against the resources provided. The amount of work they perform, the food they consume, and the number of hours they sleep all affect the duration and quality of the mission (see Wikipedia commons image, above).

In this linear tabulation of resource allocation and consumption each human actor or agent is treated as an IN and OUT box, a system which transforms one resource of a particular quantity into a bi-product which is either reused or discarded as waste.

To use this model for a massively scalable system (4-40,000 people) will result in an arduous, ultimately failing bookkeeping effort of tracking values such as the quantity of molecules of oxygen, carbon dioxide, water, calories, Watts or Joules. Through this linear method, we will be less likely to discover causality. If instead we can build a model which considers the relationship between two or more systems, which are themselves maintained by a constant input of energy and mass flow against the natural progression toward system breakdown, then we will gain a better sense of what it means to scale a human colony in a totally foreign, inhospitable environment, from the first astronauts to arrive to a genetically viable human gene pool that can, of its own accord, carry the human species forward.

A rendezvous with Rama
In our imagination, humans in a distant future have gained the ability to travel vast distances in relatively short periods of time. An exploratory mission discovers a massive, abandoned space station in orbit about a planet which itself is not conducive to life as we know it. We attach a shuttle craft to the hull of the outpost, tens of kilometers in diameter, and let ourselves inside. There does not appear to be a single living creature inside. Nothing moves, not even automated repair and management systems.

Immediately, we ask, For how long has this outpost been abandoned?

To answer that question, we determine if the atmosphere is breathable for humans, and we remove our helmets. The air is dry, cold, and devoid of the smell of decay. There is an odor of machine oil and mechanical systems.
While completely sealed, and safely parked in a non-decaying orbit far above the drag of the atmosphere, this habitat is decaying. It is slowly degrading. No matter how well crafted, no matter how perfectly every nut, bolt, and weld is applied, eventually this artificial world will fall to pieces.

You can point to the systems which are no longer being maintained: water delivery, sewage removal, atmosphere recycling systems. The ship’s hull is continuously bombarded with radiation from the binary star system 1.5 AU from the orbit of the host planet. Each of these is breaking down due to a lack of maintenance.

As we explore the inner halls and chambers of this orbiting world we take note of the integrity of the structure. Are seals in tact? Are lubricants leaking? Do the doorways to passages open and close securely? Do motors yet spin and pistons yet pump? Or have all moving parts seized and become immobile?

While we tend to measure breakdown over time, we can also measure the disorganization of the structure, at the macroscopic and microscopic levels. Physical breakdown of a mechanical system can be described as a degree of current functionality in comparison to its original design parameters. In this alien outpost, despite the incredible technology employed, we do recognize the failure of some systems (once rebooted and encouraged to operate again), such that we are able to estimate their original function and design specification. The difference between full capacity and the current state is a ratio which can be described as a normalized function, from zero through one [0 … 1] where 1 is complete, working order and 0 is a seized, non-functioning machine, no longer providing the intended service, and thereby no longer supporting this habitat nor the inhabitants who once occupied it.

This breakdown, the unavoidable decline of all bounded systems can be described by the single variable entropy, or the measure of organization.

SIMOC sketch by Kai Staats

So let’s take a few steps back, to a time when the alien station was yet inhabited. We can safely assume that at that time there was a maintenance schedule, a system by which the entire structure was maintained through routine inspection, repair, and replacement. This could have been done by the macroscopic hands of the aliens (who appear to be of a similar stature to that of the human explorers), an automated array of robotic assistants, or by microscopic nanobots whose function is to maintain the integrity of all functional systems, at all times, such that no weaknesses ever develop, and no systems ever suffer from catastrophic failure.

Either way, there is a cost to this maintenance, the work (w), or energy expenditure and mass flow to maintain the function (f) of the habitat. Organization (o) of this work requires management of information (i). As such, we have defined a means by which we can measure the status of a closed ecosystem:

  1. Organization
  2. Information
  3. Work

Function, then, is a relationship between the Organization, Information, and Work attributed to the sustained management of the habitat, or its total functionality. While each of these could be measured in any of number methods, we will place each in a tightly bound relationship to entropy, such that entropy is the counterpart, the undoing of organization, information, work, and ultimately the function.

Now, we have a new means of monitoring the health of the physical parameters of an isolated habitat, as:

f = (o [operator] i [operator] w) / entropy

Where the ratio is a measure of the effort or energy required to ultimately maintain a self-contained ecosystem without ever having had to count the molecules of oxygen, water, or complex carbohydrates. In a newly built habitat, the entropy is low, therefore the maintenance is low as well. But as the habitat ages, or if catastrophe strikes, the entropy will be large, thereby requiring greater organization, information, and work to bring it back into compliance with sustaining human life.

We are relating the current state of the system to its design specification over the inevitable force of entropy.

Back to Mars
If we employ a normalized set of values, as discussed above, then the maths is quite simple, even as we scale this colony from 4 to 400 to 40,000 individual habitants. This is not to say we will not count molecules nor worry ourselves with the atmospheric pressure in the greenhouse, for our model is in fact based on data accumulated from close-ecosystem and bioregenerative experiments on Earth. But to find those non-linear functions of scalability, we must remove ourselves from the line-item bookkeeping which would otherwise overlook the economies of scale which will surely affect a growing colony.

The habitat itself is designed to sustain human life in an otherwise inhospitable environment. As such, we can model the human lives of the astronauts by making certain the habitat itself is functional. We have established a potential framework built upon four parameters which enable us, at any point in the run-time of our SIMOC model, determine the relatively “health” of the physical structure of the habitat.

Now, let’s turn our attention to the health of the human habitants for which the habitat was designed and built Like a structure which is built from concrete, steel, glass, and soil, humans are composed of building blocks. Water, oxygen, calories, protein, vitamins and minerals make up the fluid and solid systems of our bodies.
How do we bring such discreet elements into the SIMOC model without managing each and every molecule that supports the lives of the human inhabitants of the isolated colony? In much the same way as we did with the habitat, we can look at the construct of the human body, and what breaks down over time.

One can see the human body as an assembly of points of failure, critical systems which must be satisfied. Oxygen intake, carbon dioxide exhalation, water, calories, nutrition, and waste management are as mission critical to the human body as is a sealed, pressurized shell to a habitat.

If we see humans as the caretakers of the habitat, that is, the principal labor force responsible for its anti-entropic upkeep, and the habitat as the physical construct which enables the humans to survive in outer space, or on a remote planet, then we have created a positive feedback loop in which each unit supports the other.

What happens when automated or directed robot labor replaces the human maintenance engineer? The labor is shifted from one entity to another, but the total work required to maintain the habitat is sustained, and the total quantity of humans supported, given the immediate infrastructure is not changed. Rather, the caloric expenditure of each human in the habitat is shifted to other functions, and the economy of scale is realized.

By |2019-07-07T13:55:47-04:00August 1st, 2017|Looking up!, Ramblings of a Researcher|Comments Off on Postcard from Mars – a SIMOC update: August 01, 2017

When I sell my vision

Research has its moments of upset, intrigue, and thrill.

But for this past six months these moments are lost to the effort of writing.

Proposal followed by proposal, I am a salesman with a briefcase full of ideas. Some new. Some old. Some revised. Some bold. If my visions for a better tomorrow are a good match to your funding of today, then we will enter into a partnership in which I am paid to investigate, experiment, and to play.

By |2017-06-10T00:12:27-04:00May 31st, 2017|Ramblings of a Researcher|Comments Off on When I sell my vision

SIMOC – Visions of a village on Mars

“Some stories only make sense in retrospect, the looking back giving foundation to where we now stand. This is the first of what will hopefully be a series of essays to describe the path from a Good Sam’s campground in 2011 to in some way, helping develop the first community on Mars.” –kai

It starts long ago, beneath a stair case in the basement of our family home in Columbus, Nebraska. Friend Jason Zach and I covered the underside of the stairs with plywood, cardboard, a dead monochrome CRT, and myriad electronic components, wires that stimulated Radio Shack switches, piezoelectric sirens, and LEDs and wires that went nowhere. In that spacecraft, we journeyed across the galaxy, venturing to the shores of distant planets whose inhabitants had never before seen humans. Jason was an expert marksman, never afraid to attack. I was keenly interested in obtaining samples, studying the cultures, and welcomed Jason to cover my back.

Many years later, while camped at a Good Sam’s, in Seabrook, New Hampshire on August 2011, I returned to that child-like sense of belonging to a distant place and time. As described, I believed I gained some insight as to how isolated communities might evolve on space stations, Mars and asteroid outposts, even among the stars.

Later that same year, I returned to Holden Village, an isolated village in the Cascades of Washington State. In those months late in the year, the retreat of summer saw the last of the guests depart down the sixteen miles to Lake Chelan. Those of us who remained, counted by dozens, shifted our daily routine from that of a more finite task to general support of the village. Files had to be stoked in order to heat the buildings, snow shoveled, and the water driving the hydro-electric generator kept from freezing, else the electricity would fail.

In those crisp, cold, mostly dark winter days that followed, Holden was a true Village. While a hierarchy of command remained, we became more egalitarian, sharing in the responsibilities of maintenance, even survival should a heavy snow storm bury the pathways and building exits or make impossible a medical evacuation. It was then that my interest in village (communal) living was again stimulated, and the journey to Mars re-ignited.

For five months in 2012 I worked as a photo journalist and documentary filmmaker in Palestine, where a sense of isolation from the world was applied not a mountain village, but the confines of geopolitical boundary that has the power to contain people from birth to death. I witnessed first-hand how the skilled craftsmen and capable artisans were the backbone of an economy of trade and negotiation in place of the familiar currencies of exchange. I learned how much individuals depend upon each other, especially in the challenging times.

I was building a sense of what it meant to live with the challenge of an isolated environment.

On an isolated ranch in the Rocky Mountains of Colorado in 2013, I lived for six months—up to six weeks without face-to-face contact with another human being. In those months I gained from the challenge and ultimate reward of true isolation; a chance to discover who I am without the influence of others, without opportunity to attribute my success nor place blame on the actions of others.

In 2014 I joined MarsCrew134 at the Mars Desert Research Station (MDRS) as the seventh member of an isolated, Mars analog crew. We lived for two weeks in the confines of a simulated Mars lander, a two-story vehicle just large enough to contain individual sleeping quarters, two airlocks, kitchen and crew commons, toilet and shower, lab, and minimal storage. We departed the structure only while wearing a spacesuit, the visor scratched and needing replacement; the radios dodgy at best. The crew came from six countries, representing seven nationalities and more than a dozen languages spoken. It was not always easy, and at times far from fun, but we made the best of those two weeks, focused on our research, data collection, and surviving the simulation. We came away friends for a life-time, even now traveling far to see each other again.

It was then that I became invested in a study of village life. In part because I realized that is where I felt most at home; in part because at least for the first generation, that is how humans will once again live when we finally place boots on Mars.

This week I submitted a proposal to the Interplanetary Initiative at Arizona State University’s School of Earth and Space Exploration (SESE) for the research and development of a mathematical model of a scalable, isolated model of an off-world community (SIMOC).

Now we wait …

By |2017-12-21T15:46:40-04:00May 21st, 2017|Ramblings of a Researcher|Comments Off on SIMOC – Visions of a village on Mars

How to Install TensorFlow on OSX 10.11

If you are coming to OSX from Ubuntu, the installation of applications can go smoothly, as Apple intends, or leave you beyond the threshold of frustration, in a dismal state of frustration, rage, and despair. The instructions at the TensorFlow website are correct, if everything goes as planned. But as noted, “Since a native pip installation is not walled-off, the pip installation might interfere with or be influenced by other Python-based installations on your system,” for me, this became a real problem.

I tried pip, then virtualenv, then Anaconda only to find that none of these worked, for various reasons I won’t go into here. The key issue with pip was that the ‘Collecting …’ stalled, it would hang there, for minutes, even hours (as I waited, and waited, just to make certain). When I canceled the process (CTRL-C), I noted a lockfile in the process output.

It was not until my associate Iurii M. had time to assist me, that he discovered a work-around, using pip with the ‘–no-cache-dir’ extension in order to force it to bypass the locked file (which we never did locate). Then, the collection just worked, as it should, and for the most part, it was installed and running in roughly 30 minutes, including the time required to open an NVIDA developer account and obtain the CUDNN license.

So, here’s how the installation of TensorFlow on OSX goes …

  1. Install Homebrew
    $ brew update
    $ brew upgrade
    $ brew doctor
    $ brew install python

    * always run brew and pip from user session, not root

  2. Upgrade pip install:
    $ pip install -U pip
     
  3. Install TensorFlow
    * use pip with cach disabled (to keep terminal from stalling):

    $ pip install –no-cache-dir -I tensorflow-gpu

  4. Install CUDA

    $ brew install Caskroom/cask/cuda

  5. Install CUDNN (from NVIDIA)
    https://developer.nvidia.com/cudnn

    $ Download cuDNN v5 (May 27, 2016), for CUDA 8.0

  6. Unzip & Install
    1. select location for unzip
    2. move items proper location:
      mv -v lib/libcudnn* /usr/local/cuda/lib
      mv -v include/cudnn.h /usr/local/cuda/include

     

  7. Test TensforFlow
    $ python
    $ import tensor flow
By |2017-09-05T07:03:12-04:00April 6th, 2017|Ramblings of a Researcher|Comments Off on How to Install TensorFlow on OSX 10.11

Karoo GP and TensorFlow

Yesterday I received a revision to Karoo GP which now includes the Python machine learning library TensorFlow. The 10,000 row dataset which consumed 48 hours for 30 generations of evolution on a powerhouse 40 core motherboard now runs in less than 4 minutes on a single GPU card.

30 lines of code revised, and Karoo enjoys a 720x improvement in performance.

I am blown away.

The updated version of Karoo will be released to github with the close of December, after the contract developer and I complete a suite of tests and the code is prepared for release.

By |2017-08-05T19:09:18-04:00December 3rd, 2016|Ramblings of a Researcher|Comments Off on Karoo GP and TensorFlow

The Ebb and Flow

In June, July, and August I was almost daily engaged in the application of evolutionary computation to glitch classification at LIGO. I worked extensively with Marco Cavaglia and his students Hunter, Luciano, and Kentaro for this effort.

We wrestled with the data, trying to find new ways to extract features which provide stronger correlations. We made progress, got lucky a few times, but more often than not hit dead ends which forced us to circle back to the start.

The joy of this arduous process is complex, for it entails both a passion for success and failure, the two faces to discovery. My professor too often said, “Research is hard” as a badge of honour, a mark of the fearless and brave and dedicated. Yet he failed to say “Research is rewarding!” As a recent New Scientist article presented, it is the people we work with that make most jobs tolerable. I am fortunate to have the best of both–an incredibly engaging challenge conducted with incredibly engaging people.

I have the joy of working with some of the brightest and the best, the funniest, the most seasoned and the most juvenile. We laugh far more than we do argue, yet we celebrate only long enough to realise our mistake and then dive back into another seemingly endless, dark tunnel. The phone calls, the TeamSpeak meetings, the hundreds of emails that keep us going. For with each communication we are challenged to prove our findings, we are challenged to be better at our job than we were before. No one ever says, “That is good enough.” Always, the challenge is for more. Higher accuracy. A stronger correlation. An improved better dataset. Better writing, presentation, and publication.

This week I will officially engage as a “Visiting Scientist” at the Embry-Riddle Aeronautical University in Prescott, Arizona where I am working under Dr. Michele Zanolin and with Marek Szczepanczyk, PhD candidate and chair of the supernovae group at LIGO.

Together, we are applying evolutionary computation, genetic programming in particular, to the classification of Coherent Wave Bursts (CWB) in LIGO data. While we have just begun, only a few data runs in our shared experience, we know the work will be long, challenging, and more likely to fail than succeed. But it is the people with whom I am working which compels me, as much as the prospect of success. If I can play a small part in the team which may, some day, detect supernovae using gravitational wave astronomy, then that small part will be an honour indeed.

By |2017-08-05T19:09:23-04:00December 3rd, 2016|Ramblings of a Researcher|Comments Off on The Ebb and Flow

When the goal is behind you

My revised MSc thesis was submitted today. More than 120 hours effort across six weeks. There is no end, for there is always room for improvement, always more content to generate. Ultimately, you just stop and turn it in. Challenging, educational, and rewarding. Now, I wait …

By |2017-08-05T19:09:31-04:00October 13th, 2016|Ramblings of a Researcher|Comments Off on When the goal is behind you

The thesis looms

Six months ago I submitted my thesis.

I waited for six weeks, to learn of my fate.

I waited for six more weeks to learn the meaning of the feedback given.

I then busied myself with conferences, workshops, research, programming, and travel.

Now, with just a few weeks to go, my thesis waits for me.

By |2017-08-05T19:09:42-04:00September 6th, 2016|Ramblings of a Researcher|Comments Off on The thesis looms

Ensemble Learning and the Lord of the Flies

conch An intense application of feature engineering, genetic programming, and proposed ensemble learning applied to LIGO glitch classification leads to an email exchange in which an imaginary beach harbors a pile of shells assembled by a greedy fitness function. The lines are drawn in the sand. The decision tree vies for position while the binary classifier stands its ground.

The conch? Well, it was an outlier whose incorrect classification initiated a war amongst otherwise solid researchers, upstanding men and boys. I fear Sam-n-Eric are endangered once more …

By |2017-08-05T19:10:01-04:00August 16th, 2016|Ramblings of a Researcher|Comments Off on Ensemble Learning and the Lord of the Flies

Karoo GP is nearly ready for the world!

Nearly 18 months after I began working on my Python-based genetic programming platform Karoo GP, and 9 months since any real code development, I have returned to revise, update, and improve what served me well while conducting my research at the Square Kilometre Array (SKA) in Cape Town, South Africa.

The data sort and normalisation tools are fully revised, each with a simple yet effective text-based interface. The Quick Start Tutorial is fully rewritten and now available for download. And with 2-3 fairly substantial fixes and improvements, I hope to launch Karoo GP by GECCO 2016, Denver, Colorado.

Karoo GP has it’s own page and will soon be made available from github.

By |2017-08-05T19:11:43-04:00July 9th, 2016|Ramblings of a Researcher|Comments Off on Karoo GP is nearly ready for the world!